Connecting...

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Introduction to PHP
For more information, please see full course syllabus of Introduction to PHP
Introduction to PHP Your First PHP Script
Lecture Description
In this lesson our instructor talks about PHP script. First, he discusses .php to HTML and PHP delimiters. Then he does a 'Hello, World!' example and talks about the homework challenge.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
Since this lesson is not free, only the preview will appear on your website.
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
1 answer
Last reply by: Janet Bargewell
Thu Nov 8, 2012 1:23 PM
Post by Janet Bargewell on November 8, 2012
I am having the same problem as Katherine. I have saved my file as .php and still get the (' ; ?>) at the end of Hello World. Additionally the script is not returning the text as a header even though I am using the <H1> tag.
1 answer
Last reply by: Joe Springer
Tue Oct 23, 2012 4:20 PM
Post by katherine Hernandez on July 30, 2012
Hi: when I test my php file I get all the headings, but on each php output is showing the ('; ?>) ad the end of the heading. Why is that?
1 answer
Last reply by: Mark Deming
Sun Jul 29, 2012 1:46 AM
Post by Mark Deming on July 29, 2012
Rookie status how come when I put this code exactly like you have it in dreamweaver CS5 the code doesn't work. I know the code should work there as well.
0 answers
Post by Jorge Guerrero on March 21, 2012
Sorry, foks, my bad. I was not opening the file INSIDE http://localhost/intro2php/sample.php
That's why code was behaving funny! :)
1 answer
Wed Apr 11, 2012 4:01 PM
Post by Jorge Guerrero on March 21, 2012
This video dates back to July, 2011. I don't know what's going on, but the only way I could get PHP to work on my computer was like this
<?php echo <h1>Second PHP Block
No further syntax was needed nor recognized by the browser. You guys should check this, as the OP was suggesting the above notation.
Also, you should add a year to the date return of when the comments were posted. If something was posted. It gives one a good sense of how far back the question dates and if it may still be pertinent.
1 answer
Wed Apr 11, 2012 3:09 PM
Post by Pawel Orzeszak on February 9, 2012
Mathew...
your tutorial is for real idiots... and I'm one of them ! Even and idiot like me can understand everything from your course. Thank you so much ! No problems so far
1 answer
Tue Feb 7, 2012 3:12 AM
Post by Herve Gnidehoue on December 21, 2011
HELP
I can't get my php file displayed. I followed all the steps to to install Xampp. Here is what I did as you suggested :
I installed Xampp under C:\Users\user1\Xampp.
In the xampp folder, I created a file named MyFirst.php (I mean the first homework)in the folder htdocs. But when I tried to open it, it did not work. The same source code is sent back to me but when I changed the extension to .html, of course my web browser open it but the php tags were trailing around. My concern are where exactly to save the files ? Once Xampp is installed, do I have to configurate any other file ? Does my Apache really communicate with the PHP ? I had confirmation that Apache is working though.