mesh2005
04-16-2008, 07:16 PM
I have a PHP script that takes an input from the user and writes a file with the same name as the input
for example, if the user enters: this is a test a file name is created with the name this is a test.php
The problem happens when the user enters a value that contains characters not allowed in filenames on Linux distributions, how do I convert the value to make sure that it contains only allowed chars?
Thank you
for example, if the user enters: this is a test a file name is created with the name this is a test.php
The problem happens when the user enters a value that contains characters not allowed in filenames on Linux distributions, how do I convert the value to make sure that it contains only allowed chars?
Thank you