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
On Wed, Mar 24, 2010 at 14:12, Marten Lehmann wrote: > Hello, > >> dan...@daniel-laptop:~$ php test.php>  /dev/null >> Error 1 >> Error 2 >> dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php>  /dev/null >> Error 1 >> Error 2 > >

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] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Daniel P. Brown
First of all, I'll apologize for the top-post. My DROID doesn't give me the option of top or bottom. So not ready for enterprise. Secondly, I'll append to the statements made by Larry that, unless it's non-web based, there are far more layers involved before, during, and after PHP's execution. Thr

Re: [PHP] i'm curious about unit testing

2010-03-23 Thread Daniel Brown
On Tue, Mar 23, 2010 at 14:29, Rene Veerman wrote: > Hi.. > > in an effort to write better code i'd like to know good strategies for > unit testing. > automated testing of code. > > the fact that my code can undergo rapid changes has kept me back so far. This is a question that comes up now a

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] no svn checkout of the current PHP development repo?

2010-03-20 Thread Daniel Brown
On Sat, Mar 20, 2010 at 09:03, Robert P. J. Day wrote: > >  ok, i might do that.  as daniel suggested, that issue is noticeably > outside the scope of this general list. Just be prepared for what you'll encounter on Internals. I was deliberately not suggesting that list at

Re: [PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Daniel P. Brown
This starts to get out of the scope of the General list. If you think it's a bug, report it. Did you check out the latest snap? It's an hourly build from the SVN repo. (If this top-posts, my apologies. I'm sitting in the living room with my little girl, typing from my DROID.) On Mar 20, 2010 7:3

Re: [PHP] where to make observations about current PHP manual?

2010-03-19 Thread Daniel Brown
On Fri, Mar 19, 2010 at 21:04, Daniel Brown wrote: > >    Indeed.  It would probably be better to read, "Unavailable as of > PHP 6."  I'll patch that in the XML sources now, and the next time the > manual rebuilds, the changes will take effect. Future builds w

Re: [PHP] Re: where to make observations about current PHP manual?

2010-03-19 Thread Daniel Brown
On Fri, Mar 19, 2010 at 20:57, Robert P. J. Day wrote: > >  i'm not sure that addresses my post -- it doesn't make grammatical > sense to state that something is unavailable "since" something that is > yet to be officially released. In most cases, you'd be absolutely correct but PHP is a

Re: [PHP] where to make observations about current PHP manual?

2010-03-19 Thread Daniel Brown
On Fri, Mar 19, 2010 at 16:59, Robert P. J. Day wrote: > >  i don't see a separate mailing list for documentation so is this > where i would point at oddities in the manual?  as in, here: > > http://www.php.net/manual/en/language.variables.external.php > > we read: > > "// Unavailable since PHP 6.

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 Brown
On Fri, Mar 12, 2010 at 06:48, Daniel Egeberg wrote: > > Hi Per, > > The manual already supports that. If you install the sqlite extension > on your webserver, it should work. Dan; The question wasn't whether or not it supports that kind of lookup, but rather

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] mysqli procedural calls and manual entries ?

2010-03-12 Thread Daniel Brown
On Fri, Mar 12, 2010 at 02:49, Per Jessen wrote: > I run a local mirror of the PHP manual, and I most often go straight to > the "Search for" box to look up the format of a function.  With the > mysqli functions, I've found than many of them simply > aren't "available" that way.  E.g. mysqli_conne

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] Want to learn to work with Zend Framework?

2010-03-05 Thread Daniel Brown
On Fri, Mar 5, 2010 at 10:28, Ashley Sheridan wrote: > > And you get to adopt new ones if you don't like the ones you got? Yes, but you can't put any up for adoption by another family. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Look

Re: [PHP] Want to learn to work with Zend Framework?

2010-03-05 Thread Daniel Brown
On Fri, Mar 5, 2010 at 09:42, Ashley Sheridan wrote: > > How can we get a post count? :p Were you here when I was still running the weekly metrics on the list a few years ago? I still get requests to reinstate it, I just haven't had the chance. I keep meaning to enlist Richard Heyes to inco

Re: [PHP] Want to learn to work with Zend Framework?

2010-03-05 Thread Daniel Brown
Don't top-post. Even that part is in the rules when you signed up. ;-P On Fri, Mar 5, 2010 at 05:21, Jochen Schultz wrote: > Sure Zend is one of the most valuables, if not the most valuable, companies > in the PHP community. > > But if we allow ads here, we should think about selling them (

Re: [PHP] Want to learn to work with Zend Framework?

2010-03-05 Thread Daniel Brown
On Fri, Mar 5, 2010 at 04:29, Jochen Schultz wrote: >>  and not drugs, money or sex! > > So everyone should post their ads here, which are related to PHP? > > I think not. Well, good thing you're nowhere near being close to having a say in that, eh? ;-P First of all, this is the General

Re: [PHP] Want to learn to work with Zend Framework?

2010-03-04 Thread Daniel Brown
On Thu, Mar 4, 2010 at 14:59, mrfroasty wrote: > Looks expensive, definately NO Then do not reply. It was an offer to the community at large, not just you and the other top-poster. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/

Re: [PHP] Replacing accented characters

2010-03-04 Thread Daniel Brown
On Thu, Mar 4, 2010 at 12:57, Skip Evans wrote: > Hey all, > > Does anyone have a function that replaces accented characters > with the non-accent equals? This one by Sven on 21-APR-2005: "Ae", "\xC6"=>"AE", "\xD6"=>"Oe", "\xDC"=>"Ue", "\xDE"=>"TH", "\xDF"=>"ss", "\xE4"=>"ae", "\xE6"=>"ae",

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] PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST

2010-02-23 Thread Daniel Brown
On Tue, Feb 23, 2010 at 12:10, William C. Schnute wrote: > PLEASE, PLEASE, PLEASE - HELP ME GET OFF THIS LIST --- YOU PEOPLE ARE > DRIVING ME CRAZY1 Good. > Please unsubscribe: m...@honeyflowfarm.com, > wschn...@mail.honeyflowfarm.com  or anyone else @honeyflowfarm.c

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] Re: UK Project Opportunity

2010-02-17 Thread Daniel Brown
On Wed, Feb 17, 2010 at 16:23, Manuel Lemos wrote: > > What about you? How many times have you shared your Open Source code? HA! That's hilarious that you would say that to *me.* I actually laughed out loud. I'll probably do it a few more times before the day is out. Well, Manuel, you

Re: [PHP] Re: UK Project Opportunity

2010-02-17 Thread Daniel Brown
Normally I would just stay out of a public thread on such a subject, but Rixham and I had a discussion about the site prior to his posting here, and I may as well make my point known My problem - and indeed, it is a problem - is not with the design, usability, or lack thereof. It's al

Re: [PHP] Re: how do I use php://memory?

2010-01-30 Thread Daniel Brown
On Sat, Jan 30, 2010 at 12:18, Shawn McKenzie wrote: > > Done.  Thanks Dan.  http://bugs.php.net/bug.php?id=50886 Thank you, sir. I thanked you on Facebook when I saw the report come in, but wanted to thank you properly here as well. -- daniel.br...@parasane.net || danbr...@php.net http:/

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Daniel P. Brown
(Typing from the DROID, so forgive the top-posting.) Shawn, would you take a few moments to submit this as a bug at http://bugs.php.net/? I know you well enough that, if you say the docs suck, they probably do. On Jan 29, 2010 10:47 PM, "Shawn McKenzie" wrote: Eric Lee wrote: > On Sat, Jan 30,

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

2010-01-27 Thread Daniel Brown
On Wed, Jan 27, 2010 at 12:27, Ashley Sheridan wrote: > > Depends I guess on how far you need to optimise the code. I'd imagine that to > something like Facebook, every split-second of optimisation is worth it, as > even a 100th of a second becomes minutes of wasted time over the course of a >

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

2010-01-27 Thread Daniel Brown
On Wed, Jan 27, 2010 at 12:26, Daniel Egeberg wrote: > > Well, I would still say it's far too insignificant to bother with. And for the most part, you'd be right but it still isn't good practice to *not* teach something strictly because it's not entirely sig

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 Brown
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 dismissive. It depends on several factors. -- daniel.br...@parasane.net

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] If the first four characters are "0000", then do {} - timing tests

2010-01-27 Thread Daniel Brown
On Tue, Jan 26, 2010 at 19:48, Daevid Vincent wrote: > > Another thing I just noticed, is that we (that is Dan and I) should NOT > have used count() > This is bad form and wasted cycles. This is certainly correct, but it should also be noted that my original code used it once (thus, it was in

Re: [PHP] If the first four characters are "0000", then do {} - timing tests

2010-01-26 Thread Daniel Brown
On Tue, Jan 26, 2010 at 17:17, Daevid Vincent wrote: > > Well allow me to retort... :) > > Your test was for 5 measly array elements. > > Just for S&G I tried it with the strpos one too and modified your test > slightly to handle bigger arrays... > [snip=code] > > I ran out of memory with more tha

Re: [PHP] If the first four characters are "0000", then do {}

2010-01-26 Thread Daniel Brown
On Mon, Jan 25, 2010 at 22:51, Daevid Vincent wrote: >> -Original Message- >> From: paras...@gmail.com [mailto:paras...@gmail.com] On >> Behalf Of Daniel Brown >> Sent: Monday, January 25, 2010 6:43 PM >> To: John Taylor-Johnston >> Cc: PHP-General >

Re: [PHP] If the first four characters are "0000", then do {}

2010-01-25 Thread Daniel Brown
On Mon, Jan 25, 2010 at 21:36, John Taylor-Johnston wrote: > I am reading the manual: http://ca.php.net/manual/en/ref.strings.php > > $mydata->restored = "-00-00"; -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Looking for hosting or

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] test

2010-01-11 Thread Daniel Brown
On Mon, Jan 11, 2010 at 15:52, LAMP wrote: > I tried again and got this error message: > > Hi. This is the qmail-send program at outbound-mail-319.bluehost.com. > I'm afraid I wasn't able to deliver your message to the following addresses. > This is a permanent error; I've given up. Sorry it didn'

Re: [PHP] I am not receiving any e-mail from the list...

2010-01-11 Thread Daniel Brown
On Mon, Jan 11, 2010 at 10:10, Richard wrote: > > I had this (I think) recently; mail simply stopped coming from the > list and I can't remember unsubscribing (though that's not saying > much...). I simply re-subscribed and all was dandy again. Quite possibly caused by malformed headers or SP

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: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Daniel Kolbo
Daevid Vincent wrote: > > >> -Original Message- >> From: Al [mailto:n...@ridersite.org] >> Sent: Wednesday, January 06, 2010 5:09 PM >> To: php-general@lists.php.net >> Subject: [PHP] Re: PHP programming strategy; lots of little >> include files, or a few big ones? >> >> >> >> On 1/6/2

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 Kolbo
Daniel Egeberg wrote: > On Wed, Dec 30, 2009 at 01:24, Daniel Kolbo wrote: >> This way multiple inheritance is available for those that legitimately need >> it [...] > > Could you by any chance provide an example where multiple inheritance > would be required? To be h

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Egeberg
On Wed, Dec 30, 2009 at 01:24, Daniel Kolbo wrote: > This way multiple inheritance is available for those that legitimately need > it [...] Could you by any chance provide an example where multiple inheritance would be required? To be honest, I've never really seen a use for it, but

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-29 Thread Daniel Kolbo
Larry Garfield wrote: > On Monday 28 December 2009 9:45:03 pm Daniel Kolbo wrote: >> Hello, >> >> Okay so PHP designers explicitly decided against multiple inheritances, >> but aren't there legitimate needs for multiple inheritance in OOP? >> >> For exam

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

[PHP] Multiple Inheritance Needed in OOP?

2009-12-28 Thread Daniel Kolbo
Hello, Okay so PHP designers explicitly decided against multiple inheritances, but aren't there legitimate needs for multiple inheritance in OOP? For example, consider the following three classes (A,B,C) with the following properties (a number is a distinct property or method). A: 1, 2, 3 B: 1,

[PHP] Re: Classes and Functions

2009-12-28 Thread Daniel Kolbo
Nathan Rixham wrote: > Daniel Kolbo wrote: >> Hello, >> >> Is there a way to see what objects and functions a script >> loaded/required/used? >> >> I could recursively loop through the globals, but if objects were unset, >> then i may miss some. >

[PHP] Re: Noob stuff - Zend/Opcode/Cache/Optimizer

2009-12-27 Thread Daniel Kolbo
Shawn McKenzie wrote: > Daniel Kolbo wrote: >> Hello, >> >> I'm missing some unifying piece of the zend/php puzzle... >> >> I understand the basics of zend engine opcode, caching the opcode, >> optimizing the opcode, and caching the optimized opcode,

[PHP] Noob stuff - Zend/Opcode/Cache/Optimizer

2009-12-26 Thread Daniel Kolbo
Hello, I'm missing some unifying piece of the zend/php puzzle... I understand the basics of zend engine opcode, caching the opcode, optimizing the opcode, and caching the optimized opcode, etc... The part I'm struggling with is somewhere in the zend world. Under a typical php install where doe

Re: [PHP] Multiple Inheritance Concern

2009-12-26 Thread Daniel Kolbo
Larry Garfield wrote: > On Friday 25 December 2009 8:02:06 pm Daniel Kolbo wrote: >> Hello PHPers, >> >> I've learned that php doesn't support multiple inheritance, b/c if you >> need multiple inheritance usually it is a sign you've got a design >>

Re: [PHP] Multiple Inheritance Concern

2009-12-25 Thread Daniel Kolbo
Daniel Kolbo wrote: > Hello PHPers, > > I've learned that php doesn't support multiple inheritance, b/c if you > need multiple inheritance usually it is a sign you've got a design > imperfection...or so they say. > > Well, I'm using a framework

[PHP] Multiple Inheritance Concern

2009-12-25 Thread Daniel Kolbo
Hello PHPers, I've learned that php doesn't support multiple inheritance, b/c if you need multiple inheritance usually it is a sign you've got a design imperfection...or so they say. Well, I'm using a framework (Codeigniter), and i'm extending the core libraries. The trouble is, I want to also e

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

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Daniel Brown
On Sat, Dec 19, 2009 at 19:13, Angus Mann wrote: > Hi all. > > I'w writing a PHP app that is designed to run over a LAN, so internet > connection for the server is not really essential. Some users may > deliberately not connect it to the internet as a security precaution. > > But I'd like the app

Re: [PHP] efficiency of include()

2009-12-20 Thread Daniel Kolbo
Larry Garfield wrote: > On Sunday 20 December 2009 10:45:45 am Daniel Kolbo wrote: >> Hello PHPers, >> >> This is a two part question: >> >> 1) Is it faster to include one file with lots of code, or many separate >> smaller individual files? As

[PHP] efficiency of include()

2009-12-20 Thread Daniel Kolbo
Hello PHPers, This is a two part question: 1) Is it faster to include one file with lots of code, or many separate smaller individual files? Assume the one massive file is merely the concatenation of all the smaller individual files. (I am assuming the one massive file would be faster..., but i

[PHP] OOP Design Question

2009-12-20 Thread Daniel Kolbo
Hello PHPers, I have a collection of about 60 objects (class definitions). They are all very similar. They all share a substantial % of the same core. But they all have slight variations as well. The approach I took was to make an abstract core class, and each of the 60 objects extends that co

Re: [PHP] Open source project management tool - PHP

2009-12-17 Thread Daniel González
gt; > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > Devendra Jadhav > देवेंद्र जाधव > -- - Daniel González Cerviño FreelanceMadrid.es Mail : daniel.gonza...@freelancemadrid.es Tel (+34) 653 96 50 48 -

Re: [PHP] Best way to read first 20 characters of a string?

2009-12-02 Thread Daniel Brown
On Wed, Dec 2, 2009 at 10:11, Chris Payne wrote: > Hi everyone, > > I'm pulling data from a mysql database, but need only the first 20 > characters of each string for a short description, what is the best > method to just grab the first 20 characters from a string regardless > of whether they are

[PHP] PHP internal memory

2009-11-27 Thread Daniel Kolbo
Hello PHP-hipsters, I am not sure how to phrase these questions so please bare with me. I am thinking about performance of a single web server running Apache (non-cluster) with php as a module. I have a web app that requires the same php objects(classes) for each http request. First, I would li

[PHP] Classes and Functions

2009-11-01 Thread Daniel Kolbo
a function def) to add that file to the tracking object...but it would be nice if i didn't have to modify my existing code to see which objects and functions a script actually used, or at least, requested and loaded into memory. Thanks in advance, Daniel Kolbo ` -- PHP General Mai

Re: [PHP] Two Parser Passes

2009-10-31 Thread Daniel Kolbo
Steve wrote: > Daniel Kolbo wrote: >> Hello, >> >> Is it possible to get a list (array) of classes not found in a script >> before the fatal error exits the parser. I realize that PHP parses the >> script twice. It would be nice at the end of the first pars

[PHP] Two Parser Passes

2009-10-31 Thread Daniel Kolbo
Hello, Is it possible to get a list (array) of classes not found in a script before the fatal error exits the parser. I realize that PHP parses the script twice. It would be nice at the end of the first parsing pass to check to see which classes haven't been defined (yet), so that I could define

[PHP] Web Service Server in PHP

2009-10-21 Thread Daniel Echalar
Hi, Does anybody knows a web services server based on PHP? The only one a see is Nusoap, but even for this one i can't find the webpage to see the documentation. by the way, i'm trying to develop an application using web services in PHP, any start point suggestion will be appreciated. thanks fo

[PHP] Re: JM.PHP.NET

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 14:56, Dan Papakonstantino wrote: > Hello Dan, > > Sorry for the misunderstanding however, we are web developers as well as > hardware and software developers. You may have overlooked our web based > timesheet application called SonicWeb. Please review the following link o

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 14:46, Israel Ekpo wrote: > > Speaking of starting a conversation, what do you think about the "goto" > construct introduced just recently? Better yet: what do you all think of folks hijacking threads? -- daniel.br...@parasane.net || danbr...@php.net http://www.paras

Re: [PHP] PHPNW09

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 11:34, David Otton wrote: > Is anyone from the list heading to PHPNW this weekend? Coincidentally, the PHPNW UG meeting is listed for tomorrow, but I have no listing for a conference this weekend. If you're in contact with any of those folks, Dave, you can ask them to

Re: [PHP] PHPNW09

2009-10-06 Thread Daniel Brown
On Tue, Oct 6, 2009 at 11:34, Ashley Sheridan wrote: > > No, it is a little far out for me. Is there something similar in > Londinium? Best way to keep informed is through php.net. Don't make our efforts be in vain! ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane

Re: [PHP] strtotime strangeness

2009-10-05 Thread Daniel Brown
On Mon, Oct 5, 2009 at 12:15, Jim Lucas wrote: > > You stated that you are running PHP 5.2.10 , too bad the function recommend > (locale_get_default()) is only available in PHP 5.3 or newer. That's my fault entirely, not Floyd's. I didn't look to see what version of PHP he was running. --

Re: [PHP] strtotime strangeness

2009-10-05 Thread Daniel Brown
On Sun, Oct 4, 2009 at 17:00, Floyd Resler wrote: > Sorry to hear that!  I live in Cincinnati so I normally don't get to watch > the Colts play when they are on at the same time as the Bengals.  But this > week I did and, best of all, they won! Yeah, well, the Browns sure didn't, so bite me.

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread Daniel Brown
On Sat, Oct 3, 2009 at 10:49, tedd wrote: > > That's absolutely true. > > The problem here is in the statement of: > > $num = $num++; Yeah, I understood Daevid's email a bit better *after* I sent mine. Then I was hoping no one noticed. -- daniel.br...@parasane.net || danbr...@php.net http

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-02 Thread Daniel Brown
On Fri, Oct 2, 2009 at 17:42, Daniel Brown wrote: > >     but rather by something just slightly more advanced: > > $num = file_get_contents('visitcount.txt'); > if(isset($_GET['countme'])) { >    echo "You are visitor #".++$num."\n&q

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-02 Thread Daniel Brown
On Fri, Oct 2, 2009 at 17:28, Daevid Vincent wrote: > > Personally I've never (in almost 20 years) done an assignment like "$foo = > $foo++" as I always use just "$foo++" or "$foo += 1" or something, hence the > reason today is the day a co-worker stumbled upon this and was as confused > as I was

Re: [PHP] POST without POSTing

2009-10-01 Thread Daniel Brown
On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > Okay, I've figured out how to shove the data through cURL to the > receiving URL, but then it occurred to me that the client browser must > go there *as well*. > > Will curl_exec() do that on its own, or is there a parameter I need to > feed i

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > fsockopen() appears to be part of the standard network functions in PHP, > like the header() function. Do you mean that many hosts support the > function (as part of PHP) but don't support its use with external hosts? > Is there a way to deter

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > However, assuming it *wasn't*, I've found the following example from a > google search (thank goodness for google's "hinting" or I couldn't have > found it): > > $fp = fsockopen("www.site.com", 80); > fputs($fp, "POST /script.php HTTP/1.0 > Ho

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > I'm not sure how to do this. Please no exotic external libraries my > shared hosting provider doesn't include. RTFM will be fine; just tell me > which Fine Manual to Read. Nothing too exotic at all, Paul. Check out cURL: http://php

Re: [PHP] Converting print_r() output to an array

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:07, James Colannino wrote: > Hey everyone, I was pretty sure there was an easy built-in solution for > what I want to do, but I've been googling around with no luck. > Basically, I just want to take a string containing the output of > print_r() and convert it back into a

<    3   4   5   6   7   8   9   10   11   12   >