Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 03-20-2013, 11:22 AM   #1
Join Date: Apr 2011
Posts: 27
Default PHP site definition?

I downloaded the code for this gallery and put it into one of my HTML pages:


It works perfectly under this URL in my local testing host "http://localhost/php_test/demo/demo.php"

But on my live site it looks like this: http://www.katherinecoulton.com/demo.php and says 'there is an error with you image directory'.

Because I'm not sure how PHP works, I think I must have done something wrong with defining the page. Whenever I open the page now, dreamweaver say there is no site definition for the page and tries to get me to set up a new testing server for it - but i already have a testing server set up. I want to get it onto my LIVE server and not the TESTING server but somehow the page seems confused. Is this because it is still pointing to the testing server?

How do I point my PHP page to my live server? At the moment I have 2 copies of the folder - one in my MAMP testing server directory... (file:///Macintosh HD/Applications/MAMP/htdocs/php_test/demo/demo.php)

...and one in the root directory for my site (file:///Macintosh HD/Users/katherinecoulton/Documents/Kt new website/demo.php)

Have I done something wrong with my fileing?

If anyone can help thanks,
kcoulton30 is offline   Reply With Quote
Old 04-05-2013, 07:37 AM   #2
Join Date: Dec 2010
Posts: 366

the db probably has:
- entries within it which point to the absolute filepaths of the original images from old site
- entries within it which point to the domain name and possibly the URL it is installed under
- thumbnail paths it created, same as above.

best thing you can do is reinstall from scratch on the new server and re-upload the images, since this is really a new site.

database-driven packages like photo albums, blogs, CMS, don't often port well from site to site. take a look at what's IN the database to find out for yourself... you might learn some things.
Jim Michaels
HTML Code:
browser confusion (I believe the term is 'tag soup')!
jmichae3 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:39 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com