Results 1 to 3 of 3

Thread: linux soft link and php directory listing [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Resolved linux soft link and php directory listing [RESOLVED]

    Hey there,

    I'm using linux (debian distrib), and was wondering on how I could get to identify a soft link directory as a directory (they are recognized as files)

    (talking about the "ln -s" function)

    problem is that all directories are recognized as files using the php is_dir() function...

    help on this would be appreciated!

    thx
    Last edited by Ruku; Jul 16th, 2006 at 06:32 PM.

    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: linux soft link and php directory listing [UNRESOLVED]

    Use the is_link() function to determine whether or not the supplied path is a symbolic link. Then use the readlink() function to resolve the path of the link.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Fanatic Member Ruku's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    655

    Re: linux soft link and php directory listing [UNRESOLVED]

    thx, also found a useful function: realpath


    Using VB.NET 2005/.NET 2.0, NetBeans IDE 5, Fujitsu Cobol85,
    Website: http://DreamForgery.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width