View previous topic :: View next topic |
Author |
Message |
TL3 -
Joined: 12 May 2005 Posts: 3
|
Posted: Thu May 12, 2005 8:08 pm Post subject: PHP Scripts Wont Work |
|
|
I recently installed php following first aprelium's guide, then trustabyss's guide and still get a blank page when I try and get scripts to run.
http://timnet.no-ip.org/php/
I am using notepad to write the scripts, and as you can see I'm doing something wrong.
Please help
Last edited by TL3 on Thu May 12, 2005 8:28 pm; edited 1 time in total |
|
Back to top |
|
 |
TL3 -
Joined: 12 May 2005 Posts: 3
|
Posted: Thu May 12, 2005 8:26 pm Post subject: |
|
|
I should add that Im using win98 with mdac installed.. |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu May 12, 2005 8:42 pm Post subject: |
|
|
You have a double extension for your PHP file. remove the .txt at the end of
the file name and then try accessing the script again using your web browser.
Go to My Computer -> View -> Folder Options -> View (tab) and
uncheck the option "Hide file extensions for known file types."
Sincerely , TRUSTpunk |
|
Back to top |
|
 |
TL3 -
Joined: 12 May 2005 Posts: 3
|
Posted: Thu May 12, 2005 9:51 pm Post subject: |
|
|
thanks for the reply
I unchecked it but the file still saves as .php.txt even if I select "all files(*.*)"
Edit: nevermind I just renamed it and it works fine
Thanks for your help! |
|
Back to top |
|
 |
richardyork -
Joined: 22 Jun 2004 Posts: 411 Location: United Kingdom
|
Posted: Thu May 12, 2005 11:24 pm Post subject: |
|
|
When using notepad to save files that are not *.txt files, it is always best to use this method at the save prompt when saving files:
Save As File Name: "yourfile.php"
Using the quotes around the file name and type of you choice, forces the file to be saved with the file type you have chosen, in this case and your, a *.php file
This ensures the file won't be saved as, yourfile.php.txt _________________ Please SEARCH the forums BEFORE asking questions! |
|
Back to top |
|
 |
|