Re: [PHP] Re: Pre/Post inc (Was array conversion)

2010-02-20 Thread clancy_1
On Sat, 20 Feb 2010 17:44:00 -0500, you wrote: >On Sat, Feb 20, 2010 at 11:10 AM, Nathan Rixham wrote: > >> Richard Quadling wrote: >> > On 20 February 2010 11:18, wrote: >> >> Or: >> >> >> >> $a = array ('Cats', 'white', 'Dogs', 'black', 'Mice', 'grey', 'Camels', >> 'brown'); >> >> $b = '';

Re: [PHP] Re: Pre/Post inc (Was array conversion)

2010-02-20 Thread Adam Richardson
On Sat, Feb 20, 2010 at 11:10 AM, Nathan Rixham wrote: > Richard Quadling wrote: > > On 20 February 2010 11:18, wrote: > >> Or: > >> > >> $a = array ('Cats', 'white', 'Dogs', 'black', 'Mice', 'grey', 'Camels', > 'brown'); > >> $b = '';// Just in case it has some

Re: [PHP] Advice on maintaining public and private files

2010-02-20 Thread Al
I use Kim's solution and take it one step forward. Htacces files can get lost or corrupted, so In my config file I have the text string. //region htaccess file text // Code writes to /db folder; Admin mode checks file existence and text; replaces with this if different.

Re: [PHP] PHP, PHPMailer and SMTP Server

2010-02-20 Thread Per Jessen
gato chlr wrote: > Hi,to every body > > i'm buildding a little application, for now i'm working in my > localhost. I need to send a mail and i need to use phpmailer, but.. > when i send a mail using phpMailer it tooks a lot of time, i suppose > it is because the bandwidth (128kbps and 3 PCs conne

[PHP] PHP, PHPMailer and SMTP Server

2010-02-20 Thread gato chlr
Hi,to every body i'm buildding a little application, for now i'm working in my localhost. I need to send a mail and i need to use phpmailer, but.. when i send a mail using phpMailer it tooks a lot of time, i suppose it is because the bandwidth (128kbps and 3 PCs connected in the LAN). any way i ne

Re: [PHP] Advice on maintaining public and private files

2010-02-20 Thread Nathan Rixham
Kim Madsen wrote: > Michael Stroh wrote on 19/02/2010 19:19: >> I have a site I'm working on with some data that I want to be >> readable by anyone, but some files that I want to keep hidden from >> outside users. Here is an example of my file structure. >> >> /products/data1/item_1/data.txt >> /p

Re: [PHP] Excel Spreadsheets and PHP

2010-02-20 Thread Nathan Rixham
Bastien Koert wrote: > You can also create an htnl table and excel will happily handle that as well. > > The real trick is to get IE to accept the stream as a file download. I > find that I need to save the file first and the push the file down. > +1 this approach; Excel is HTTP aware and you ca

[PHP] Re: Pre/Post inc (Was array conversion)

2010-02-20 Thread Nathan Rixham
Richard Quadling wrote: > On 20 February 2010 11:18, wrote: >> Or: >> >> $a = array ('Cats', 'white', 'Dogs', 'black', 'Mice', 'grey', 'Camels', >> 'brown'); >> $b = '';// Just in case it has some leftover >> value >> $k = 2* (int) (count ($a)/2); // ensure eve

Re: [PHP] Excel Spreadsheets and PHP

2010-02-20 Thread asch...@wesseli.us
On 19-2-2010 21:28, Ian Robertson wrote: Hello, everyone. Just a quick question. What are you using, if anything, to create Excel spreadsheets with PHP? Thank you in advance. Hello Ian, You can use the PHPExcel class. It can read, write and convert between Excel versions without the ne

[PHP] Pre/Post inc (Was array conversion)

2010-02-20 Thread Richard Quadling
On 20 February 2010 11:18, wrote: > Or: > > $a = array ('Cats', 'white', 'Dogs', 'black', 'Mice', 'grey', 'Camels', > 'brown'); > $b = '';                                // Just in case it has some leftover > value > $k = 2* (int) (count ($a)/2);   // ensure even no of terms > $i = 0; while ($i

Re: [PHP] array conversion

2010-02-20 Thread clancy_1
Or: $a = array ('Cats', 'white', 'Dogs', 'black', 'Mice', 'grey', 'Camels', 'brown'); $b = '';// Just in case it has some leftover value $k = 2* (int) (count ($a)/2); // ensure even no of terms $i = 0; while ($i < $k) { $b[$a[$i++]] = $a[$i++];

Re: [PHP] Advice on maintaining public and private files

2010-02-20 Thread Kim Madsen
Michael Stroh wrote on 19/02/2010 19:19: I have a site I'm working on with some data that I want to be readable by anyone, but some files that I want to keep hidden from outside users. Here is an example of my file structure. /products/data1/item_1/data.txt > /products/data2/item_2/data.txt s