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

[PHP] Re: Weird problem with T_gettext()

2009-04-04 Thread Michelle Konzack
Am 2009-04-04 10:13:52, schrieb Per Jessen: > Michelle Konzack wrote: > > > Now selecting "de" as prefered language is working, but if I > > select "de_DE" in Firefox, the second term "About Us" is > > something like "Über Uns" insteed "Über Uns" because the Website is > > UTF-8. >

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: > Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: >> exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA); >> >> There are quotes or backticks or something in $BUILDLOG. > > Forgotten one thing: If I continue to process the array() with, e.g., > > $POS=s

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: > Hello Shawn, > > Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: >> exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA); >> >> There are quotes or backticks or something in $BUILDLOG. > > Thanks for it, now I have an array but the "|head -n 11" is ignored a

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: > Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: >> Actually though, instead of exec() why not something like: >> >> $TMP_DATA = explode("\n", $BUILDLOG, 11); > > Tried... but now I have 11 elements wher in the last element is the > whole rest of the BUILD-Log... con

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: > Actually though, instead of exec() why not something like: > > $TMP_DATA = explode("\n", $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue trying! Thanks, Greetings a

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: > exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA); > > There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g., $POS=strpos(stripcslashes($TMP_DATA['0']),

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: > exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA); > > There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the "|head -n 11" is ignored and my arrays have up to several 10.0

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: > Michelle Konzack wrote: >> Hello, >> >> currently I am coding a RSS feeder for the Emdebian buildd-log and for >> testing I use two files: >> >> >>

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: > Michelle Konzack wrote: >> Hello, >> >> currently I am coding a RSS feeder for the Emdebian buildd-log and for >> testing I use two files: >> >> >>

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: > Hello, > > currently I am coding a RSS feeder for the Emdebian buildd-log and for > testing I use two files: > > > >

[PHP] Re: Weird problem with HTML form and $_POST

2008-11-07 Thread Michelle Konzack
Am 2008-11-05 08:49:02, schrieb Oscar Gosdinski: > On Wed, Nov 5, 2008 at 8:47 AM, Oscar Gosdinski <[EMAIL PROTECTED]> wrote: > > Name the select tag as sub_projects[], then in PHP you can read the > > $sub_project variable as an array. > > Oops, my error... you have to use the $_POST['sub_project

[PHP] Re: Weird problem with HTML form and $_POST

2008-11-05 Thread Lupus Michaelis
Michelle Konzack a écrit : and as you can see, there are three items taged... So, this part is working fine, but if I select an additional item and hit SUBMIT I get only: How do you select it ? By a click or a ctrl-click ? -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- P

RE: [PHP] Re: weird problem with index page

2004-05-17 Thread Ulrik Wildy
CTED] Subject: Re: [PHP] Re: weird problem with index page Hi, Thanks for th einfo, after beating myself all day over it, I have determined that it only seesm to be an issue when using Internet Explorer, using opera or mozilla it seems to work as it should, so I really dont understand now. Che

Re: [PHP] Re: weird problem with index page

2004-05-16 Thread Jason Wong
On Monday 17 May 2004 13:38, loll wrote: > Thanks for th einfo, after beating myself all day over it, I have > determined that it only seesm to be an issue when using Internet Explorer, > using opera or mozilla it seems to work as it should, so I really dont > understand now. With Mozilla it auto

Re: [PHP] Re: weird problem with index page

2004-05-16 Thread loll
Hi, Thanks for th einfo, after beating myself all day over it, I have determined that it only seesm to be an issue when using Internet Explorer, using opera or mozilla it seems to work as it should, so I really dont understand now. Checked the apache setting you meantioned and it seems to alrea

[PHP] Re: weird problem with index page

2004-05-16 Thread Andy Ladouceur
Try adding a trailing slash to the URL, and seeing if it works. If so, then try adding the apache configuration directive: UseCanonicalName off In either httpd.conf or an .htaccess file, and try accessing without the trailing slash. I had a similar issue and adding that fixed it. Andy Loll wrot

[PHP] Re: Weird Problem

2003-07-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] sketchbook.org says... > Hey, > > I've got a script which disables a banner image when it's time is up, the script > also sends an e-mail to both me and the banners owner when the time is up > > I've got a problem which is really weird.. > > Eve

Re: [PHP] RE: Weird problem with Windows XP and IE6

2002-09-19 Thread Marek Kilimajer
I just tested it (with wrong password) and it worked. Jason wrote: >As an adendum to this... my initial thoughts are that the forms are not >posting correctly in XP. I'm using the POST method. > > >Jason Cathcart >Check Out My Site: http://www.biohazardous.org > -Original Message- > Fr

[PHP] RE: Weird problem with Windows XP and IE6

2002-09-18 Thread Jason
As an adendum to this... my initial thoughts are that the forms are not posting correctly in XP. I'm using the POST method. Jason Cathcart Check Out My Site: http://www.biohazardous.org -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: September 18, 2002 7:50 PM To