Skip to main content
Participant
May 17, 2009
Question

Quick question on connecting databases

  • May 17, 2009
  • 3 replies
  • 543 views

Im pluggin right along and everything is connecting to the database for insert records form. I got all that in and then I got to hit preview and it says:

Warning: require_once(Connections/gparchive.php) [function.require-once]: failed to open stream:

Its been a couple of years since I have done this but since everything is connecting in the dw windows etc shouldnt the preview work as well? Perfect example of if you dont use it you lose it, If anyone could point me back on track. Thanks!

This topic has been closed for replies.

3 replies

May 23, 2009

I could be wrong AND late, but try uploading the 'connections' folder to your server. You can't make a database connection to the 'localhost' MySQL server without the script in this folder.

sorry I missed the part that you were developing locally

May 22, 2009

I guess there has something wrong that makes your folder failed to connect with MySQL. I think gparchive is the folder that you are working with, am I right?

Lawrence_Cramer
Inspiring
May 20, 2009

Is this locally or on the server?  If locally, is your site in the wwwroot directory of your PHP server?  The site has to be there for PHP to see it.

Lawrence   *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF

plazman65Author
Participant
May 20, 2009

Yes the site is locally, for some reason it cant locate the connections folder no matter how its put in. But if I put the settings in the file Im using there is no problem. I am working around it, Im just not sure why it cant locate the original connections file when everything else maps correctly.