"is_writable" only regonise full path?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johnson Lau

    "is_writable" only regonise full path?

    I'm running php 4.2.3 on apache 2 with FreeBSD.
    I find that "is_writabl e" only regonise files with full path.
    However, many scripts from the web didn't do this.
    How could I fix it? Thanks.


  • Justin Koivisto

    #2
    Re: "is_writab le" only regonise full path?

    Johnson Lau wrote:
    [color=blue]
    > I'm running php 4.2.3 on apache 2 with FreeBSD.
    > I find that "is_writabl e" only regonise files with full path.
    > However, many scripts from the web didn't do this.
    > How could I fix it? Thanks.[/color]

    Search all files for:
    is_writable(

    replace with:
    is_writable(dir name(__FILE__). '/'.

    --
    Justin Koivisto - spam@koivi.com
    PHP POSTERS: Please use comp.lang.php for PHP related questions,
    alt.php* groups are not recommended.

    Comment

    Working...