windows 2000, apache 2, php 4 falies to open online files

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
oran
Forum Newbie
Posts: 4
Joined: Mon Apr 17, 2006 2:11 pm

windows 2000, apache 2, php 4 falies to open online files

Post by oran »

Hi,
I'v installed a server on my computer to develop my site.
When I try to read online files (google.com, for example) with, for example, file_get_contents I get this msg (from windows):

Code: Select all

php.exe has genereted errors and will be closed by Windows. You will need to restart the program.
and this one from apache (as HTML):

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, oran@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
I couldn't find any log file.

The exact code that I tried to run is:

Code: Select all

$contents = file_get_contents("http://www.google.com/search?q=dog");
Any have any idea how can I solve this problem??

tnx,
Oran.
[/quote]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Check your error logs, might get a better clue from there.
oran
Forum Newbie
Posts: 4
Joined: Mon Apr 17, 2006 2:11 pm

Post by oran »

Where can I find the log file?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

typically the php error log is found in /apache/logs/
oran
Forum Newbie
Posts: 4
Joined: Mon Apr 17, 2006 2:11 pm

Post by oran »

I find this error (in error.log):

Code: Select all

[Mon Apr 17 23:35:22 2006] [error] [client 127.0.0.1] Premature end of script headers: php.exe, referer: http://localhost/
oran
Forum Newbie
Posts: 4
Joined: Mon Apr 17, 2006 2:11 pm

Post by oran »

I fixed the problem by installing XAMPP.
tnx any way...
Post Reply