oldmanstan
June 13th, 2006, 09:01 PM
ok, i am writing a wordpress plugin and it is in two files. apparently the second file can't access wordpress functions, only the main one (which I thought was kinda weird but i'll deal with it later)
anyway, the second file just returns an image so i need it to know the path i want it to look in but when i put something with slashes as a "get" variable it doesn't like it
for instance www.something.com/index.php?dir=/home/bob/
doesn't work
is there a php function to clean up the forward slashes?
anyway, the second file just returns an image so i need it to know the path i want it to look in but when i put something with slashes as a "get" variable it doesn't like it
for instance www.something.com/index.php?dir=/home/bob/
doesn't work
is there a php function to clean up the forward slashes?