Re: [PHP] RE: [firebird-php] auto increment last insert

2004-11-24 Thread Greg Donald
, then this is definitely the place to ask. -- 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: [firebird-php] auto increment last insert

2004-11-24 Thread Greg Donald
to learn the language without RTFM? The knowledge isn't going to just jump into your head. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ RTFM almost daily since 1998.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] submitting two forms on one page

2004-11-23 Thread Greg Donald
=field input type=button name=submit /form EOF; ? Nice and clean, no escaping required, variables parse, 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

Re: [PHP] perl to php translation tool?

2004-11-22 Thread Greg Donald
surprises me. Does anyone know of any tool that can handle this type of thing? You may find this reference page useful: http://www.cs.wcupa.edu/~rkline/perl2php/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-22 Thread Greg Donald
On Mon, 22 Nov 2004 21:38:00 +0100, Perry Jönsson [EMAIL PROTECTED] wrote: What is the difference between these two examples? diff 1.txt 2.txt 1c1 1. if ($_POST['submit'] == 'Login') { --- 2. if (isset($_POST['submit']) { -- Greg Donald Zend Certified Engineer http://gdconsultants.com

Re: [PHP] Class for determining word count, ignoring HTML?

2004-11-20 Thread Greg Donald
long: blockquote This string is six words long. /blockuote Use strip_tags() to remove the html, then explode() the string by a space, then count() the exploded array. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http

Re: [PHP] Re: ending a session

2004-11-20 Thread Greg Donald
id in the url. As long as you connect to the same database, your PHP session will follow you wherever your scripts live. Someone probably has something better, but here's mine: http://destiney.com/pub/php_db_sessions.tar.gz -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http

Re: [PHP] HTML form online

2004-11-19 Thread Greg Donald
/fsockopen -- 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-editor connected to FTP?

2004-11-18 Thread Greg Donald
On Thu, 18 Nov 2004 09:41:53 +0100, Peter Lauri [EMAIL PROTECTED] wrote: What editor do you use when working with websites (php) connected directly to the FTP? Editplus has this ability. http://editplus.com/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http

[PHP] Re: Array unset

2004-11-17 Thread Greg Beaver
Bruno b b magalhães wrote: So, the question, how resort the numeric values to 1,2,3,4? http://www.php.net/array_values Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: debug_backtrace bug?

2004-11-17 Thread Greg Beaver
correct for some reason? (Tested in php 5.0.0, 5.0.1, and 5.0.2) This looks like a bug to me, open a report. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 4 to 5 class issues involving static methods and $this

2004-11-17 Thread Greg Beaver
(ReflectionException $e) {} } } static_my_class::format_string('a'); $a = new my_class; $a-format_string('a'); ? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] debug_backtrace bug?

2004-11-17 Thread Greg Beaver
() is reporting that __CLASS__ is foo inside bar::b(). Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What should I name my base class?

2004-11-17 Thread Greg Beaver
limit future flexibility. Use inheritance like salt - as an enhancement for flavoring, otherwise you might develop high blood pressure ;). Better is to use delegation, factory or singleton as a way to access needed features, because then you can easily plug in new base functionality. Greg

Re: [PHP] php broken pipe

2004-11-16 Thread Greg Donald
error [nativecode=Unable to complete network request to host 127.0.0.1. Error writing data to the connection. Broken pipe] You might try pcntl_fork() instead. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] London - One Day Workshop How to Build a Professional Database-Driven Website

2004-11-16 Thread Greg Donald
of the competition. Hope to see you there. So do you plan to send us all plane fare to London and allow us to attend your 'great opportunity' for free? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] copy function?

2004-11-16 Thread Greg Donald
construct the function? That's Javascript, not 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] splitting string

2004-11-16 Thread Greg Donald
| character, it's pretty standard and I've never seen it used as anything except a delimiter. -- 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] isset opposite

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 15:11:39 -0800, Dustin Krysak [EMAIL PROTECTED] wrote: how can you check if something is not set? !isset() -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] handling tag and quote (' )

2004-11-16 Thread Greg Donald
On Wed, 17 Nov 2004 10:28:30 +1100, adwinwijaya [EMAIL PROTECTED] wrote: Hello php-general, I have question for you :) Is there suggestion about how to remove html tag, javascript and quote (' ) from user's input at the same time ? strip_tags() str_replace() -- Greg Donald Zend

Re: [PHP] Database search logic question

2004-11-15 Thread Greg Donald
. $_SERVER['QUERY_STRING'] to be exact. -- 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] Column Totals

2004-11-15 Thread Greg Donald
On Mon, 15 Nov 2004 11:21:45 -0700, Ben Miller [EMAIL PROTECTED] wrote: That did it perfectly. Why don't any of the stupid books tell you that you need the AS statement? Because they assumed you would access it just like you asked for it. $bar['SUM(Revenue)'] -- Greg Donald Zend Certified

Re: [PHP] newbie question

2004-11-15 Thread Greg Donald
; ? /BODY /HTML Also, your code is subject to SQL injection. You might want to investigate PHP's addslashes() function. And maybe read this too: http://shiflett.org/php-security.pdf -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing

Re: [PHP] Date Conversions?

2004-11-15 Thread Greg Donald
and skip the 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] saving blobs to file system

2004-11-15 Thread Greg Donald
, or file_put_contents() if your PHP is new enough. You won't need to output any headers, they only matter when you render the file in an application such as a web client. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http

Re: [PHP] Re: PHP file permission

2004-11-15 Thread Greg Donald
anything to do with protecting the end user from a virus or from spyware. The execution of a PHP script begins and ends on the web server. The output is sent to the requester for rendering, not further execution. Can you please explain a bit more? -- Greg Donald Zend Certified Engineer http

Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread Greg Donald
with PYTHONHOME/PYTHONPATH/etc, ruby with RUBYOPT/RUBYLIB/RUBYPATH/etc). PS: I am aware of -c. It would be nice to have something like PHP_INI_PATH/PHP_INI_DIR/PHP_INI_NAME though... print_r($_ENV); -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP

Re: [PHP] Syslog Parser

2004-11-12 Thread Greg Donald
freshmeat. http://cpan.perl.org/ http://freshmeat.net/ For graphing in PHP I use JPGraph: http://www.aditus.nu/jpgraph/index.php -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Globally accessible objects without using 'global $obj;'

2004-11-12 Thread Greg Beaver
- not exactly a timesaver, unless you simply give up on making your code better :) Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing resources from one script to another

2004-11-11 Thread Greg Donald
than a single connection at once. You can simulate thread functionality to a degree using the PHP execution functions here: http://www.php.net/manual/en/ref.exec.php -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http

Re: [PHP] calling function from function?

2004-11-11 Thread Greg Donald
. global $defined; db( $defined[9], $defined[1], $defined[2], $defined[3] ); ... do some processing ... What does print_r( $defined ) show you? Is that what you expect to be in the array? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP

Re: [PHP] calling function from function?

2004-11-11 Thread Greg Donald
On Thu, 11 Nov 2004 12:42:44 -0700, Jason [EMAIL PROTECTED] wrote: There isnt an error at all. How could there be an error? You're using @ to suppress nearly every mysql function call. Makes it kind of hard to debug that way. -- Greg Donald Zend Certified Engineer http://gdconsultants.com

[PHP] Re: adding a space every 4 chars

2004-11-11 Thread Greg Beaver
Justin French wrote: Hi, What's the quickest way to add a space every four characters? Eg 123456789 becomes 1234 5678 9 ?php $a = '123456789'; echo implode(' ', str_split($a, 4)); ? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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. -- Greg Donald Zend Certified Engineer http

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 unsubscribe, visit

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

2004-11-10 Thread Greg Donald
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://destiney.com/ -- PHP General Mailing List (http

Re: [PHP] Question on functions

2004-11-10 Thread Greg Donald
understand parts but googling for the proper use of functions in php hasn't gotten me anywhere... Looks like you understand already. Did you have some broken code you wanted help with? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing

Re: [PHP] Load testing for PHP Applications

2004-11-10 Thread Greg Donald
/; done -- 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] should basic data validation go outside a function or inside?

2004-11-10 Thread Greg Donald
. :) / -- 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] displaying repetitive results

2004-11-10 Thread Greg Donald
but you didn't say what db you're using. Looks like MySQL output but I could be wrong. -- 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] LINUX: Problem with php installation

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 20:34:46 + (GMT), abhilash kumar [EMAIL PROTECTED] wrote: The error log file is showing Segmentation fault. Did you happen to try display_startup_errors = On in your php.ini.. I'm not sure but it might provide a more informative error message. -- Greg Donald Zend

Re: [PHP] You know you're a geek when...

2004-11-08 Thread Greg Donald
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
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 unsubscribe, visit: http://www.php.net

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

2004-11-08 Thread Greg Donald
://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 http://gdconsultants.com/ http

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

2004-11-08 Thread Greg Donald
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://gdconsultants.com/ http://destiney.com/ -- PHP

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

2004-11-08 Thread Greg Donald
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
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
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
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
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
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://gdconsultants.com/ http

Re: [PHP] loking for a item in string?

2004-11-07 Thread Greg Donald
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] Recover POST form

2004-11-06 Thread Greg Donald
'/pre'; -- 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] Configure help / advise

2004-11-05 Thread Greg Donald
/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 http://gdconsultants.com/ http://destiney.com

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://gdconsultants.com/ http://destiney.com/ -- PHP

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

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

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

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

2004-11-05 Thread Greg Donald
/ -- 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 General Mailing List

Re: [PHP] Sessions and threading

2004-11-04 Thread Greg Donald
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://gdconsultants.com/ http://destiney.com/ -- PHP General

Re: [PHP] ezpublish question -- take 2

2004-11-04 Thread Greg Donald
. :) 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 shot. -- Greg

Re: [PHP] Determining system resources

2004-11-04 Thread Greg Donald
246 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 Engineer http://gdconsultants.com/ http

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

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 Engineer http

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://gdconsultants.com/ http://destiney.com/ -- PHP

Re: [PHP] Form executes differently in IE than in FireFox?

2004-11-03 Thread Greg Donald
, 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
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
. 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
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.com/ -- PHP General Mailing List (http

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

2004-11-03 Thread Greg Donald
? 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 Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http

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

2004-11-03 Thread Greg Donald
(); $_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://destiney.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Selecting Date Range

2004-11-03 Thread Greg Donald
something like this: SELECT * FROM students WHERE join_date = '10/12/04' AND join_date = '12/12/04'; But I'm doubting your dates are stored in that format, and I bet there's more than one table to consider as well. Again, where's the PHP code you're asking a question about? -- Greg

Re: [PHP] Fatal error on parsedate.c While Building 4.3.9

2004-11-03 Thread Greg Donald
://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
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 General Mailing List (http://www.php.net

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Beaver
Greg Donald wrote: On Wed, 3 Nov 2004 15:41:54 +0800, Roger Thomas [EMAIL PROTECTED] wrote: I would like to install PEAR Calendar module and did a [EMAIL PROTECTED] apps]# pear install Calendar but got these: No release with state equal to: 'stable' found for 'Calendar' Please advise. Install

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Donald
On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver [EMAIL PROTECTED] wrote: Install it manually. http://pear.php.net/manual/en/installation.manually.php This is terrible advice. $ pear install --force Calendar. And you think --force is better? Pffft. When the PEAR developers make

Re: [PHP] PEAR Calendar

2004-11-03 Thread Greg Beaver
Greg Donald wrote: On Wed, 03 Nov 2004 16:28:13 -0500, Greg Beaver [EMAIL PROTECTED] wrote: Install it manually. http://pear.php.net/manual/en/installation.manually.php This is terrible advice. $ pear install --force Calendar. And you think --force is better? Pffft. When the PEAR developers make

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. :) -- Greg Donald Zend

[PHP] Re: name of the function

2004-11-03 Thread Greg Beaver
Gustavo A. Baratto wrote: hello there, is there anyway to know the name of the function that is being executed? In the docs (http://www.php.net/manual/en/ref.funchand.php), we can find out the arguments of the function, but not the name of the function itself. echo __FUNCTION__; Greg -- PHP

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

Re: [PHP] Error Code Airhead

2004-11-02 Thread Greg Donald
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://destiney.com

Re: [PHP] Passing marked rows in a table

2004-11-02 Thread Greg Donald
right away: echo 'pre'; print_r($_POST); echo '/pre'; -- 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
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://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: An easier way? $_POST[] = $_SESSION[]

2004-11-01 Thread Greg Beaver
. so, the way you're doing it is a lot better than any other options, but I would add in checks to the values before you save them in $_SESSION. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 Donald Zend Certified

Re: [PHP] mysql_select_db error

2004-10-31 Thread Greg Donald
= 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
this penalty in light of any meager advantages offered by keeping the files in the databases instead of in a directory. /snip -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] str_pad with nbsp;

2004-10-31 Thread Greg Donald
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

[PHP] PHP_EOL on Darwin?

2004-10-31 Thread Greg Beaver
Hi all, What's the standard line ending for Darwin? is it still the same as old Mac, which I think was just \r? Or does it use \n like unix? Greg -- 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
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
this. -- 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] 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://destiney.com

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

2004-10-29 Thread Greg Donald
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 Donald Zend Certified Engineer

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

2004-10-29 Thread Greg Donald
. 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://gdconsultants.com

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