real path not working

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
attaboy
Forum Newbie
Posts: 13
Joined: Wed Apr 10, 2013 7:09 pm

real path not working

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: real path not working

Post by requinix »

According to the documentation,
realpath() returns FALSE on failure, e.g. if the file does not exist.
attaboy
Forum Newbie
Posts: 13
Joined: Wed Apr 10, 2013 7:09 pm

Re: real path not working

Post by attaboy »

$plPath does exist so why would realpath($plPath) not exist?
attaboy
Forum Newbie
Posts: 13
Joined: Wed Apr 10, 2013 7:09 pm

Re: real path not working

Post by attaboy »

Thanks for the help my dumb.
Post Reply