Jump to content
xisto Community
Dart-kun

Help Starting Php? I dont understand how to begin...

Recommended Posts

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

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

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

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

<?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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.