Add PHP commands with the Insert panel Dreamweaver and PHP


show more Adding PHP commands with the Insert panel provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL show less
please wait ...

Adding PHP commands with the Insert panel

Dreamweaver gives you the ability to insert simple PHP commands fairly automatically, using either the menu or the Insert panel. For this demonstration, I'll use files in a copy of this site in the folder 02_gettingstarted > 04_insertphpcode. And I'll work with this file, helloworld.php. This file already has a .PHP extension and when I look at it in Live View, which results in copying the file over to my server folder, and browse the file through the localhost URL, I'll see that the file is shown with the simple text "Hello World" in a content area.

I'm going to show you how to replace that literal text with a simple PHP command. Here is the text inside a pair of <h1> tags. I'm going to remove that text, and then I'm going to use one of the most fundamental PHP commands, the echo command, to output a literal string into the browser. To do this from the menu, select Insert > PHP Objects, and then choose Echo, or if you prefer, you can use the In...

Adding PHP commands with the Insert panel
Video duration: 3m 14s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Adding PHP commands with the Insert panel provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL

Subjects:
Business Developer Web
Software:
Dreamweaver
Author:
please wait ...