Page 1 of 1

real path not working

Posted: Fri Jun 14, 2013 11:44 am
by attaboy
$plPath = '../backend/playlist_form.php';
$absolute_plPath = realpath($plPath);
echo $plPath; // returns ../backend/playlist_form.php
echo $absolute_plPath; // returns nothing at all on either my localhost or on my hosted site.

going crazy here

Re: real path not working

Posted: Fri Jun 14, 2013 12:46 pm
by requinix
According to the documentation,
realpath() returns FALSE on failure, e.g. if the file does not exist.

Re: real path not working

Posted: Fri Jun 14, 2013 2:10 pm
by attaboy
$plPath does exist so why would realpath($plPath) not exist?

Re: real path not working

Posted: Fri Jun 14, 2013 2:46 pm
by attaboy
Thanks for the help my dumb.