Page 1 of 1
A local issue with a downloaded website
Posted: Thu Jul 10, 2008 3:10 am
by Maypop
Hi guys,
I'm getting stuck on the very little step of the project I'm responsible to develop.

The company I work in has asked me to change their website host.I did download the website over CoreFTP and uploaded it to the desired host space.
But the downloaded website does not work in my own local system.Only the first page appears,and few other links work.I'm using EasyPHP 2.01(Also tested it out on WAMP5 but same results

) The website has got 2 databases which I managed to create from 2 sql script files by SQLyog with no errors.How come the website does not work properly in my own local computer? plz help me out

I guess there might be some configurations I'm missing.The website was created by PHPMaker(PHP4 code) and has got a CMS in background to be edited and changed in future.
Re: A local issue with a downloaded website
Posted: Thu Jul 10, 2008 3:59 am
by onion2k
How do you expect us to be able to help you fix a problem if you don't tell us what the problem is? All you've said is "It doesn't work". That's not enough.
Re: A local issue with a downloaded website
Posted: Thu Jul 10, 2008 4:34 am
by Maypop
oh! well, there's no syntax error...just the main page appears and the other links redirect me to the main page(while the website works correctly on net)..I don't know what further information is required or what I should check out...I am to develop the site by working with its built-in CMS changing the code, templates, etc.
Re: A local issue with a downloaded website
Posted: Thu Jul 10, 2008 4:46 am
by onion2k
Well, a few things to check:
1. Is the database user correct? And password?
2. Is there an htaccess file? Bt default it'd be hidden in FTP so you'd switch on "show hidden files" in your FTP client probably.
3. Are errors switched on on your local server? If not, switch them on and see if anything appears.
4. Are register_globals switch off locally and switched on online? If so, switch them on locally and see if it fixes any problems.
5. Are short tags switched off locally and used in the code? I would think you'd see PHP code in the pages if that was the case but check anyway.
6. Is there anything in the Apache error log?
If none of that helps then start adding 'echo "Hello"; exit;' to the top of pages to see if the code actually runs. If it does then move the echo and exit down the page line by line to see where it's bailing out.
Re: A local issue with a downloaded website
Posted: Fri Jul 11, 2008 6:48 am
by Maypop
Man!! Thanks a bunch!!

You're a genius! The problem was on "register_globals" along with "short_open_tag". I hope to get a chance to compensate.
Cheers
