Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 hard drive internet internet explorer itunes laptop linux malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express partition password printer problem router security slow software sound trojan usb video virus vista wifi windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
getting dreamweaver, php and msql working together


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
robert4442's Avatar
Member with 30 posts.
 
Join Date: Aug 2004
Experience: Beginner
06-Mar-2005, 06:51 PM #1
getting dreamweaver, php and msql working together
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
nightqueen's Avatar
Member with 57 posts.
 
Join Date: Jul 2004
Location: England
Experience: Intermediate
07-Mar-2005, 05:45 AM #2
have you got a test.php file up and running? Put this into the htdocs directory and then you'll know if PHP is working or not. Once you know that then you'll know if there's a problem with your mapping.

Only put <?php phpinfo(); ?> into the test.php file in case you didn't know. This should show you all the php settings.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:23 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.