Hi,
i know this topic is obvious but i have a strange behavior and i'm getting
crazy.
my stored procedure returns me a string.
string can be an email or a message error = '-1', '-2', '-3'
when i check if the string contains only digit, i use ctype_digit(mystring)
but any way it returns me
On Fri, Mar 28, 2008 at 12:48 AM, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
i know this topic is obvious but i have a strange behavior and i'm getting
crazy.
my stored procedure returns me a string.
string can be an email or a message error = '-1', '-2', '-3'
when i check if the
On 28/03/2008, at 8:48, Alain Roger wrote:
Hi,
i know this topic is obvious but i have a strange behavior and i'm
getting
crazy.
my stored procedure returns me a string.
string can be an email or a message error = '-1', '-2', '-3'
when i check if the string contains only digit, i use
thx a lot... i completly skipped this one...i don't know why :-(
now it works
On Fri, Mar 28, 2008 at 8:55 AM, Simon Welsh [EMAIL PROTECTED] wrote:
On 28/03/2008, at 8:48, Alain Roger wrote:
Hi,
i know this topic is obvious but i have a strange behavior and i'm
getting
crazy.
my
2008. 03. 27, csütörtök keltezéssel 11.13-kor Jason Pruim ezt írta:
On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote:
Al wrote:
Good point. I usually do use the single quotes, just happened to key
doubles for the email.
Actually, it's good idea for all variable assignments.
2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta:
Jason Pruim wrote:
On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote:
Al wrote:
Good point. I usually do use the single quotes, just happened to key
doubles for the email.
Actually, it's good idea for all
2008. 03. 27, csütörtök keltezéssel 09.29-kor Philip Thompson ezt írta:
On Mar 26, 2008, at 6:28 PM, Al wrote:
Depends on the server and it's load. I've strung together some
rather large html strings and they aways take far less time than the
transient time on the internet. I used to
2008. 03. 28, péntek keltezéssel 09.19-kor Zoltán Németh ezt írta:
2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta:
Jason Pruim wrote:
On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote:
Al wrote:
Good point. I usually do use the single quotes, just happened
Eric Butera wrote:
On Thu, Mar 27, 2008 at 12:41 PM, Peter Ford [EMAIL PROTECTED] wrote:
Jason Pruim wrote:
On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote:
Al wrote:
Good point. I usually do use the single quotes, just happened to key
doubles for the email.
Actually, it's
Hi,
I am making and HTML email. I have 3 images to put in. Currently I have
$body .=
table
tr
tdimg src=\image1.jpg\/td
/tr
tr
td/td
/tr
/table
;
ideally I would like to have
$myimage1 = image1.jpg;
$myimage2 = image2.jpg;
$myimage3 = image3.jpg;
and put them into the HTML
Hi.
I'm using APC 3.0.17 with PHP 5.2.5 on Linux.
I'm suffering some white page of death APC errors, and I'm trying to
investigate the reasons. But:
1) I don't find any APC support forum.
2) I don't find any APC error log. I'm browsing Apache error log (with
PHP 'E_ALL' activate) and don't see
Hulf wrote:
Hi,
I am making and HTML email. I have 3 images to put in. Currently I have
$body .=
table
tr
tdimg src=\image1.jpg\/td
/tr
tr
td/td
/tr
/table
;
ideally I would like to have
$myimage1 = image1.jpg;
$myimage2 = image2.jpg;
$myimage3 = image3.jpg;
and put them
On Fri, 2008-03-28 at 09:14 +0100, Zoltán Németh wrote:
2008. 03. 27, csütörtök keltezéssel 09.29-kor Philip Thompson ezt írta:
On Mar 26, 2008, at 6:28 PM, Al wrote:
Depends on the server and it's load. I've strung together some
rather large html strings and they aways take far less
On Fri, 2008-03-28 at 09:31 +0100, Zoltán Németh wrote:
2008. 03. 28, péntek keltezéssel 09.19-kor Zoltán Németh ezt írta:
2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta:
Jason Pruim wrote:
On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote:
Al wrote:
Hello,
I am trying to make a daemon that launches shell commands via proc_open
and gets the stdout of the command via a pipe. The thing is that I would
like to get this stdout via a callback, instead of monitoring the pipe
regularly.
I tried the following code (this is a simplified version of
Hello,
I am trying to make a daemon that launches shell commands via proc_open
and gets the stdout of the command via a pipe. The thing is that I would
like to get this stdout via a callback, instead of monitoring the pipe
regularly.
I tried the following code (this is a simplified version of
2008. 03. 28, péntek keltezéssel 09.00-kor Robert Cummings ezt írta:
On Fri, 2008-03-28 at 09:31 +0100, Zoltán Németh wrote:
2008. 03. 28, péntek keltezéssel 09.19-kor Zoltán Németh ezt írta:
2008. 03. 27, csütörtök keltezéssel 10.21-kor Shawn McKenzie ezt írta:
Jason Pruim wrote:
Hello,
If I have an array like this
$dataArray = array(0=array('type'='da'), 1=array('type'='wb'),
2=array('type'='da');
How I can filtering to get only 'da' only, like this
$newDataArray = array(0=array('type'='da'),2=array('type'='da'))
Thanks in advance
bnug
If I have an array like this
$dataArray = array(0=array('type'='da'), 1=array('type'='wb'),
2=array('type'='da');
How I can filtering to get only 'da' only, like this
$newDataArray = array(0=array('type'='da'),2=array('type'='da'))
Off the top of my head:
?php
foreach ($newDataArray
On Thu, Mar 27, 2008 at 9:27 PM, Robert Cummings [EMAIL PROTECTED] wrote:
?php
$sekret = 'the brown cow stomped on the wittle bug';
$id = isset( $_GET['id'] ) ? (int)$_GET['id'] : 0;
$key = isset( $_GET['key'] ) ? (string)$_GET['key'] : '';
if( $key == sha1(
On Fri, 2008-03-28 at 14:46 +0100, Zoltán Németh wrote:
yeah maybe. you're right, the bytecode is the same. but somewhere I
heard that the parsing is the same too - because escaped characters can
be in any string, though I'm not that sure about this anymore, as my
link proved something else
2008. 03. 28, péntek keltezéssel 10.24-kor Robert Cummings ezt írta:
On Fri, 2008-03-28 at 14:46 +0100, Zoltán Németh wrote:
yeah maybe. you're right, the bytecode is the same. but somewhere I
heard that the parsing is the same too - because escaped characters can
be in any string,
On Mon, Mar 28, 2011 at 7:06 AM, Hulf [EMAIL PROTECTED] wrote:
Hi,
I am making and HTML email. I have 3 images to put in. Currently I have
$body .=
table
tr
tdimg src=\image1.jpg\/td
/tr
tr
td/td
/tr
/table
;
ideally I would like to have
$myimage1 =
On 28/03/2008, Bastien Koert [EMAIL PROTECTED] wrote:
On Thu, Mar 27, 2008 at 10:23 PM, Bill Guion [EMAIL PROTECTED] wrote:
At 1:28 PM -0400 3/26/08, Al wrote:
I'm scripting a simple registry where the user can input their name
and email address.
I'd like to do a quick
Hulf [EMAIL PROTECTED] wrote:
Hi,
I am making and HTML email. I have 3 images to put in. Currently I have
$body .=
table
tr
tdimg src=\image1.jpg\/td
/tr
tr
td/td
/tr
/table
;
ideally I would like to have
$myimage1 = image1.jpg;
$myimage2 =
On Fri, 2008-03-28 at 15:30 +0100, Zoltán Németh wrote:
2008. 03. 28, péntek keltezéssel 10.24-kor Robert Cummings ezt írta:
On Fri, 2008-03-28 at 14:46 +0100, Zoltán Németh wrote:
yeah maybe. you're right, the bytecode is the same. but somewhere I
heard that the parsing is the same
On Fri, 2008-03-28 at 10:37 -0400, Bastien Koert wrote:
[snip] Save yourself the database trip and just stick the id AND the
hash in
the URL and validate upon request.
Cheers,
Rob.
[/snip]
The only reason I suggest a database look up is that in my application
there is further
On 28/03/2008, Bagus Nugroho [EMAIL PROTECTED] wrote:
Hello,
If I have an array like this
$dataArray = array(0=array('type'='da'), 1=array('type'='wb'),
2=array('type'='da');
How I can filtering to get only 'da' only, like this
$newDataArray =
Hi Manuel
In the body that column shows Brébeuf in Windows Outlook.
You may want to try this MIME message composing and sending class that
http://www.phpclasses.org/mimemessage
Looks great Manuel.but my server is under dyndns and the DN isn't qualified
so no mail functions available.
I
Hi,
I have this PHP script (simplificated here), called delete_tmp.php
that basically calls external commands:
?php
$session_file = '/tmp/sess_89765'
system(''rm -f' . ' ' . $session_file);
?
delete_tmp.php file is owned by gamito.users
/tmp/sess_89765 file has permissions -rw-- and is
At 9:14 AM +0100 3/28/08, Zoltán Németh wrote:
This way for literal strings, the PHP parser doesn't have to evaluate
this string to determine if anything needs to be translated (e.g.,
$report .= I like to $foo). A minimal speedup, but nonetheless...
that above statement is simply not
At 10:59 AM -0400 3/28/08, Robert Cummings wrote:
Nope, when processing a single quoted string there should be 4 available
parse branches:
EOF
'(end of string)
\
EOF
\
'
anything else
anything else
Whereas with a double quoted string you have
My method was.
Store into global thingy. Then echo very end of the page.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hulf wrote:
Hi,
I am making and HTML email. I have 3 images to put in. Currently I have
$body .=
table
tr
tdimg src=\image1.jpg\/td
/tr
tr
td/td
/tr
/table
;
ideally I would like to have
$myimage1 = image1.jpg;
$myimage2 = image2.jpg;
$myimage3 = image3.jpg;
and put them
At 9:27 PM -0400 3/27/08, Robert Cummings wrote:
$sekret = 'the brown cow stomped on the wittle bug';
:-)
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Mário Gamito wrote:
Hi,
I have this PHP script (simplificated here), called delete_tmp.php
that basically calls external commands:
?php
$session_file = '/tmp/sess_89765'
system(''rm -f' . ' ' . $session_file);
?
delete_tmp.php file is owned by gamito.users
/tmp/sess_89765
On Fri, Mar 28, 2008 at 11:24 AM, Mário Gamito [EMAIL PROTECTED] wrote:
Hi,
I have this PHP script (simplificated here), called delete_tmp.php
that basically calls external commands:
?php
$session_file = '/tmp/sess_89765'
system(''rm -f' . ' ' . $session_file);
?
That's
At 4:47 PM +0100 3/28/08, M. Sokolewicz wrote:
Hulf wrote:
Hi,
I am making and HTML email. I have 3 images to put in. Currently I have
$body .=
table
tr
tdimg src=\image1.jpg\/td
/tr
tr
td/td
/tr
/table
;
ideally I would like to have
$myimage1 = image1.jpg;
$myimage2 =
Thanks You,
rgds, bnug
From: Robin Vickery [mailto:[EMAIL PROTECTED]
Sent: Jumat 28-Mar-2008 21:45
To: Bagus Nugroho
Cc: php-general@lists.php.net
Subject: Re: [PHP] array_filter function
On 28/03/2008, Bagus Nugroho [EMAIL PROTECTED] wrote:
Hello,
If I
Hi everyone :) Happy friday to all of you!
Here's my issues, I am attempting to echo the results of mysqli query
out to my script just so I can make sure it's working right, what I'm
hoping to do in the long run is compare what was typed in a text box
to this info... It's for verifying a
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim [EMAIL PROTECTED] wrote:
$chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or
die(Sorry read failed: . mysqli_error($chpwpostlink));
$chpwresult = $chpwold[0];
Why would you pump that into an array instead of just calling it
result
That's because your loginpassWord is in another array.
try $chpwrow[0]['loginPassword']
-Mensagem original-
De: Jason Pruim [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 28 de março de 2008 13:29
Para: [php] PHP General List
Assunto: [PHP] why won't my array work?
Hi everyone :)
On Mar 28, 2008, at 12:40 PM, Eric Butera wrote:
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim [EMAIL PROTECTED]
wrote:
$chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or
die(Sorry read failed: . mysqli_error($chpwpostlink));
$chpwresult = $chpwold[0];
Why would you pump that
Hi all,
I have a linux based web app which prints an html screen of results.
My users really want Excel spreadsheets with the same results. There
is a PEAR application which does this, but from the PEAR description it
seems to be pretty buggy (65 open bugs, average days open 616 days)
On Fri, Mar 28, 2008 at 12:58 PM, Jason Pruim [EMAIL PROTECTED] wrote:
On Mar 28, 2008, at 12:40 PM, Eric Butera wrote:
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim [EMAIL PROTECTED]
wrote:
$chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or
die(Sorry read failed: .
On Fri, Mar 28, 2008 at 1:12 PM, Mary Anderson
[EMAIL PROTECTED] wrote:
Hi all,
I have a linux based web app which prints an html screen of results.
My users really want Excel spreadsheets with the same results. There
is a PEAR application which does this, but from the PEAR
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim [EMAIL PROTECTED] wrote:
[snip!]
$oldpasswordquery = SELECT loginPassword, Record FROM current WHERE
loginPassword='{$oldPassHash}' AND Record='{$Record}';
$chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or
die(Sorry read failed: .
Hi all,
Ok, I'm still a newbie (hopefully, someday I'll be past this stage), so
don't get too upset and also, if you can provide some assistance, I guess
you'll have to give a step by step description from a beginner's point of
view.
The question: How can I check to be sure cURL is enabled?
Kista Tucker wrote:
Hi all,
Ok, I'm still a newbie (hopefully, someday I'll be past this stage), so
don't get too upset and also, if you can provide some assistance, I guess
you'll have to give a step by step description from a beginner's point of
view.
The question: How can I check to be
Hi,
i have an associative array and i want to use it as an
ordinary array, is that possible?
what i mean is instead of $arr['fruit'] i want to call
it by its position in the array $arr[3]
thanks
On Fri, Mar 28, 2008 at 2:27 PM, It Maq [EMAIL PROTECTED] wrote:
Hi,
i have an associative array and i want to use it as an
ordinary array, is that possible?
what i mean is instead of $arr['fruit'] i want to call
it by its position in the array $arr[3]
Did you try?
--
/Daniel
Daniel Brown wrote:
On Fri, Mar 28, 2008 at 2:27 PM, It Maq [EMAIL PROTECTED] wrote:
Hi,
i have an associative array and i want to use it as an
ordinary array, is that possible?
what i mean is instead of $arr['fruit'] i want to call
it by its position in the array $arr[3]
Did you
On Fri, Mar 28, 2008 at 10:33 AM, Daniel Brown [EMAIL PROTECTED] wrote:
On Fri, Mar 28, 2008 at 2:27 PM, It Maq [EMAIL PROTECTED] wrote:
Hi,
i have an associative array and i want to use it as an
ordinary array, is that possible?
what i mean is instead of $arr['fruit'] i want
thank you, it works!
--- Casey [EMAIL PROTECTED] wrote:
On Fri, Mar 28, 2008 at 10:33 AM, Daniel Brown
[EMAIL PROTECTED] wrote:
On Fri, Mar 28, 2008 at 2:27 PM, It Maq
[EMAIL PROTECTED] wrote:
Hi,
i have an associative array and i want to use
it as an
ordinary array, is
Mary Anderson [EMAIL PROTECTED] wrote:
Hi all,
I have a linux based web app which prints an html screen of results.
My users really want Excel spreadsheets with the same results. There
is a PEAR application which does this, but from the PEAR description it
seems to be pretty
Posting Summary for PHP-General List
Week Ending: Friday, 28 March, 2008
Messages| Bytes | Sender
++--
311 (100%) 850774 (100%) EVERYONE
18 (5.8%)
do not laugh, but I discovered today function
extract(); :D
before I used:
foreach ($array as $key = $value)
{
${$key} = trim($value);
}
though, trimming $value is kind of important to me
and I would like to know if extract trims too?
thanks.
-ll
On 28 Mar 2008, at 20:59, Lamp Lists wrote:
do not laugh, but I discovered today function
extract(); :D
before I used:
foreach ($array as $key = $value)
{
${$key} = trim($value);
}
though, trimming $value is kind of important to me
and I would like to know if extract trims too?
No, but
- Original Message
From: Stut [EMAIL PROTECTED]
To: Lamp Lists [EMAIL PROTECTED]
Cc: php General list php-general@lists.php.net
Sent: Friday, March 28, 2008 4:02:27 PM
Subject: Re: [PHP] does function extract() trim?
On 28 Mar 2008, at 20:59, Lamp Lists wrote:
do not laugh, but I
On 28 Mar 2008, at 21:14, Lamp Lists wrote:
- Original Message
From: Stut [EMAIL PROTECTED]
To: Lamp Lists [EMAIL PROTECTED]
Cc: php General list php-general@lists.php.net
Sent: Friday, March 28, 2008 4:02:27 PM
Subject: Re: [PHP] does function extract() trim?
On 28 Mar 2008, at 20:59,
- Original Message
From: Stut [EMAIL PROTECTED]
To: Lamp Lists [EMAIL PROTECTED]
Cc: php General list php-general@lists.php.net
Sent: Friday, March 28, 2008 4:22:25 PM
Subject: Re: [PHP] does function extract() trim?
On 28 Mar 2008, at 21:14, Lamp Lists wrote:
- Original Message
this is happening when Security on IE (internet options) is on levels High or
Block all cookies..
most likely there is a solution to fix this but I think (in my case) is not
worth and it's much easier to tell client (their administrator) to trust the
world a little bit more
:D
thanks for all
Hello,
on 03/28/2008 12:08 PM Bill said the following:
Hi Manuel
In the body that column shows Brébeuf in Windows Outlook.
You may want to try this MIME message composing and sending class that
http://www.phpclasses.org/mimemessage
Looks great Manuel.but my server is under dyndns and
Okay I created a script that changes a basic smiley face into a red
smiley face..but it doesn't replace all the yellow, it looks like a
yellow shadow in the background:
?php
$image = smiley.png;
$data = getimagesize($image);
$width = intval($data[0]);
$height = intval($data[1]);
$cloneH = 0;
On Mar 28, 2008, at 4:27 PM, Lamonte [EMAIL PROTECTED] wrote:
Okay I created a script that changes a basic smiley face into a red
smiley face..but it doesn't replace all the yellow, it looks like a
yellow shadow in the background:
?php
$image = smiley.png;
$data = getimagesize($image);
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 10:02 PM
To: Joey
Cc: PHP
Subject: RE: [PHP] munge / obfuscate ?
Hi Joey,
Please keep responses on the list so others can also benefit from the
learning process.
Comments
On 29 Mar 2008, at 02:15, Jack Sasportas wrote:
I understand what is happening here, however I really want something
simple like:
$link =http://www.whataver.com/whateverpath/;;
$image = 123456;
new_image = munge($image);
new_link = $link . $new_image;
or maybe
new_link = munge($link .
I have an annoying habit of not using comments :)
Explanations are inline.
On Mar 28, 2008, at 7:10 PM, Lamonte [EMAIL PROTECTED] wrote:
Casey wrote:
On Mar 28, 2008, at 4:27 PM, Lamonte [EMAIL PROTECTED] wrote:
Okay I created a script that changes a basic smiley face into a
red smiley
On Mar 28, 2008, at 7:15 PM, Jack Sasportas [EMAIL PROTECTED]
wrote:
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2008 10:02 PM
To: Joey
Cc: PHP
Subject: RE: [PHP] munge / obfuscate ?
Hi Joey,
Please keep responses on the list so
On Mar 28, 2008, at 7:38 PM, Lamonte [EMAIL PROTECTED] wrote:
Casey wrote:
I have an annoying habit of not using comments :)
Explanations are inline.
On Mar 28, 2008, at 7:10 PM, Lamonte [EMAIL PROTECTED] wrote:
Casey wrote:
On Mar 28, 2008, at 4:27 PM, Lamonte [EMAIL PROTECTED] wrote:
70 matches
Mail list logo