Page 1 of 1

problem with php on windows 7

Posted: Tue Nov 03, 2009 4:13 am
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

Re: problem with php on windows 7

Posted: Thu Nov 05, 2009 8:21 pm
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.

Re: problem with php on windows 7

Posted: Thu Dec 03, 2009 1:12 am
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

Re: problem with php on windows 7

Posted: Thu Dec 03, 2009 7:16 am
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.

Re: problem with php on windows 7

Posted: Tue Dec 08, 2009 2:53 am
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)