empty spaces, special chars in a filename

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jan Idealny

    empty spaces, special chars in a filename

    Hi,

    I want to make my uploading script resistent against malicious
    filenames. I want him to search for an inappropiate character in a given
    filename (stored in a variable) and then to print an adequate error message.

    Which function shall suit my needs?

    Best regards
    ji
  • Janwillem Borleffs

    #2
    Re: empty spaces, special chars in a filename

    Jan Idealny wrote:[color=blue]
    > Hi,
    >
    > I want to make my uploading script resistent against malicious
    > filenames. I want him to search for an inappropiate character in a
    > given filename (stored in a variable) and then to print an adequate
    > error message.
    > Which function shall suit my needs?
    >[/color]

    preg_match
    strpos
    etc.


    JW



    Comment

    Working...