Page 2 of 2

Posted: Sat May 14, 2005 7:51 pm
by shayan
Garvin,

I am posting here my communication with one of my admins. Please let me know what you think.

Also, I tried the simple php file you gave me and it worked when I run it on command line.

Thanks,
Shayan

==============================================
> Guys,
>
> I am having trouble using realpath() function in my pages hosted on Leary.
> The page is hosted on http://leary.csoft.net/~shayan/ideas/ and the source
> and a discussion about the problem can be found at
> http://www.s9y.org/forums/viewtopic.php?p=7923#7923. I would really
> appreciate if you guys could take a look at the problem.
>

The realpath call in -

<?php
echo realpath('/whatever');
?>

works for all non-directory accounts. I am getting 'No input file specified'
with http://leary.csoft.net/~shayan/ideas/real.php.

It may be a problem with httpd.conf or it may be a problem associated with
the switch to php-cgi.

Did you try initializing this variable with ini_set()?

http://us4.php.net/manual/en/function.ini-set.php

> Regards,
> Shayan

nekhbet

Posted: Sun May 15, 2005 1:35 am
by garvinhicking
Hi Shayan!

What doyou mean by "it worked when I run it on command line"? Did you get the right path output? Because when I call your URL I get this "no input file specified" error; but that does not come from PHP, rather looks like there is no "real.php" file on your server?!?

I don't know what the admin is meaning by "initializing this variable with ini_set".There is no ini_set involved whatsoever in this problem of the failing realpath() function...

Regards,
Garvin

Posted: Sun May 15, 2005 3:39 am
by shayan
actually they helped me figure it out. it was a permission issue on my root www directory.

Thanks a lot for all your help Garvin. I really appreciate it.