RE: [PHP] Read a file, extract and echo some information

2003-10-21 Thread Chris W. Parker
PHP Webmaster on Tuesday, October 21, 2003 4:17 AM said: > The required file will be changing all the time, that's why I want > to set the title in the individual pages and get the main page to > read that information. in that case let me revise my original code.

Re: [PHP] Read a file, extract and echo some information

2003-10-21 Thread PHP Webmaster
"Chris W. Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] PHP Webmaster on Monday, October 20, 2003 4:36 PM said: > As you can see, the above code will not work as the $title variable > has not been set yet. So, I need a way of opening up the hom

RE: [PHP] Read a file, extract and echo some information

2003-10-20 Thread Chris W. Parker
PHP Webmaster on Monday, October 20, 2003 4:36 PM said: > As you can see, the above code will not work as the $title variable > has not been set yet. So, I need a way of opening up the home.php > file, extracting the line containing the $title variable and putting >

[PHP] Read a file, extract and echo some information

2003-10-20 Thread PHP Webmaster
Hi all, I have a little dilemma on my hands that I can't seem to solve. Iv'e looked through the PHP Manual at the fread(), fgets(), fopen(), file() etc functions which I beleive are capabile of what I want to do, but I just can't seem to peice it all together. Anyway, the following code is inside