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
warning message concerning smarty
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/