PHP Newbie - Website Question

Hello All

I hope someone can help me. I am helping a friend sort out issues with his website. I have never used PHP, but have coded in JAVA, C# etc.
The site is based on PHP 5.3.29, Apache 2.2.20 and MySQL 5.1.63.
I think I have all the source code for the site which I have setup locally. I can get the main page to load fine, however when I click on some of the links on the page, I get the 404 error. This leads be think that the page(s) is not there.

Question: Is is possible to have the “missing” pages in an include file? If so How can I find which include file it is in? I have tried a blanket search on all the files and cannot really find the missing page(s).

As I said I have been told that I have all the source code so I am a bit confused .

Any help will be greatly appreciated.

thanks

What is the initial problem with the site, aside from the problems you are having getting it to work in the localhost environment, as this may be relevant as to why you are getting the 404 errors?

Beyond that, you need to determine why the pages are not being found and how the site is being implemented. Some possibilities -

Are the links hard-coded with a domain that doesn’t exist at all or doesn’t exist in the localhost environment or are the links being dynamically produced based on database or file-folder contents and the content is missing, wrong, or the code producing the links is incorrect?

Is url rewriting being used to map ‘pretty’ links to an actual php script and the url rewritting is not defined (a missing .htaccess file for example) or is not working (wrong syntax in a .htaccess file)?

Are the page(s) that make up the site separate physical files, one for each page, or are the page(s) being dynamically produced by a single php file based on parameters supplied in the url?

If the pages are being dynamically produced, is the content stored in database tables or in files that are being included/required?

In short, you have to find whats causing a problem before you can solve it. Your post above contains no specific information upon which to help you. If you post any .htaccess file, the code files, and at least one url that doesn’t work, someone can directly help.

thank you phdr…

let me get more info and get back to you

Additionally, your Php is HUNDREDS of versions behind. You need to update Php, Apache and Mysql.

Sponsor our Newsletter | Privacy Policy | Terms of Service