Navigation
Poll
Would you be an active poster if Ron's Guide had a message board?


Total Votes: 69
Comments: 20 — View
Past pollsPoll idea?
Rate Ron's Guide
Rate our resource at Bigwebmaster.com
Discuss Tutorial: Introduction to PHP 28 Comments
Comment by Ron on Apr 15, 2004, 1:46 am
Please post questions and comments about this tutorial below. Smile
Comment by Blade on Apr 15, 2004, 1:47 am
I thought you used print() to write stuff, I have seen several different ways and I'm getting confused....
Comment by Ron on Apr 15, 2004, 2:00 am
print() and echo() do the same thing, it's just a matter of personal preference.. you can use whichever one you're most comfortable with Smile
Comment by Blade on Apr 21, 2004, 11:08 pm
Thanx for the help Ron, as you can see I'm a n00b Grin
Comment by Ron on Apr 22, 2004, 2:46 am
No problem, gotta start somewhere, right? Smile
Comment by Peter on Apr 22, 2004, 5:00 pm
Think it's time for me to start learning php Tongue

I love your website Ron, it's brilliant Grin
Comment by Ron on Apr 25, 2004, 6:30 am
Hey Peter, Thanks Grin Hope you'll get some use out of these tutorials Smile
Comment by DarkJedi613 on May 20, 2004, 9:36 pm
You can also use print ""; (without parenthesis).

Also to print out a new line (to clean up the source file when its viewed through a browser):

print "
";

You can use the same technique to print out a quotation mark ("Wink the following code would print out a quote:

echo "\"";

The first quote starts the string, the slash tells PHP to print out the next character no matter what it is (and not to print out the \), the second quote is printed out and the third ends the string.
Comment by Emperior Eric on Oct 31, 2004, 12:54 am
hey your tutorial helped but when I saved the *.php it just took it as the name and tacked .txt on the end and then my webhost accepted it as a text file.
Comment by Ron on Nov 20, 2004, 6:49 am
Eric, sorry for the late reply. Try saving the document in notepad as "whatever.php" (with the double quotes).

« Previous [ 1 2 3 ] Next »
Post a comment
Sorry, you must be a registered member to post comments.

If you would like to register, you can do so here.
If you already have an account, please login.