fopen() fails in vista !!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tidas
Forum Newbie
Posts: 3
Joined: Thu Oct 16, 2008 6:03 pm

fopen() fails in vista !!!!

Post 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.
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

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

Post by Syntac »

I really, really recommend against using Vista for serious PHP development.
tidas
Forum Newbie
Posts: 3
Joined: Thu Oct 16, 2008 6:03 pm

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

Post by tidas »

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 !!!!

Post 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
User avatar
Syntac
Forum Contributor
Posts: 327
Joined: Sun Sep 14, 2008 7:59 pm

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

Post 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
tidas
Forum Newbie
Posts: 3
Joined: Thu Oct 16, 2008 6:03 pm

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

Post 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
Post Reply