I'm trying to load a webpage into an array but having a problem with a website which is using redirecting urls.
When you enter the following in to the url address bar
http://www.cex.co.uk/search/index.php?stext=5014437943132
It then redirects to this page instead
http://www.cex.co.uk/products/DVD/DVD/DVD%20Movies/index.php?sku=5014437943132
I need to use the first url example as its a barcode lookup. But when i use the following php, its getting stuck on the first url, and not being passed the redirecting url and then crabbing that webpage.
file("http://www.cex.co.uk/search/index.php?stext=5014437943132");