|
#1
|
||||||||||||
|
||||||||||||
|
Welcome to PHP. To start learning php, you need access to a FTP server. After that a php editor would be nice, but notepad is ok, or any other text editor.
First lets understand what php is. See now, HTML is just showing information, it doesn't acullay contact the server. Then JavaScript( I'll make JavaScript tutorials later) Is client based which means it just takes information from the users computer. But it only takes time and stuff. Then PHP acually contacts the server. It uses HTML to get information from the user then takes that information and uses it. Since HTML your going to need to know some html, but I will still give the html code to help you. Now lets get started. To start a php file, you must name it having the .php file extension. The starting tags for php are. Code:
Code:
Since we have a small feel for php, time to talk to you about editors. PHP Editors help you by color coding your code. Some of them will allow you to download php to them so that they can debug your code! The ones that I suggest are PHP Designer, Dreamweaver, and anyhting else you can find. PHP Designer is freeware, and it is the best one I have found. Back to programming..... Now with the print command in your mind, now lets use it with making a simple code..First you must understand variables. Variables are very easy to understand, they are mainly used to store information for later use. For all you HTML people that's why when you make a from you have to give it a name. Anyways, when making a variable, you can't make it with a number first. A alphabitic letter has to be first. Examples... Correct: $hello123423423 $h2 Incorrect: $1Hello $123423423hello Now that you know the correct and incorrect way to write variables, time to have fun. Get on your ftp, or whatever you have access to that has PHP installed. Make a new HTML file. Open up that html file and start to make a very simple form.. In this form we are going to add numbers that people can put in. Code:
Now time for me to give you the PHP part of this code. Make a new file and name it handle_simple.php. Here is the coding for it and read the comments. Code:
If that doesn't work then please contact me for further questions. Thanks! Made by: Devon Studios Thanks for reading this tutorial. I did copy and paste this, but from my site If anything is wrong please tell me. Thanks again. |
| Pictual Design Forums's Sponsored Links: |
|
| Display your advertising here - learn about Pictual Revenue Sharing |
|
#2
|
||||||||||||
|
||||||||||||
|
dont forget to tell the readerss that there is also the echo() function
btw u got PHP for Dummies - this appears to be similar to the basic description of php in php for dummies |
|
#3
|
||||||||||||
|
||||||||||||
|
Well, i did not rip it....So don't think that, and I am new to PHP as well, so I really don't understand a lot..But I DID WRITE THIS TUT!!!
Edit: also i did get some of this from a book. But it is not word for word, and the example used is nothing like it. Thanks, Devon |
|
#4
|
||||||||||||
|
||||||||||||
|
|
|
#5
|
||||||||||||
|
||||||||||||
|
Thanks, now do you think it would help someone that JUST started php??
|
|
#6
|
||||||||||||
|
||||||||||||
|
it would help someone very new, but i really dont need any tips, ive been in the php buisness over 1.6 years ;P
|
|
#7
|
||||||||||||
|
||||||||||||
|
I know that most of you are experts, but usually when a site has introductions to languages they get more hits. If I am corrent, which half the time I am not. Heh
|
|
#8
|
||||||||||||
|
||||||||||||
|
hmm, what can i say
readed a thousand of these introduction tuts, but still didn't learned a thing out of it guess php is my only problem if it comes to coding |
|
#9
|
||||||||||||
|
||||||||||||
|
<div class='quotetop'>QUOTE(alpro @ Oct 31 2005, 04:26 AM)</div><div class='quotemain'>hmm, what can i say
readed a thousand of these introduction tuts, but still didn't learned a thing out of it guess php is my only problem if it comes to coding [snapback]3435[/snapback]
[/quote:fa21a87328]Well then, try this order of learning to code: HTML > JavaScript > PHP. I know the forthmost basics of JavaScript + some more, so I can understand just about everything in this tutorial. |
|
#10
|
||||||||||||
|
||||||||||||
|
yeh thats the way i learned it
and somewhere in the middle learn css |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| php links | xplicit | Programming | 4 | 08-30-2006 04:09 PM |
| Php Logging | FireNova | Tutorials | 2 | 03-05-2006 11:00 AM |
| Php Linking | FireNova | Tutorials | 4 | 12-17-2005 05:38 AM |
| Php Simple Email Script | FireNova | Tutorials | 4 | 07-01-2005 07:56 PM |
| Php Randomizing images | FireNova | Tutorials | 3 | 06-19-2005 04:00 PM |