Re: [PHP] Closure and $this

2011-01-12 Thread Greg Bair
he Closure class. Thus, if it supported the $this variable, it would refer not to the class you want, but instead to the Closure class. Just my understanding. If it's not right, someone point it out. -- Greg Bair PHP Developer -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Apache and PHP segfaults on Redhat EL5

2011-01-07 Thread Greg Bair
Also, you might try asking on a RH list or forum, this might be a known issue with a workaround. If all else fails, file a bug. -- Greg Bair PHP Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Job Search

2010-12-31 Thread Greg Bair
has a nice job board at http://jobs.phpdeveloper.org/. -- Greg Bair PHP Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing PDF

2010-12-29 Thread Greg Bair
> > a friend of mine said "postscript" or "cups", but I am not familiar > with them, so I thought I would ask you GURU's here :) > > thank in advance! > > Steve > > You could use the lpr command. Info here : http://www.marksanborn.net/linu

Re: [PHP] PHP Equivalent to Java Jar or Python Eggs

2009-11-26 Thread Greg Maruszeczka
and thought this would be a cool, simple > > way to deploy the app. > > Yes; Greg Beaver has done a lot of work with PHAR, which is very > similar. See http://au2.php.net/phar > > Cheers > ...it's even bundled with PHP 5.3+ GM -- PHP General Mailing List (http:/

Re: [PHP] Netbeans IDE 6.5

2009-10-28 Thread Greg Maruszeczka
nt theme profiles under Tools->Options->Fonts&Colors or customize any one of them to your heart's content. HTH, GM -- Greg Maruszeczka GnuPG-ID: 0x4309323E, http://pgp.mit.edu signature.asc Description: PGP signature

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Greg Beaver
on some poorly configured systems (not your problem: several distros decided to include a borked zlib and apparently some still do for no good reason at all). Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PEAR segfaulting

2009-10-19 Thread Greg Beaver
7.13.tgz"; > downloading DB-1.7.13.tgz ... > Starting to download DB-1.7.13.tgz (132,246 bytes) > .done: 132,246 bytes > Segmentation fault > ---- > > >So, is this a known issue? Hi, Most likely your machine has a bor

Re: [PHP] Re: Re: Re: Design Patterns

2009-08-13 Thread Greg Beaver
tion branches in different requests. autoload simply reduced the number of needed files to the bare minimum from a wide variety of choices. This surprised me, because the prevailing opinion at the time was that autoload always reduces performance. The point to take from this story is that what you think to be true doesn't matter, the only thing is really understanding where your bottlenecks are by profiling aggressively, and even more important, why its slow, so you can fix it. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] This is the kind of [expletives deleted] answer that iscertain to prevent bugs being reported.

2009-07-24 Thread Greg Beaver
another. You'll also notice that both he and users can be far more acidic than the canned responses, and yes - if you have a suggestion for improving a canned response, it will be taken seriously. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP as Language

2009-07-24 Thread Greg Beaver
parser.y in the source code of PHP. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Renaming all variables in a repository

2009-07-23 Thread Greg Beaver
} file_put_contents($path, $source); } ?> Voila, code refactored. I trust you know this, but don't run that example code without testing it on a limited sandbox and comparing the results first :). I did not test anything except the regexiterator part to make sure that it actually

[PHP] Re: php/sqlite3

2009-07-08 Thread Greg Beaver
undefined... > > so... my question.. > > how the heck can i resolve this issue! http://php.net/sqlite3.open Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Greg Beaver
ur changes, and use the "cvs diff -u" command to create a patch to send back to the maintainer of the package. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Greg Beaver
them back to the package, PEAR is an open public repository, it may be incorporated and help others in your situation as well (this is the point of PEAR and of open source). Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: namespace keyword

2009-07-02 Thread Greg Beaver
uff */ >} > } > > Recently the version 5.3 was released, so... should I change the const > "NAMESPACE" in the class? Is it a reserved word? Yes. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OCSP DER encoding implemenation?

2009-06-19 Thread Greg Beaver
Hi, Does anyone have a non-GPLed implementation of DER encoding for an OpenSSL certificate authority OCSP request floating around, or even a basic DER encoder? Thanks, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rounded rectangle in php

2009-01-29 Thread Greg Bowser
s, you can calculate the center and radius of the circle that passes through them. Then use imagearc() to draw the "rounded corner". -- Greg On Thu, Jan 29, 2009 at 8:36 AM, Jônatas Zechim wrote: > Hi there, is it possible do make a rounded rectangle in php, i can do a > ellipse

Re: [PHP] implode()

2008-11-18 Thread Greg Bowser
$BannerSize = implode($_POST['BannerSize'], ','); Looks like you have your arguments backwards; try: $BannerSize = implode(',',$_POST['BannerSize']); --Greg

Re: [PHP] Query-within-a-query with mySQL/PHP

2008-10-25 Thread Greg Bowser
/dev.mysql.com/doc/refman/5.0/en/group-by-functions.html#function_group-concat -- GREG.

Re: [PHP] Source Code Analysis

2008-10-22 Thread Greg Bowser
>Perhaps detecting >if a variable has not been initialized within the code This is an E_NOTICE level error. [EMAIL PROTECTED] ~ $ php test.php Notice: Undefined variable: foo in /home/mario/test.php on line 3

Re: [PHP] WHERE is syntax doc'ed for saying: if (expr1 *OR* expr2 *AND* expr3)

2008-08-24 Thread Greg Bowser
expected. Also, at the end, you're missing a parentheses at the end: (stripos(strrev($file), "gnp.") === 0) should be(stripos(strrev($file), "gnp.") === 0)) -- GREG

Re: [PHP] PHP Runs But Does NOT Connect to MSSQL Server

2008-06-13 Thread Greg Maruszeczka
On Fri, 13 Jun 2008 10:41:54 -0500 "Boyd, Todd M." <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Wei, Alice J. [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 13, 2008 10:25 AM > > To: Greg Maruszeczka; php-general@lists.php.net >

Re: [PHP] PHP Runs But Does NOT Connect to MSSQL Server

2008-06-13 Thread Greg Maruszeczka
On Fri, 13 Jun 2008 10:32:22 -0400 "Wei, Alice J." <[EMAIL PROTECTED]> wrote: > Hi, Greg: > > I have just run the command > > [EMAIL PROTECTED] php-5.2.6]# php -m | grep mssql > mssql > > It appears that my RPM is fully installed. I could ping to the

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Greg Maruszeczka
php -m | grep mysql and nothing prints out, you'll need to install the rpm that provides mysql-related functions and restart apache. HTH, GM -- Greg Maruszeczka http://websagesolutions.com skype: websage.ca googletalk: gmarus "Those who are possessed by nothing possess

Re: [PHP] authentication verification

2008-05-29 Thread Greg Maruszeczka
> DeadTOm > http://www.mtlaners.org > [EMAIL PROTECTED] > A Linux user since 1999. > > > Sessions. http://php.net/manual/en/ref.session.php -- Greg Maruszeczka http://websagesolutions.com skype: websage.ca googletalk: gmarus "Those who are possessed by nothing possess ev

Re: [PHP] Hack question

2008-04-16 Thread Greg Bowser
> I can sort of figure what is doing; but, I can't figure out what the hacker > is using it for. It will allow him to upload and execute arbitrary code on your server. Generally speaking, arbitrary code execution is a bad thing. :). -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Socket create with ssl server

2008-04-10 Thread Greg Bowser
The sockets extension is a much "lower" level interface to sockets than the fsockets/stream_ functions in PHP. Unlike with the aforementioned, with the sockets extension, you can't just expect to magically get an ssl connection by using "ssl://". Your problem is that the sockets extension has no

Re: [PHP] require_once dying silently

2008-04-09 Thread Greg Bowser
>the above won't work, as the parser will try to interpret $CFG and put it in the string first, In that case, $CFG is either null, or it is indeed an object. If it is a standard object, which I it appears to be, then a fatal error will be thrown because there is no __tostring() function. If it's

Re: [PHP] require_once dying silently

2008-04-08 Thread Greg Bowser
Is it possible that something is "going wrong" between the definition of $CFG->foo and when you require that could cause $CFG->dirroot to be null? Then it would point to /lib/setup.php, which definitely shouldn't exist and should thus throw an error, but maybe it's worth looking into. That woul

Re: [PHP] limit mail() function

2008-04-08 Thread Greg Bowser
pardoned you. And with the sarcasm, sincerity, and cynicism now accomplished, permit me to offer my most sincere apologies for the above rude, and overly verbose post. -- Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limit mail() function

2008-04-08 Thread Greg Bowser
the real sendmail binary. Of course, in this case, you'd also probably want to make sure the real sendmail binary couldn't be executed and that users could not write to the file that keeps track of the rate-limit. -- Greg On Tue, Apr 8, 2008 at 12:37 PM, Jordi Moles <[EMAIL PROTECTED]&

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Greg Bowser
[0] => 1 ) ) [name] => Array ( [apple] => Array ( [0] => 0 ) [ruby] => Array ( [0] => 1 ) ) ) Conceptu

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Greg Bowser
On Sun, Apr 6, 2008 at 7:52 PM, Kelly Jones <[EMAIL PROTECTED]> wrote: > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the color

Re: [PHP] How to jump to line number in large file

2008-04-04 Thread Greg Bowser
ter at the current position and increments the file pointer by 1. I haven't tried this, but perhaps using strpos would be faster? Use strpos to seek to find the first "\n", then use the offset parameter to seek to the second, and so on, until strpos() returns false. --GREG

[PHP] Re: [PHP-DB] php4 to php5

2008-04-03 Thread Greg Bowser
perglobal array that you might find useful: $_REQUEST. $_REQUEST consists of variables from $_GET,$_POST,$_COOKIE (in that order, I believe). http://us3.php.net/manual/en/reserved.variables.php http://us3.php.net/manual/en/ini.core.php#ini.register-globals --GREG On Thu, Apr 3, 2008 at 6:40 PM

Re: [PHP] Array and Object

2008-03-24 Thread Greg Bowser
That top post was totally not I... It was my roommate playing with my computer *nods*.

Re: [PHP] Array and Object

2008-03-24 Thread Greg Bowser
Take a look at array_walk(), array_walk_recursive(), array_map() in the PHP manual. On Mon, Mar 24, 2008 at 2:04 PM, tedd <[EMAIL PROTECTED]> wrote: > At 10:23 AM -0700 3/24/08, VamVan wrote: > >Well anyways please let me handle the problems with decoding.mail.com> > wrote: > > > At 10:00 AM -07

[PHP] ob_start: Capturing STDOUT and STDERR

2008-03-23 Thread Greg Sims
his technique. I am working to create a self contained script that does not rely on some external script to capture the output. The actual application needs to perform some post-processing of the output buffer at the end of the script. Any pointers in the correct direction would be helpful!

Re: [PHP] De-Duplicate A Query Result List

2008-03-23 Thread Greg Bowser
Sounds like you want something like the following: SELECT DISTINCT category FROM `contacts` WHERE state='california'; --GREG

Re: [PHP] strange list behavior when replying to message on list

2008-03-22 Thread Greg Bowser
Yeah. I always forget to reply to all. The problem is with the headers. Whereas other lists have a reply-to: in the email headers, this list does not. It annoys the hell out of me. On Sat, Mar 22, 2008 at 11:13 AM, Mark Weaver <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm wondering if anyone

Re: [PHP] What's wrong the __autoload()?

2008-03-19 Thread Greg Donald
ealth - http://centerstone.org/ Med Center Today - http://medcentertoday.com/ Caste Contractors - http://castlecontractors.com/ Filmhouse.com - http://filmhouse.com/ EZsweeps - http://ezsweeps.com/ LuckyShop - http://ezsweeps.com/shoppingnew.php > Maybe you like RoR more because you suck at PHP. Maybe you're a fucking retard. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5 file_get_contents() problems

2008-03-18 Thread Greg Bowser
for security reasons, allow_url_include can only be set from the main php.ini On Tue, Mar 18, 2008 at 10:22 AM, Thijs Lensselink <[EMAIL PROTECTED]> wrote: > Quoting Chris <[EMAIL PROTECTED]>: > > > I've encountered a situation where under PHP 5 the file_get_contents() > > function will not work

Re: [PHP] PHP 5 file_get_contents() problems

2008-03-18 Thread Greg Bowser
The actual setting is allow_url_fopen. allow_url_include controls whether or not you can use a remote URL as an include (however, if allow_url_fopen is off, then allow_url_include will also be off.) The short answer to your question is: yes, there is a way. Several ways, in fact. You could use cu

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Greg Donald
On 3/13/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > So... there we have it everyone... Greg has admitted that Ruby is as > smart as a cat. Hahaha.. yeah, you really got me on that one. /me slaps his knee. > I like something a little more edgy personally. Something

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Greg Donald
able to work with the community. So if I can't work with the community Rails effectively, Rails will not get better? I seriously can't follow your ramblings. > I will admit that the PHP > Internals list can get pretty heated as well, but those arguments are > usually b

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Greg Donald
On 3/13/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > Because PHP is the dog and Ruby is the cat? Yeah, I guess. I have several cats. Indeed they are fast, sleek, and smart just like Ruby. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Greg Donald
so whipping up a new model or controller is really fast. It really is awesome. :) -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Greg Donald
evil-good.shtml Looks pretty stupid to me.. what does a dog humping a cat have to do with anything in technology? Please keep your animal pr0n to yourself. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
On 3/12/08, Dave Goodchild <[EMAIL PROTECTED]> wrote: > Will you two pricks cut it out. How fucking tedious. Tedious? Sorry. /me passes the "buddhamagnet" a dictionary so he can keep up. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.n

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
On 3/12/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > You're new around here right? Hehe. For sure. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
novation. > Do more with less. Well that sure as hell ain't PHP. ROFL. More with less, using PHP, hilarious. /me points to SPL and laughs his ass off > That SHOULD be part of any developers mandate... but > not blindly. If by blindly you mean fun, fast, test-driven, producti

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
On 3/12/08, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > -5 for not keeping this kind of childish behavior of the list (both of you) Playing the game by claiming the game is wrong to play is still playing the game. -1 for playing the game hypocritically. -1 for thinking -5 exists.

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
. -1 for thinking +2 exists. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
ils, I didn't understand some of it, therefore Ruby sucks?" That's not reasoning and it certainly doesn't gain one any experience, unless laziness recently became a virtue. > get over yourself. You first. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Frameworks

2008-03-12 Thread Greg Donald
On 3/12/08, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > What I'm after is a framework that is simple, solid, compact and > flexible enough to extend by myself. http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks#Comparison_of_features -- Greg Donald ht

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
On 3/12/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Mar 12, 2008 at 3:59 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > I'm sorry, I lost context, what missing PHP language feature are you > > referring to as "it"? > > functional capabiliti

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
ve auto might think such a thing impossible if they were unaware of 4-wheel drive. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
On 3/12/08, Zoltán Németh <[EMAIL PROTECTED]> wrote: > I can't really think of a > case where I would want to modify the class definition of an > instantiated object You can't very well think to walk if you don't have legs. -- Greg Donald http://destiney.com

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
e, nor does it support adding methods to instantiated objects of those classes at runtime. And that's just one example. These sort of OO advantages exist throughout Ruby. You don't love these features because you don't know they exist. You don't know they exist because

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
27;s a dead-on, same example, just with a different programming language and a different language feature. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
ery well is just plain dumb. I'm sorry you don't get it and I'm done trying to help you get it. Good luck codling your lesser developers. May they never learn jack on their own. *sigh* -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
have thousands of lines of Ruby code under my belt that allows me to properly develop an opinion of Ruby and Rails and how they both compare to every other programming language and framework I know and have developed in. Need a URL? -- Greg Donald http://destiney.com/ -- PHP General M

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
t the entire development team from using a given feature just because you don't want to invest 20 minutes in getting your newbie developer up to spead? That's pure idiocy. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
ing to be able to use function pointers on the new Diablo III like we had planned to do, the new hires down the hall don't understand them very well so just don't use them, OK?" -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
n, all pre-configured for the most common cases. You can even create your own new environments if you have something that doesn't fit into dev/test/prod very easily. Complete versatility in every regard thanks to Ruby's meta-ness. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtotime( 'last Sunday' ) and republicans

2008-03-12 Thread Greg Donald
On 3/10/08, Wolf <[EMAIL PROTECTED]> wrote: > Watch throwing that blame around there Greg, you get to thank the > democrats for NAFTA and the hurting the heartlands No matter where we draw the borders or put the roads and highways, it's still just the one planet, with the same

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Greg Donald
ior developer who doesn't know of its existence and is > new to a job is less likely to admit ignorance and ask how a class is > being defined when __autoload() is being used. That's a the dumbest reason I've ever heard to not use a given language feature. -- Greg Donald ht

Re: [PHP] Know a JS list serve

2008-03-11 Thread Greg Donald
a list, but the peeps in #javascript on irc.freenode.net have never once failed me when I was stumped. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] save image in database vs folder

2008-03-11 Thread Greg Donald
sn't work for me however, some header/include error.. maybe there's a mirror or a cache of it some place. Or perhaps you can persuade Zend to fix it back to a working state. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] CSV speed

2008-03-10 Thread Greg Donald
rab what I need > from there? I'm starting to think it would make a lot of sense. What do > you guys think? grep foo whatever.csv | php ./script.php -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strtotime( 'last Sunday' ) and republicans

2008-03-10 Thread Greg Donald
the republicans in general, and the short one named 'W' specifically. I won't bother mentioning the fix as I'm sure 83,293,874,713 people will post the same correct code by the end of the day tomorrow. No one runs PHP4 except _my_ clients anyway. *shrug* -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why use session_register()?

2008-03-10 Thread Greg Donald
tart() prior to it's use. http://php.net/session_register -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RewriteRule help

2008-03-01 Thread Greg Donald
On 3/1/08, Shelley <[EMAIL PROTECTED]> wrote: > Anybody knows what apache RewriteRule to use if I want url: > http://www.aaa.comm/user// > be rewritten as: > http://www.aaa.comm/user/index.php// RewriteRule ^user/([-a-zA-Z0-9]+)$ /index.php?user=$1 [NC,L]

Re: [PHP] string effect

2008-02-29 Thread Greg Donald
t; $textLength; $x++ ) { if( preg_match( "/[[:space:]]/", $array[ $x ] ) ) { $counter = 0; } else { $counter++; } $newText .= $array[ $x ]; if( $counter >= $maxLength ) { $newText .= ' '; $counter = 0; } }

Re: [PHP] php with modified version of sqlite

2008-02-29 Thread Greg Donald
ow do I control which version > of sqlite, php is calling? > Thanks for any advice PHP can use whatever version of SQLite you compile it against. I do believe SQLite version 3 is the current popular version. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.

Re: [PHP] string effect

2008-02-29 Thread Greg Donald
r such thing ? > > thanks a lot, function truncate( $string, $length=384, $ending='...' ) { if( strlen( $string ) > $length ) $string = substr( $string, 0, $length ) . $ending ; return $string; } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] output buffering in CLI script.

2008-02-29 Thread Greg Donald
On 2/28/08, Casey <[EMAIL PROTECTED]> wrote: > #!/usr/bin/php Or the entirely more portable version: #!/usr/bin/env php http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Greg Donald
On 2/28/08, Nathan Rixham <[EMAIL PROTECTED]> wrote: > what ide's editor's do you two use? zend's use of javaw is killing my > win2k3 dev machine anyways. # dd if=/dev/tty of=/dev/hda1 And then sometimes I also use vim. -- Greg Donald http://destiney.com/ -- PHP

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Greg Donald
On 2/27/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > So is ASP really a framework? .Net has upwards of 70K classes. If that's not a framework then I dunno what is. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Greg Donald
u > may want to brush up on your math skills my friend. And your humor skills as > well :) My point is it's old news. And it wasn't funny then either. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Greg Donald
ly the 4 year old variety. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Greg Donald
On 2/27/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > ya; rob; greg is like the new dude on the witty block; > better pack something good for a comeback :O > my heads still smoking while i try to think up something > moderately so ~:( I'm not gonna just sit here

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Greg Donald
On 2/27/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > RoR is a framework, not a language. Really? I had not heard that previously. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Greg Donald
On 2/27/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > *lol* Look at the examples on the page... aks yourself if you enjoy > typing 2 to 3 times as much to do the same thing. *lol* This is one of the same reasons why I'm using Ruby on Rails more and PHP less, all the time.

Re: [PHP] PHP Newbie List

2008-02-26 Thread Greg Donald
On 2/26/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > Speak for yourself. My code is always 100% spotless, efficient, > and runs the first time, completely bug-free, every single time, as it > has for years. Well, in Ruby on Rails, it has this.. nevermind. -- G

Re: [PHP] Question about PHP Licence and it's future!

2008-02-26 Thread Greg Donald
an friend Lalo says "gringo" isn't nearly as potent an insult as it was back in the 70's when he actually used it towards Texans who didn't know or care that he was also a native Texan by birth. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Newbie List

2008-02-26 Thread Greg Donald
On 2/26/08, revDAVE <[EMAIL PROTECTED]> wrote: > Rather than bug folks on this cool list for beginner questions - does anyone > know of a good PHP Newbie email List? The newbie list idea was shot down multiple times over the years. Ask here. -- Greg Donald http://destiney.c

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Greg Donald
On 2/26/08, Ray Hauge <[EMAIL PROTECTED]> wrote: > I'm just glad there's a lot of sinners out there, or at least > people who aren't that crazy :) They're called hypocrites. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.n

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Greg Donald
t "Joomla" name: http://search.securityfocus.com/swsearch?query=joomla&metaname=alldoc And the 280+ exploits when it was called "Mambo": http://search.securityfocus.com/swsearch?query=mambo&metaname=alldoc -- Greg Donald http://destiney.com/ -- PHP General Mailing List

Re: [PHP] Re: temporary error

2008-02-23 Thread Greg Donald
ce-sitting agnostics, lets not forget Sagan's best: 'If by "God" one means the set of physical laws that govern the universe, then clearly there is such a God. This God is emotionally unsatisfying... it does not make much sense to pray to the law of gravity.' -- Greg Do

Re: [PHP] Re: temporary error

2008-02-23 Thread Greg Donald
Ridicule is the only weapon which can be used against unintelligible propositions." -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: temporary error

2008-02-23 Thread Greg Donald
ible: http://tinyurl.com/h4u5b I love what Steven Weinberg, the Nobel Prize-winning physicist said, "Religion is an insult to human dignity. With or without it, you'd have good people doing good things and evil people doing evil things. But for good people to do evil things, that take

Re: [PHP] Re: temporary error

2008-02-23 Thread Greg Donald
Having the capacity to create a lot of something in an orderly fashion does not prove existence. > god's like wind, can't see it but it still blows your bin over so you > know it's there. Good, now I know who to blame when a tornado takes out a trailer park in the

Re: [PHP] Re: temporary error

2008-02-23 Thread Greg Donald
who insists on genital mutilation at birth? Do we want influences into our governments that inhibit natural advances in modern science? Do you really believe in virgin birth and resurrection? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: temporary error

2008-02-23 Thread Greg Donald
On 2/22/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > That's pretty funny... but why rewrite a great fantasy? It started as a sort of a dare from one of my "bright" friends. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: temporary error

2008-02-22 Thread Greg Donald
On 2/22/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > So help me God Speaking of imaginary things, check out this new site I built few weeks back: http://rewriteproject.com/ I do believe I am the first person to ever "tag cloud" a bible :) -- Greg Donald http://des

Re: [PHP] More than one values returned?

2008-02-22 Thread Greg Donald
of an example to back up your obviously immature and uninformed claim. > Oh wait.. I am indeed waiting, where's your code? When, and under what circumstances exactly, is getting back an array of objects from a function or method call "poor design" ? Please, do tell. -- G

Re: [PHP] More than one values returned?

2008-02-21 Thread Greg Donald
: @foo = Foo.find( :all ) Django: foo = Foo.objects.all() ZF: $foo = new Foo(); $foo->fetchRow( $foo->select() ); All return arrays of objects. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php warning message

2008-02-20 Thread Greg Bowser
at does the "%" do? Was that possibly a typo? [/snip] It's the modulus operator; he's trying to make every other line a different color. :) -- Greg

  1   2   3   4   5   6   7   8   9   10   >