Page 1 of 1

fopen() fails in vista !!!!

Posted: Thu Oct 23, 2008 3:21 pm
by tidas
Hi ,

I was tryin to access another file in seperate sub directory and got the following error in vista

Warning: fopen(http://localhost/site/service.php) [function.fopen]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\site\API.php on line 47

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\site\API.php on line 47

So this works in XP ,even works on Linux machine ,but vista is giving problems ....

Extremely urgent can some one help me out.

Server details :I have WAMP WITH php 5.2.6 .IIS is disabled .Apache 2.2.8.

Re: fopen() fails in vista !!!!

Posted: Thu Oct 23, 2008 3:25 pm
by Syntac
I really, really recommend against using Vista for serious PHP development.

Re: fopen() fails in vista !!!!

Posted: Thu Oct 23, 2008 4:08 pm
by tidas
But cant we do something !!! I have no option but am stuck with Vista

Re: fopen() fails in vista !!!!

Posted: Thu Oct 23, 2008 4:20 pm
by alex.barylski
I don't imagine PHP is developed for Vista. It's meant to run on a Linux server but it should run for the most part on a Vista machine as well.

THings like file operations are usually where the problems arise, due to the differences in the way Linux and Windows implement the FS.

I'm not sure but does Vista support file permissions? If memory serves me correctly:

A quick google:

http://cc.jlab.org/docs/services/window ... sions.html

Make sure the files are readable/writable by the user under which PHP is running.

If you can switch to a RDBMS if you MUST run on Windows you will encounter far fewer problems.

Cheers,
Alex

Re: fopen() fails in vista !!!!

Posted: Thu Oct 23, 2008 4:38 pm
by Syntac
tidas wrote:So this works in XP ,even works on Linux machine ,but vista is giving problems ....
tidas wrote:But cant we do something !!! I have no option but am stuck with Vista
You have a Linux machine, but you're stuck with Vista? o.0

Re: fopen() fails in vista !!!!

Posted: Thu Oct 23, 2008 4:42 pm
by tidas
Well I tested it on a friend's linux machine and I have vista ...so in the end i need it to start working on mine so tht i can start developing