Serialcode
03-01-2010, 12:53 PM
Hello,
I'm having a problem with a PHP script that seems very odd to me. I am linking and including directly to files (using "http://" and not just "../") I use for a rating system.
When making a php call in pages that are three levels away from where the base PHP, CSS, and JS files for this rating system are, I get an error.
I have this rating system implemented on over 25 pages and I have tried moving the specific pages I'm working with up one level to find that I no longer get the error.
Here's an example of my site structure:
root/rating - home of the base files
root/alpha/index.php - a page with a working script
root/alpha/beta/index.php - a page with a working script
/root/alpha/beta/gamma/index.php - a page using identical code, script gets an error
Does anyone have any idea why this is? I'm getting there error with the php call that is actually in the body of the page, no error with the includes that are in the header.
Thanks you!
I'm having a problem with a PHP script that seems very odd to me. I am linking and including directly to files (using "http://" and not just "../") I use for a rating system.
When making a php call in pages that are three levels away from where the base PHP, CSS, and JS files for this rating system are, I get an error.
I have this rating system implemented on over 25 pages and I have tried moving the specific pages I'm working with up one level to find that I no longer get the error.
Here's an example of my site structure:
root/rating - home of the base files
root/alpha/index.php - a page with a working script
root/alpha/beta/index.php - a page with a working script
/root/alpha/beta/gamma/index.php - a page using identical code, script gets an error
Does anyone have any idea why this is? I'm getting there error with the php call that is actually in the body of the page, no error with the includes that are in the header.
Thanks you!