Starting Php Script Using Notepad

A Member? Please Login  
type your username and password to login
Date: September 05, 2008, 06:01 AM
236640 members and 136423 Topics
Latest Member: archer1
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Starting Php Script Using Notepad
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Starting Php Script Using Notepad  (Read 123 views)
popin5 (m)
Starting Php Script Using Notepad
« on: March 12, 2008, 03:10 AM »

i been reading php for quite some time and on the verge of becoming a guru theoritically not have never ran a script on any browser and it worked.
i often use notepad and save in modes like doc.php, doc.phtml and "doc.php" and non was succesful rather the codes appear on the browser page.
i have tried macromedia flash textpath still have not suceeded.
please can you provide me the correct way of going about it and any tutorial that will be helpful to a beginer like me
my2cents (m)
Re: Starting Php Script Using Notepad
« #1 on: March 12, 2008, 11:23 AM »

1) To declare a PHP section, you should enclose your code within these tags:

<?php code goes here ?>

2) If you are using notepad (and this used to happen to me a lot), chances are that when saving your file, you aren't choosing "All files" under the "save as type" dropdown so that your "doc.php" is actually being saved as "doc.php.txt" (which you can verify by navigating to where you have the file saved and checking out its extension).

Try either or both of the 2 above and let us know if this helps.

Thanks,
javalove (m)
Re: Starting Php Script Using Notepad
« #2 on: March 13, 2008, 04:18 PM »

First u have to make sure u have your runtime engine installed. Then your browser would be able to interprt anything that comes between<?php , ?> as a php tag and execute wats in between. When that is done, i bet your script would not jut run but sprint, lol
 Have Any Body Used Swift Network  Learn How To Programme On Nurit Pos Terminal  I Need A Mella Or Box  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.