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 false
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 i
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
ct
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
> > c
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 assignme
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
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 use
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 quote
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.
>>>
>>> A
Hi,
I am making and HTML email. I have 3 images to put in. Currently I have
$body .="
";
ideally I would like to have
$myimage1 = "image1.jpg";
$myimage2 = "image2.jpg";
$myimage3 = "image3.jpg";
and put them into the HTML body variable. I have tried escaping them in
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 .="
";
ideally I would like to have
$myimage1 = "image1.jpg";
$myimage2 = "image2.jpg";
$myimage3 = "image3.jpg";
and put them into the HTML body variable. I have tried es
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 f
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:
> >
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 wrot
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:
$v) {
if (!empt
On Thu, Mar 27, 2008 at 9:27 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> $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( $id.':'.$s
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 e
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 strin
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 .="
>
>
>
>
>
>
>
>
>
> ";
>
>
> ideally I would like to have
>
> $myimage1 = "image1.jpg";
> $myimage2 = "ima
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
Hulf <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am making and HTML email. I have 3 images to put in. Currently I have
>
> $body .="
>
>
>
>
>
>
>
>
>
> ";
>
>
> ideally I would like to have
>
> $myimage1 = "image1.jpg";
> $myimage2 = "image2.jpg";
> $myimage3 = "ima
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 i
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
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 = array(0=>array('type'=>'
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
Hi,
I have this PHP script (simplificated here), called delete_tmp.php
that basically calls external commands:
delete_tmp.php file is owned by gamito.users
/tmp/sess_89765 file has permissions -rw-- and is owned by gamito.users
My /tmp permissions are rwxrwxrwt and is owned by root.root
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 .="
";
ideally I would like to have
$myimage1 = "image1.jpg";
$myimage2 = "image2.jpg";
$myimage3 = "image3.jpg";
and put them into the HTML body variable. I have tried es
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: http://www.php.
Mário Gamito wrote:
> Hi,
>
> I have this PHP script (simplificated here), called delete_tmp.php
> that basically calls external commands:
>
>
> $session_file = '/tmp/sess_89765'
>
> system(''rm -f' . ' ' . $session_file);
>
> ?>
>
> delete_tmp.php file is owned by gamito.users
>
> /tmp/ses
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:
>
>
> $session_file = '/tmp/sess_89765'
>
> system(''rm -f' . ' ' . $session_file);
>
> ?>
Tha
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 .="
";
ideally I would like to have
$myimage1 = "image1.jpg";
$myimage2 = "image2.jpg";
$myimage3 = "image3.jpg";
and put t
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,
>
> 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 ol
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
resu
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 :) H
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) and
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 r
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 descr
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
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?
I'
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 sure
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
Never
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 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
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
> >
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
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,
- Original Message
From: Stut <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Cc: php General list
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 "discovered" today function
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
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:
> d
- Original Message
From: Stut <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Cc: php General list
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
> From: Stut <[EMAI
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
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
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:
$color =
imagecolorallocate($im,hexdec(substr($hex,0,2)),hexdec(substr($hex,2,2)),hexdec(substr($hex,4,6)));
for($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:
$color = imagecolorallocate($im,hexdec(substr($hex,0,2)),h
> -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.
>
> Co
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 ot
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]> wrot
Thanks for the reply.
Can it be done by just using php + html or perl + html.
Also, May I know a beginners document to start working on html, php and
perl.
Thanks,
Sangamesh
On Fri, Mar 28, 2008 at 1:50 AM, ganu <[EMAIL PROTECTED]> wrote:
>
>
> On Thu, Mar 27, 2008 at 7:52 AM, Sangamesh B <[E
71 matches
Mail list logo