Re: [PHP] Re: Weird problem with is_file()

2010-04-26 Thread Peter Lind
On 26 April 2010 18:58, Michelle Konzack wrote: > Hello Pete, > > Am 2010-04-26 17:04:32, hacktest Du folgendes herunter: >> Is it possible that the space is a new-line (or a carriage-return) ? > > grmpf!  --  That it was... > >>    preg_replace('/\s+$/','',$FILE); > > Works now! Consider a trim,

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Pete, Am 2010-04-26 17:04:32, hacktest Du folgendes herunter: > Is it possible that the space is a new-line (or a carriage-return) ? grmpf! -- That it was... >preg_replace('/\s+$/','',$FILE); Works now! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministr

Re: [PHP] Re: Weird problem with is_file()

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 17:56 +0200, Michelle Konzack wrote: > Hello Peter, > > Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: > > var_dump($isfile); > > > > Don't make assumptions of what the value is, just check it. > > Yes and grmpf! > > The filename has a space at the end but it can

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Pete Ford
On 26/04/10 16:56, Michelle Konzack wrote: Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: > var_dump($isfile); > > Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(str_replace(' ', '', $isfile); if I put a

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Jan G.B., Am 2010-04-26 11:52:02, hacktest Du folgendes herunter: > I would recommend not to let any user input to your shell. This piece > of code is very insecure as any client may manipulate the shell > command at will. It is ony a simplified example... The original shell_exec() is