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

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] 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] 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] 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-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
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
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
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
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: 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] 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] 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] 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, 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] 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] 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, 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
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
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
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] 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] 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] 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] 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
t; $textLength; $x++ ) { if( preg_match( "/[[:space:]]/", $array[ $x ] ) ) { $counter = 0; } else { $counter++; } $newText .= $array[ $x ]; if( $counter >= $maxLength ) { $newText .= ' '; $counter = 0; } }

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

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

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] 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] 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] 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
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] 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
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
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
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
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
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
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
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, 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] 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
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] 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
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
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, 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
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-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-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
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
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: > 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] 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] 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] 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] 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] 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

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

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*.

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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] What does "<<<" mean?

2007-04-30 Thread Greg Donald
P .net search breaks if you search for <<< It's heredoc syntax. http://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -- 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 does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ If you're not using it y

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated and frowned upon? http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, move on to ruby or pytho

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Greg Donald <[EMAIL PROTECTED]> wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.ne

Re: [PHP] What does "<<<" mean?

2007-05-01 Thread Greg Donald
On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Greg Donald wrote: > Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) Django is very under-developed compared to Rails. There's not a Javascript library in sight and the devel

Re: [PHP] PHP Command line script

2007-05-01 Thread Greg Donald
ysqli', get_loaded_extensions() ) ) { die( 'no mysqli found' ); } Also, why do you need to escape the dashes in the date() calls? php -r 'echo date("Y-m-d");' 2007-05-01 -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Greg Donald
7;HTTP_REFERER'] is unreliable. http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.server -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Blocking the direct download of a file

2007-05-07 Thread Greg Donald
On 5/7/07, Jon Anderson <[EMAIL PROTECTED]> wrote: In the context, I think the only thing that matters is that other people don't link to his jar file from other websites. There will be legitimate requests that will fail since not all browsers send a referer. -- Greg

Re: [PHP] CMS Systems

2007-05-07 Thread Greg Donald
On 5/7/07, Joey <[EMAIL PROTECTED]> wrote: Does anyone know of any good open source CMS system? ( content management system ) http://www.opensourcecms.com/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Image Resize with LibGD

2007-05-08 Thread Greg Donald
t way to do that? Create a new image resource with imagecreatetruecolor(); then copy your source image into it using imagecopyresampled(), adjusting your size to whatever you need. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Ajax?

2007-05-09 Thread Greg Donald
Script, for building richly interactive web applications using techniques such as DOM scripting, DHTML and AJAX. http://developer.yahoo.com/yui/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting $_ENV variables

2007-05-09 Thread Greg Donald
php -r 'system("set|grep OS");' HOSTNAME=neptune.local HOSTTYPE=powerpc OSTYPE=darwin8.0 POSIXLY_CORRECT=y -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with CURL please

2007-05-11 Thread Greg Donald
eed to get this working. After about 5 hours of this im pulling my hair out and begging for help. You need CURLOPT_FOLLOWLOCATION to handle the redirects and CURLOPT_COOKIEJAR to store the cookie in. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Do you use any framework in your applications?

2007-05-12 Thread Greg Donald
to learn symfony framework (www.symfony-project.com) wich apears to be a good and reliable framework. Yeah, I agree. And it's really nice that they've switched to YAML for a lot of the configuration stuff. XML is too heavy for, well.. most anything I can think of. -- Greg Donald http://des

Re: [PHP] Resources for plugin based frameworks

2007-05-14 Thread Greg Donald
would suggest Drupal. It's a really good CMS with a solid plugin/module architecture. The API is very well documented. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald
On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote: > Suggestion: get rid of Windows XP and use a real OS There's always one ;) No, there's more than one. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: Re[4]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald
On 5/17/07, Richard Davey <[EMAIL PROTECTED]> wrote: Sure, but you're in the minority*, so what do I care? :) I'm not asking you to care. Windoze still sucks, no matter how many idiots use it. The virus protection racket alone is enough to make me throw up. --

Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald
working, almost. Guess they are trying not to do too much at one time. You can read more on the web: http://www.google.com/search?q=windows+sucks+because 1.62M results, but you probably already knew that being in the M$ loving majority and all. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[8]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald
he door if they exhibited that level of clueless-ness in the interview. One company actually told me they were afraid I would be pirating software unless I used a windoze OS that could be 'audited' by their sysadmins. I blinked a couple of times, got up, and walked out. -- Greg Donal

Re: Re[8]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Greg Donald
ase for the vast majority of people stuck with Windows - is where the buck stops. I used to have to use windoze at this one job several years ago and it in no way forced me to also use it at home. It's all about desire and will. -- Greg Donald http://destiney.com/ -- PHP General Mai

Re: [PHP] Download speed limit

2007-05-17 Thread Greg Donald
On 5/17/07, Rangel Reale <[EMAIL PROTECTED]> wrote: Hmm that apache module isn't quite what I need, it just accepts or refuse connections based on bandwidth usage, it does not throttle the connection. Have you tried something like this? http://destiney.com/ -- PHP General Mailing List (http:/

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