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

php test server

New Here ,
Jul 20, 2010 Jul 20, 2010

Copy link to clipboard

Copied

i'm working on my first site that's using php and mysql.  setup wamp on my pc and it works fine and the site works fine. 

I want it so i can point at my hosting providers mysql server while using local apache as my testing server.  However when i do this i have to make my URL prefix of the testing server the accual domain name (not local host) or my database connection is toast.  However if it's set as the actual domain name then "live view" doesn't work.

any idea's,

matt

TOPICS
Server side applications

Views

494
Translate

Report

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 ,
Jul 21, 2010 Jul 21, 2010

Copy link to clipboard

Copied

LATEST

maybe there is a better way then what i'm doing.


pics are worth a thousand words

http://webtechiowa.com/dreamweaverhelp/Capture.PNG

when i have local host as the url prefix the live view works but my "mysql" connection to my hosting provider gives me this.

http://webtechiowa.com/dreamweaverhelp/error.JPG


and vise/verse if i have the proper domain name of the site I'm developing for (which is the hosting providers server)  then live view dies and the mysql connection works fine.

In developing static pages in the past i have always setup my local as testing and remote as production.  Should  i  be looking at doing something differently when developing dynamic pages?

Any help is greatly appreciated!!

Votes

Translate

Report

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