kapz22 Posted April 17, 2010 Share Posted April 17, 2010 hello. just a quick question.... in include(), is it possible to not have $_SERVER['DOCUMENT_ROOT'] in the function. eg... i would liek the code to be shown as: include("/image/test.jpg"); rather than: include($_SERVER['DOCUMENT_ROOT'] . "/image/test.jpg"); Link to comment https://forums.phpfreaks.com/topic/198871-include-help/ Share on other sites More sharing options...
TeddyKiller Posted April 17, 2010 Share Posted April 17, 2010 Try it Link to comment https://forums.phpfreaks.com/topic/198871-include-help/#findComment-1043899 Share on other sites More sharing options...
kapz22 Posted April 17, 2010 Author Share Posted April 17, 2010 lol, i have and it doesnt find the path. im guessing its to do with a php_ini setting? Link to comment https://forums.phpfreaks.com/topic/198871-include-help/#findComment-1043900 Share on other sites More sharing options...
TeddyKiller Posted April 17, 2010 Share Posted April 17, 2010 what is the full path to the directory. eg: www.mysite.com/path/to/image/directory Link to comment https://forums.phpfreaks.com/topic/198871-include-help/#findComment-1043901 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.