[PHP] Re: pack vs. serialize

2007-06-17 Thread Abdullah Ramazanoglu
ed structure. I once used pack to obtain a 128 bit long binary string (xor key for rudimentary file encryption) by packing four 32-bit integers into a binary string and then using it as the xor key. (FWIW, bitwise operations work both on integers and "strings" - binary or otherwise.) Ki

[PHP] Re: php-cli vs python

2007-06-09 Thread Abdullah Ramazanoglu
Richard Lynch dedi ki: > I use PHP extensively for command line processing. > > Why not just try it and see if it works well for you? I will :) -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Re: Keeping file pointers open after script end

2007-06-09 Thread Abdullah Ramazanoglu
Tijnema dedi ki: > Is there any way to keep a file pointer open after script is finished, > so that it can be access later, by passing it through session? ftell() / fseek() ? Kind regards, -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.p

[PHP] Re: Re: Re: Re: php-cli vs python

2007-06-09 Thread Abdullah Ramazanoglu
Abdullah Ramazanoglu dedi ki: > $key = pack("N*", 0x12345678, 0x9abcdef0, 0x87654321, 0x0fedcba9); > > Well, second and third 32-bit hex values were automatically converted by > PHP to float, before packing, because PHP tries to cast them into signed > 32-bit integers, w

[PHP] Re: Re: Re: Re: php-cli vs python

2007-06-09 Thread Abdullah Ramazanoglu
responsibility of disabling typing, and instruct PHP "please do it as is, and let me worry if it makes sense or not". Perhaps there's already a way to do this?.. Kind regards, -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Re: Re: php-cli vs python

2007-06-09 Thread Abdullah Ramazanoglu
Crayon Shin Chan dedi ki: > On Friday 08 June 2007 04:10, Abdullah Ramazanoglu wrote: > >> I found one intersting item though: Under the "What does Python have >> that PHP doesn't?" header, there's a bullet stating that "support for >> all major

[PHP] RE: RE: Re: high-bit characters

2007-06-09 Thread Abdullah Ramazanoglu
YX'YX'YX'Y It might be related to your input - perhaps not 8-bit clean? Perhaps preprocessed in some way through the pipe (network, linux, apache, php.ini settings, etc.) before it reached your script? Hard to guess. I would've written (in binary safe way) the input to a temp file and then inspected it via hexdump, less, hexedit etc. Kind regards, -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Re: high-bit characters

2007-06-09 Thread Abdullah Ramazanoglu
t feels a bit clumsy, but you might be able to find a better way in "XVII. Character Type Functions" or "CLXI. String Functions" (PHP Manual). Kind regards, Abdullah > > > berber > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf

[PHP] Re: high-bit characters

2007-06-08 Thread Abdullah Ramazanoglu
else { # no high-bit char } -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Abdullah Ramazanoglu
in your example, the java applet transfers the bulk data itself -not metadata- a second time, POSTing it to php? If so, then the applet you use (or the parameters it's been passed) should be broken, I guess. Kind regards, -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Ma

[PHP] Re: Re: php-cli vs python

2007-06-07 Thread Abdullah Ramazanoglu
for gtk. Am I to understand from this statement that python has also support for qt? Kind regards, -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php-cli vs python

2007-06-07 Thread Abdullah Ramazanoglu
Chris dedi ki: > Abdullah Ramazanoglu wrote: --8<-- > Personally I'd stick to one or the other for the whole project, you'll > save yourself a lot of headaches in the future. Thank you Chris, for the insight. The more I think about it, the closer I get to the same conclus

[PHP] php-cli vs python

2007-06-06 Thread Abdullah Ramazanoglu
es of python against php (and vice versa)? Any ideas, pointers, analysis, insights are most welcome. This is a rather strategical crossroads for me, and I'd very much like to make an informed decision. Thank you and kind regards. -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP

[PHP] Re: Environment variables in php.ini

2007-04-05 Thread Abdullah Ramazanoglu
Jim Lucas dedi ki: > Abdullah Ramazanoglu wrote: --8<-- >> Is it possible at all to use environment variables in php.ini, or is >> there any other solution to the problem above? >> >> Thank you. > > Read this: > > http://us3.php.net/manual/en/con

[PHP] Re: Environment variables in php.ini

2007-04-05 Thread Abdullah Ramazanoglu
Tijnema ! dedi ki: > On 3/30/07, Abdullah Ramazanoglu <[EMAIL PROTECTED]> wrote: --8<-- >> Is it possible at all to use environment variables in php.ini, or is >> there any other solution to the problem above? > It probably is possible, but you could just use a php

[PHP] Environment variables in php.ini

2007-03-29 Thread Abdullah Ramazanoglu
to chaos, - etc. Is it possible at all to use environment variables in php.ini, or is there any other solution to the problem above? Thank you. -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php