As it stands I have '/index.php' which has a short list of items that have an 'Add to cart' link which sends the item ID to '/lib/basket_add.php?item=numericID'. I know it would be fine if I just moved basket_add.php to the root of the site, but I don't want to!
Code: Select all
setcookie("basket[0]", $cookie_input, time()+(3600*24*31), 'http://localhost/pptest/');
setcookie("basket[0]", $cookie_input, time()+(3600*24*31), '/', 'http://localhost/pptest/');Any tips (or hidden gems) would really be appreciated! Thanks, Ben
Sorry! Sorted it!
This site recommends
Code: Select all
setcookie("username", "George", false, "/", false);