Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

require hangs

Status
Not open for further replies.

dcf1023

Programmer
Jun 5, 2003
5
US
PHP is acting strange when I try to require a file. I've used require to include the file in another php script and it works great. When I wrote a script with nothing but the require statement, it hangs...

This hangs
<?
require(&quot;MySqlSession.inc&quot;);
?>

but this works

<?
require(&quot;MySqlSession.inc&quot;);

more code...
?>

in fact, every php script with this require beside the one I wrote first hangs. Any idea what is causing this?

Donald
 
Would you mind explain what it means that it hangs?

Possible explanation:
I can imagine that the MySqlSession has no output whatsoever, so nothing is sent to the browser and the poor thing tries to load, load, and waits......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top