Jul 20, 2008

Help Starting Php? - I don't understand how to begin...

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Help Starting Php? - I don't understand how to begin...

Dart-kun
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.

Reply

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

Reply

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

Reply

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

Reply

electriic ink
Solution: Don't use the show file link. Instead click at the link under File url:

Reply

truefusion
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".

Reply

Dart-kun
Thank you, I got it to work, and am testing scripts at the moment. biggrin.gif

Reply

karlo
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.. biggrin.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : starting php understand

  1. Starting PHP - for PHP newbies... (30)



Looking for starting, php, understand, begin

Searching Video's for starting, php, understand, begin
advertisement



Help Starting Php? - I don't understand how to begin...



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE