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
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
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 "
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
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
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
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
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
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
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
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
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
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
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
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
15 matches
Mail list logo