[PHP] 'use' and 'import'

2001-02-20 Thread Michael Dearman
I give up. The PEAR docs refer to 'use' or 'import'. I know I've seen 'import' somewhere, but I can't find either in my ref books, searches on Zend.org, nor the manual. Could someone direct me to where these 2 functions? / statements? / directives? are explained. Thanks, Mike D. -- PHP General

Re: [PHP] using include_path with file_exists()

2001-02-20 Thread Michael Dearman
Hi Ben, I thought maybe there was something like HTTP_SERVER_VARS["INCLUDE_PATH"], but apparently not. Could you just define your own $GLOBALS["my_include_path"] = and use that with file_exists()?? Mike D. Ben Peter wrote: Hi all, is there a decent way to check whether a file is

Re: [PHP] preg_match() vs. preg_match_all()

2001-02-09 Thread Michael Dearman
CC Zona wrote: What is the functional difference between preg_match() and preg_match_all()? I've puzzled over the manual descriptions for both, checked the list archives and faqts.com, and still can't figure out why they seem to return different results for the same pattern searches.

[PHP] A php-xml mailing list?

2001-02-09 Thread Michael Dearman
I think it would be helpful. What do you folks think? MD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] looping variables

2001-02-08 Thread Michael Dearman
Hey Wen, Had me going there for a bit, cause I had just put down a book on C, where variables are not preceded by such things as $. But for PHP, your missing a few $'s on your variables. And, your taking care of matching that javascript opening tag from where your calling this function? MD Wen

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Michael Dearman
John Huggins wrote: Well, I have compiled a php binary for use as yet another scripting language to work along side AWK, Perl, Sh, etc. It works too. I have this file... #!/usr/local/bin/php ? print("Hello World\n"); ? I run it and get.. host:~/projects/PHPScripts #

Re: [PHP] reg-ex problem

2001-02-07 Thread Michael Dearman
} elseif( preg_match( "/^\d+$/", $arg[$i], $matches ) ) Isn't this \d+ matching --^ { $value = $matches[0]; } elseif( preg_match( "/(div\d|prem)/", $arg[$i], $matches ) ) the \d in this-^^ And

Re: [PHP] reg-ex problem

2001-02-07 Thread Michael Dearman
Christian Reiniger wrote: On Wednesday 07 February 2001 21:50, Michael Dearman wrote: } elseif( preg_match( "/^\d+$/", $arg[$i], $matches ) ) Isn't this \d+ matching --^ { $value = $matches[0]; }

Re: [PHP] Creating Directorys (slightlyOT)

2001-02-07 Thread Michael Dearman
[EMAIL PROTECTED] wrote: Hi, I am trying to install a free mailing list manager for a mate, I have spent numerous hours trying to figure out why it won`t setup properly. I installed it on one of my own servers and it worked fine but not on his, however I have now dwindled it down to

Re: [PHP] Syncronizing of mysql-db

2001-02-03 Thread Michael Dearman
Maybe mysqldump? Something like: mysqldump my_db | mysql -h the.other.org my_db Of course you got to stick a username passwd in there somewhere. In the open? Someone else will have to help if that's a concern, which it should be, I guess. And you might find some of the various options