Hi,

I list items that I also sell on my ZC shop on several third-party sites.
I have created a little php file called stockcheck.php that I use to display the number of items I currently have in stock in those third party site listings.

Currently I have the stockcheck.php file in the root directory, my ZC shop is also installed in the root directory and it works fine, but I'm reorganizing my site and would like to move many files including stockcheck.php to a subdirectory called 'pages'.

If I move the file to '/pages' it no longer works and I get this error message:
"The requested URL /pages/zc_install/index.php was not found on this server."

The file is very simple, basically just the following(there's a bit more that I've omitted for the sake of simplicity):
PHP Code:
require('includes/application_top.php');
$stockleft zen_get_products_stock($_GET['product_id']);
echo 
$stockleft;
require(
'includes/application_bottom.php'); 
When I move the file to the /pages directory, I edit the path to application_top.php and application_bottom.php to:
'../includes/application_top.php', but I get the error I mentioned above.

Can someone tell me if I'm doing something wrong? I am I putting the path correctly? Is it even possible to have my stockcheck.php file working if I move it to another directory other than the root folder?

Sorry if this seems like a dumb question, my php knowledge is very, very little.

Thanks for any input on this.