From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.4-ac6
PHP version:      4.1.1
PHP Bug Type:     Filesystem function related
Bug description:  ulink handles relative links oddly

I am using the relative path "../includes/gifs/" in a script "upload.php". 
This script is in a directory called
glossary/admin, and I have a soft link to it in one called 
curios/admin.  

When I access it from curios/admin (over the web), the command dir works
fine with ""../includes/gifs/" and returns the listing of
curios/includes/gifs/.  But when
the same script from the same URL executes unlink on
"../includes/gifs/up.gif" it complains 

  Warning: Unlink failed (No such file or directory) in
/home/caldwell/public_html/glossary/admin/upload.php on line 62

In short: dir(../*) seems to be relative to the script
soft link, and unlink(../*) seems to be relative to the soft link's
target.

Configure line:

 './configure' '--with-mysql=/usr/local' '--with-apache=../apache_1.3.22'
'--enable-track-vars' '--with-posix' '--enable-sockets' '--with-gmp'
'--with-db2' '--with-ndbm'
-- 
Edit bug report at: http://bugs.php.net/?id=14745&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to