Re: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-21 Thread Daniel Egeberg
OUTLOOK! (which > does not have reply to list) where they work. And some people choose Windows of their own free will. Linux is not for everyone, and anyone who is bigoted enough to think so need to get over themselves. Trying to impose one's choice of operating system (or anything else for

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Egeberg
us many of the people who send to lists such as php-webmaster@ generally do not actually subscribe. Sending a reply privately to someone can also come in handy if you wish to comment privately on a commit. Logs/diffs are sent to mailing lists and the From header will always contain usern...@php.ne

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Egeberg
r and Hans both will get >> 2 of the exact messages. >> > > Strange I only got one, but it ma be a mail server filter I'll have to say that I've never received duplicate messages on any of the nine PHP.net mailing lists I'm subscribed to either. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Egeberg
are hitting the reply-to button instead of simply reply. Then get a better email client if yours doesn't support "reply to all" or "reply to group". It's hardly the mailing list's fault that your client doesn't support that. -- Daniel Egeberg -- PHP Ge

Re: [PHP] replying to list

2010-04-21 Thread Daniel Egeberg
uot;From" header (unless "Reply-To" is present). Reply all generally makes your client send a CC to all the other recipients as well. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] compile php 5.3.2 with php-fpm error,HELP ME

2010-04-18 Thread Daniel Egeberg
riends > > Best regards, > Sharl.Jimh.Tsin Hi, Could you possibly get a backtrace [1] and submit a PHP bug [2]? [1] http://bugs.php.net/bugs-generating-backtrace.php [2] http://bugs.php.net/report.php -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help w/ unfamiliar syntax

2010-04-11 Thread Daniel Egeberg
e.variables.variable.php It works for function and class names as well. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Top vs. Bottom Posting.

2010-03-25 Thread Daniel Egeberg
der. Sorry, that's just ridiculous. Why should we code a plugin that fixes your emails to put them in the right order when you can just do it from the start? You're even acknowledging that you're posting in the wrong order now. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Daniel Egeberg
ERR in the same > script by external commands and functions that are too hard to change. But I > don't want to break things for all other customers just to make one happier. > > Can the STDERR constands be enable somehow at compile-time for php-cgi? > > Regards > Marten You

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Daniel Egeberg
nk it's unreasonable that you commit some resources to it. I don't think anyone is *against* that PHP supports multi-threading. I think people are against having multi-threading if it will stall other development in the PHP core. It's not like you can implement it just like that. T

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Daniel Egeberg
On Tue, Mar 23, 2010 at 15:50, Jan G.B. wrote: > > > 2010/3/23 Daniel Egeberg >> >> On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote: >> > Hello, >> > >> > I found different code examples like this, which use the file handle >> >

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Daniel Egeberg
; /test.php on line 4 > > Warning:  fwrite(): supplied argument is not a valid stream resource > in /test.php on line 4 > > How can I access the original STDERR handle? The constant should be there, > but does not exist. > > regards > Marten These I/O streams are only present in the CLI SAPI. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_FILE array being truncated

2010-03-16 Thread Daniel Egeberg
across in > the POST header in wireshark, but but only the first 20 appear in the > $_FILES array. > > Has anyone come across this problem of the $_FILE array being truncated? I > don't recall changing anything on the live server. > > Richard Check out max_file_uploads which

Re: [PHP] mysqli procedural calls and manual entries ?

2010-03-15 Thread Daniel Egeberg
supports that. If you install the sqlite extension on your webserver, it should work. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Daniel Egeberg
On Thu, Mar 11, 2010 at 23:16, Daniel Egeberg wrote: > On Thu, Mar 11, 2010 at 22:57, George Langley wrote: >>        Hi all. Is there an issue with $_GET not handling a Base64-encoded >> value correctly? (PHP is 5.1.6) >>        Am receiving a Base64-encoded value: >&

Re: [PHP] $_GET is Mangling Base64 value

2010-03-11 Thread Daniel Egeberg
Joomla! page, whose > getVar() command completely removes the +, so I couldn't even do a string > replace, as I don't know where the + should have been!) > >        Tired of looking at the dark red spot on the wall! Thanks. PHP does a urldecode() on GET parameters, which r

Re: [PHP] Division by 0

2010-03-10 Thread Daniel Egeberg
ng to work. PHP_SELF does not include query string. > So it is safe to use it this way. > > Regards, > Dmitry No, it is not safe... This won't work: index.php?" onsubmit="evil()">http://www.evil.com/evi.js"</a>;> But this will: index.php/" onsubmit="evil()">http://www.evil.com/evi.js"</a>;> -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Division by 0

2010-03-10 Thread Daniel Egeberg
ollow" href="http://www.evil.com/evi.js"">http://www.evil.com/evi.js"</a>;> > > with regard to the original problem - some input validation is in order. PHP_SELF doesn't contain the query string, so your particular attack wouldn't work. It's still a security issue though. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Execution order of PHP

2010-03-10 Thread Daniel Egeberg
of view. It has to evaluate > $client->system to determine the parameter list for multiCall(). Then it > has to evaluate those parameters before it can stuff their values into > the stack so it can call the function. That's not true. It's entirely possible making language

Re: [PHP] how to capture INF return from exp()

2010-03-09 Thread Daniel Egeberg
the is_infinite() function. It's not entirely undocumented though. See http://php.net/float. Basically you'll get INF when you exceed the range according to the IEEE floating point standard. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone good with multiple SSL on Apache?

2010-03-08 Thread Daniel Egeberg
On Mon, Mar 8, 2010 at 23:21, Skip Evans wrote: > D'oh! > > ...and I suppose there is just no way around that, eh? > > Skip You can use SNI, but it's not supported by all web servers and browsers. http://en.wikipedia.org/wiki/Server_Name_Indication -- Daniel Egeberg

Re: [PHP] session.entropy_file and hostname

2010-03-03 Thread Daniel Egeberg
e and the session ID are two different things. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get the 'return type' of a function?

2010-02-23 Thread Daniel Egeberg
ion. > > Could you tell me how to retrieve the 'return type'? > Thanks. > > > -- > Dasn That's not possible. Consider this function: function foo() { switch (rand(0, 1)) { case 0: return 42; case 1: return 'bar';

Re: [PHP] $_POST vs $_REQUEST

2010-02-22 Thread Daniel Egeberg
e: http://svn.php.net/viewvc/php/php-src/tags/php_5_3_1/php.ini-production?view=markup#l671 If an attacker can do an HTTP GET request, he can most likely also do an HTTP POST request (and vice versa) and the input value will be no more (in)secure regardless of the source. Using $_GET/$_POS

Re: [PHP] Dumb Question - Casting

2010-02-18 Thread Daniel Egeberg
nite representation in base 2 (like you cannot finitely represent 1/3 in base 10). So the number 0.1 is represented in the computer as a number that is strictly less than 0.1 so when you do 0.1+0.7=x then you have x<0.8 in the computer (think 7.999...). When you cast to int you just trunca

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Daniel Egeberg
On Wed, Jan 27, 2010 at 18:13, Daniel Brown wrote: > On Wed, Jan 27, 2010 at 12:08, Daniel Egeberg wrote: >> >> There is virtually no difference nowadays. It's a long time since >> anything like that has mattered. > >    Actually, that's not true enough to be

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Daniel Egeberg
only a general rule of thumb and shouldn't be adhered to > absolutely, but I remember a thread a while back that showed the speed > differences between the two because of the extra parsing PHP does on > double quoted strings. There is virtually no difference nowadays. It's a long tim

Re: [PHP] Detecting a BOM

2010-01-13 Thread Daniel Egeberg
0, 3) == pack('CCC', 0xEF, 0xBB, 0xBF)) { // has bom } -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What server am I authenticating to?

2010-01-13 Thread Daniel Egeberg
). Exactly how you do that is up to you (hard code it, look in a database, LDAP, etc.). You then send the 401 response code along with WWW-Authenticate if the credentials aren't satisfactory. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread Daniel Egeberg
sing automated build tools like Phing, Ant or GNU Make. Either way, I wouldn't worry about the extra I/O unless you've got *a lot* of traffic. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: splitting a string

2010-01-05 Thread Daniel Egeberg
You might also just choose the longest match (in terms of number of periods). -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] splitting a string

2010-01-05 Thread Daniel Egeberg
On Tue, Jan 5, 2010 at 14:13, Ashley Sheridan wrote: > (untested - I always forget the order of the params!) As a general rule, string functions are always haystack-needle and array functions are always needle-haystack. I can't think of any exceptions to that rule. -- Daniel Egeberg

Re: [PHP] splitting a string

2010-01-05 Thread Daniel Egeberg
o for more information about that function. You could also explode() it and do something with that, or you could or use some of the other many string manipulation functions. I think pathinfo() is easiest. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the difference between the two streams 5.3 and 5.2 versions and What is the need for maintaining two streams?

2010-01-05 Thread Daniel Egeberg
On Tue, Jan 5, 2010 at 10:34, Daniel Egeberg wrote: > On Tue, Jan 5, 2010 at 02:22, Varuna Seneviratna wrote: >> Since there are two stable versions 5.3 and 5.2 .What is the difference >> between these two streams and What is the need for maintaining two streams? > > Th

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2010-01-03 Thread Daniel Egeberg
I'm sure you can appreciate the benefit of having a shared vocabulary. It's something that's going on in not just programming, but practically in every field that exists. I hope this makes some sense. It's my take on this anyway. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Instll php on Window 2003 64Bit questions

2010-01-03 Thread Daniel Egeberg
So you can download the PHP 5.3.1 VC9 non-thread-safe build from http://windows.php.net and follow the steps in http://www.php.net/manual/en/install.windows.iis6.php. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP uploaded files logs

2010-01-01 Thread Daniel Egeberg
POST data only the request. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Egeberg
that may be because I've not used a language that supports multiple inheritance (not on classes anyway). -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] Question about jsmin-php code

2009-12-29 Thread Daniel Egeberg
treams for more information about that. Why your specific script would write to STDERR, I don't know. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtotime - assumptions about default formatting of dates

2009-12-24 Thread Daniel Egeberg
us > strtotime() interprets dates according to the rules of the current timezone. The specific rules are outlined in GNU's manual: http://www.gnu.org/software/tar/manual/html_node/Date-input-formats.html -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tracking file download progress

2009-12-24 Thread Daniel Egeberg
end variable. Would it work? Oh, I see now. Sorry. I had this in my bookmarks: http://www.swfupload.org/ I don't know if it's any good, but you can check it out. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tracking file download progress

2009-12-24 Thread Daniel Egeberg
ut that doesn't mean the client has downloaded all of it. It may for instance be that the client didn't finish downloading or that it is downloading slower than you are sending. -- Daniel Egeberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking for internet connection.

2009-12-23 Thread Daniel Egeberg
On Wed, Dec 23, 2009 at 14:35, Bob McConnell wrote: > I don't keep copies of every message in any of the > dozens of mailing lists and news groups I follow, so there is no simple > way to go back through the conversation to figure out where it all came > from. Fortunately, other people keep compl