Reply
getting dreamweaver, php and msql working together
Old 03-06-2005, 07:18 PM getting dreamweaver, php and msql working together
Junior Talker

Posts: 3
I am trying to learn how to create a mysql database using macromedia Dreamweaver MX 2004 and php. I am a newbie to php and mysql. I have been using Dreamweaver for many years building static sites.

I need to learn how to build dynamic web sites using Dreamweaver, PHP and mysql.

My plan of attack is to set up on my local computer apache 2.0.50.(win 32) server, php 4.01, and mysql server -mysql 4.0.20d-win.

After I am successful in learn how t do this on my local computer I will then move everything to my remote Linux server.

I have installed apache, mysql and php on my local computer. I also have installed Dreamweaver.

I am having a problem getting php and apache to work together. I have apache info as follows from the conf file:

Server root = C:/Program Files/Apache Group/Apache2/
Server Admin = my email address
Server Name = business-net.com One of my domains
Document Root = C:/Program Files/Apache Group/Apache2/htdocs
Directory = C:/Program Files/Apache Group/Apache2/htdocs
UserDir = My Documents/My Web Sites
Directory Index = index.html index.html.var

I went into Dreamweaver and set up the site definitions for php:

Local Site:
Site name = RU Playing
Local Root Folder = C:\Documents and Settings/Robert/My Documents/My Websites/ruplaying-php/
Default Image Folder = C:\Documents and Settings/Robert/My Documents/My Websites/ruplaying-php/Images/
Remote Site:
http:// address = http://ruplaying.com/
Remote Folder = C:\Documents and Settings/Robert/My Documents/My WebSites/ruplaying-php/
Images/

Testing Server:
Server Model = PHP Mysql
Access = Local/Network
Testing Server Folder = C:\Documents and Settings/Robert/My Documents/My Websites/ruplaying-php/
URL Prefix = http://localhost/ruplaying-php/

When I test a piece of php code in index.php I get he following
when I try to display it in live data view I get the following:

http error 2 occurred while attempting to request the file http://localhost/ruplaying-php/index_c967csopq.php from the server.

Here are some possible reasons for the problem:
1) Files in the “C:/Documents and Settings/Robert/My Documents/My Web Sites/replaying-php/”
Folder that have “.php” file extensions are not being processed by the Testing Server.
2)The C:/Documents and Settings/Robert/My Documents/My Web Sites/replaying-php/” folder does not map to http://localhost/ruplaying-php/ URL on the testing server. Verify that the URL Prefix maps to the root of your site.

If I put http://localhost/ruplaying-php/ in a browser, I get the following:

Index of /ruplaying-php
Name Last modified Size Description
________________________________________
Parent Directory -
Images/ 03-Mar-2005 08:55 -
index.php 03-Mar-2005 08:51 377
________________________________________
Apache/2.0.50 (Win32) Server at localhost Port 80


From here I am lost and do not know what to do?

After I confirm that PHP is working on my computer, the next phase is to build the database with mysql
Again using Dreamweaver and php.
Any help in this area would be appreciated
robert4442 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-07-2005, 04:53 AM settings issue maybe
ccp
ccp's Avatar
Average Talker

Posts: 28
Your testing folder is wrong in dreamweaver.

You said:
...Testing Server Folder = C:\Documents and Settings/Robert/My Documents/My Websites/ruplaying-php/

I believe your LOCAL ROOT folder setting is right. But the TESTING folder should be:
C:/Program Files/Apache Group/Apache2/htdocs/
...If that is where your Apache is installed.

I made that mistake too. That is where dreamweaver is going to look for the Apache server/php parser...



But before I figured it out I was like WTF..
ccp is offline
Reply With Quote
View Public Profile
 
Old 03-07-2005, 05:01 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
another thing to mention
if i'm right apache and php dont like directories that have a space in the name. I know that when i was installing php, mysql and apache on my computer i was warned several times about this...
__________________
Yes, indeed...
WebDevWorld.net | StrangeDarkness.com | MyNEWBlog
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 03-07-2005, 03:52 PM
knowj's Avatar
Novice Talker

Posts: 10
some setups of mysql clients wont allow dreamweaver to connect with it. i always make my sites localls with a local setup of apache, sql and php prebundled enovative dose this and many others. i then copy the sql from phpmyadmin into my remote host and upload my connection file cloak my local connection folder and edit it to my local details so i can still test and connect via both without having to change setting all the time

brokensoul2271 is right best to use _ or - and be careful with capitals linux hosts can have folders named: Folder and folder in the same directory both completely different
knowj is offline
Reply With Quote
View Public Profile
 
Old 03-07-2005, 08:43 PM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Dreamweaver is a designer and coder package. You cannot create a complete package with this.

If you want to test your php and html packages, then please look into a php/server

Appserver will do this in one download and install. Search google for appserve and install it. If not, then you will never run what you want in dreamweaver

Steve
__________________
Media Help & Discussion
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 03-08-2005, 12:44 AM
ccp
ccp's Avatar
Average Talker

Posts: 28
I used XAMPP. It prebundles PHP/MySQL/MySQL Admin/Apache together in a neat clean install. Only thing you have to do is set up security if u have multiple users. But it got me up and running very quickly. Did my first content management system as a result.

Try Google for it.
ccp is offline
Reply With Quote
View Public Profile
 
Old 03-08-2005, 11:05 AM
knowj's Avatar
Novice Talker

Posts: 10
i use XXAMP as well but i have one problem with it the sql seems different to the sql commands used on my host. it puts alot of commands in which arnt needed and i seem to have to edit it all the time but i cant falt it for beaing easy to use and install
knowj is offline
Reply With Quote
View Public Profile
 
Old 03-08-2005, 04:30 PM
ccp
ccp's Avatar
Average Talker

Posts: 28
really I haven't experienced that but thats because I am running it locally. How do you get around that issue?

Do you think that I would have that issue when I move my PHP/MySQL sites to a host? or is it probably a host specific issue?

good input
ccp is offline
Reply With Quote
View Public Profile
 
Old 06-16-2005, 10:07 PM My Apache SEEMS to be working, but isn't
Mr. Waffles's Avatar
Junior Talker

Posts: 3
I've got my testing server set up so that the pages display in IE, but without the PHP includes...also Firefox and Netscape only show the Source Code when previewing on the testing server.
The file works fine when posted on the actual server.

Testing Server Settings:
Model: PHP/MySql
Access: Local/Network
Testing Server Folder: C:\Program Files\Apache Group\Apache2\htdocs\testing\
http://localhost/testing/

Am I missing something?
Waffles
Mr. Waffles is offline
Reply With Quote
View Public Profile
 
Old 06-16-2005, 10:23 PM
Uche's Avatar
Extreme Talker

Posts: 174
Location: Nigeria/Lagos
Thats something i don't lyke with dreamweaver it's better when wirtting a scripts use notepad
__________________
Life is just lyke a school where everybody goes to learn one or two thing. the more u school, the more u learn more about school..The more we live our lifes.. the more we learn more about life.
http://www.smartsoft-ng.com
Uche is offline
Reply With Quote
View Public Profile Visit Uche's homepage!
 
Old 06-17-2005, 01:49 AM
chrishirst's Avatar
Super Moderator

Posts: 19,022
Location: Blackpool. UK
PHP has to be parsed through a server. you can't "run" it straight off the hard drive.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-21-2006, 02:27 PM Re: getting dreamweaver, php and msql working together
Junior Talker

Posts: 1
This forum seems to be very cut and dry unlike confusing advice from others. So let's see if I can be. First, I installed XAMPP for dummies and Mac Os X users. I'm running 10.4.6 and ran my UNIX TERMINAL to fire up the new software. Awesome as it did most everything I need. I even configured the config.inc.php admin file to allow me to login secure through my website. All sytems go and my database through webassist, a 3rd party shopping cart is enable. However, when xampp was installed it was installed into my applications folder when normally I'm used to testing locally in my sites folder. So I put all php files inside htdocs and can test http://localhost/ now I am stuck with this:

1) There is no testing server running on the server machine.
2) the testing server specified for this site does not map to the http://127.0.0.1/xampp/htdocs/store_...s/MMHTTPDB.php URL. Verify that the URL Prefix maps to the root of the site.

It's right in front of me and I have been stuck for 3 days....help.help.help????
dougfresh is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to getting dreamweaver, php and msql working together
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12963 seconds with 12 queries