Click here to Skip to main content
15,885,278 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: mysql_query error Pin
Gerben Jongerius8-Feb-11 3:13
Gerben Jongerius8-Feb-11 3:13 
Questiondisplay query result in a table using PHP Pin
PermissionDenied6-Feb-11 20:10
PermissionDenied6-Feb-11 20:10 
AnswerRe: display query result in a table using PHP Pin
Jules VDV9-Feb-11 4:56
Jules VDV9-Feb-11 4:56 
AnswerRe: display query result in a table using PHP Pin
Al4211-Feb-11 12:02
Al4211-Feb-11 12:02 
Questionmake tab&menu Pin
Elham M5-Feb-11 5:59
Elham M5-Feb-11 5:59 
AnswerRe: make tab&menu Pin
Eddy Vluggen19-Feb-11 3:05
professionalEddy Vluggen19-Feb-11 3:05 
QuestionProblem with PHP - FastCGI - Headers Pin
Lea Hayes4-Feb-11 13:51
Lea Hayes4-Feb-11 13:51 
AnswerRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27804-Feb-11 14:25
professionalPeter_in_27804-Feb-11 14:25 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes5-Feb-11 3:30
Lea Hayes5-Feb-11 3:30 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27806-Feb-11 13:40
professionalPeter_in_27806-Feb-11 13:40 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes7-Feb-11 0:26
Lea Hayes7-Feb-11 0:26 
AnswerRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27807-Feb-11 12:28
professionalPeter_in_27807-Feb-11 12:28 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes7-Feb-11 13:09
Lea Hayes7-Feb-11 13:09 
AnswerRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27807-Feb-11 14:00
professionalPeter_in_27807-Feb-11 14:00 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes8-Feb-11 0:11
Lea Hayes8-Feb-11 0:11 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
nickmaroulis8-Feb-11 9:36
nickmaroulis8-Feb-11 9:36 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes8-Feb-11 15:14
Lea Hayes8-Feb-11 15:14 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
nickmaroulis8-Feb-11 15:54
nickmaroulis8-Feb-11 15:54 
QuestionCreating file headers in php. Pin
Danzy8330-Jan-11 2:57
Danzy8330-Jan-11 2:57 
Hello experts. Is it possible to create file headers in PHP? In C, I could rely on size of data types to create file headers so that if I want a specific information from the file header, I had to seek to the appropriate byte location and read what I wanted.

I am seeing this to be difficult in PHP. I don't know how I can save, for instance, the length of a string in a file header and later retrieve it at a known byte location.

I started with something like the following:

class FileHeader
{
    private $contentSize;
    private $titleLength;
    private $headerLength;
}


Because the variables can take different data types in PHP, I don't know how I can read the header information before dealing with the file. I can't tell the length that will take me to, for instance, $headerLength in the file so that I can read it since I wouldn't know the length of a particular data. It seems the number of bytes can vary for different headers of different files. Actually, I am a newbie in PHP and I don't know if there is any other way that will make such a task possible. Please help.
AnswerRe: Creating file headers in php. Pin
cjoki31-Jan-11 4:56
cjoki31-Jan-11 4:56 
AnswerRe: Creating file headers in php. Pin
Niall Barr31-Jan-11 11:51
professionalNiall Barr31-Jan-11 11:51 
GeneralRe: Creating file headers in php. [modified] Pin
Danzy8331-Jan-11 12:49
Danzy8331-Jan-11 12:49 
GeneralRe: Creating file headers in php. Pin
Niall Barr31-Jan-11 23:44
professionalNiall Barr31-Jan-11 23:44 
GeneralRe: Creating file headers in php. Pin
Danzy831-Feb-11 19:53
Danzy831-Feb-11 19:53 
Questionsending a link to php script Pin
Danzy8327-Jan-11 14:15
Danzy8327-Jan-11 14:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.