Well, when using an absolute path (starts with /) you start from the root. The root from the browsers perspective isn't the same as from the servers perspective, where php operates. Hence, as I wrote before, absolute paths will often start with "/home/username/public_html" or similar in php scripts, which should not be included in i.e. anchor link tags.
So to clarify, a link to
/wp-content/uploads/2012/02/On_a_Knife_Edge_-_Schools_Pack1.pdf
should perhaps be
/home/username/public_html/wp-content/uploads/2012/02/On_a_Knife_Edge_-_Schools_Pack1.pdf
when passing it to php functions.
To find your absolute path, you can i.e. echo the response from getcwd().
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
Last edited by lizciz; 03-19-2012 at 12:15 PM..
|