Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Script Dying At include()
November 22, 2004, 11:34 am
rate this thread
4.0.17) that I haven't run for about a year, and for some reason it's
dying at an include() statement that used to work fine. I double
checked to make sure the file is still there, and it is. The weird
thing is, I'm not getting any type of error to tell me what the problem
is. I tried
include(file.php) or die (mysql_error());
but still got no error. I've had some other issues since I went to
PHP5, so I tried going back to 4.3.9, but I still have the same problem.
The exact same setup on my laptop works just fine, so I know it's
something local to the PC. Can anyone give me a suggestion as to why my
script would be dying at include()?
- Jasper Bryant-Greene
November 22, 2004, 5:15 am
- R. Rajesh Jeba Anbiah
November 23, 2004, 3:57 pm
Re: Script Dying At include()
You can't use an include like that. include/require are no functions,
they are special language constructs. Have a look at the manual for some
more details on how these constructs work and why the above can't work
Set error_reporting to E_ALL in your php.ini.
In an example like above I get a warning and the file is not included.
- » PHP + MS Access + How to increase the speed scripts are executed at.
- — Previous thread in » PHP Scripting Forum