|
|
|
|
![]() ![]() |
Jul 22 2005, 01:28 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 252 Joined: 28-June 05 From: Canada Member No.: 8,791 |
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.
|
|
|
|
Jul 22 2005, 01:52 AM
Post
#2
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 117 Joined: 3-May 05 From: A Canadian South of the 49th Parallel Member No.: 6,544 |
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! |
|
|
|
Jul 22 2005, 01:54 AM
Post
#3
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,916 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 |
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.
|
|
|
|
Jul 22 2005, 11:21 AM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 252 Joined: 28-June 05 From: Canada Member No.: 8,791 |
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 "/" folder It says Php.php I clicked on it, then Edit File CODE <?php print "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? |
|
|
|
Jul 22 2005, 12:00 PM
Post
#5
|
|
|
Incest is a game the whole family can play. ![]() Group: [MODERATOR] Posts: 1,227 Joined: 11-February 05 From: Heaven Member No.: 3,709 |
Solution: Don't use the show file link. Instead click at the link under File url:
|
|
|
|
Jul 22 2005, 06:04 PM
Post
#6
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,916 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 |
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".
|
|
|
|
Jul 23 2005, 12:10 AM
Post
#7
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 252 Joined: 28-June 05 From: Canada Member No.: 8,791 |
Thank you, I got it to work, and am testing scripts at the moment.
|
|
|
|
Jul 24 2005, 05:34 AM
Post
#8
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 618 Joined: 30-October 04 From: Philippines Member No.: 2,049 |
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..
|
|
|
|
![]() ![]() |
Similar Topics