[PHP] convert a string to integer

2008-03-28 Thread Alain Roger
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

Re: [PHP] convert a string to integer

2008-03-28 Thread Casey
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

Re: [PHP] convert a string to integer

2008-03-28 Thread Simon Welsh
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

Re: [PHP] convert a string to integer

2008-03-28 Thread Alain Roger
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Peter Ford
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

[PHP] putting variables in a variable

2008-03-28 Thread Hulf
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

[PHP] How to log APC Cache errors?

2008-03-28 Thread thomas Armstrong
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

[PHP] Re: putting variables in a variable

2008-03-28 Thread Peter Ford
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
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: > >

[PHP] Use of callback on a stream

2008-03-28 Thread Olivier Dupuis
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

[PHP] Use of callback on a stream

2008-03-28 Thread Olivier Dupuis
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
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

[PHP] array_filter function

2008-03-28 Thread Bagus Nugroho
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

Re: [PHP] array_filter function

2008-03-28 Thread Richard Heyes
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

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Daniel Brown
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Zoltán Németh
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

Re: [PHP] putting variables in a variable

2008-03-28 Thread Daniel Brown
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

Re: [PHP] Re: Quick email address check

2008-03-28 Thread Robin Vickery
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

Re: [PHP] putting variables in a variable

2008-03-28 Thread Wolf
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Robert Cummings
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

RE: [PHP] munge / obfuscate ?

2008-03-28 Thread Robert Cummings
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

Re: [PHP] array_filter function

2008-03-28 Thread Robin Vickery
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'=>'

[PHP] Re: character encoding

2008-03-28 Thread Bill
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

[PHP] Deleting file in /tmp directory

2008-03-28 Thread Mário Gamito
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread tedd
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread tedd
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

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Sancar Saran
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

[PHP] Re: putting variables in a variable

2008-03-28 Thread M. Sokolewicz
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

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread tedd
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.

[PHP] Re: Deleting file in /tmp directory

2008-03-28 Thread Colin Guthrie
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

Re: [PHP] Deleting file in /tmp directory

2008-03-28 Thread Daniel Brown
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

[PHP] Re: putting variables in a variable

2008-03-28 Thread tedd
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

RE: [PHP] array_filter function

2008-03-28 Thread Bagus Nugroho
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

[PHP] why won't my array work?

2008-03-28 Thread Jason Pruim
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

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
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

RES: [PHP] why won't my array work?

2008-03-28 Thread Thiago Pojda
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

Re: [PHP] why won't my array work?

2008-03-28 Thread Jason Pruim
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

[PHP] PHP code to write excel spreadsheet with multiple workbooks

2008-03-28 Thread Mary Anderson
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

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
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

Re: [PHP] PHP code to write excel spreadsheet with multiple workbooks

2008-03-28 Thread Andrew Ballard
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

Re: [PHP] why won't my array work?

2008-03-28 Thread Daniel Brown
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

[PHP] Enabling cURL on my Mac

2008-03-28 Thread Kista Tucker
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'

Re: [PHP] Enabling cURL on my Mac

2008-03-28 Thread Jim Lucas
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

[PHP] convert associative array to ordinary array

2008-03-28 Thread It Maq
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

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread Daniel Brown
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? --

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread M. Sokolewicz
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

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread Casey
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

Re: [PHP] convert associative array to ordinary array

2008-03-28 Thread It Maq
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 > >

Re: [PHP] PHP code to write excel spreadsheet with multiple workbooks

2008-03-28 Thread Wolf
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

[PHP] Posting Summary for Week Ending 28 March, 2008: php-general@lists.php.net

2008-03-28 Thread PostTrack [Dan Brown]
Posting Summary for PHP-General List Week Ending: Friday, 28 March, 2008 Messages| Bytes | Sender ++-- 311 (100%) 850774 (100%) EVERYONE 18 (5.8%)

[PHP] does function extract() trim?

2008-03-28 Thread Lamp Lists
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

Re: [PHP] does function extract() trim?

2008-03-28 Thread Stut
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,

Re: [PHP] does function extract() trim?

2008-03-28 Thread Lamp Lists
- 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

Re: [PHP] does function extract() trim?

2008-03-28 Thread Stut
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

Re: [PHP] does function extract() trim?

2008-03-28 Thread Lamp Lists
- 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

Re: [PHP] loosing session in new window (IE only) [SOLVED]

2008-03-28 Thread Lamp Lists
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

[PHP] Re: character encoding

2008-03-28 Thread Manuel Lemos
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

[PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Lamonte
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;$

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
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

RE: [PHP] munge / obfuscate ?

2008-03-28 Thread Jack Sasportas
> -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

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Stut
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 . $

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
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

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Casey
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

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
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

Re: [PHP] Developing existing java portal in php

2008-03-28 Thread Sangamesh B
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