[PHP] Removing HTML codes using regexp

2001-02-25 Thread Toke Herkild
What if I want to replace all html codes from a string ? I've tried using : $myString = preg_replace('/<*>/, '', $myString); but that deletes all string... ( or everything from first '<' ) ... Toke Herkild... -- PHP General Mailing List (http

[PHP] validating form data...

2001-10-22 Thread Toke Herkild
I've made a script which ought to validate if there is data in the fields or not... but it doesn't seem to work... the validation is following: if ((email_is_valid($Email)) and ($Name != "") and ($Message != "")){ do stuff ... } But even if I submit an empty form it executes "do stuf..." I hav

Re: [PHP] validating form data...

2001-10-22 Thread Toke Herkild
Nope, wasn't that... And it should not do any difference using 'and', 'AND' or '&&' as they do the same thing... Nicolas Costes : > hellorghh !!! > > I think that : > > if ((email_is_valid($Email)) && ($Name != "") && ($Message != "")){ >do stuff ... > } > > ...should be better . (&&, not "

[PHP] Re: validating form data...

2001-10-22 Thread Toke Herkild
rry for vasting your time... And Thanks for all the help... Toke. "Toke Herkild" <[EMAIL PROTECTED]> skrev i en meddelelse [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've made a script which ought to validate if there is data in the fields or > not... but it d

[PHP] Problems with implode

2009-03-24 Thread Toke Herkild
some of the values gets concenated, others ere missing 2 or 3 cifres and some just doesn't show up. Is this some kind of implode feature or a string to large problem ? Regards, Toke Herkild -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Per Jessen skrev: Andrea Giammarchi wrote: Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) Very good point - maybe the OP has not yet teste

Re: [PHP] Problems with implode

2009-03-24 Thread Toke Herkild
Tom Worster skrev: On 3/24/09 9:15 AM, "Per Jessen" wrote: TG wrote: I don't think that would be a problem, the size of the array. I've used implode at least once or twice on fairly large arrays. More likely is something weird with your data. Yeah, like the odd backspace or carriage retur

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
As stated before, packet size not the problem, data is delivered perfectly from MySQL. Problem seems to be when the result string is diplayed. I'll try to do a test with a numeric array: $list = array(12300..12800); and see what happens. regards, Toke Andrea Giammarchi skrev: What about MySQL

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
ng what it is supposed to do ? Regards, Toke Toke Herkild skrev: As stated before, packet size not the problem, data is delivered perfectly from MySQL. Problem seems to be when the result string is diplayed. I'll try to do a test with a numeric array: $list = array(12300..12800); and see wha

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
works fine, created a html output to browser which displayed nicely. - weird regards Toke Toke Herkild skrev: As stated before, packet size not the problem, data is delivered perfectly from MySQL. Problem seems to be when the result string is diplayed. I'll try to do a test with a nu

Re: [PHP] Problems with implode

2009-03-26 Thread Toke Herkild
Tom Worster skrev: On 3/24/09 9:25 AM, "Andrea Giammarchi" wrote: Dunno why you guys started talk about utf-8 problems, he has a list of ids which should contain only unsigned integers, otherwise I do not get how that query could work with an implode(',', $whatever) rather than 'id in ("'.impl

[PHP] thread question

2009-03-31 Thread Toke Herkild
Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] thread question

2009-03-31 Thread Toke Herkild
Virgilio Quilario skrev: Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke the script is aborted as soon as server gets no response from the browser whe

Re: [PHP] thread question

2009-04-01 Thread Toke Herkild
Ashley Sheridan skrev: On Wed, 2009-04-01 at 19:41 +0800, Virgilio Quilario wrote: Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke the script is abort

[PHP] problem with graphicsMagick and Apache

2009-10-07 Thread Toke Herkild
apache with graceful, causes the threads to be finished and the images are stored correctly. code : exec('gm convert '.$source.' -resize 600x800 '.$dest); And I did try with shell_exec() also, no difference. Can anyone give me a pointer as to why this happens ? Regards, Toke Her