attaboy Posted June 14, 2013 Share Posted June 14, 2013 $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 Quote Link to comment Share on other sites More sharing options...
Barand Posted June 14, 2013 Share Posted June 14, 2013 realpath will just return false if the path/file does not exist Quote Link to comment Share on other sites More sharing options...
attaboy Posted June 14, 2013 Author Share Posted June 14, 2013 that would be fine if the path did not exits but as you can see from my output the path does exist. echo $plPath; // returns ../backend/playlist_form.php I thought that maybe by the time I ran echo $absolute_plPath; that $absolute_plPath did not exist so I tried echo realpath('../backend/playlist_form.php'); and still nothing. Quote Link to comment Share on other sites More sharing options...
Barand Posted June 14, 2013 Share Posted June 14, 2013 that only proves that the string value "../backend/playlist_form.php" exists Quote Link to comment Share on other sites More sharing options...
attaboy Posted June 14, 2013 Author Share Posted June 14, 2013 nevermind I was wrong the path wasn't real thanks for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.