Re: [PHP] PHP5 Webhost

2005-10-04 Thread Greg Donald
r less than $40/mo? Dedicated hosting is right out as > we obviously don't have the budget for that. Any thoughts/suggestions > would be very much appreciated. Thanks. http://www.ocssolutions.com/ -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] Scripts not working outside of Zend Studio

2005-10-05 Thread Greg Donald
with multiple php.ini files, one for the cli PHP, one for the mod_php. I'd cut out the middle man and add a call to error_reporting() at the top of the script. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] data move from mssql to mysql via php

2005-10-07 Thread Greg Donald
http://www.kofler.cc/mysql/mssql2mysql.html -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] Dynamic sub directory listing without redirect

2005-10-07 Thread Greg Donald
dle this easy enough: RewriteEngine on RewriteRule ^([a-z].*) /index.php?username=$1 [L,qsappend] RewriteRule ^$ /index.php [L,qsappend] $_GET[ 'username' ] will be available in your index.php when you pass a url like: www.mysite.com/joesoap This can be expanded for more variables/matc

Re: [PHP] Testing a String for 'most' Capitalised

2005-10-10 Thread Greg Donald
On 10/10/05, zzapper <[EMAIL PROTECTED]> wrote: > Image that there could be a string > > fred > Fred > FRED > > First of all I need to know that these are same which I can do with > strtolower, > but how could I tell $a = array( 'fred', 'Fred

Re: [PHP] Testing a String for 'most' Capitalised

2005-10-10 Thread Greg Donald
On 10/10/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > cute - but it doesn't always work e.g.: > > $a = array( "FrEDDie", "fREDdIE", "FReddie" ); > sort( $a ); > echo $a[ 0 ]; // we want the 2nd item from the unsort array Works for the samp

Re: [PHP] Testing a String for 'most' Capitalised

2005-10-10 Thread Greg Donald
y get to use 'bloody' in programming conversation. The code I posted works with the sample data provided. Sorry if it bothers you that I didn't test it with a full dictionary word list. > *shrug* is rather blasee btw. http://dictionary.reference.com/search?q=blasee Blase? Wh

Re: [PHP] function to compare ip addr to a ip range>

2005-10-13 Thread Greg Donald
t;In range\n"; } else { echo "Not in range\n"; } ?> -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] How to automate php with crontab?

2005-10-13 Thread Greg Donald
On 10/5/05, Scott Fletcher <[EMAIL PROTECTED]> wrote: > Then do something like this... > > 0,5,10,15,20,25,30,35,40,45,50,55 * * * * > /usr/local/bin/inquiry_pull_test.php Or more simply: */5 -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] Trouble figuring out a Walk through an Array

2005-10-13 Thread Greg Donald
as > it matches. in_array() -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] Re: Question about including files and server load

2005-10-14 Thread Greg Donald
end Optimizer would be helpful in this area too: http://pecl.php.net/package/APC http://zend.com/store/products/zend-optimizer.php I think putting each function in it's own file is a bit drastic. There are simpler ways to gain performance. -- Greg Donald Zend Certified Engineer My

Re: [PHP] automatic login..

2005-10-14 Thread Greg Donald
o speed on md5 history and the current hash collisions work being done: http://en.wikipedia.org/wiki/Md5 Md5 has been adequate for 15 or so years, but now it's time to move on. Disclaimer: There are only 5 or 6 people in the entire world who know anything about encryption. I am not one

Re: [PHP] network speed

2005-10-14 Thread Greg Donald
0m0.226s real0m0.336s user0m0.011s sys 0m0.007s real0m0.978s user0m0.160s sys 0m0.225s -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] Re: How can I count the usage of mail function in scripts?

2005-10-18 Thread Greg Donald
On 10/18/05, Oliver Grätz <[EMAIL PROTECTED]> wrote: > Usually customers pay a fix fee for > some free traffic and then must pay for traffic exceeding those limits. > What they do with that traffic is none of your business. You've obviously never been a hosting provider.

Re: [PHP] LDAP and a pain in my neck

2005-10-20 Thread Greg Donald
efined function: ldap_connect() > > What am I missing? TIA. Did you uncomment (and properly define) the 'extension_dir' directive in your php.ini? -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] compile issue.

2005-10-21 Thread Greg Maruszeczka
Mark Nernberg wrote: > This is a repost, as I have received no response thus far. > > Running FreeBSD 5.4/RELEASE on Sparc64 and Apache 2.0.55 > > When attempting to install 4.4.0 or 5.0.5, from ports or from source, I am > getting the following error: (This specific error is from 4.4.0 from port

Re: [PHP] Re: Php and Ruby

2005-10-23 Thread Greg Donald
same time with no problems. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Re: [PHP] Use sqlite with php 4.4 ?

2005-10-28 Thread Greg Donald
On Fri, 28 Oct 2005, mbneto wrote: is it possible to use sqlite with php 4.4 ? What do I have to do ? I could not find and option in ./configure. http://php.net/sqlite -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http

Re: [PHP] calling static method within class

2005-10-28 Thread Greg Donald
ou do it outside the class: Foo::getMe(); -- 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] Re: Type of form element

2005-10-28 Thread Greg Donald
name as the checkbox field before the actual checkbox field. I store my 'false' value in there. If the checkbox is checked the hidden field is overridden. '; print_r( $_POST ); echo ''; } echo << Blah? EOF; ?> -- Greg Donald Zend Certified

Re: [PHP] is there a number translation function?

2005-10-29 Thread Greg Donald
and etc. http://pear.php.net/package-info.php?package=Numbers_Words -- 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] could someone remove [EMAIL PROTECTED] from the list.

2005-11-02 Thread Greg Donald
On Wed, 2 Nov 2005, John Nichel wrote: Hmare you saying that it would be good to have an active moderator on this list? ;) :0 * [EMAIL PROTECTED] /dev/null -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http

[PHP] Re: PHP] Richard Lynch's Email Address ...

2005-11-02 Thread Greg Donald
, just use the handy-dandy Perl module: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html -- 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] Reset STDIN pointer

2005-11-02 Thread Greg Donald
On Wed, 2 Nov 2005, John Nichel wrote: There has to be a way to do thisreset the internal STDIN pointer to the begining but I'll be damned if I can find it. reset ( STDIN ); returns an error. You can use rewind() on an fopen()'d php://stdin. -- Greg Donald Zend Certifie

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-02 Thread Greg Donald
On Thu, 2005-11-03 at 10:32 +0600, viraj wrote: > second point is, different organizations have different policies on > validating email addresses RFC822 Section 6.1 provides the standard (policy). -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -

Re: [PHP] Re: Reset STDIN pointer

2005-11-02 Thread Greg Donald
ndles. http://php.net/manual/en/function.rewind.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

[PHP] Help with Reverse Tree Traversal using Recursion ..

2005-11-14 Thread Greg Schnippel
ch works, but there is something wrong with my logic as the tree comes back reversed: > Level 3 (Bottom) > Level 2 > Level 1 (Top) Any suggestions on how to do this? Thanks, - Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with Reverse Tree Traversal using Recursion ..

2005-11-14 Thread Greg Schnippel
but I'm hopeful that once the data is an array, I can make use of a php function to reverse or sort the array. Another reader also recommended this article on php and recursion: http://www.zend.com/zend/art/recursion.php I'll post if I get any closer, - Greg On 11/14/05, Richard Lyn

Re: [PHP] Good user comment system?

2005-11-14 Thread Greg Schnippel
ticle. It does need some work fending off comment-spam, as the demo version illustrates. However, it is very small and well-documented so you can easily integrate an approval-based or captcha anti-spam defense. - Greg On 11/13/05, Guy Brom <[EMAIL PROTECTED]> wrote: > Hi all, > > An

Re: [PHP] Re: Zend + Eclipse + Standized Framework

2005-11-14 Thread Greg Donald
ssign my data in the view for use in the template after it's already ready already in the controller, pointless.) A database-agnostic database abstraction layer capable of using database meta data effectively. (Why am I still writing SQL?) Ajax, built-in. (Cause all the cool kids are using it

Re: [PHP] Re: Zend + Eclipse + Standized Framework

2005-11-15 Thread Greg Donald
but you have to code it yourself. Not really, it's builtin to Rubyonrails. Very simple to use: http://www.onlamp.com/pub/a/onlamp/2005/06/09/rails_ajax.html -- 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] Validating Email addrs

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Leonard Burton wrote: I know that it is pretty darn impossible to come up with a regular expression for validating emails. Nah.. just depends on how closely you want to follow the RFC. http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html -- Greg Donald Zend Certified

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
27;ve seen are written in Perl and do not run on the server being exploited. I've seen a few written in Python, but never have I seen one written in PHP or ASP. Short tags have nothing to do with security. -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.co

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
On Tue, 15 Nov 2005, Jim Moseby wrote: It will be when you have to sort through 1,000,000 lines of code in 400 files to change ' for file in *.php; do cp $file $file.tmp sed -e "s/$file rm $file.tmp done -- Greg Donald Zend Certified Engineer MySQL Core Certification http://de

RE: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Greg Donald
. for file in *.php; do cp $file $file.tmp php -r 'echo preg_replace("/<\?php=\s*/i","",preg_replace("/<\?(?!php)/i","$file.tmp >$file rm $file.tmp done -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP

Re: [PHP] Regex for Amateur Radio Callsigns

2005-11-17 Thread Greg Beaver
s a standard technician/general class call sign, located in region 8 Michigan/Ohio/Kentucky, etc.) _... . Greg -- 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
he wild. THis is because if it were to break PEAR, this would make it difficult 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 scratc

[PHP] Re: Local PEAR install confusion

2005-11-20 Thread Greg Beaver
Colin Andrews wrote: Thanks a ton- So then that means that the only way to get rid of the warnings is to change the error reporting level? No, report the warnings as a bug at pear.php.net/bugs You can also hand-fix the source in the mean time, it's only 5-10 lines of code, right?

Re: [PHP] Web based editor

2005-11-27 Thread Greg Donald
hies who like 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

Re: [PHP] MVC platform choice.

2005-11-30 Thread Greg Donald
framework 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] 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] Earlier versions hurt PHP 5

2005-12-19 Thread Greg Donald
OO fix. Not to mention I have never once had a client ask for PHP specifically, 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

Re: [PHP] Sessions...

2005-12-22 Thread Greg Donald
ions setup for years: http://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] load testing tools

2005-12-27 Thread Greg Donald
a session id/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: h

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

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

2006-01-25 Thread Greg Beaver
a template) 2) try to optimize database use (only use it where necessary, and optimize queries) and optimize page generation by using a cache if necessary 3) ask your host provider to install a bytecode cache like Zend Optimizer or APC. If they have installed one already, your best efforts with p

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

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 > > I had a similar problem with my contact form and went down a similar path of trying to clean up the user-input with re

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: 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 patc

[PHP] Cannot get PHP w/GD to compile with Apache on RH

2001-02-12 Thread Greg Kopp
php-mysql/apache_1.3.14' make: *** [build] Error 2 Can someone give me some insight as to what I need to do? I have tried compiling gd, libjpeg, etc. from sources and get worse results (PHP doesn't see the ImageCreateFromJPEG function as well as most of the others that GD should be includi

[PHP] newbie error message i don't understand....please help

2005-06-08 Thread Greg M. Price
Please help - I got " Error message: "Your PHP version does not have support for MySQL" when I did http://x.x.x.x/install.php on windows 2003 with Php 5.04 and MySQL 5.0. Can anybody tell me what this is all about? Thanks, GMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] newbie error message i don't understand....please help

2005-06-08 Thread Greg M. Price
quot;Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Greg, > > Wednesday, June 8, 2005, 3:58:03 PM, you wrote: > > GMP> Please help - I got " Error message: > GMP> "Your PHP version does not have support for MySQL" >

<    10   11   12   13   14   15