Dart-kun 0 Report post Posted July 22, 2005 Well, I don't know where to begin PHP. I understand scripts and everything. But how do I make a .PHP file? I am guessing go to the file manager. Create a file called [insert].php. But what type of file do I save it as? Perl? I am really lost, but I really want to start learning PHP. Thanks. Share this post Link to post Share on other sites
SystemWisdom 0 Report post Posted July 22, 2005 Well, you can start by making a regular text file, and just rename the extension to .PHP that's all!! Then you could add HTML/JavaScript/CSS and all that good stuff for the client side.. It will still be valid PHP file, but no PHP code exists so no PHP Server-Side Processing takes place.. From there, you can start adding your PHP scripts to the start of the file (or in the middle, or bottom) and upload it to your server.. Just call the page from the URL bar to execute it! Check out this tutorial for Learning PHP from W3 Schools.. Very good start: http://www.w3schools.com/php/default.asp I hope that helps! Share this post Link to post Share on other sites
truefusion 3 Report post Posted July 22, 2005 If you wanna learn, you can go to http://www.w3schools.com/ they have good tutorials on php, and other programming languages. I tend to go to http://www.phpfreaks.com/ for additional help, by posting in their forums, or doing searches on what i need help on. If you mean by creating a php document in the file manager, just create a text document and end it with ".php" (without quotes). Hope this helps. Share this post Link to post Share on other sites
Dart-kun 0 Report post Posted July 22, 2005 If anyone else would like to help, I still don't understand. *is an idiot*I made a .Php file in notepad, saved it as "all files" not "txt file"I uploaded it on the file manager in my "/" folderIt says Php.phpI clicked on it, then Edit File <?phpprint "Hello world!";?> I typed this in.Next I went to show file.It says."php.php File Type: PHP script text "But nothing underneath. In otherwords its blank.Shouldn't it say Hello World? Share this post Link to post Share on other sites
electriic ink 1 Report post Posted July 22, 2005 Solution: Don't use the show file link. Instead click at the link under File url: Share this post Link to post Share on other sites
truefusion 3 Report post Posted July 22, 2005 Have you tried uploading it to the folder "public_html"? Or is it that where you've uploaded it? If so, try "echo", instead of "print". Share this post Link to post Share on other sites
Dart-kun 0 Report post Posted July 23, 2005 Thank you, I got it to work, and am testing scripts at the moment. Share this post Link to post Share on other sites
karlo 0 Report post Posted July 24, 2005 PHP is really easy to learn. All you need is time and patience. I'm sure that you will really love it especially when you are going to use it for the websites that you are going to make. At first, I hate PHP but now, I really love it. I can't make a website without using PHP... And the advantage of using PHP is it's free, and PHP supports all Operating Systems that's why it's widely used. Along with PHP is MySQL, which is really easy to learn too, and integrated with PHP, it's also free... I hope you enjoy my opinion.. Share this post Link to post Share on other sites