/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function resolveDocumentRoot() { /* work out how many folders we are away from document_root by working out how many folders deep we are from the url. this isn't fool proof */ /* move up the path with ../ */ /* real path expands the ../'s to the correct folder names */ }
URL: http://code.arthipesa.com/