[PHP] Re: pack vs. serialize

2007-06-17 Thread Abdullah Ramazanoglu
(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.) Kind regards, -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General

[PHP] RE: Re: high-bit characters

2007-06-09 Thread Abdullah Ramazanoglu
). Kind regards, Abdullah berber -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Abdullah Ramazanoglu Sent: Friday, June 08, 2007 11:43 PM To: php-general@lists.php.net Subject: [PHP] Re: high-bit characters WeberSites LTD dedi ki: I'm trying to validate

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

2007-06-09 Thread Abdullah Ramazanoglu
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: 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 GUI frameworks. I know that both php and python have support

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

2007-06-09 Thread Abdullah Ramazanoglu
, -- 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: 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, which can't be represented

[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.php.net

[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://www.php.net

[PHP] Re: high-bit characters

2007-06-08 Thread Abdullah Ramazanoglu
WeberSites LTD dedi ki: I'm trying to validate an RSS feed and getting errors about high-bit characters. How can I check if a string contains any high-bit characters? if (preg_match(/[\x80-\xff]/, $string)) { # high-bit char found } else { # no high-bit char } -- Abdullah

[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 conclusion. I've already made up

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

2007-06-07 Thread Abdullah Ramazanoglu
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: File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Abdullah Ramazanoglu
, 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 Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php-cli vs python

2007-06-06 Thread Abdullah Ramazanoglu
)? 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 General Mailing List (http://www.php.net

[PHP] Re: Environment variables in php.ini

2007-04-06 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/configuration.php#configuration.file You can put a file

[PHP] Environment variables in php.ini

2007-03-29 Thread Abdullah Ramazanoglu
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