Page 3 of 3

Posted: Fri Feb 16, 2007 4:31 pm
by John Cartwright
or use the constant DIRECTORY_SEPERATOR, which is cross platform :)

Posted: Fri Feb 16, 2007 4:52 pm
by RobertGonzalez
Dude, that is a good idea.

Posted: Sun Feb 18, 2007 11:39 am
by phpflixnewbie
Jcart wrote:or use the constant DIRECTORY_SEPERATOR, which is cross platform :)
Just thought id let you know, I did actually try \coverart_images\ before changing the backslashes to forward slashes but that didnt work either.

Posted: Sun Feb 18, 2007 11:45 am
by feyd
URL's only use forward slashes. Is coverart_images a folder in the root of your website? The somewhat simple way to figure that out is to check if $_SERVER['DOCUMENT_ROOT'] is the parent structure for it.

Posted: Sun Feb 18, 2007 1:40 pm
by phpflixnewbie
Im pretty sure the folder is in the root folder of the website because at the moment im testing everything locally using Xamp. The coverarts folder is in the htdocs directory along with all the website pages. How would i check for $_SERVER['DOCUMENT_ROOT']?

Posted: Sun Feb 18, 2007 1:44 pm
by feyd
var_dump() comes to mind.

Posted: Sun Feb 18, 2007 1:53 pm
by phpflixnewbie
using var_dump ($_SERVER) the doc root seems correct. Anyway, the forward slashes solved the problem, so this isnt really an issue anymore, thx for the tips though.