can't save .php files on new version of wamp
Posted by: lprubin (---.dsl.stlsmo.swbell.net)
Date: October 23, 2008 05:22AM

I've recently downloaded wamp and it seems to be working fine.

But when I try to save a text document as .php, it doesn't work. It only saves it as .php.txt. But it does work if I save it as .html

How do I get it to allow to save files as .php?

EDIT: I'm using windows Vista



Edited 1 time(s). Last edit at 10/23/2008 05:23AM by lprubin.

Options: ReplyQuote
Re: can't save .php files on new version of wamp
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: October 23, 2008 06:02AM

use notepad..


wen saving

filename = filename.php
filetype = all files _________________________ (IMPORTANT)



id reccommed downloading notepad++ its designed for programming

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 2 time(s). Last edit at 10/23/2008 06:03AM by stevenmartin99.

Options: ReplyQuote
Re: can't save .php files on new version of wamp
Posted by: lprubin (---.dsl.stlsmo.swbell.net)
Date: October 23, 2008 06:28AM

OK, this time it actually saved as .php, thanks. But when I tried to open it my browser it didn't work.

For wamp, is my localhost folder: wamp/bin/apache/apache2.2.8/htdocs?

I typed http ://localhost/filename.php (I added the space in this post only so it didn't think it was a file)
what did I do wrong?

This is what I put in the file

<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>



Edited 4 time(s). Last edit at 10/23/2008 09:18AM by lprubin.

Options: ReplyQuote
Re: can't save .php files on new version of wamp
Posted by: yfastud (Moderator)
Date: October 23, 2008 01:22PM

you have to save it in www folder, check my guide here for more info

[guides.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: can't save .php files on new version of wamp
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: October 23, 2008 03:21PM

is my localhost folder: wamp/bin/apache/apache2.2.8/htdocs?


no

its c:/wamp/www

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: can't save .php files on new version of wamp
Posted by: lprubin (---.dsl.stlsmo.swbell.net)
Date: October 23, 2008 09:13PM

thanks, that was the problem!

Options: ReplyQuote
Re: can't save .php files on new version of wamp
Posted by: skoobiedu (---.austin.res.rr.com)
Date: October 24, 2008 09:06AM

You can also put double quotes around the file name. Notepad doesn't remember what file type you select (since there's only two, 'Text' and 'All', it always goes back to 'Text'), this makes things a little easier. Stevenmartin99 is right though, Notepad++ (which I've literally replaced Notepad with, Notepad no more) is a great text editor.

Timeless Thoughts of Imagination
-----------------------------------------------------
I am pessimistically optimistic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.