[php-list] Comparing values

2008-04-06 Thread Bob
Something I've always been meaning to ask. If going thro a large amount of data, does it matter whether I compare the value to the array item, or visa-versa? $colr = array('red', 'blue', 'green', etc); example 1 foreach($colr as $item) { if ($item == 'blue') // Do something } example 2 foreac

Re: [php-list] IMPORTANT

2008-04-06 Thread Phill Sparks
On Sat, Apr 5, 2008 at 11:34 AM, Faro Maro <[EMAIL PROTECTED]> wrote: > > > HI > I WANT TO LEARN PHP FROM BEGIN > > I HOPE YOU HELP ME > With respect please do not shout at the board. If you look down the listings on the group page you should find many posts with suggestions for getting started

Re: [php-list] Comparing values

2008-04-06 Thread James Keeline
--- Bob <[EMAIL PROTECTED]> wrote: > Something I've always been meaning to ask. > If going thro a large amount of data, does it matter whether I compare the > value to the array item, or visa-versa? > > $colr = array('red', 'blue', 'green', etc); > example 1 > foreach($colr as $item) { > if ($

Re: [php-list] Comparing values

2008-04-06 Thread Bob
- Original Message - From: "James Keeline" > > --- Bob <[EMAIL PROTECTED]> wrote: > >> Something I've always been meaning to ask. >> If going thro a large amount of data, does it matter whether I compare the >> value to the array item, or visa-versa? >> >> $colr = array('red', 'blue', '

[php-list] PHP Function Reference Dashboard Widget

2008-04-06 Thread Andrew Hedges
Hi all, Just a quick note to let you everyone know that my PHP Function Reference widget for Mac OS X's Dashboard just went to version 1.0! I'm excited to share this news as this widget has been in beta for over 2 years (no joke!). More information is available here: http://andrew.hedges.name

[php-list] Adding attachments to e-mails from a form

2008-04-06 Thread Ian
as per the title. I've got a form where the user inputs there own name, e-mail address, subject and then from 2 drop-down selection menus select the type of email being sent and who to send it to. I've googled a few scripts but from my understanding they will only send files currently on the web

Re: [php-list] Adding attachments to e-mails from a form

2008-04-06 Thread listgroups08
- Original Message - From: "Ian" as per the title. I've got a form where the user inputs there own name, e-mail address, subject and then from 2 drop-down selection menus select the type of email being sent and who to send it to. I've googled a few scripts but from my understanding they

[php-list] Re: Adding attachments to e-mails from a form

2008-04-06 Thread Ian
--- In php-list@yahoogroups.com, <[EMAIL PROTECTED]> wrote: > > Q: Is there any way to allow someone to attach a file without uploading > to the web server? > > A: No. > > You have to upload the file to the tmp directory first, send it via email > and then delete it. > > Rob. > Ok, now other

Re: [php-list] Re: Adding attachments to e-mails from a form

2008-04-06 Thread listgroups08
- Original Message - From: "Ian" --- In php-list@yahoogroups.com, <[EMAIL PROTECTED]> wrote: > > Q: Is there any way to allow someone to attach a file without uploading > to the web server? > > A: No. > > You have to upload the file to the tmp directory first, send it via email > and then

[php-list] Re: Adding attachments to e-mails from a form

2008-04-06 Thread Ian
--- In php-list@yahoogroups.com, <[EMAIL PROTECTED]> wrote: > > > Hi Ian, > > This depends on if you trust what the browser sends as a MIME type? > > If the browser sends a MIME type then it will be in - > $_FILES['userfile']['type'] however any hacker can s