Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

PHP new to it

Posted 26 Feb 2005 00:21:23
1
has voted
26 Feb 2005 00:21:23 Lars Sven posted:
Im learning how to use use PHP(Im using an Apple OS X 10.3.8). Im having trouble setting up the site or managing the site. I'm using book that is titled Foundation Dreamweaver MX 2004 by Craig Grannell. I first downloaded entropy-php(installed it) and then I wrote a php script
<?php
phpinfo();//print out details about our PHP set up
?>

I test by typying this into my broweser
localhost/~knut/info.php
It work.

Then(open dreamweaver) I tried to manage the site on dreamweaver.
1. I first named my site to php_site
2. Then I I choose PHP_MySQL in the dropdown menu in server technology

3. Next I choose Edit and test locally option in-How do you to work your files during devellopment
Where it says Where on your computer do you want to store your files
I choose: --->>>>Macintosh HD:Users:veckholm:Sites:
This is where i saved my php script inside of Sites

4. then in Dreamweaver communicated with your testing server using HTTP. And where it says what URL would you use to browse to the the root of ypur site. I choose
localhost/~knut/php_sites/

This didnt work. However when I eneterd my own website it work. Im little confused what to do. Can someone explain or help me to set this up. Thanks.

Replies

Replied 26 Feb 2005 20:02:15
26 Feb 2005 20:02:15 Chris Charlton replied:
Here's a quote from DW MX2004's Emerging Issues, does this describe your issue:<i><b>Unidentified error when testing PHP/MySQL connection</b></i>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>This is a common error often resulting from an incorrect environment configuration. However, some users are reporting that connections to a MySQL database work correctly in Dreamweaver MX, but generate the unidentified error in Dreamweaver MX 2004.

<b>Reason</b>: Make sure your version of PHP is compatible with Dreamweaver MX 2004. Dreamweaver MX 2004 supports PHP 4.1.1 and higher, 4.2.x and 4.3.x. Dreamweaver MX 2004 does not support PHP 4.1.0 and below.

Dreamweaver MX 2004 users running Mac OS X 10.3.x cannot use localhost in the Testing Server category's URL Prefix field. Apple changed how localhost works in Mac OS X 10.3.x, so using localhost as the prefix breaks the PHP/MySQL database connectivity features in Dreamweaver MX 2004. Instead of using localhost in the Site Definition URL Prefix, use one of the following:

* the loopback IP address (127.0.0.1)
* the static IP address
* the machine name

<b>The following TechNotes can help identify other configuration problems:</b>

* Testing your PHP application server (TechNote 16383) - www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16383
* Unidentified error occurs when testing a PHP / MySQL connection (TechNote 16515) - www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16515
* Connecting to a MySQL database in Dreamweaver (TechNote 16575) - www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16575<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Just for reference,
<ul><li>What version of 10.3.x?</li><li>Do you have the latest DW MX2004 (7.01)?</li></ul>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Reply to this topic