problem with php on windows 7

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
sarangbeast
Forum Newbie
Posts: 2
Joined: Tue Nov 03, 2009 3:51 am

problem with php on windows 7

Post by sarangbeast »

I am a total newbie with php programming!
I was using php+apache on my windows xp and everything was just fine on it!!!
now i gt a new laptop with presinstalled Windows 7 professional ..
now, after installing apache and php
I cant directly save any file with .php extension in htdocs folder of my apache...
it says... you are not authorized. or something like tht..
to solve this.. i save files on desktop and thn copy to htdocs ...

ok done with it

now,when I run any program
suppose a test.php like

Code: Select all

<?php
echo "TESTING";
?>
and when i Run it like

Code: Select all

http://127.0.0.1/test.php

in any browser...
the php file dosnt gt executed
instead
i see the same code on the browser...

now.. I dont knw wht to doo ..and how to
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: problem with php on windows 7

Post by Doug G »

You can't open php files directly with a browser. They need to be 'served' up by the web server.

The copying problem sounds like a permissions setting is incorrect on the htdocs directory, but I don't use Windows 7 yet so maybe there is something else to worry about besides permission settings.
jacinthey
Forum Newbie
Posts: 1
Joined: Sun Nov 29, 2009 3:16 am

Re: problem with php on windows 7

Post by jacinthey »

I have an window opening that is 27 7/8 inches x 17 3/16 inches - what is the square footage of this space? I am trying to replace a window unit airconditioner with a piece of stain glass the size glass i need is 27 7/8 inches x 17 3/16 inches, The girl charges $55 per square foot. How many square feet is this?
_____________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
Last edited by jacinthey on Sat Dec 05, 2009 4:10 am, edited 1 time in total.
User avatar
Weiry
Forum Contributor
Posts: 323
Joined: Wed Sep 09, 2009 5:55 am
Location: Australia

Re: problem with php on windows 7

Post by Weiry »

sarangbeast wrote:now, after installing apache and php
I cant directly save any file with .php extension in htdocs folder of my apache...
it says... you are not authorized. or something like tht..
1. Check folder permission settings
2. Check folder security settings
3. Wamp is so much easier to use.
Fuse
Forum Newbie
Posts: 3
Joined: Tue Dec 08, 2009 2:29 am

Re: problem with php on windows 7

Post by Fuse »

Yep I had that problem when configuring my http.conf, you basically need to provide administrator rights to write into that current directory, I just decided to use a different directory to save all my work (and to apply the changes to apache's config file as well)
Post Reply