Solved

Dreamweaver error occurs when testing a PHP / MySQL connection

Posted on 2004-10-01
3
200 Views
Last Modified: 2010-08-05
Hello,

I have a problem with the pre-written scripts in Dreamweaver MX for making a database connection to MySQL (PHP).  My ISP requires all script files reside in my /cgi-bin/ folder.

The prewritten scripts for testing connections were placed outside of /cgi-bin/. I reconfigured the site manager with the testing and remote servers inside the /cgi-bin/. The DM dialog windows would not allow me to list the root URL prefix to  ../cgi-bin/.

When I move the files (Connections & mmServerScripts folders) inside /cgi-bin/ and change to mod751, they still do not work and I receive a HTTP 500 error.  I think it is a mapping idiosyncrasy.
 
I have successfully connected to the database with a hand coded PHP connection(www.usmotorclub.com/cgi-bin/lads/try.php) so I know it works.

I need to make a connection through the Dreamweaver MX because it has all the pre-built pages I need to post, query, report, and update this site.

Can the testing files' code, or their location, be altered to work on this host?
Is it common for hosting sites to force all *.php pages into a /cgi-bin/?
Do I need to change ISP's?

Thanks ahead of time,
Kim
0
Comment
Question by:Kimah
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
bitter_chicken earned 500 total points
ID: 12205997
It is uncommon to force php files to reside there

It is common for CGI files (ie usually perl) - thus CGI bin.

But it is not usual because php files are usually used in place of HTML files, rather than as scripts referenced by a form.

For example, if you wanted your homepage to contain dynamic data, you wouldn't want your visitors to have to browse to http://yoursite/cgi-bin/homepage.php - you want it to appear automatically.

Have you tried creating php files outside of the CGI-BIN? give it a shot - it might work anyway. There is certainly no harm to the ISP.

If not, complain to your ISP, or change providers. Even if you can get the dreamweaver config working within the CGI bin it will limit the functionality of your website

bc :-)
0
 

Author Comment

by:Kimah
ID: 12207004
Thanks, Bitter_Chicken. I going to accept your solution as soon as you write back.

I was able to make the database connection late yesterday with all files saved to the /cgi-bin/, but you are right... I don't want the visitors to have to shop there.  I could use a frame-page or a refresh, but those would not give my clients the exposure they deserve in the search engines.

I have tried to create files outside of the /cgi-bin/ without success. I will contact my ISP this morning about this issue, but he will probably refuse. We have had other issues during the years together and he has not budged on those. People never change, they just get more so.

Can you recomend an ISP for a development grade site?

Kim
0
 
LVL 5

Expert Comment

by:bitter_chicken
ID: 12207425
Hi Kim

Sounds like you're well overdue for ditching your current provider

Recommendation of hosting? Well. I'd recommend my own company, but that is against EE policy.

From the guidelines:
" If you have any kind of financial interest in the company you list (as an employee or participant), it's forbidden. You may, however, put that information in your profile. "

Oh well.. no shameless self promotion

It all depends on what you need. You can check out the hosting section of EE: http://www.experts-exchange.com/Web/Hosting/

When I've looked for hosting in the past, I've found http://www.webhostingtalk.com/ very useful.

At current prices, I wouldn't pay more than US$5/mo for standard php hosting for a low-volume website, but you may have to pay more if 100% uptime, very high volume or good support are necessities.

Good luck with the website,
bc :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Insert multiple row form with checkboxes 9 1,020
page loads much slower in IE than chrome 9 1,165
Multi Step Form using jQuery 11 939
can't connect to server via ftp from dreamweaver 22 2,400
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now