[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 Fatal error:  Call to undefined function gmp_add()

do I need a dll extension or need to install gmp somehow?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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   |  |
|  | | sally || |

is there an easy way to do this?
the data and arraysize will vary so I was looking for a way that I could
have php do it without having to make script for different array sizes.

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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
> > change from
> >
> > bob | bill | frank
> > joe | jose | sam
> > sally | jim | kim
> >
> > to
> > |  | | frank||  |
> > |  |bill | | sam|  |
> > |bob| | jose  |   | kim|
> > |  |joe| |jim   |  |
> > |  | | sally || |
> >
> > is there an easy way to do this?
> > the data and arraysize will vary so I was looking for a way that I could
> > have php do it without having to make script for different array sizes.
>
> http://php.net/array
>
> Look at array_pop and array_push and count and array_slice and
> array_splice and array_shift.
>
> I really don't understand your BEFORE/AFTER diagrams at all, since it
> pretty much looks random to me...  In which case you want
> http://php.net/shuffle
>
> -- 
> Like Music?
> http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 is what I have tried

c:\upload
c:\upload\
"c:\upload"
"c:\upload\"
c:/upload
c:/upload/
"c:/upload"
"c:/upload/"
../upload
..\upload

what am I doing wrong?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 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 is what I have tried
>
> c:\upload
> c:\upload\
> "c:\upload"
> "c:\upload\"
> c:/upload
> c:/upload/
> "c:/upload"
> "c:/upload/"
> ../upload
> ..\upload
>
> what am I doing wrong?

Did you stop/start Apache after changing your php.ini configuration ?

Mehdi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 the
actual function of the script.


"Dave Bosky" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Any recommendations for PHP classes that will send email messages with
attachments?

Thanks,

Dave







HTC Disclaimer:  The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent responsible
for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error, please notify us immediately by replying to the
message and deleting it from your computer.  Thank you.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 message
news:[EMAIL PROTECTED]
> 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 is what I have tried
>
> c:\upload
> c:\upload\
> "c:\upload"
> "c:\upload\"
> c:/upload
> c:/upload/
> "c:/upload"
> "c:/upload/"
> ../upload
> ..\upload
>
> what am I doing wrong?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 unsubscribe, visit: http://www.php.net/unsub.php



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 happening, or what should be happening,
but isn't?

> let us say
> $a = 1;
> $b = 2;
> $c = 0;

$str_a = (string)$a;
$str_b = "$b"


> I would like to be able to
> $str = $c.$a.$b;
Does that not work? What happens when you do that? Personally I'd use
$str = "$c$a$b";


> to result with
> $str = 012;
>
I tried:
[EMAIL PROTECTED] ~]$ cat > test.php

[EMAIL PROTECTED] ~]$ php -q test.php
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 unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 message
news:[EMAIL PROTECTED]
For the most part you can simply treat them as strings. What is
happening that shouldn't be happening, or what should be happening,
but isn't?

> let us say
> $a = 1;
> $b = 2;
> $c = 0;

$str_a = (string)$a;
$str_b = "$b"


> I would like to be able to
> $str = $c.$a.$b;
Does that not work? What happens when you do that? Personally I'd use
$str = "$c$a$b";


> to result with
> $str = 012;
>
I tried:
[EMAIL PROTECTED] ~]$ cat > test.php

[EMAIL PROTECTED] ~]$ php -q test.php
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 unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php