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

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

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

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

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

Re: [PHP] Register Globals

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 11:50:39 -0700 (PDT), Matthew Sims <[EMAIL PROTECTED]> wrote: > I see that register_globals is turned on. Now I always use the $_GET and > $_POST vars but will this still affect me? .htaccess php_flag register_globals off -- Greg Donald Zend Certified E

Re: [PHP] @session_start generates a new session_id

2004-10-25 Thread Greg Donald
On Mon, 25 Oct 2004 15:59:18 -0400, Lizet Peña de Sola <[EMAIL PROTECTED]> wrote: > How can I set session_auto_start On, I have a similar problem and I think > it's because my web hosting has that feature off. .htaccess php_flag session.auto_start on -- Greg Donald Zend C

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

2004-10-25 Thread Greg Donald
ongest request) Summary for 10K local requests: 11.2 seconds for .html not parsed as PHP vs. 30.5 seconds as .html parsed as PHP. -- 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] Configuration with upload maximum issue...

2004-10-26 Thread Greg Donald
> upload_max_filesize = 5M Did you edit the correct php.ini file? For example on my Debian system I have two: /etc/php4/apache/php.ini /etc/php4/cgi/php.ini -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] how to get bios info

2004-10-26 Thread Greg Donald
On Tue, 26 Oct 2004 18:54:45 +0530, Akshay <[EMAIL PROTECTED]> wrote: > how to get bios info in PHP > Is there any command? Maybe something like: php -r "system('dmesg');" -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ --

Re: [PHP] Add methods to object dinamically

2004-10-26 Thread Greg Donald
and add the new functions there? -- 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] Validation and session variables

2004-10-27 Thread Greg Donald
Like in Pine for example, you _have_ to turn it on before it begins to work. -- 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 Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Greg Donald
n.. as that might help explain more what's going on. -- 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] output htmkl file as text

2004-10-27 Thread Greg Donald
print html tags on the screen? You need to send the Content-Type header for text instead of html. php.net/header -- 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 Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Greg Donald
eeBSD 4.10 system I have. The same test.php script runs fine for me. > cat test.php #!/usr/local/bin/php > ./test.php Content-type: text/html X-Powered-By: PHP/4.3.9 test -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing

Re: [PHP] https://...

2004-10-27 Thread Greg Donald
x27;s what you mean. And I also found: http://marc.theaimsgroup.com/?l=php-general&m=109767486431095&w=2 -- 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] https://...

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 11:01:53 -0500, Afan Pasalic <[EMAIL PROTECTED]> wrote: > I am not so good in this: you want to say that SSL use 443 port Yup. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php

[PHP] Fwd:

2004-10-28 Thread Greg Donald
[EMAIL PROTECTED]). Can someone unsubscribe this guy? Thanks. -- 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] About File Paths

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 18:27:34 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > If a script is to be called with cron *outside* of the http directory, > how should file system paths be handled? I always assume cron is dumb and provide it with full paths. -- Greg Donald Zend Certif

Re: [PHP] Converting a PERL Date

2004-10-28 Thread Greg Donald
On Thu, 28 Oct 2004 13:06:57 -0400, KWRIGHT <[EMAIL PROTECTED]> wrote: > I have a perl date that is writing to a file. I need to display that date > using PHP to a page.The date looks like this 1077051100 in the file. > > Can anyone help? php.net/date -- Greg Don

Re: [PHP] File uploads and handling

2004-10-28 Thread Greg Donald
ust an array): > > if (is_uploaded_file(_FILES['userfile'])) > $handle = fopen($_FILES['userfile'], "r"); $_FILES['userfile']['name'] is the file. $_FILES['userfile']['tmp_name'] is the name of the file. $_FILES[&

Re: [PHP] Learning PHP5

2004-10-28 Thread Greg Donald
ior programming knowledge) and get back to me. It's certainly possible, but I wouldn't want to learn Perl again from scratch. -- 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] Help needed

2004-10-29 Thread Greg Donald
y, but if you post your actual code, people will most likely help you debug it. -- 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] trying 2 pull data out table and populate a list box

2004-10-29 Thread Greg Donald
ders[laddername] EOF; } } > > And then to populate the list: > >for($x=0;$x<$aantal_ladders;$x++) > { > echo(' echo('>'.$rijladders["$x"]["laddername"].''); Like I wrote above, I tend to use

Re: [PHP] Splitting a webpage

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 11:52:46 +0100, Nunners <[EMAIL PROTECTED]> wrote: > Can someone suggest a way of going through the string to find the relevant > bits - is split the easiest way? I would use preg_match(). -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Greg Donald
an preempt it with javascript. Put the load on the client when possible I say. -- 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] Gawd I hate those useless error messages...

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 16:28:39 +0200, -{ Rene Brehmer }- <[EMAIL PROTECTED]> wrote: > I do realise that this error means I've forgotten a curly brace or > semi-colon somewhere, but seriously ... I use vim. Shift-5 matches braces and parentheses easy enough. -- Greg Dona

Re: [PHP] Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Greg Donald
that. ADOdb is very good. adodb.sf.net My favorite feature is the md5 bzip'd PHP sessions. -- 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] Code help on a multi select list

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 10:15:57 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Make mine Communicty New Orleans Blend w/Chicory pleaseintravenously > please... Bah.. Mountain Dew and a couple of Sudafed is where it's at. :) -- Greg Donald Zend Certified Engineer http://

Re: [PHP] Using Google's API with PHP

2004-10-29 Thread Greg Donald
one it with Perl using the SOAP api. Did you register a developer account and get your key and all that? -- 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] Re: Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Greg Donald
ing to do with each other. -- 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] Friday afternoon - being thick

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 12:29:29 -0400, Aaron Wolski <[EMAIL PROTECTED]> wrote: > Is this what you are looking for: > > /r/n? You mean \r\n ? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 21:14:27 +0200, Christian Ista <[EMAIL PROTECTED]> wrote: > Someone else told me it's possible to have a php.ini by website. Could you > tell me where put in and what in ? php -c /path/to/php.ini -- Greg Donald Zend Certified Engineer http://gdcons

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Greg Donald
d_php) you can run php a couple of ways: 1) command line: php -c /path/to/php.ini -r "echo 'Hello World';" 2) command line scripts: #!/usr/bin/php -c /path/to/php.ini -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General

Re: [PHP] Re: Matching *exact* string?

2004-10-31 Thread Greg Donald
On Sun, 31 Oct 2004 12:58:04 +0100, Nick Wilson <[EMAIL PROTECTED]> wrote: > I think in_array() sounds like a great solution, wonder if it's faster > than comparing each ooe with == ? thanks! Benchmark it both ways and find out. Then post back and tell us. :) -- Greg Dona

Re: [PHP] mysql_select_db error

2004-10-31 Thread Greg Donald
a query: > mysql_query("create table foo ( bar int, morebar int )", $resource); > if(mysql_errno()) > { > die(mysql_error()); > } > //I get > //No Database Selected $test = mysql_query() || die('bad query: ' . mysql_error()); -- 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] image files - upload and managment

2004-10-31 Thread Greg Donald
tely a third. It's hard to accept this penalty in light of any meager advantages offered by keeping the files in the databases instead of in a directory. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www

Re: [PHP] str_pad with  

2004-10-31 Thread Greg Donald
characters. It may only appear as one character when viewed as html, but to str_pad() it's 6 characters. -- 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] Uploading Images

2004-11-01 Thread Greg Donald
make sure > the image is no larger than 60x60. Is there any way to do this? getimagesize( $_FILES['userfile']['tmp_name'] ) contains the size info. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http

Re: [PHP] text email & new line

2004-11-02 Thread Greg Donald
On Tue, 2 Nov 2004 11:12:49 -0500, Jerry Swanson <[EMAIL PROTECTED]> wrote: > I'm sending text email. How I can make new line. > "\n" seems to be not working. Use \r\n instead of just \n. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

Re: [PHP] Error Code Airhead

2004-11-02 Thread Greg Donald
values at once, this will always evaluate to true. Maybe you meant && instead of ||. -- 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] authentication question

2004-11-02 Thread Greg Donald
On Tue, 2 Nov 2004 13:48:30 -0500, Kelly Meeks <[EMAIL PROTECTED]> wrote: > I need to require username/password access in two distinct ways. PHP Generic Access Control Lists http://phpgacl.sourceforge.net/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

Re: [PHP] Passing marked rows in a table

2004-11-02 Thread Greg Donald
ould see the answer right away: echo ''; print_r($_POST); echo ''; -- 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] Form executes differently in IE than in FireFox?

2004-11-03 Thread Greg Donald
he recommended limit. Good point. > Laugh, don't mind me, I'm as much of a hypocrite as the next person. We all are at times. -- 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] Domain Information

2004-11-03 Thread Greg Donald
you forget to include your PHP question perhaps? -- 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] PEAR Calendar

2004-11-03 Thread Greg Donald
' > > Please advise. Install it manually. http://pear.php.net/manual/en/installation.manually.php -- 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] email as link

2004-11-03 Thread Greg Donald
ding html emails and form the link yourself. Some folks detest html emails, while others use plugins to make URLs become links in text emails. You're really at the mercy of the recipient email client. *shrug* -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.

Re: [PHP] Apache 1.3 'lag' with PHP ...

2004-11-03 Thread Greg Donald
> Is there something else that I should be looking at to optimize things? > Or to track down the slowdown? Did you happen to try running the Apache benchmark tool 'ab' on it. It provides quite a bit of info aside from the actual timed requests. -- Greg Donald Zend Certified En

Re: [PHP] 'Code Snippets' you couldn't live without

2004-11-03 Thread Greg Donald
ray_map( 'slashes', $_GET ) : array(); $_POST = isset( $_POST ) ? array_map( 'slashes', $_POST ) : array(); $_COOKIE = isset( $_COOKIE ) ? array_map( 'slashes', $_COOKIE ) : array(); } -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

Re: [PHP] Selecting Date Range

2004-11-03 Thread Greg Donald
r as well. Again, where's the PHP code you're asking a question about? -- 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] "Fatal error" on parsedate.c While Building 4.3.9

2004-11-03 Thread Greg Donald
mpiling PHP may cause problems. http://www.php.net/manual/en/faq.build.php#faq.installation.needgnu -- 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] 'Code Snippets' you couldn't live without

2004-11-03 Thread Greg Donald
s asking what code _you_ had that you couldn't live without, code that makes your life easier when reused from project to project. Criticism comes easy when you have nothing to contribute otherwise. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP Gen

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Donald
ce is better? Pffft. When the PEAR developers make an entire webpage with specific instructions for installing a PEAR module manually, I gotta think it isn't 'terrible advice' to post the URL to it. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ --

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Donald
On Wed, 03 Nov 2004 17:35:04 -0500, Greg Beaver <[EMAIL PROTECTED]> wrote: > I am sorry I jumped on you Greg, you have given great advice very often > on this list. My country is going to Hell, and I took a bit of > frustration out on you :) No problem. It happens. :) -- G

Re: [PHP] Sessions and threading

2004-11-04 Thread Greg Donald
x27;yes', things like that add up. Sessions are as efficient as you make them. Also, PHP doesn't have threads. You can use some of the execution functions to simulate them to some extent however: http://www.php.net/manual/en/ref.exec.php -- Greg Donald Zend Certified Engineer http://gdcon

Re: [PHP] ezpublish question -- take 2

2004-11-04 Thread Greg Donald
out all these answers for yourself? It's is dual-licensed and all. :) Did you need some help with installing it perhaps? -- 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] Downloading Large (100M+) Files

2004-11-04 Thread Greg Donald
On Thu, 04 Nov 2004 08:22:18 -0800, Robin Getz <[EMAIL PROTECTED]> wrote: > and now I don't loose 250 Meg of memory every time I download a 250Meg > file. If someone wants to add this to the readfile() php manual - great. Anyone can post user comments in the manual. Give it a

Re: [PHP] Determining system resources

2004-11-04 Thread Greg Donald
sharedbuffers cached Mem: 249246 2 0 4 86 -/+ buffers/cache:154 94 Swap: 486 12473 The system has to support whatever memory command you use. *nix: free windoze: mem -- Greg Donald Zend Certified Engi

Re: [PHP] Zip Codes

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 08:59:50 -0800, bb9876 <[EMAIL PROTECTED]> wrote: > Is there any way to use PHP to determine the zip code someone is visiting > from, assuming they are all from the US? http://www.usps.com/webtools/ -- Greg Donald Zend Certified Engineer http://gdconsultan

Re: [PHP] Strange query

2004-11-04 Thread Greg Donald
On Thu, 4 Nov 2004 13:02:19 -0700, Vail, Warren <[EMAIL PROTECTED]> wrote: > It is too bad this clause is not supported by some of the other > databases I have had to use I think calling a limit a limit and an offset an offset is a good thing. -- Greg Donald Zend Certified E

Re: [PHP] Is there any 'strict' and 'warnings' like packages inside PHP ?

2004-11-04 Thread Greg Donald
On Fri, 5 Nov 2004 06:20:11 +0800, Exile <[EMAIL PROTECTED]> wrote: > Is there any package like 'strict' or 'warnings' in PHP, like Perl ? error_reporting(E_ALL | E_STRICT); E_STRICT was added in PHP5. -- Greg Donald Zend Certified Engineer http://gdconsult

Re: [PHP] Configure help / advise

2004-11-05 Thread Greg Donald
SD. For example: /usr/ports/databases/mysql41-server > Using FreeBSD 4.7 stable if that help (don't want to use the port) To each his own, but it seems the easiest way to me. cd /usr/ports/databases/mysql41-server make install clean -- Greg Donald Zend Certified Engineer

Re: [PHP] Newbie pattern question

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 20:55:00 +0200, Phpu <[EMAIL PROTECTED]> wrote: > if(ereg("^[a-zA-Z0-9_]{2,30}$", $name)) { if(ereg("^[a-zA-Z0-9_\ ]{2,30}$", $name)) { Need to allow spaces in the regular expression. -- Greg Donald Zend Certified Engineer http://gdconsult

Re: [PHP] PHP - MCRYPT - CBC - IDEA

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 13:10:43 -0500, Frantzcy Paisible <[EMAIL PROTECTED]> wrote: > I need to recreate this perl script in php : I'm not sure if you realize it, but you can call the Perl script from PHP using system(). -- Greg Donald Zend Certified Engineer http://gdconsult

Re: [PHP] Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 05 Nov 2004 13:03:31 -0800, Todd Cary <[EMAIL PROTECTED]> wrote: > I have seen instances where the surfer can open a new window to get > email addresses and these addresses appear in the first window. Javascript. -- Greg Donald Zend Certified Engineer http://gdconsultan

Re: [PHP] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 5 Nov 2004 15:30:43 -0600, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Thousands of examples will be yours to behold. 14.8 million from where I sit. I'm tired of all your inaccurate answers Jay. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http:

Re: [PHP] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
ptsearch.com/ -- 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] Re: Passing values from a new window

2004-11-05 Thread Greg Donald
On Fri, 05 Nov 2004 13:17:29 -0800, Todd Cary <[EMAIL PROTECTED]> wrote: > Is there a place where I can view some examples of using JavaScript? http://google.com/search?q=javascript -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP Genera

Re: [PHP] Recover POST form

2004-11-06 Thread Greg Donald
echo ''; print_r($_POST); echo ''; -- 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] loking for a item in string?

2004-11-07 Thread Greg Donald
#x27;; preg_match() can do that. php.net/preg_match -- 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] You know you're a geek when...

2004-11-08 Thread Greg Donald
e to some benchmarks that support this claim? Thanks. -- 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] Session Handling

2004-11-08 Thread Greg Donald
ttp://www.zend.com/manual/ref.session.php http://www.easysoft.com/tech/php/tut_001/main.phtml http://shiflett.org/talks/phpworks2004/php-session-security -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Search engine : build a new one or use an alreadry existing one ?

2004-11-08 Thread Greg Donald
ple php wrapper script: http://www.devshed.com/c/a/PHP/Search-This/ http://www.htdig.org/ This setup allows me a great deal of graphical customization in the results display while putting all the real work with search results and search logic on htdig. -- Greg Donald Zend Certified Engineer ht

Re: [PHP] Sub selects vs nested loop was:Re: [PHP] You know you're a geek when...

2004-11-08 Thread Greg Donald
with proper indexing would be slower than looping through the results with PHP scripting. -- 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] DATE()

2004-11-08 Thread Greg Donald
On Mon, 8 Nov 2004 13:06:41 -0500, Aaron Todd <[EMAIL PROTECTED]> wrote: > Is there any way yo get the date and time using date() from a Internet time > server? php -r "system('ntpdate -q ntp.nasa.gov');" -- Greg Donald Zend Certified Engineer http://gdcons

Re: [PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Greg Donald
etend like I'm posting to vger.kernel.org.. seems to keep most people from yelling at me too much. -- 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] apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9

2004-11-08 Thread Greg Donald
r you installed MySQL from rpms, did you run ldconfig? -- 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] Drawing polygons from traverse information

2004-11-08 Thread Greg Donald
to the screen. This sort of string parsing could be handled with preg_match_all(). -- 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] Why cookie is created?

2004-11-08 Thread Greg Donald
er's computer. That's what a cookie is, a file on the user's computer, created by the web client. -- 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] Why cookie is created?

2004-11-08 Thread Greg Donald
s', 0); will override the php.ini setting. -- 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] Arrays

2004-11-08 Thread Greg Donald
s (and > fairly new to PHP for that matter), so please don't get too technical in > replies. Thanks so much for help. Where is you (broken) PHP code that you have written so far? What is it not doing that you are expecting it to do? -- Greg Donald Zend Certified Engineer http

Re: [PHP] Error logging problem

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 10:49:29 -0500, Al <[EMAIL PROTECTED]> wrote: > > ini_set("error_log", "/AutoSch/error.log"); Looks like this might be a path relative to your domain or your vhost definition? I'd go with a full system path if that's the case. --

Re: [PHP] php mail() error

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 23:14:43 +, Jason Wong <[EMAIL PROTECTED]> wrote: > Or you can wait for Manuel Lemos' reply :) Good one. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Multiple session_start()s / Is it a problem??

2004-11-10 Thread Greg Donald
( !isset ($_SESSION) ) if you don't like using the @ error suppression. I usually have a single common file like config.php or something that I do session_start() in, so I've never actually ran across this issue. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://des

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