can't find files in root
Posted by: hoodleehoo (---.ok.ok.cox.net)
Date: April 03, 2014 07:06PM

I'm new and trying to learn PHP. The book instructs installing wamp, which I did. But when I copy and pasted the test "hello world" .php file (using notepad) and saved it to the www root (C:/wamp/www/) it says the file is not found in localhost when I type it into the address bar. sad smiley

I'm not sure what I'm doing wrong. Do you have to do something special other than just saving the text file hello.php?

Options: ReplyQuote
Re: can't find files in root
Posted by: RiggsFolly (---.as13285.net)
Date: April 03, 2014 08:35PM

Check that notepad has not saved the file as xxx.php.txt


You need a decent editor ( notepad is befinitely not that )


Try Notepadd++ its free and very good.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: can't find files in root
Posted by: hoodleehoo (---.ok.ok.cox.net)
Date: April 03, 2014 09:39PM

Thank you very much! That did the trick. Although it changed the quote marks into “ and when I paste the code it puts it all on one line instead of maintaining the line breaks. Is there a way to fix that?

Options: ReplyQuote
Re: can't find files in root
Posted by: RiggsFolly (---.as13285.net)
Date: April 03, 2014 10:22PM

Thats what happens when you edit with notepad, it messes up the line breaks.

Think you will just have to go throgh and add them back in using notepad++

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: can't find files in root
Posted by: hoodleehoo (---.ok.ok.cox.net)
Date: April 04, 2014 04:09PM

Using normal notepad it wasn't a problem. sad smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.