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 ??
boombangabang [ Mi, 09 Mai 2007 22:06 ] [ ID #1708160 ]

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
Floortje [ Mi, 09 Mai 2007 22:30 ] [ ID #1708161 ]

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()
boombangabang [ Mi, 09 Mai 2007 22:40 ] [ ID #1708162 ]
PHP » alt.php » How do I read a php file into a php program

Vorheriges Thema: Uploading files with IXR (XMLRPC)
Nächstes Thema: suggestion needed