I shifted my hosting from Hostgator Shared to FDC Dedicated recently.
But since then I’m facing many problems in my php autoindex script. I managed to solve most of them, still a few are eating my head.
One of them is this:
Old Shared Hosting:
http://old.mp4.desiden.mobi/file.php?p=1&file=load/English%20Song%20Videos/Top%20Songs/Pitbull%20FtLil%27%20Jon%20-%20Krazy%28DesiDen.Mobi%29.mp4&sort=0
Current FDC Server:
http://desiden.mobi/Mp4_Song_Videos/file.php?p=1&file=load/English%20Song%20Videos/Top%20Songs/Pitbull%20FtLil%27%20Jon%20-%20Krazy%28DesiDen.Mobi%29.mp4&sort=1
The second one shows error for the same file and same script. This happens only if filename has single quote.
My script shows that error when a file is not found. So what I guess is, the script cannot find the file.
As with the comments above, there must be a mismatch on server settings with magic_quotes. You’ll need to change the code on the new server to use either of the following:
I can’t tell you which as we don’t know the setup of the servers. Also, of course, make sure you use use your own variable name.