Viewers: in countries Watching now:
Join author David Gassner as he describes how to add dynamic data to a PHP-enabled web site in Adobe Dreamweaver. This intermediate course shows how to plan and create a MySQL database, define a PHP-enabled site in Dreamweaver, connect the site to the database, and manage and present dynamic data. David also explores Dreamweaver features such as PHP custom class introspection and site-specific code hinting as well as the differences between the CS5 and CS6 versions of the software.
This course was updated on 6/12/2012.
To get started building a web site that's associated with PHP, you define a Dreamweaver site. The first part of the process is the same, regardless of whether your site is static or dynamic within application server. In Dreamweaver CS5, I'll go to the Menu and select Site > New Site. You can also get to this Site Setup dialog by going through the Menu and selecting Site > Manage Sites and then clicking the New button. In the Site Setup dialog, you'll set the site name and the local site folder, I'm going to name my site DW CS5 with PHP and MySQL. You can name the site anything you want and you can include spaces in the name.
Then set the local site folder to the physical location of the site root, I'll click the browse icon and I'll start at the Exercise Files folder, which I'll find on my Desktop. From there, I'll go down to 02_ gettingstarted to 01_definesite, where I have a complete set of site files, and I'll click Select. For a static site that's all you have to do. Now let's take a look at other elements of the Site Setup dialog in Dreamweaver CS5.
The Servers category lets you setup your remote and testing servers. The testing server is the server that you work with on your local computer. The remote server is the production server where you host the web site for external users. I'll describe how to use this part of the site setup dialog in a separate video. The Version Control category lets you connect to a subversion repository, so you can manage your site files, checking them in, checking them out, and rolling back to previous versions.
In the Advanced Settings folder you'll find settings for Local Info, Cloaking, Design Notes, and so on. These settings aren't specific to the world of PHP or application servers, so I won't be describing them in detail in this video series. I'll click Save and that creates the new site, and then if I started from the Manage Sites dialog, I need to click Done. In the Files panel I should now see a complete listing of the site's assets. HTML, image, CSS files, and so on.
I'll click Expand button and that will show me a larger view of the files that are available. I'm working with my local file set. Here is the homepage of the existing site, index.htm; I'll double-click it to open it. Then I can test the page either through the Live View button, which opens the file directly from the hard disk, or if I prefer, I can deselect Live View and then go to the Preview button and select a particular browser, such as Firefox.
Regardless of whether I use Live View or an external browser, notice that I'm testing the files by loading them directly from the hard disk. For a PHP-based site though, there's a little bit more work to do, setting up the testing server, and then testing the PHP pages by calling them from DHTTP server, rather than the hard disk, and I'll describe how to set that up in another video.
Find answers to the most frequently asked questions about Dreamweaver with PHP and MySQL .
Here are the FAQs that matched your search "" :
<?php include('../ZendFramework/library/Zend/Date.php'); ?
<?php echo $_SERVER['DOCUMENT_ROOT']; ?
You can then programmatically modify the include_path variable at runtime with the set_include_path() function. For example, if your physical root folder is /home/myroot, the code might look like this:
<?phpset_include_path('.' . PATH_SEPARATOR .'/home/myroot/ZendFramework/library/Zend');include('Date.php');?
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.