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.
fopen() fails in vista !!!!
Moderator: General Moderators
Re: fopen() fails in vista !!!!
I really, really recommend against using Vista for serious PHP development.
Re: fopen() fails in vista !!!!
But cant we do something !!! I have no option but am stuck with Vista
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: fopen() fails in vista !!!!
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
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 !!!!
tidas wrote:So this works in XP ,even works on Linux machine ,but vista is giving problems ....
You have a Linux machine, but you're stuck with Vista? o.0tidas wrote:But cant we do something !!! I have no option but am stuck with Vista
Re: fopen() fails in vista !!!!
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