|
Posted by Tim on 10/05/78 11:30
>> I've seen code where fopen was used to get some HTML from another file
>> and put it at that place in the resulting file. I was wondering if there
>> would be a performance hit, compared to including the file at the top
>> and using the variable somewhere in the resulting file.
>
>
> i'm sure that include is most suitable variant. Fopen usefull if you
> wanna to process some information from file, to use raw data, write
> dump etc, - this is bidirectional function - you can read and write to
> file. Also its usefull when access remote files.
> If compare speed to "include" think it would lose anyway.
I was thinking the same thing, but it made me wonder where I could check
such things. The same thing for print/echo (which happens to be in the FAQ).
I have no clue at the moment which function to choose if two can be used
for my purpose and I was wondering if there's any good resource
available to find out...
Cheers
Navigation:
[Reply to this message]
|