Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Quick question on connecting databases

New Here ,
May 17, 2009 May 17, 2009

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!

TOPICS
Server side applications
546
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 20, 2009 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 20, 2009 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 21, 2009 May 21, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 23, 2009 May 23, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines