I have a page here:
http://alert6.com/clients/CTM/selection.php?id=78033
uses a local php include file
<?php require("./products.php"); ?>
that has each product and information laid out, and called using a switch based on the product id, for example:
switch ($id) {
case "78018":
$price = "19.95";
$crystal_desc = "78018 - Small Square";
$crystal_img = "images/78018_cr001_small_square_300x300web.jpg";
$size ="3.1\"L x 1\"W x 2.4\"H";
$imprint="3.1\" x 2.4\"";
break;
case "78019":
$price = "49.95";
$crystal_desc = "78019 - Sunflower 150";
$crystal_img = "images/78019_cr002a_150sunflower_300x300web.jpg";
$size ="5.9\"L x 1.6\"W x 6.6\"H";
$imprint="5.9\"D";
break;
Now as you can see in the first URL i provided, this works excellently. However, when installing the site onto the client's shared server on godaddy, suddenly the include file does not appear to work properly, and I get a ton of "
Notice: Undefined variable:" errors. see here:
http://crystallizethemoment.com/selection.php?id=78034
I have access to the client's local php.ini file which says
register_globals = off
allow_url_fopen = on
allow_url_include = on
Any ideas why this thing refuses to work on the client server, but not mine?