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

2007-06-19 Thread Greg Donald
/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] PHP Competition - Win a copy of Zend Studio

2007-06-14 Thread Greg Donald
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

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

2007-06-06 Thread Greg Beaver
, this is more complicated than it seems like it should be, and the next version of the PEAR installer, Pyrus, makes this process MUCH easier. Pyrus has only just been started, and so is barely past proof-of-concept. I hope this helps out. Greg -- PHP General Mailing List (http://www.php.net

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

2007-06-06 Thread Greg Beaver
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] 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 to be installed. -- Greg

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

2007-05-30 Thread Greg Donald
(); } -- 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 Mailing List (http

Re: [PHP] php execute command on server

2007-05-28 Thread Greg Donald
: 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
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
($_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. -- Greg Donald http://destiney.com/ -- PHP General Mailing List

Re: [PHP] Form Validation Issues

2007-05-28 Thread Greg Donald
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] 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 unsubscribe, visit: http://www.php.net

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Greg Donald
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 General Mailing List (http

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

[PHP] zend framework

2007-05-23 Thread Greg Donald
://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
'/ /form; ? Looks like you just need to do some logic debugging to get things wired up how you want. Try adding this to the top of your script so the post action shows you more info: if( isset( $_POST['submit'] ) ) { echo 'pre'; print_r( $_POST ); echo '/pre'; } -- Greg Donald http

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.com/ -- PHP General Mailing

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/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Greg Donald
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
'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
* 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
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.net

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
; 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
. There is no variable interpolation required in the day names so all those double quotes should be 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

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. -- Greg Donald

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
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 General Mailing List

Re: [PHP] convert numerical day of week

2007-05-22 Thread Greg Donald
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
', '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 learn in kindergarten. They didn't teach PHP where I attended kindergarten. Is that a Canadian thing? -- Greg Donald http://destiney.com/ -- PHP

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 benchmarks. -- Greg

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

2007-05-20 Thread Greg Donald
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] 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.net/) To unsubscribe

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

2007-05-19 Thread Greg Beaver
-string('test'); ? Greg -- 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
. 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 Yahoo! ? Or do people always yell his/her

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
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: 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: http://www.php.net

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. -- Greg Donald http://destiney.com

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

2007-05-17 Thread Greg Donald
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
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 Donald http://destiney.com/ -- PHP General Mailing List

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

2007-05-17 Thread Greg Donald
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 Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Download speed limit

2007-05-17 Thread Greg Donald
) ) ( connection_status() == 0 ) ) { print( fread( $handle, 1024 * 8 ) ); sleep( 1 ); flush(); } fclose( $handle ); I get right at 8K/sec using that. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Resources for plugin based frameworks

2007-05-14 Thread Greg Donald
. 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: [PHP] Do you use any framework in your applications?

2007-05-12 Thread Greg Donald
(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://destiney.com/ -- PHP General

Re: [PHP] Help with CURL please

2007-05-11 Thread Greg Donald
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.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Ajax?

2007-05-09 Thread Greg Donald
, 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
|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] Image Resize with LibGD

2007-05-08 Thread Greg Donald
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://www.php.net

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

2007-05-07 Thread Greg Donald
/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 Donald http

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.php.net

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 developers have a do

Re: [PHP] PHP Command line script

2007-05-01 Thread Greg Donald
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] What does mean?

2007-04-30 Thread Greg Donald
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
PROJECT: $prj LENGTH: $_SERVER[CONTENT_LENGTH] EOF; -- 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
code be frowned upon? -- 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
-- 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, 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.net

[PHP] Re: Question

2007-03-20 Thread Greg Beaver
so that you don't expose SSNs to the public hacker community. Hope this helps, Greg -- Experience the revolution, buy the PEAR Installer Manifesto http://www.packtpub.com/book/PEAR-installer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: image digit to check password

2007-03-20 Thread Greg Beaver
that ? thanks a lot, http://pear.php.net/Text_CAPTCHA http://pear.php.net/package/Text_CAPTCHA_Numeral Regards, Greg -- Experience the revolution, buy the PEAR Installer Manifesto http://www.packtpub.com/book/PEAR-installer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Question

2007-03-20 Thread Greg Beaver
-step3.tpl.php?view=markup Hope this helps, Greg -- Experience the revolution, buy the PEAR Installer Manifesto http://www.packtpub.com/book/PEAR-installer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache asks to save php file?

2007-02-06 Thread Greg Maruszeczka
On Tue, 06 Feb 2007 16:42:03 -0700 Skip Evans [EMAIL PROTECTED] wrote: Nothing in the log file. Did restart the web server, and yes, I'm compiling this myself. The log file is actually not being touched. I think it failed to compile the apache module on the last attempt (it stopped

[PHP] Re: unpack on offsets in binary data in variable?

2007-01-09 Thread Greg Beaver
type. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

[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=11194package_id=10450release_id=440432 Information and documentation: http://www.phpdoc.org The

[PHP] Re: call_user_func_array on STATIC method

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

[PHP] Re: SPL Iterator and Associative Array

2006-06-02 Thread Greg Beaver
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] Getting an advanced foreach to work

2006-05-23 Thread Greg Beaver
), 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're much better off doing: $sales_count = count($salespersons); while

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

2006-05-22 Thread Greg Beaver
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

[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

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

2006-04-26 Thread Greg Beaver
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 General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] RSS Generation

2006-04-10 Thread Greg Schnippel
; charset=utf-8); rss version=2.0 channel ... 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 Mailing List (http://www.php.net

Re: [PHP] Ajax please....

2006-04-08 Thread Greg Beaver
iframes 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

Re: [PHP] Need a CRM recommendation

2006-04-04 Thread Greg Schnippel
this with 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 unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-01 Thread Greg Beaver
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

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

2006-03-18 Thread Greg Beaver
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.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
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. Basically I have a text input field, and a select box. As someone types

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 someCallback = { ajaxfunc: function(res

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

2006-03-18 Thread Greg Beaver
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
, 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

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

Re: [PHP] novice with hacked email form issue

2006-02-21 Thread Greg Schnippel
On 2/21/06, cKc Consultants [EMAIL PROTECTED] wrote: An email form that uses a simple server side php code to send the variable values managed to send: snip Try looking for articles on 'email injection'. This is a really good place to start for a description of the security risk and ways to

Re: [PHP] Secure Mail Form using PHP

2006-02-16 Thread Greg Schnippel
I'm trying to make sure my email form cannot be used for spam or injecting additional code and addresses in any way. // CHECK FOR SPAM ATTEMPTS AND REMOVE THEM snip I had a similar problem with my contact form and went down a similar path of trying to clean up the user-input with

[PHP] Help Defending against Email Injection Attacks

2006-02-06 Thread Greg Schnippel
Has anyone developed a really good defense against email injection attacks? I'm waging a prolonged campaign against these luser hordes on a number of non-profit sites I help maintain. I've tried to secure all of the feedback forms using the function below that I cobbled together from various php

Re: [PHP] Hide email addresses from spam bots

2006-02-01 Thread Greg Schnippel
found this a couple of days ago on Digg: http://www.csarven.ca/hiding-email-addresses A comprehensive list of methods on how to hide email addresses in source code from spam bots. Includes; CSS, Javascript, Forms, Images, Obfuscation, Authentication, Flash, Unicode, Encryption and other methods.

Re: [PHP] Hide email addresses from spam bots

2006-02-01 Thread Greg Schnippel
I doubt if this can be done, but it there a way to detect a spambot as compared to a SE indexing your site? They are both basically the same, right? Yes, if you can assume that a spambot will be doing sneaky things to hide its origin or identity. The bad behavior project has been trying to

[PHP] Re: php -w causes a parse error

2006-01-25 Thread Greg Beaver
to install a bytecode cache like Zend Optimizer or APC. If they have installed one already, your best efforts with php -w will result in identical running times, and as you noted, make it impossible to debug any problems. Best of luck, Greg -- PHP General Mailing List (http://www.php.net

Re: [PHP] php / mysql / js search result question

2005-12-29 Thread Greg Schnippel
Hi - It sounds like you're trying to implement something similar to google suggest which uses ajax to allow a user to navigate through a large list of entries. The google suggest method does use a lot of calls to the database but its asynchronous which eliminates cumbersome page loads.

Re: [PHP] load testing tools

2005-12-27 Thread Greg Donald
/cookie, then pass it back with ab using -C. And if those won't do: http://opensourcetesting.org/performance.php -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions...

2005-12-22 Thread Greg Donald
://dbsessions.destiney.com/ -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Earlier versions hurt PHP 5

2005-12-19 Thread Greg Donald
, much less PHP5. I use PHP 5 because I want to stay current with my skills, not because I need language functionality that's missing in PHP4. Same with Apache 2, PostgreSQL 8, and MySQL 5. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing

Re: [PHP] MVC platform choice.

2005-12-01 Thread Greg Donald
On Thu, 1 Dec 2005, Ahmed Saad wrote: http://www.agavi.org 0.10rc is already in the svn Do you still have to reassign the data in the view for use in the template after having already created it once in the action? That is quite the pain. -- Greg Donald Zend Certified Engineer MySQL

Re: [PHP] MVC platform choice.

2005-11-30 Thread Greg Donald
I've ever used. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web based editor

2005-11-27 Thread Greg Donald
to draft stuff in MS Word first. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Local PEAR install confusion

2005-11-20 Thread Greg Beaver
to grab any packages. Hwoever, if you would like, upgrading via pear upgrade --loose Archive_Tar should work, or pear upgrade --force Archive_Tar You do not need to re-install from scratch. Your host has an older CLI version of PHP than the PHP version used by apache. Greg -- PHP General

<    1   2   3   4   5   6   7   8   9   10   >