Re: [PHP] numbers as strings

2005-05-10 Thread Jon Aston
Just as a note I had a bit to test and your version works $str = "$c$a$b"; does return 012 all I was getting was 12 after looking at the manual I see that PHP was evaluating each piece as a number so it expected that the built variable would be a number. "Rory Browne" <[EMAIL PROTECTED]> wrote in

Re: [PHP] numbers as strings

2005-05-10 Thread Jon Aston
Normally it truncates the leading zeros if there are any. I will try your method when I get a moment. got switched on project. "Rory Browne" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] For the most part you can simply treat them as strings. What is happening that shouldn't be hap

[PHP] numbers as strings

2005-05-09 Thread Jon Aston
how do I set a number as a string example let us say $a = 1; $b = 2; $c = 0; I would like to be able to $str = $c.$a.$b; to result with $str = 012; is there something that I have missed or I guess the question should be what did I miss -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Re: php.ini uploads

2005-05-06 Thread Jon Aston
It was as I suspected. Operator error. upload_tmp_dir = "folder" notice the space after the = as soon as I noticed and removed the space several of the variations that I had tried worked fine... Thanks for the suggestions. "Jon Aston" <[EMAIL PROTECTED]> wrote in mes

[PHP] Re: need class to send email w/attachments

2005-05-06 Thread Jon Aston
I have used PHPMailer. It is easy to use and works great. If you happen to be on a windows computer I did find that you may need to turn off the zend optimizer in your php.ini file. For some reason with the Zend turned on I was getting an error at the end of my script run but it had no affect on

[PHP] Re: php.ini uploads

2005-05-06 Thread Jon Aston
Yes I did restart apache after each setting change. - Original Message - From: "Mehdi Achour" <[EMAIL PROTECTED]> To: "Jon Aston" <[EMAIL PROTECTED]> Cc: Sent: Friday, May 06, 2005 9:38 AM Subject: Re: php.ini uploads Jon Aston wrote: > this has

[PHP] php.ini uploads

2005-05-06 Thread Jon Aston
this has got to be something easy but I was uploading to a folder on a windows PC c:\upload but I updated php and forgot to backup my ini file. I have tried with quotes without quotes as well as a relational address to the folder in my ini file and I cannot get any uploads into the folder. this i

Re: [PHP] modify array data

2005-04-26 Thread Jon Aston
I am wanting to rotate the array 45 degrees. "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, April 22, 2005 8:46 am, Jon Aston said: > > Is there a way to easily rotate array data? > > > > what I want to do is >

[PHP] modify array data

2005-04-22 Thread Jon Aston
Is there a way to easily rotate array data? what I want to do is change from bob | bill | frank joe | jose | sam sally | jim | kim to | | | frank|| | | |bill | | sam| | |bob| | jose | | kim| | |joe| |jim | | | | | sa

[PHP] gmp in windows snaps

2005-03-31 Thread Jon Aston
I asked this in the windows section yesterday and received no answer. I have copied the sample of gmp_add() from the function page and have tried to run it from the snap that I downloaded this morning with the recommended ini that is in the folder with it and I keep getting the error here. PHP Fa