Re: [PHP] Include images in php file

2007-06-28 Thread Larry Garfield
ar the best solution i just came up with is to have two files - one > would be an image with all the icons and i could use css to display the > right icon. > > Marek -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made

Re: [PHP] Re: PHP Brain Teasers

2007-07-04 Thread Larry Garfield
On Wednesday 04 July 2007, tedd wrote: > Try this: > > -(4 * 20 + 7) > > tedd "Four score and seven years ago..." Thanks Abe. :-) Try this one: foreach ($actions as $action) { $actions[] = -$action; } This is fun. :-) -- Larry Garfield AIM

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-04 Thread Larry Garfield
uot;Tricks/hacks", something to show off and do not represent a > solution to actually make PHP a language that can solve real world > problems. > > I'll keep it in my toolbox for the simple, quick way to get something to > the inter/intranet but other than that it's not ever goi

Re: [PHP] ob_start <> eval?

2007-07-05 Thread Larry Garfield
t_contents(); > ob_clean(); > return $template; > > But this returns the template it's it's raw for with all of tha > tags. Can I fill these in and still pass as another var > without using eval()? > > What do other template systems to do return a template as a s

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Larry Garfield
rms and the twisted minds of stock brokers. Illegal? Yes. Stealing? No. Remember, copyright is a government-granted artificial monopoly intended to "promote the progress of Science and the Useful Arts". There's no relation to physical property and theft at all. -- Larry

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Larry Garfield
opyright infringement. I am objecting to a mis-framing of the argument along lines that are simply wrong. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is t

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
On Tuesday 17 July 2007, tedd wrote: > At 7:57 PM -0500 7/16/07, Larry Garfield wrote: > >I am not going to defend copyright infringement, but theft is depriving > >someone of something they used to have and no longer have. > > Time. > > An author spends his time writin

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
On Tuesday 17 July 2007, tedd wrote: > At 9:26 AM -0500 7/17/07, Larry Garfield wrote: > >On Tuesday 17 July 2007, tedd wrote: > >Once I have written code or words, the time I have spent on that is gone. > > I will never get that time back, regardless of whether or not I get

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
oncept. I can imagine > anyone arguing about it. No, you're infringing copyright. It's a pretty simple and obvious distinction. I can't imagine anyone arguing the point. (And it's getting your work without your permission; I routinely give away my work and don't ask for

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
ed, most day jobs have a significant lag between time > spent and pay check. > > Perhaps your day job should stop paying you, because after you've > spent that time, you'll never get it back? Is this "make up things that Larry said" day? It must be, because I kno

Re: [PHP] simplexml_load_string();

2007-07-18 Thread Larry Garfield
directly to SimpleXML. SimpleXML uses language features that don't exist in PHP 4. The best answer is to use PHP 5 and let PHP 4 die a respectable death, as most of the world seems to have decided to do[1]. [1] http://gophp5.org/ -- Larry Garfield AIM: LOLG42

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Larry Garfield
pyright infringement "theft"? Of course not, but it's still illegal. Copyright infringement is no more "theft" than walking against the light is "speeding". > I, for one, just call theft what it is. And everything else that is illegal too, apparently, regardle

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Larry Garfield
it. First "Hitler and the Nazis"[1] reference. You lose! Thanks for playing. :-) [1] http://en.wikipedia.org/wiki/Godwin's_Law -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible tha

Re: [PHP] Re: Pirate PHP books online?

2007-07-19 Thread Larry Garfield
, copyright law is on-topic, even if not code-related. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, whic

Re: [PHP] Pirate PHP books online?

2007-07-19 Thread Larry Garfield
publishers) object to that because they're the middle-men being cut out, and that's how you get exclusivity contracts, DRM, and similar anti-artist and anti-consumer bad things. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "I

Re: [PHP] Symfony versus CakePHP?

2007-07-20 Thread Larry Garfield
> seem to try to obtain the same goals with their project, however Symfony > has text written about it, etc. > > Anyway, thank you for any insight. > > - sf -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any o

Re: [PHP] PHP Performance and System Load

2007-07-20 Thread Larry Garfield
can. Odds are, though, that your PHP code itself is not the bottleneck but the server configuration, SQL server, HTTP traffic, etc. are where you're really dying. Cheers. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has ma

Re: [PHP] Re: Pirate PHP books online?

2007-07-21 Thread Larry Garfield
On Friday 20 July 2007, Richard Lynch wrote: > >> Perhaps your day job should stop paying you, because after you've > >> spent that time, you'll never get it back? > > > > Is this "make up things that Larry said" day? It must be, because I &g

Re: [PHP] Re: Pirate PHP books online?

2007-07-21 Thread Larry Garfield
would still have performances, as they have for hundreds of years and as they do now. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is th

Re: [PHP] Symfony versus CakePHP?

2007-07-21 Thread Larry Garfield
July 2007, AmirBehzad Eslami wrote: > What is difference between Zend Framwork and other frameworks like > CakePHP? I'm trying to develop a sample blog for educational > purposes in Zend Framwork, but some times I feel that I'm learning > a new language or a new programming paradigm. &g

Re: [PHP] RecursiveArrayIterator

2007-07-23 Thread Larry Garfield
owever, using a foreach on an > SPL iterator object implicitly calls the inner iterator giving us all the > SPL goodness in memory savings. Isn't that what garbage collection is for? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If n

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Larry Garfield
about PHP. ;-) So when does "Rasmus Lerdorf and the Deathly Hallows" open in theaters? :-) I'd so go see that opening weekend... -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than

Re: [PHP] Creating a text file

2007-07-23 Thread Larry Garfield
I sure as heck don't expect that code > to be used. It'll work, but it's well, it's ugly. "I sure has heck don't expect that code to be used". That's been said about every Access "database" in the world, I wager. Then they get into

Re: [PHP] Strategy when working with designer(s)?

2007-07-23 Thread Larry Garfield
t sees it, or you're screwed. It's never too early to get the programmer involved in the project, even if no coding happens until far later. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less suscept

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Larry Garfield
On Monday 23 July 2007, tedd wrote: > At 4:21 PM +0100 7/23/07, Richard Davey wrote: > >Hi Crayon, > > > >Monday, July 23, 2007, 4:09:57 PM, you wrote: > >> On Monday 23 July 2007 22:26, Larry Garfield wrote: > >>> So when does "Rasmus Lerdorf

Re: [PHP] Strategy when working with designer(s)?

2007-07-24 Thread Larry Garfield
cked up is logically impossible, here's how I was able to do it, you get to redesign it now", the developer, designer, and PM are all made miserable, too.) Not that I am speaking from personal experience of course, no, not at all... -- Larry Garfield AIM: LOLG42 [EMA

Re: [PHP] Pirate PHP books online?

2007-07-24 Thread Larry Garfield
; Cheers, > > tedd Yay, congrats! -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an indi

Re: [PHP] Re: DOM

2007-07-26 Thread Larry Garfield
more than PHP is just a specialized HTML. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which a

Re: [PHP] DOM

2007-07-26 Thread Larry Garfield
in pretty much any version of Firefox, but is a very different animal from HTML. http://www.xulplanet.com/ -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive

Re: [PHP] Pirate PHP books online?

2007-07-27 Thread Larry Garfield
duals, to whom the > > loss > > of income usually does make a difference. > > Piracy does not hurt the big boys in the least bit. > > They simply jack up the price for honest folk. > > You're only stealing, yes, Larry, actual money :-), from hard-working > in

Re: [PHP] Re: Pirate PHP books online?

2007-07-28 Thread Larry Garfield
On Saturday 28 July 2007, Dotan Cohen wrote: > On 28/07/07, tedd <[EMAIL PROTECTED]> wrote: > > >On 28/07/07, Larry Garfield <[EMAIL PROTECTED]> wrote: > > >> If "indirectly affecting the market so that prices change" counts > > >>as

Re: [PHP] Rules of Engagement

2007-07-28 Thread Larry Garfield
itten in the early 90s. I'd love to not get double copies of every bloody reply to every thread I'm involved in. It's just a waste of electrons and of my time. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made an

Re: [PHP] Re: Pirate PHP books online?

2007-07-29 Thread Larry Garfield
On Sunday 29 July 2007, Dotan Cohen wrote: > On 29/07/07, Larry Garfield <[EMAIL PROTECTED]> wrote: > > 1) Something can be illegal without it being theft. The idea that "if > > it's not theft then it must be OK" is the bullshit argument that I am > > po

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Larry Garfield
On Monday 30 July 2007, David Powers wrote: > Larry Garfield wrote: > > copyright infringement is NOT "taking something > > without paying for it". Copyright infringement is duplicating "an > > expression of an idea that is fixed in a medium" without t

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Larry Garfield
tive Commons > > folks, the FSF, many open source developers, and many others -- believe > > the current system of copyright law to be fundamentally flawed. > And, I doubt that the organizations you site actually agree with you. I have personally spoken to both Larry Lessig (Creative

Re: [PHP] Includes eating up my time

2007-07-31 Thread Larry Garfield
do so if it can, and if it can't only then finish loading the rest of the system. That way you skip most of the loading process on cached requests. - Some combination of the above. I'd do the op code cache last, as that's a sure-fire easy win while the others take effort. So do tho

Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Larry Garfield
On Tuesday 31 July 2007, tedd wrote: > At 7:28 PM -0500 7/30/07, Larry Garfield wrote: > >On Monday 30 July 2007, tedd wrote: > > > What about descendants of the author? When anyone dies, their > >> > >> descendants have a rightful claim on their parent'

Re: [PHP] Re: Object reference into variable?

2007-08-07 Thread Larry Garfield
$myobject; > > (or I tried this too: > > $tempobject = &$myobject) > > > > None of them worked, like I cannot access methods in the object: > > $tempobject->Foo() > > gives me an error: calling to method on a non-object variable. > &

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Larry Garfield
ut that is output immediately back to them for illicit purposes? Then it's a security hole. Given how clever the Bad Guys are, paranoia is a virtue when talking about online security. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "

Re: [PHP] PHP Books - A poll of sorts

2007-08-12 Thread Larry Garfield
pyright infringement v. theft.) > Or do you rely on other sources like this list, articles, etc to derive > your own set of practices? Thanks for indulging me. > > Thanks > > Jay -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If

Re: [PHP] Strip numerical indices from array

2007-08-12 Thread Larry Garfield
y strip off the numerical index, leaving only the > associative key names? > > -- > Dave M G -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-26 Thread Larry Garfield
re a javascript method that you could use to accomplish the > same thing? Either that, or on the first click, you could disable that > button. That would be the Javascript method to accomplish the same thing. :-) It's probably more efficient than a PHP-based solution, modulo the usua

Re: [PHP] If statement question

2006-06-26 Thread Larry Garfield
ecuted if $number = 0 ? > > If ($number == 1) { > mysql_query($blah) > } Nope. That's the definition of an if statement (conditional), in any language. If the text fails, the contents of the block never happen. -- Larry Garfield AIM: LOLG42 [EMAIL PROTEC

Re: [PHP] Multiple "if()" statements

2006-06-29 Thread Larry Garfield
> -snip- if/elseif -snip- > > > > > Whenever you need a elseif, then it's time to consider a switch -- like > thus: switch is fine if your elseif comparisons are equality based. If they're not equality based, then they don't map to switch as well. -- Larry Garfi

Re: [PHP] creating a threaded message system--sorting messages

2006-06-29 Thread Larry Garfield
hink. We were just discussing it, and I showed some basic code examples. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power calle

Re: [PHP] creating a threaded message system--sorting messages

2006-06-30 Thread Larry Garfield
On Friday 30 June 2006 07:19, Ben Liu wrote: > Hi Larry, > I've looked through the posts on the PHP general list going back > about 3-6 weeks and can't find the thread you speak of. I searched by > your name assuming that you posted into the thread and searched by > t

Re: [PHP] global class instance

2006-07-01 Thread Larry Garfield
nction that is a > method of another class. > > class b > { >function print() >{ > $a->print(); >} > } > > i don't want to: >- declare global $foo, >- use pre-defined $GLOBALS variable, >- or use a::print > > thanks.

Re: [PHP] global class instance

2006-07-01 Thread Larry Garfield
You can simulate singletons in PHP 4 as well. But you've just eliminated every option for accessing a non-local object inside a function. You've got 4 options. Pick one, but I'm fairly certain there is no magical 5th. :-) On Saturday 01 July 2006 13:02, sempsteen wrote: >

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-10 Thread Larry Garfield
t has some Drupal-isms in it, but for the most part is fairly clear. It also handles insert, update, and delete, too. [1] http://drupal.org/node/30334 -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less su

Re: [PHP] GD to database directly

2006-07-10 Thread Larry Garfield
be a performance hit over just passing a normal file that can be streamed right off the disk to the server's NIC. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of excl

Re: [PHP] possible IE problem

2006-07-10 Thread Larry Garfield
gt; exit; > > Thanks! > > -- > Kind Regards > Schalk Neethling > Web Developer.Designer.Programmer.President > Volume4.Business.Solution.Developers -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than al

Re: [PHP] Enterprise grade CMS+Ecomm

2006-07-20 Thread Larry Garfield
isting modules. Drupal's main disadvantage: There's a metric fuckton of modules and just as many ways to combine them. The "don't code, just configure" option is not always easy to figure out because it's just so flexible. (Disclaimer: I am a Drupal developer, a

Re: [PHP] Re: SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Larry Garfield
= mysql_num_fields($result); for($i=0; $i < $num_fields; $i++) { echo "", mysql_field_name($result, $i), ""; } echo ""; while ( $row = mysql_fetch_row($result) ) { echo "" . implode("", $row) . ""; } echo ""; The above should wo

Re: [PHP] xml v php question

2006-07-24 Thread Larry Garfield
ve > the header. > > Is this problem solvable? I've been told that better minds have > already tried and failed to resolve this issue. > > So, what say you group? > > Thanks in advance for any replies, comments, explanations, or solutions. > > tedd > -- &g

Re: [PHP] xml v php question

2006-07-25 Thread Larry Garfield
On Tue, July 25, 2006 3:15 pm, Kevin Waterson said: > This one time, at band camp, Larry Garfield <[EMAIL PROTECTED]> > wrote: > >> The correct answer is (b). (PHP 6 won't even have short tags, so get >> used to >> not having them.) > > ummm, I thin

Re: [PHP] Return Values Copied? Copied if By Reference?

2006-07-26 Thread Larry Garfield
and so copies are essentially shared until such > time as you modify one of them. If you don't need references then copies > are faster than references. By the same token, then, if I have a function that generates a large string and returns it, is there any benefit to return-by-reference?

Re: [PHP] Saving a dynamic file

2006-07-29 Thread Larry Garfield
ed in this e-mail are those of the author of the message and do not > necessarily coincide with those of Radiomovil Dipsa, S.A. de C.V. or any of > its control, controlled, affiliates and subsidiaries companies. No part of > this message or attachments may be used or reproduced in any manne

Re: [PHP] Mixing sprintf and mysql_real_escape_string

2006-08-08 Thread Larry Garfield
SQL's locale settings and various other rules, including escaping quotes as appropriate. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Larry Garfield
icitly where things end, so the browser doesn't have to guess. When doing anything interesting with CSS or Javascript, knowing explicitly exactly where your DOM tree breaks down is critical. It also means that whenever you do start sending XHTML as XHTML, you're 90% done with

Re: [PHP] Easier way to get the name of a variable?

2006-08-15 Thread Larry Garfield
ack of where that thread ended, so apologies if this is a > non-issue. Gah! Please tell me you're joking. That would kill one of PHP's best features, the fact that you can have dynamic data structures. PHP != Java!!! -- Larry Garfield AIM: LOLG42 [EMAIL PROTECT

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Larry Garfield
z in which case the hint and solution can be condusive > to further learning. > > As you say though, if it were a test, I'd use Ajax and register the show > hint/solution request. Probably incurring full point loss for show > solution and partial point loss for s

Re: [PHP] Shopping cart

2006-08-19 Thread Larry Garfield
interface lies between the chair and the keyboard. > - Creativity is great, but plagiarism is faster! > - Smile, everyone loves a moron. :-) > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around >

Re: [PHP] Shopping cart

2006-08-20 Thread Larry Garfield
On Sunday 20 August 2006 20:17, Gerry D wrote: > On 8/19/06, Larry Garfield <[EMAIL PROTECTED]> wrote: > > OSCommerce is crap. Don't bother. > > Why do you say that, Larry? I may want to get into an app like that > because I think one of my clients is ready for it.

Re: [PHP] Recommendations for PHP debuggers?

2006-08-21 Thread Larry Garfield
ving > very friendly and responsive support staff. But I would have much rather > not needed to use their support so much. > > But I'd rather that then have to have to build my own set of error > handlers, which would themselves need constant tweaking, especially as > I'

Re: [PHP] Shopping cart

2006-08-21 Thread Larry Garfield
w not to write a PHP application, of any kind. On Monday 21 August 2006 15:18, Gerry D wrote: > So if I understand you gentlemen correctly, these pre-builds serve as > examples how NOT to do it? > > Gerry > > On 8/20/06, Larry Garfield <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-21 Thread Larry Garfield
On Monday 21 August 2006 09:52, Colin Guthrie wrote: > Larry Garfield wrote: > > I'm watching this thread closely myself, as I'd love something to use at > > home (on Linux) that doesn't cost what Zend does. :-) Currently I use > > PHPeclipse, but it is frankl

Re: [PHP] Recommendations for PHP debuggers?

2006-08-22 Thread Larry Garfield
On Tuesday 22 August 2006 00:26, Lester Caine wrote: > Larry Garfield wrote: > > I'm watching this thread closely myself, as I'd love something to use at > > home (on Linux) that doesn't cost what Zend does. :-) Currently I use > > PHPeclipse, but it is frankl

Re: [PHP] functions classes

2006-08-25 Thread Larry Garfield
ll be hell to fix because of the way it's built. Most code probably isn't quite that bad, though. Your code could already break down into functions quite nicely, or it could be easier to just start from scratch. No way to tell without seeing the code. -- Larry Garfield

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-26 Thread Larry Garfield
On Tuesday 22 August 2006 03:33, Colin Guthrie wrote: > Larry Garfield wrote: > >> http://www.zend.com/phpide/ > > > > I just tried to install the modular version for my existing Eclipse > > install. It insists it won't install without feaure org.eclipse.emf

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-26 Thread Larry Garfield
ough I'm extremely upset at projects being removed in 3.5. Apparently there's now a plugin for it to add projects back in, but it's only available as source. As far as I'm concerned, if it requires a compiler to install then it's not actually released and doesn't

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Larry Garfield
akes to connect to your SQL database in the first place will be an order of magnitude larger than whatever it is you're doing anyway. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible tha

[PHP] Strange server crash problem

2006-09-07 Thread Larry Garfield
ve direct access to the box, so I can't check server logs myself. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power calle

[PHP] IE session problem on one server only

2006-09-07 Thread Larry Garfield
not the other now. If it were the other way around I wouldn't care, but the live site shouldn't break. :-) Any idea what could be the problem? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less s

Re: [PHP] Strange server crash problem

2006-09-07 Thread Larry Garfield
#x27;s always at the end of a given loop iteration in the code that generates the sidebar; at the end of the loop that passes the 4 KB mark, it seems. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less suscep

Re: [PHP] Directory Structure

2006-09-07 Thread Larry Garfield
me to fix this. The following may prove useful: http://us2.php.net/scandir http://us2.php.net/manual/en/function.readdir.php http://us2.php.net/manual/en/class.dir.php http://us2.php.net/manual/en/spl (for very new PHP 5) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED]

Re: [PHP] Strange server crash problem

2006-09-08 Thread Larry Garfield
On Friday 08 September 2006 01:22, Robert Cummings wrote: > > > Binary search using error_log() and __LINE__ output to track down where > > > the thing dies. > > > > Binary search? I must be using a different definition than you are, > > since I don't know what a binary search would do for me whe

Re: [PHP] Re: IE session problem on one server only

2006-09-09 Thread Larry Garfield
site. We get the same symptoms from multiple systems.  I get it on my work desktop, and on the client's desktop in another city. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than al

Re: [PHP] register globals on

2006-09-12 Thread Larry Garfield
is so paranoid that they're blocking on-site session cookies then they shouldn't be allowed to use a web browser in the first place. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible t

Re: [PHP] Months between two dates

2006-09-15 Thread Larry Garfield
them. > I was wondering if there was a quick and dirty way to do this without a for > loop. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is

Re: [PHP] readdir

2006-09-15 Thread Larry Garfield
27;re on PHP 5, look at scandir(). It gives you an array of all of the files/directories in a given directory, which you can then sort with sort() or usort() or whatever. If you're on PHP 4, there's a backport of it in PEAR::PHP_Compat that doesn't actually require the rest of PEAR

Re: [PHP] Best open source project/framework to support a php training course?

2006-09-27 Thread Larry Garfield
nd should) then use in all their later projects. 10 points off for every way you find to hack their code. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the ac

Re: [PHP] Logical OR in assignment

2006-09-27 Thread Larry Garfield
~~~ > The Ohio State University [www.osu.edu] > Computer Science & Engineering [www.cse.osu.edu] > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 9/22/2006 -- L

Re: [PHP] Coding Style Question...

2006-10-02 Thread Larry Garfield
classes on tr tags for me.) Again, credit here goes to the Drupal CMS, which uses a much more developed and refined version of this concept. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptib

Re: [PHP] Uploading files / processing with a PHP script

2006-10-08 Thread Larry Garfield
lution is to set the file's group permissions to 7, then chown the file to apache:mygroup, then put both apache and your ftp user into the mygroup group. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less

Re: [PHP] need help to build a query

2006-10-09 Thread Larry Garfield
general, fewer queries == A Good Thing. If you can do with a join or subselect what would take n queries otherwise, do so. Also, JOIN is faster than sub-queries. Be aware, though, that MySQL doesn't support sub-queries until version 4.1. -- Larry Garfield AIM: LOLG

Re: [PHP] OOP slow -- am I an idiot?

2006-10-10 Thread Larry Garfield
't seem like an > optimal solution. > > > * Where am I going wrong? > * Tell me how YOU fetch data from multiple objects to generate reports. > * Is this an instance where it's better to just ignore OOP rules and go > straight to the data? Whew, that's not fun to thin

Re: [PHP] A no brainer...

2006-10-13 Thread Larry Garfield
is of interesting size, and you have to keep in mind that if you aren't syncing to the database periodically then you will end up with stale data objects. (An issue in any case, but the longer the object representing a view of your database exists, the more of a problem it becomes. YMMV d

Re: [PHP] A no brainer...

2006-10-14 Thread Larry Garfield
hange by your next page request anyway is a waste of cycles. Is your data needed on every page load? Putting a complex data structure into the session if you only need it occasionally is a waste of cycles. You're better off rebuilding it each time or implementing your own caching m

Re: [PHP] Retrieving values from array on a class

2006-10-14 Thread Larry Garfield
On Saturday 14 October 2006 19:09, AR wrote: > Hello, > > I've rewritten my class as you told me: > > -- > class returnConfigParams > > { > > private static $instance = NULL; > > var $a; > var $b; > var $c; > var $d; > > private

Re: [PHP] Retrieving values from array on a class

2006-10-15 Thread Larry Garfield
:$instance = array($a, $b, $c, $d); >} >return self::$instance; > } > > private function __clone(){ > } > > } > > ?> > > > This way i can't get the array elements. > I'

Re: [PHP] A no brainer...

2006-10-16 Thread Larry Garfield
rmance-wise when you need to store data. The right balance will depend greatly on your use case. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is th

Re: [PHP] Creating Tree Structure from associative array

2006-10-19 Thread Larry Garfield
> > *Telephone:* +27 (021) 469 1052 > *Mobile:* +27 (0) 72 441 3355 > *Fax:*+27 (0) 86 681 5885 > * > Web:* http://www.zlogic.co.za > *E-Mail:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- Larry Garfield AIM:

Re: [PHP] How does the Zend engine behave?

2006-10-25 Thread Larry Garfield
ad a slight performance > edge for my app up until APC's most recent release, where APC now has a > significant edge.) > > > Fourthly, am I right in understanding that scripts do NOT share > > Fifthly, if a script takes 4MB, given point 4, does the webserver > &g

[PHP] Job Opening

2006-10-25 Thread Larry Garfield
a must.   If interested, contact me OFF-LIST for more information.  Note: I am NOT in a hiring position, so do NOT send me your resume. :-)  I'm just going to pass you on to the person who is. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "I

Re: [PHP] Job Opening

2006-10-26 Thread Larry Garfield
On Wednesday 25 October 2006 22:15, Larry Garfield wrote: > Well since the consensus seemed to be to allow job postings, I'll make > one. :-) > > My company is looking for a few good PHP programmers. > > We are a Chicago-area web consulting firm developing web sites and w

Re: [PHP] DATETIME or UNIX TIMESTAMPS?

2006-10-26 Thread Larry Garfield
n Postgres', which are different than Oracle's, etc. Generally, most of the the math I need to do I can do in PHP either before or after grabbing the timestamp. I am sure there is a counter point, but this for what I do I just stick to timestamps. :-) -- Larry Garfield

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Larry Garfield
t;Split mode". It was something chx was putting together a while back. I don't know what it's status is, but he claimed to get a nice performance boost out of it. Cheers. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If natur

Re: [PHP] heredoc usage [WAS:

2006-10-29 Thread Larry Garfield
sing DOM 2 event handlers anyway, but that's beside the point... :-) It surprised me, too, when I realized single quotes were kosher (X)HTML, but it can be quite convenient. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any

Re: [PHP] forms usage in web pages

2006-10-29 Thread Larry Garfield
. > what are the pros and cons of using that. > > Please forgive me if this is not the right mailing list to post this > question. But help me out in clarifying this basic doubt. > > thanks in advance > > Karthi -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED

Re: [PHP] str_replace on words with an array

2006-10-30 Thread Larry Garfield
trying to concatenate a string to an array, which as others have said will absolutely not work. I can't guarantee that the above code is the best performant method, but it works. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nat

<    1   2   3   4   5   6   7   8   9   >