faqts : Computers : Programming : Languages : PHP : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 26 people (65%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

<? include("filename.php"); ?> doesn't seem to execute any code. But if I point a browser at the .php file it executes. Any help Would be great!

Nov 1st, 2000 15:11
Narendra Jain, Paul Kessler,


Please use require and not include in your script.
'require' always executes the php script every time the script loads.
'include' is loaded up once and is called whenever needed - similar to
functions.
Hope this helps...
Narendra Jain