Help a duffer with a PHP problem...?
Discussion
I know allmost nothing about PHP and have a small problem getting something working. I've got a box with apache2, php 5 and mysql 5 on it and a copy of a site on a disk.
Just by dropping everything into the right place and importing the databsase I've got the site apparently set up and 50% working, its talking to the database, accepting logons and displaying some pages. However some pages return 404's, and this is where my lack of knowledge comes in. File permissions all look Ok.
With PHP do the URL's have to refer to a literal file name or for example could a URL of /admin/clients be served by code in a file ../blah/blah/admin/class_clients.php? If the latter, why might a 404 be returned instead?
Pissing in the wind here I know.... any suggestions gratefully received!
Just by dropping everything into the right place and importing the databsase I've got the site apparently set up and 50% working, its talking to the database, accepting logons and displaying some pages. However some pages return 404's, and this is where my lack of knowledge comes in. File permissions all look Ok.
With PHP do the URL's have to refer to a literal file name or for example could a URL of /admin/clients be served by code in a file ../blah/blah/admin/class_clients.php? If the latter, why might a 404 be returned instead?

Pissing in the wind here I know.... any suggestions gratefully received!
Cheers
It's just on a local machine here, CentOS 4.3. ph & mysql are from the centosplus repo.
I'm trying to get my head around it, the pathnames that PHP is using internaly seem OK - I put a few random 'echo's in to check what was going on. But obviousley the internaly used pathnames and the URL's that the browser sees aren't the same thing, for example /admin exists outside the doc root in the place where I think the code agrees it should, and theres a file class_clients.php in that folder but IE returns a 404 on /admin/clients when you navigate to many areas of the site.
I thought it was because the path to a lot of the site is outside the document root for the virtual host but some of the pages are being served up from that location no problem so I don't think its that either, siteini.php in the other folder seems to be linked in from the index.php in the document root.
Please don't underestimate my extreme ignorance in matters of sites & developing, I need to sort it out really.
It's just on a local machine here, CentOS 4.3. ph & mysql are from the centosplus repo.
I'm trying to get my head around it, the pathnames that PHP is using internaly seem OK - I put a few random 'echo's in to check what was going on. But obviousley the internaly used pathnames and the URL's that the browser sees aren't the same thing, for example /admin exists outside the doc root in the place where I think the code agrees it should, and theres a file class_clients.php in that folder but IE returns a 404 on /admin/clients when you navigate to many areas of the site.
I thought it was because the path to a lot of the site is outside the document root for the virtual host but some of the pages are being served up from that location no problem so I don't think its that either, siteini.php in the other folder seems to be linked in from the index.php in the document root.
Please don't underestimate my extreme ignorance in matters of sites & developing, I need to sort it out really.

Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


