Re[2]: [PHP] fread() behaviour

2008-11-28 Thread ANR Daemon
e slow, you'd better use functions designed especially to work with asyncronous I/O. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re[2]: How to Execute Multiple SQL Updates Using PHP

2008-11-28 Thread ANR Daemon
er the clients requirements. Well, as last resort, there's a transactions exists. Especially for these times where you DO need to insert/update more than one row at once, without even smalest possibility of intervention from other clients. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]>

Re[4]: [PHP] It's Sunday, and I'm bored...

2008-11-24 Thread ANR Daemon
erencing your revision in /tags/ branch is a way to organise your work. > Is this the generally held belief or do I need to go > back and re-read? Just read further while you keeping confusing moments in mind. At some point, they will become clearer... eventually. -- Sincerely Yours, ANR

Re[2]: [PHP] It's Sunday, and I'm bored...

2008-11-18 Thread ANR Daemon
nities like this list so we >>> solo >>> freelancers don't think we're simply mad. >> >> You are... :-) > Well yes, but I meant without company.. See when we are in a herd, > then even if we're all mad, then somehow it seems alright. ;-) We

[PHP] Re: two mysql installations php_mysql.dll extension and libmysql.dll question

2008-11-10 Thread ANR Daemon
ll > > LoadFile C:/usr/sbin/php-5.2.2-Win32/php5ts.dll > > LoadModule php5_module "C:/usr/sbin/php-5.2.2-Win32/php5apache2_2_filter.dll" > > > php_admin_value extension_dir "C:/usr/sbin/php-5.2.2-Win32/ext" > PHPIniDir "C:/usr/sbin/php-5.2.2-Wi

Re[2]: [PHP] wget --spider and ignore_user_abort(TRUE)

2008-11-10 Thread ANR Daemon
ders at the moment first body byte sent, and since it is HEAD request, Apache shut down the script in case of request completion (HEADers sent). -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Reg Ex

2008-11-10 Thread ANR Daemon
is a part of it. > var_dump( pathinfo( '.htaccess' )); > var_dump( pathinfo( 'htaccess' )); > die( ); > ?> -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Reg Ex

2008-11-10 Thread ANR Daemon
mplish. For > what it's worth, if I were to do it with a regular expression, I would > use: > $filename = "us.123.kyle.20081029.zip"; > preg_match('/(.*)\..*$/', $filename, $match); I should correct you to #^((.+)(\.[^\.]+)?)$# Results will be 1 => Filenam

Re[2]: [PHP] Invalid byte sequence for encoding UTF-8

2008-11-06 Thread ANR Daemon
tine, such as htmlentites() Don't use add*slashes and any kind of it, including magic_quotes*, unless you surely know what you're doing and why. And please, don't top-post. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Printing JPEG

2008-10-30 Thread ANR Daemon
Greetings, "Kyle Terry". In reply to Your message dated Thursday, October 23, 2008, 15:32:07, > I'm stuck... What is the best way to send a jpg to a printer with PHP? Looks > like it is only working with png and bmp... Example? -- Sincerely Yours, ANR Daemon <[EMA

[PHP] Re[2]: Problem changing file encoding

2008-10-29 Thread ANR Daemon
, very nice piece of code. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Dev Facts

2008-10-16 Thread ANR Daemon
ould also mention Colorer project, without which it all would be much more complicated. http://colorer.sf.net/ (Yeah, it is very much complicated itself, I know...) -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variable Variables and Super Global Arrays

2008-10-11 Thread ANR Daemon
verride this problem? Just the not nice eval("return $variable");? > and in simple words - is there any way to make the following code work: > $varname = "\$_SERVER['REMOTE_ADDR']"; > $varvalue = $$varname; First of all, why you need it to work? Expl

Re[2]: [PHP] strtotime problem

2008-10-10 Thread ANR Daemon
formats > beside this so I lose this flexible approach. > It does work for me now but I was wondering if there was a way to avoid > this. Not as I know. So, you should either force user to use specific format (military -MM-DD HH:MM:SS for example) or leave user no chance to enter wrong data. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-10 Thread ANR Daemon
you want to check if array key has meaningful value or not, disregarding it's content and/or presence, use isset(). But that have never happened to me in, like, 10 years. And knowing if key is present critical for foreach() cycle. On the other side, for every my project bigger than s

Re[2]: [PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-09 Thread ANR Daemon
x27;]));// TRUE var_dump(isset($a['foo'])); // FALSE var_dump(isset($a['hello'])); // FALSE // The key 'hello' equals NULL so is considered unset // If you want to check for NULL key values then try: var_dump(array_key_exists('hello', $a)); // TRUE ?> (c) http://php.net/isset -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re[2]: The 'at' sign (@) variable prefix

2008-10-08 Thread ANR Daemon
people's code. I am not fluent in PHP. That is why I wanted a > reference in the documents. I do not sprinkle the @ symbol through my > code to avoid careful construction, I used it in a specific instance > to deal with an empty query string, over which I had no control. I > will stu

Re: [PHP] Convert local dates into GMT+1 dates

2008-09-27 Thread ANR Daemon
n't see where you have problem or what you want to achieve by CHANGING dates in such way. Care to explain? -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re[2]: Unicode problems

2008-09-27 Thread ANR Daemon
up, but see. What you said database does not have latin1, that cant be true. Try SHOW CHARACTER SET; that should list all available charsets. Then set connection to receive your data in right encoding. SET NAMES encoding; Or, if you're using right version of PHP, simply use mysql_set_charset('encoding'); -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Don't understand what is this $arr['N']['#']

2008-09-27 Thread ANR Daemon
s not so nice there at this time > of year, though the heat is more bearable. to the bottom ! from the top to read it's easier Because -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Don't understand what is this $arr['N']['#']

2008-09-25 Thread ANR Daemon
ial meaning whatsoever. >> >> >> except in the deranged world of the original author :D > You're right. Because associative arrays are meant to make code easier to > understand by using meaningful indexes. That, actually, COULD be meaningful index. In some cases. Please don't top post any more. thank you. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] translations for PHP app

2008-09-09 Thread ANR Daemon
languages. That can be done ONLY by native speakers, who know English AND the field, to which that specific text related. As example, I can point to the EVE-online and their attempt to hire foreign company to translate game interface to Russian... That said, it was complete failure. Two times.

Re[2]: [PHP] Problem of Connection Character Sets and Collations

2008-09-09 Thread ANR Daemon
t mentioned things. I've left required info in quotation. Read it again, if you didn't understand it first time. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Length of Exception text?

2008-09-09 Thread ANR Daemon
ight > fill your logs up a bit... Good catch indeed. I was confused by the strange limit (not 1023-1024 as I expect that), so I haven't checked if this setting affecting things. And don't worry about my log :) I want it enabled for php-cli.ini only, for development purposes. On live suite, exceptions generally never breaking out to {main} scope. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Length of Exception text?

2008-09-08 Thread ANR Daemon
us >> converting PEAR_Error to Exception at least 2 lines. All-in-all, up to 15 >> lines so far, and backtrace trimmed at 6'th or 7'th line. >> Is there any way to affect this behaviour without recompiling PHP? -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re[2]: Path of the class file of an object

2008-09-06 Thread ANR Daemon
. Thanks a lot! > But still, I wish there were a way of doing that, without altering the > class behaviour. (top posting fixed) Ok, if you prefer backward solution - hook your own error-handler and cause an error in class, then you'll have path to it's file in backtrace. I mean, knowing the filename of this or that function absolutely meaningless, unless you're running into problem of some sort. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Path of the class file of an object

2008-09-06 Thread ANR Daemon
t;return __FILE__;". If all what you need is to print path to file containing class, if you accessing your object as string, you could utilize magic of __toString(). -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Sending username/password

2008-09-06 Thread ANR Daemon
o, as you said, mimicking web browsers behaviour. Including cookies handling. -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Length of Exception text?

2008-09-06 Thread ANR Daemon
l, up to 15 lines so far, and backtrace trimmed at 6'th or 7'th line. Is there any way to affect this behaviour without recompiling PHP? -- Sincerely Yours, ANR Daemon <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Sending username/password

2008-09-06 Thread ANR Daemon
t; etc. Why not just give the page a glance? >> >> http://us3.php.net/manual/en/intro.curl.php > If you don't have access to Curl, you could also look at the PEAR > HTTP_Request class. IIRC this supports HTTP Basic authentication. I'd recommend HTTP_Client in that case.