Frequently asked questions
Find answers to the most frequently asked questions about Dreamweaver with PHP and MySQL.
Here are the FAQs that matched your search "":
Q: The Bindings panel is disabled, and I can't create new queries or form variables in the current PHP file. How can I correct this problem?
A: This indicates that the file you have open isn't a part of your current site. For example, you might have opened a file from one site, then switched sites and tried to continue working on the same file. Try closing all files, then opening the file you want to work on from the Files panel. This ensures that the current file and site are in sync.
Q: I'm having trouble getting code hinting to work on Mac OS X. Are there know issues that could be causing the issues?
- A: There might be an issue with your code hinting configuration. Make sure the folders you designated in the code hinting config screen match the disk location where you copied the Zend Framework files. You should have a file named dw_php_codehinting.config in your site root folder after setting up your code hinting configuration. Assuming you copied the Zend Framework files to a folder on your Mac named /phpincludes, the contents of the file might be: "/Volumes/Macintosh HD/phpincludes/ZendFramework/library/Zend/Date" EXTENSIONS(.php) "/Volumes/Macintosh HD/phpincludes/ZendFramework/library/Zend" EXTENSIONS(.php). The exact path will differ depending on your hard disk name and the folder to which you copied Zend Framework. For subsequent exercises in the video series, the sample files provided with the course have the configuration for Windows as demonstrated in the videos. Once you get code hinting working in one exercise, you can copy the working dw_php_codehinting.config file from the current site folder into the new site folder.
Q: I’m following along in the video "Configuring a PHP testing server." When I go to preview the index.htm or .php files, I don't get the Dependent Files dialog box, and I get the page in my browser with just the HTML and no styling. The index file gets copied to the proper folder, but none of the dependent files are getting copied over. How can I resolve this issue?
- A: If you are experiencing this problem, check your settings in Dreamweaver. The prompts for putting files onto the server have most likely been turned off. Follow these steps: 1) On Windows, select Edit > Preferences. 2) In the Preferences dialog, select the Site category. 3) Make sure your options for Dependent Files (prompt on get/check out, and prompt on put/check in) are selected. 4) Make sure your Put and Move options are selected (located at the bottom of the screen). 5) Then try previewing the file again. The dialogs should appear.
Q: I am having a problem with the "Handling form submission with PHP" video in Chapter 6. When I create a form variable "firstname" in the the Binding panel, in the Simpleform2.php file, I don't see the new variable in the list afterwards. It's as if the panel is disabled. What's going on?
A: This is actually a known problem in Dreamweaver CS5. The Bindings panel
sometimes stops accepting new dynamic variable bindings for unknown reasons.
But a form variable (or any other type of dynamic variable) binding is
really just a code snippet--a way of quickly adding a standard bit of code
to a page. So you can instead use the Snippets panel as a workaround.
The standard code for a PHP form variable looks like this:
Add a snippet with this code to the Snippets panel and you can then reuse it whenever you need. One limitation: you'll need to add the code to a PHP page in Code view rather than Design view.
Q: I want to use the Zend Framework in my PHP site, but my internet service provider (ISP) doesn't let me modify the php.ini file to include the files as taught in the course. What can I do?
A: If your host doesn't let you make changes to your php.ini file, you can include the Zend Framework with one of these strategies:
- Copy the Zend Framework to the folder containing your web site files. In your PHP pages, your 'include' command can refer to the appropriate files with relative directory addressing:
<?php include('../ZendFramework/library/Zend/Date.php'); ?
- If your shared host provides a special directory to contain your web files (for example, it might be named 'www' or 'web'), then you can add the Zend Framework files to your root folder as a sibling to the web folder. You'll need to find out the physical folder name; PHP's $_SERVER['DOCUMENT_ROOT'] variable can help you find this:
<?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:
set_include_path('.' . PATH_SEPARATOR .
Q: This course was updated on 6/12/2012. What changed?
- A: This course was updated to show the minor UI differences between Dreamweaver CS5 and CS6, especially the change from separate Live Code/Live View buttons to a single Live button.
Q: phpMyAdmin is not opening properly in the second lesson in Chapter 4, "Creating a MySQL database in phpMyAdmin." The error message says:
#2002 - The server is not responding (or the local MySQL server's socket is
not correctly configured)
- A: The error indicates that there's an incorrect reference to the MySQL 'sockets' file. This is set automatically during WampServer installation, but if you've previously installed other copies of MySQL there can be some leftover conflicts (even if you've uninstalled the other copies).
Check your system for duplicate copies of the file 'my.ini' - it's a MySQL configuration file that might have been left around from a previous installation. The most likely folder in which to look is c:\windows\System32, but it could also be elsewhere. If you find any such files that aren't in the c:\wamp directory structure, rename or delete them, then reboot your system.
If that isn't the issue, you'll need to start from scratch: back up your working files from c:\wamp\www, then uninstall WampServer, delete the c:\wamp folder completely, and reboot and reinstall. Test phpMyAdmin immediately after installation. Then, if it stops working along the way you'll have better information about what steps might have cause the issue.
Can’t find an answer?
If you still have a question about Dreamweaver with PHP and MySQL, let us know.
ask a question
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click submit.