How do I read a php file into a php program
The php file that I am trying to read is a mixture of code and html
I have tried every function you can think of
fread, fgets, file, fgetc, file_get_contents etc etc.
None of them seem to read the whole file in correctly
Any ideas ??
Re: How do I read a php file into a php program
boombangabang schreef:
> The php file that I am trying to read is a mixture of code and html
>
> I have tried every function you can think of
>
> fread, fgets, file, fgetc, file_get_contents etc etc.
>
> None of them seem to read the whole file in correctly
>
> Any ideas ??
fopen()/file_get_contents etc will get you the file. eval() will parse
the code. also check out include()
--
Arjen
http://www.hondenpage.com
Re: How do I read a php file into a php program
I have never got the include function to work, as that would be the
easiest. Not sure if I have set Globals anywhere.
I will check out the Eval function.
>boombangabang schreef:
>> The php file that I am trying to read is a mixture of code and html
>>
>> I have tried every function you can think of
>>
>> fread, fgets, file, fgetc, file_get_contents etc etc.
>>
>> None of them seem to read the whole file in correctly
>>
>> Any ideas ??
>fopen()/file_get_contents etc will get you the file. eval() will parse
>the code. also check out include()