Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Greg Donald
nces while posting on this list. I demand that you refrain from such crass behavior as it is terribly bothersome to my pedantic lifestyle. Thank you, -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Greg Donald
On 5/18/07, Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: Whoever said Gmail was a good mail client?! I give up, who? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Greg Donald
On 5/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-18 at 14:43 -0500, Greg Donald wrote: > On 5/18/07, Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: > > Whoever said Gmail was a good mail client?! > > I give up, who? Tijnema! Is that like Ya

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Greg Donald
On 5/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: Anyone know if gmailFs supports RAID across multiple accounts? >:) ROFL. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php5 cert

2007-05-18 Thread Greg Donald
al if anything, right? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php5 cert

2007-05-19 Thread Greg Donald
On 5/19/07, Kevin Waterson <[EMAIL PROTECTED]> wrote: As worthless as the php4 cert. Mine has been very valuable to me, lots more job interviews and freelance work compared to before I got it. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.ne

[PHP] Re: PHP5 Static functions called through __call() that don't exist... yet

2007-05-19 Thread Greg Beaver
ind of code $thing = ${"is$thing"}($args[0]); } return $test->$method; } } TypeChecker::init() echo TypeChecker::$singleton->string('test'); ?> However, I don't see any benefit to using static methods here. Just use an object. $thing = ${"is$thing"}($args[0]); } return $test->$method; } } $check = new TypeChecker; echo $check->string('test'); ?> If you're trying to do several assertions and separate them into classes, do something like so: type = new TypeChecker; } } $check = new Tester; echo $check->type->string('test'); ?> Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Greg Donald
MySQL database or to my server? http://www.zend.com/zend/trick/tricks-sept-2001.php?id=342 [snip] cuts performance by approximately a third [/snip] -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
dnesday', 'Thursday', 'Friday', 'Saturday' ); $day = 1; echo $days[ $day - 1 ]; -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
single quotes. A function call seems rather heavy when a global array can be indexed more easily. Even a switch statement would be an improvement. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: I saw a bunch of bad examples given to you that completely ignore any available locale information... so here's a better version: I seem to have missed the part of the question where it said considering locale was important

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
since most PHP installs will find the server settings sufficient. http://en.wikipedia.org/wiki/YAGNI I'll accept ignorance and sloppiness as reasons... albeit not good reasons. You assume too much and your solution is bloated. Accept that. -- Greg Donald http://destiney.com/ -- PHP

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
lease benchmark it so you will learn from this experience. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
ay', 'Saturday' ); $days = array( 'Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado' ); Tada! That was the easiest maintenance programming ever. I have nothing to learn from you that I didn't

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > They didn't teach PHP where I attended kindergarten. Is that a Canadian thing? Exactly, and I'm not about to learn PHP from you now *lol*. Next time you should say so up front, I would have spotted you 10% on the be

Re: [PHP] convert numerical day of week

2007-05-23 Thread Greg Donald
On 5/23/07, Robin Vickery <[EMAIL PROTECTED]> wrote: they're all bloated: print jddayofweek($day_number, 1); Must go --enable-calendar now :) -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include???

2007-05-23 Thread Greg Donald
On 5/23/07, Dan Shirah <[EMAIL PROTECTED]> wrote: Okay, I think I'm doing everything right, but for whatever reason my include isn't working. == not = -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Embedded Image from Database

2007-05-23 Thread Greg Donald
es now? That same image URL should work in an email. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] zend framework

2007-05-23 Thread Greg Donald
http://framework.zend.com/roadmap It might be worth using if it actually did something better than my current toolset. Right now it really doesn't. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
#x27;VA' || $value != 'Washington' || $value!= 'WA' || $value != 'West Virginia' ||$value!= 'WV' || $value != 'Wisconsin' || $value!= 'WI' || $value != 'Wyoming' || $value!= 'WY') //if they don't the match t

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > You should really look into learning in_array() for stuff like this. Wouldn't that slow things down and increase the memory footprint? ;) It'd be interesting to see a benchmark. -- Greg Donald http://destiney.c

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: $states['TN'] => 'Tennesee'; :%s/Tennesee/Tennessee/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Validation Issues

2007-05-23 Thread Greg Donald
On 5/23/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Ok, here is something that might help you. $states['AL'] => 'Alabama'; $states['AK'] => 'Alaska'; And a little something for you as well: :%s/=>/=/g -- Greg Donald http://destiney.com

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Greg Donald
he point of putting my PHP hammer down. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include???

2007-05-23 Thread Greg Donald
oted string? include 'complete_save.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] problems in WHERE statment

2007-05-23 Thread Greg Donald
command $query = 'SELECT * FROM `job listing` WHERE open >=$today '$today' not $today -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] format date field

2007-05-23 Thread Greg Donald
an I format this field??? while I am at it how can I accept the date field as 05-01-2007; Look at MySQL's DATE_FORMAT() function. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Processing Question - Empty Fields

2007-05-23 Thread Greg Donald
On 5/23/07, Tijnema <[EMAIL PROTECTED]> wrote: Again, this is Off topic, /me rolls eyes Do you even know what P-H-P stands for? HTML questions are not off topic, especially form related ones. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.ne

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Greg Donald
ou may need to increase your error reporting level and ensure your ability to actually see the errors as well. This is what I use in development: error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); ini_set( 'log_errors', 1 ); -- Greg Donald http://destiney.com/ -- PHP

Re: [PHP] zend framework

2007-05-25 Thread Greg Donald
On 5/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote: If you don't find anything useful in the Zend stuff, don't use it. Thanks for the useless input captain obvious. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] php execute command on server

2007-05-28 Thread Greg Donald
w-data user: usermod -G www-data,audio www-data After this I begin to get output from /dev/dsp as the www-data user. Hope that help. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec dont work for svn

2007-05-28 Thread Greg Donald
y be asking for input your exec call isn't providing. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploading Files into MySQL

2007-05-28 Thread Greg Donald
below? move_uploaded_file($_FILES['myfile']['tmp_name'], "/var/www/".$_FILES['myfile']['name']); Right here you would read the file into a string with file_get_contents(), then write an SQL query to insert the string. --

Re: [PHP] Form Validation Issues

2007-05-28 Thread Greg Donald
question has already been beaten to death. :) -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using mysql_escape_string with implode() !!

2007-05-30 Thread Greg Donald
ap( 'slashes', $_COOKIE ) : array(); } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using mysql_escape_string with implode() !!

2007-05-30 Thread Greg Donald
On 5/30/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Say I wanted to use this on something other than $_GET, $_POST, & $_COOKIE? Then I suppose you'll have to compensate with updates to support your particular usage. -- Greg Donald http://destiney.com/ -- PHP General Mai

Re: [PHP] Is the GD module standard?

2007-06-03 Thread Greg Donald
On 6/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: Every host I've ever used has had GD installed. If they didn't offer GD, I'd switch. I think it's a safe bet to assume most realistic hosts have GD. Same here. Been using it for years, never had to ask for it

[PHP] Re: second/custom PEAR/PECL installation. possible? how?

2007-06-06 Thread Greg Beaver
APC will still use your default configuration file at /etc/pear.conf. pecl5 -c /etc/pear5.conf install APC will correctly install and configure APC for php5. Needless to say, this is more complicated than it seems like it should be, and the next version of the PEAR installer, Pyrus, makes this

Re: [PHP] Re: second/custom PEAR/PECL installation. possible? how?

2007-06-06 Thread Greg Beaver
l "just work" without change. So no, that practice is completely right :) I had forgotten this is a possibility, so you might just try it out Jochem and see if it works. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Competition - Win a copy of Zend Studio

2007-06-14 Thread Greg Donald
h entering. It's also quite a fun challenge IMHO. http://blog.assembleron.com/2007/06/14/php-programming-contest-win-zend-studio/ Are the prizes transferable? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wiki lib?

2007-06-19 Thread Greg Donald
On 6/19/07, Emil Edeholt <[EMAIL PROTECTED]> wrote: I want a library that can compare different versions of text, Command line diff wrapped in exec() calls should work fine. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] unlink before imagepng?

2007-06-19 Thread Greg Donald
be sure and call clearstatcache() so your changes show up immediately. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New htmlentities() '$double_enocde' Param Question

2007-06-19 Thread Greg Donald
ies('<', ENT_QUOTES, false); // Expected Output: < // Actual Output: &lt; echo htmlentities(htmlentities('<', ENT_QUOTES, false), ENT_QUOTES, false); Your false value for your htmlentities() call should be the 4th parameter, not the 3rd. -- Greg Donald htt

Re: [PHP] file charset: something like file -i

2007-06-19 Thread Greg Donald
ttp://us.php.net/manual/en/ref.fileinfo.php Examples in the comments. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unlink before imagepng?

2007-06-20 Thread Greg Donald
On 6/20/07, Brian Dunning <[EMAIL PROTECTED]> wrote: Can do, but I would be calling clearstatcache() very often, many times per second, as often as these graphics are being edited. Would that still be appropriate for the server? I certainly wouldn't use it if I didn't need it.

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Greg Donald
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > Cool, please go to the following url and clickthe button: > > http://gpcc.tijnema.info/ Where's the 'no' option ? I call shenanigans. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.p

Re: [PHP] Is There a Function to .... to [yada] ..... [/yada]?

2007-06-21 Thread Greg Donald
t; for someone to do it for you. -- 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 returns 00:00 for 7am

2007-06-21 Thread Greg Donald
morrow doesn't work. Using PHP5. That false return value I mentioned above becomes a zero when used as the second parameter to strftime(). -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Latest PHP for Mac OS X 10.3.9 (Panther)

2007-06-21 Thread Greg Donald
be tied to their chosen configuration. Not much on details but it gets me through every time a new PHP version is released: http://destiney.com/blog/php-4-and-5-on-mac-os-x -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Re: strange include path error

2007-06-27 Thread Greg Beaver
at script he was trying to use (the error > log only points back to the included script, not the original). But a > quick scan of the site shows no problems at all. > > I also have no .htaccess files for this particular site, and the vhost > conf checks out. Any idea what the heck jus

Re: [PHP] str_replace new line

2007-07-02 Thread Greg Donald
ion performs in addition to the above. So it is not just a case of making a change and reloading the file and rerunning it. Brutal. :( -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate letter combination..

2007-07-02 Thread Greg Donald
x27;; $strings = perms( $s ); foreach( $strings as $s ) { echo "$s\n"; } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] functions for sorting/paging functionality for imap mailboxes

2007-07-02 Thread Greg Donald
On 6/25/07, Yashesh Bhatia <[EMAIL PROTECTED]> wrote: i'm implementing an imap based mail client That's a major wheel to go reinventing, have you not tried IMP/Horde? http://www.horde.org/imp/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://

Re: [PHP] Using PHP to retrieve a Yahoo Groups Web Page

2007-07-06 Thread Greg Donald
fically you need these two options: CURLOPT_COOKIEFILE CURLOPT_COOKIEJAR http://us2.php.net/manual/en/function.curl-setopt.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] Compiling/Building PHP 5.2.3 on Mac OS X 10.3.9

2007-07-19 Thread Greg Donald
On 7/19/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Unless anyone has a better solution of getting php 5.2.3 on mac os x 10.3.9 http://destiney.com/blog/php-4-5-macos-x -- Greg Donald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Symfony versus CakePHP?

2007-07-21 Thread Greg Donald
test fixtures to Rails apps, sample data, and the like. It's a gazillion times lighter weight than XML and just as easy to use as JSON. Much like anything opensource, don't let the name scare you, YAML is good stuff. -- Greg Donald http://destiney.com/ -- PHP General Mailing Lis

Re: [PHP] Symfony versus CakePHP?

2007-07-21 Thread Greg Donald
your tool belt, you can pick up others easily. I started off using it for simple things like email address validation and sending HTML emails. You certainly don't have to use the whole thing to get some very good uses from it. -- Greg Donald http://destiney.com/ -- PHP General Mailing List

Re: [PHP] Creating watermarks

2007-08-04 Thread Greg Donald
nd > when it's called on (depending on viewing size) I want the water mark to > be added. > > How would one go about doing that? You can write words on images using imagettftext(). -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can anyone point me toward some useful resources?

2007-08-06 Thread greg patmore
Hi all, I was wondering if anyone could point me toward some good resources regarding suggestions on handling user preferences over a cluster in a heavy traffic website. Online resources are preferable:-), but thanks for any help you could give. Regards, Greg

Re: [PHP] javascript in or in ?

2007-08-07 Thread Greg Donald
ter=' + val ; > } > w3 says it can appear in either: The SCRIPT element places a script within a document. This element may appear any number of times in the HEAD or BODY of an HTML document. http://www.w3.org/TR/html4/interact/scripts.html#h-18.1 -- Greg Donald http://destiney.

Re: [PHP] javascript in or in ?

2007-08-07 Thread Greg Donald
ebate, but then my delete button works great. I think you just want something to bitch about. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript in or in ?

2007-08-07 Thread Greg Donald
nd place. PHP gets renamed to Java, etc. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript in or in ?

2007-08-07 Thread Greg Donald
as referring to language quality with regard to OO. PHP is a cluster-fuck in comparison to pretty much anything out there.. except maybe Perl's OO. And go look at PHP SPL, and tell me that's not Java by another name. PHP is the absolute worst language to do any sort of OO prog

Re: [PHP] ORM framework suggestion

2007-08-08 Thread Greg Donald
b frameworks are best written in languages with strong meta-programming capabilities. PHP wins no points in that area. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string as file

2007-08-09 Thread Greg Donald
ar1 and $var2. > EOT; > > and then after assigning values to $var1 and $var2 include that file. I > can later use different values for $var1 and $var2 and get a different > $out with a second include. eval() -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://

[PHP] RELEASE ANNOUNCEMENT: PhpDocumentor 1.3.0 *stable*

2006-08-18 Thread Greg Beaver
RELEASE ANNOUNCEMENT PhpDocumentor 1.3.0 *stable* August 18, 2006 Download: pear upgrade PhpDocumentor http://pear.php.net/PhpDocumentor http://sourceforge.net/project/showfiles.php?group_id=11194&package_id=10450&release_id=440432 Information and documentation: http://www.phpdoc.org The PhpDocum

[PHP] Re: call_user_func_array on STATIC method

2006-08-18 Thread Greg Beaver
unc_array(array($class, $method), $params); Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hotmail and junk mail

2006-10-02 Thread Greg Maruszeczka
Try here: http://openrbl.org Cheers, G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IP Address

2006-10-21 Thread Greg Maruszeczka
On Sat, 21 Oct 2006 19:55:17 -0400 Fred Moses <[EMAIL PROTECTED]> wrote: > Is there a function which returns the IP address of the requestor of the > current page? > > -- Don't think so but there is a superglobal that contains it: $_SERVER['REMOTE_ADDR'] -- PHP General Mailing List (http:/

Re: [PHP] Shopping Cart

2006-10-28 Thread Greg Maruszeczka
CK, With the obligatory chastisement and ensuing defensiveness out of the way :) you may want to check out Zen Cart (zen-cart.com) and see if it meets your requirements. Cheers, G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure input

2006-02-27 Thread Greg Schnippel
On 2/27/06 6:20 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > When users input is displayed for others then themself I try to filter out > html tags too. I type cast all relevant variables before processing them as one last check. Type casting forces the variable to be of the type you e

[PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Greg Beaver
actly the same as it is from my local machine. When I used to pass an array of data and repopulate using javascript DOM, it was slow as molasses, and I would occasionally have weird timeouts. Don't try to be smart when you can be simple :) Greg -- PHP General Mailing List (http://www.p

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Greg Beaver
Manuel Amador (Rudd-O) wrote: > Greg Beaver wrote: > >> Daevid Vincent wrote: >> >> >>> I need to dynamically update a select box with results from a SQL >>> database using AJAX, but I can't find a single example of how to do >>> this. &

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Greg Beaver
Manuel Amador (Rudd-O) wrote: > Greg Beaver wrote: > >> This is far too complicated. You don't need 50 lines of code to convert >> from server-side data to HTML when the browser does it for you (and far >> more efficiently) with this code: >> >> var some

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Greg Beaver
al, and it is actually *easier* to see what HTML you're going to end up with from the PHP code. > Sure, your solution mostly works. But what I still wonder is, is it > the best solution in terms of software quality? I think I've made my opinion sufficiently clear on this point. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Greg Beaver
cepted software quality practices vs. a bunch of crap. It's about good programming. I know complexity, I wrote phpDocumentor 1.3 (http://www.phpdoc.org) and PEAR 1.4 (http://pear.php.net/PEAR). I also know how difficult it is to manage complexity effectively, and PHP/javascript is a fantastic tool for solving your problems, but only if you don't shoot yourself in the foot before you even begin. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-01 Thread Greg Beaver
oders, Josh Eichorn. Cookies are fully supported and are preferrable to using a GET variable. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need a CRM recommendation

2006-04-04 Thread Greg Schnippel
several NGOs, very easy to customize and scale. - Greg On 4/4/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Howdy group! > > I need recommendations for a good CRM done in PHP, thanks! > > Jay > > -- > PHP General Mailing List (http://www.php.net/) > To unsub

Re: [PHP] Ajax please....

2006-04-08 Thread Greg Beaver
frames start > sucking. And no, I don't currently know of an ajax lib that does this, > but I'll certainly be making mine do so in the near future :) HTML_AJAX (http://pear.php.net/HTML_AJAX) has had iframe fallback support since I first checked it out in version 0.2.0 Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSS Generation

2006-04-10 Thread Greg Schnippel
eader("Content-type: text/xml; charset=utf-8"); ... I also use the Firefox browser which has a built-in XML browser that allows me to do a quick validation of the XML. You can also use www.feedvalidator.org to troubleshoot your feed once its online. - Greg -- PHP General Ma

[PHP] Re: How does PECL and PEAR handle versioning of PHP core?

2006-04-26 Thread Greg Beaver
es dependencies - most extensions compile without modification for multiple PHP versions. Those that require some finagling actually do so through package.xml or configure tricks (usually configure tricks). You do need to compile and install a separate extension for each php version Greg --

[PHP] [RELEASE ANNOUNCEMENT] phpDocumentor 1.3.0RC6

2006-05-02 Thread Greg Beaver
May 2, 2006 RELEASE ANNOUNCEMENT phpDocumentor 1.3.0RC6 Download: http://pear.php.net/PhpDocumentor http://www.phpdoc.org The phpDocumentor team would like to announce the release of version 1.3.0RC6. This is the last release candidate of version 1.3.0, the first stable version to be released sin

[PHP] Re: Extensions Directory (PEAR/PECL)

2006-05-22 Thread Greg Beaver
nsions in command-line code and for web applications. These often have completely different php.ini settings for obvious reasons (no need for apache-specific stuff inside the command-line php). Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting an advanced foreach to work

2006-05-23 Thread Greg Beaver
w microseconds. However, because count() is O(1), it will be a constant amount per loop. If you need to eke out that much extra performance, you may be better off using a profiler to see where the real bottlenecks in the code are. Greg > > From a performance point of view you'r

[PHP] Re: SPL Iterator and Associative Array

2006-06-02 Thread Greg Beaver
#x27;small']); ^^ > } > > function smalls($x){ > return $this->projects[$x]['small']; > } > } Hi Jason, The code you pasted is littered with fatal errors and bugs (I marked one example with "^^" above). Please paste a real batch of code that you've tested and reproduces the error and that will be much more helpful. The PHP version would be helpful to know as well. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Re: Document generation from XML

2004-02-03 Thread Greg Beaver
code than figure out where things have changed :) Greg -- phpDocumentor http://www.phpdoc.org Russell Seymour wrote: Good evening list, I apologise profusely if after reading anyone thinks that is OT, but I relally need some pointers with a project I am working on. I have searched the Internet for i

[PHP] Re: PHP License question

2004-02-12 Thread Greg Beaver
x27;t confuse with the PEAR package. The only thing you cannot do is release the unomdified PEAR package under GPL. A better alternative is to use the LGPL, which does not force other packages to use GPL, but is still copy-left/open-source. Greg P.S. I'm not an expert, this is my co

[PHP] Re: calendar class

2004-02-25 Thread Greg Beaver
http://pear.php.net/Calendar Regards, Greg -- phpDocumentor http://www.phpdoc.org John Taylor-Johnston wrote: Anyone recommend a good calendar class at phpclasses.org or elsewhere? Something I can install with ease and teach someone else to use and update using, oh say phpmyadmin? Thanks, John

[PHP] Re: PEAR file??

2004-02-25 Thread Greg Beaver
Hi Edward, It's not a PEAR file. PEAR files are never included using ".." regards, Greg -- phpDocumentor http://www.phpdoc.org Edward Peloke wrote: Hello, I have a friend who has moved his website to a new host and I am helping him clean up some of the code. In one of his page

[PHP] Re: PEAR file??

2004-02-25 Thread Greg Beaver
php. DB's mysql driver includes DB/mysql.php, etc. etc. Greg Ben Ramsey wrote: It's not a PEAR file. PEAR files are never included using ".." This is not true. I can download a PEAR package and use it as a standalone in my application without specifying a PEAR folder in th

[PHP] Re: Pear Package...

2004-03-15 Thread Greg Beaver
Hi Scott, What you need is to set the include_path http://www.php.net/manual/en/configuration.directives.php#ini.include-path Greg -- phpDocumentor http://www.phpdoc.org Scott Fletcher wrote: Hi! I saw the Pear packages that are originally stored in /usr/local/lib/php/. This occur

[PHP] Re: API Documentation Via Comments

2004-03-24 Thread Greg Beaver
phpDocumentor http://www.phpdoc.org Regards, Greg Richard Hawkes wrote: Hi, As you may be aware, languages like Java allow you to add comments in a certain format, which can then be translated into a full HTML API Document later. Does PHP have a facility like this? If not, has anyone written

Re: [PHP] Exceptions and builtin functions in PHP5

2004-04-08 Thread Greg Beaver
The exception mechanism will not replace trigger_error() or function return values any time soon Greg Tumurbaatar S. wrote: <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If I understand right, PHP5 has an exception handling mechanism but it is only for "manual&quo

Re: [PHP] problem using error_reporting() PHP 5.0.2 (cli)

2004-10-24 Thread Greg Donald
On Sun, 24 Oct 2004 16:41:16 +0530, Yashesh Bhatia <[EMAIL PROTECTED]> wrote: > error_reporting(E_STRICT|E_ALL); This does appear broken. I was unable to get E_STRICT to work at all on my setup. PHP 5.02, and Apache 2.0.51. -- Greg Donald Zend Certified Engineer http://gdconsul

[PHP] Re: clearstatcache, how to use?

2004-10-25 Thread Greg Beaver
e)) { is what you need if (file_exists($filename)) { ... } clearstatcache(); will have no impact on the problem, because you are clearing the cache *after* the function that relies on the cache has been called. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Greg Donald
pd-php .html -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php files with .html extension?

2004-10-25 Thread Greg Donald
ot parsed as PHP vs. 30.2 seconds with .html parsed as PHP. I only ran these tests locally, and only on the one server.. so it's definatly not very scientific. I think we all sorta knew the results anyway. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://desti

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