RE: [PHP] The "peacock" logo... and others...

2001-12-13 Thread Jack Dempsey
True...guess everyone's forgotten the ol' pocket manual... Any chance a new edition will come out? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:30 PM To: Philip Hallstrom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] The "peacock" log

Re: [PHP] The "peacock" logo... and others...

2001-12-13 Thread Philip Hallstrom
Would you rather it be an asp? http://www.oreilly.com/catalog/aspnut2/ >From the colophon: The animal appearing on the cover of ASP in a Nutshell, 2nd Edition, is an asp, which is a term applied to various venomous snakes, including the depicted asp viper (Vipera aspis) of Europe as well as the

RE: [PHP] The "peacock" logo... and others...

2001-12-13 Thread Rasmus Lerdorf
The full book will have the same bird on the cover. I'd like to do a new edition of the pocket reference. (and yes, I will try to get them to not remove the index this time), but O'Reilly wants to get the full book out before they'll let me do another quick reference. -Rasmus On Thu, 13

[PHP] [PHP/Apache] Transparent Subdomains ?

2001-12-13 Thread Jon Shoberg
Any ideas on how to pull this off. I would like to have http://mydomain.com and http://www.mydomain.com resolve to my /index.html page. When a user types in http://crazy.mydomain.com or http://crazy.mydomain.com/crazy-page.php, I would like to have it resolve to /home/mydomain/public_html/ha

RE: [PHP] The "peacock" logo... and others...

2001-12-13 Thread Jack Dempsey
Oh great, I didn't realize there was full book in the making...any ideas on when the full book will be hitting the shelfs? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:39 PM To: Jack Dempsey Cc: [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] Searching for a new provider

2001-12-13 Thread Nuitari
I switched to Aletia in April I believe, and have been pleased. I asked for pdflib to be compiled on the server my site is on (stingray), and they did. It took about 3 days. My server has been up for 52 days 15 minutes, so that is good...however, 2 times in the last 6 months I have been denied a

RE: [PHP] The "peacock" logo... and others...

2001-12-13 Thread Rasmus Lerdorf
Before I get hundreds of questions on this, nope. I have no idea when it will be done. I have written some stuff for it, but am mostly reviewing what others have written. It should be a good book, but there is still some work to do to finish it up. I would say sometime in the next 3-6 mont

RE: [PHP] Re: PHP 4.1.0 and User-defined Sessions

2001-12-13 Thread Alok K. Dhir
FWIW, and I don't have time to try to debug this right now, so I've rolled back to 4.0.6 on my dev server (never upgraded production), I too am seeing seemingly random segfaults (Sig 11) from php 4.1.0 + Apache 1.3.22. All is well in 4.0.6 (and 1.3.22). I, too, am using a database bound custom s

[PHP] Re: Date Formatting/Reading

2001-12-13 Thread Jeremy Reed
Got a question, I just noticed your signature, 'earn up to $10 per order selling our PHP Scripts'. Are you paying us to help you out? =) Just messing with ya. Anyway, you'd probably want to use a 'DATE' field. For checking the passing of a month, the easiest way would be to use the getdate()

RE: [PHP] Re: PHP 4.1.0 and User-defined Sessions

2001-12-13 Thread Alok K. Dhir
Also, I saw the faults with little to no load on the server. I.e. just me banging on it. The faults are seemingly random, although I was able to duplicate failing test cases with some consistency. More on this in a day or two. > -Original Message- > From: > [EMAIL PROTECTED] > [mailt

[PHP] How do I do this

2001-12-13 Thread Boget, Chris
I've got the following possible (example) strings: [hi] there, this is me [HI] there, this is me [ho] there, that is you [HO] there, that is you [hey] there, where are you [HEY] there, where are you and so on. I'm trying to come up with a regex that will find the capitalized text (only) between

Re: [PHP] Performance

2001-12-13 Thread Dan McCullough
Well its like anything else, its personal preference and who your talking too, this is standard coding pratice offered by our development firm, and I have continued the practice. To be honest, you should almost never have logic code contained on the same page as your presentation code. I have

[PHP] Re: very urgent assistance

2001-12-13 Thread Mike Eheler
http://home.rica.net/alphae/419coal/ Mike Adewale.Johnson wrote: > Dr.Adewale.Johnson. > 16 Kingsway Road > Ikoyi, Lagos > Nigeria.. > [EMAIL PROTECTED] > 6th, December , 2001. > > Sir, > > Request for Urgent Business Relationship. > > First I must solicit your confidence in this tr

[PHP] Re: How do I do this

2001-12-13 Thread Philip Hallstrom
This is untested, but something like... $str = "[hi] there, this is me [HI] there, this is me"; $newstring = ereg_replace("(\[[A-Z]*])", "\\1", $str); should do it. using the Perl regexe's might make it easier, but that should work. On Thu, 13 Dec 2001, Boget, Chris wrote: > I've got the fol

[PHP] Problem with fopen / url

2001-12-13 Thread Martin Leclair
Hi, I have a problem doing a fopen("http:///index.php","r";) on a particular server it's extreamly slow (about 2 minutes to get the content of a webpage on a server that pings at 1ms) on another server it's getting the content in less than 5 seconds (same script). Same URL, servers are side t

[PHP] Best book you've used/or one can use to learn php?

2001-12-13 Thread Joelmon2001
Hello, thanks for your time. The subject says it all. I'll still read, test, and search archives. But taking into consideration new changes in php, and not wanting to just learn x in php, just curious if there is a current "recommended" Book you know of or book that has helped you greatly that

Re: [PHP] Searching for a new provider

2001-12-13 Thread R'twick Niceorgaw
cool.. I'm also on stingray:) - Original Message - From: "Nuitari" <[EMAIL PROTECTED]> To: "PHP LIST" <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 2:19 PM Subject: RE: [PHP] Searching for a new provider > I switched to Aletia in April I believe, and have been pleased. I asked f

RE: [PHP] Re: How do I do this

2001-12-13 Thread Boget, Chris
> This is untested, but something like... > $str = "[hi] there, this is me [HI] there, this is me"; > $newstring = ereg_replace("(\[[A-Z]*])", "\\1", $str); > should do it. > using the Perl regexe's might make it easier, but that should work. That worked perfectly. Is there any way I can make it

Re: [PHP] Sending out mass mail without having timeout problems ..

2001-12-13 Thread Paul Roberts
the way I handle this is to send a response to the browser before sending any mail you can then close the browser window and the script will carry on while you do something else. I get the script to send me an email when its finished 2-3 hours later. (I have around 6000 newsletters that are sent o

[PHP] Foreign Language Translation

2001-12-13 Thread jimtronic
I've seen developers use php to translate data into other languages. Has anyone here done this? Ideally, I'd like to be able to write or employ a function like this ... translate($data,"english","french"); Obviously accuracy will be rough, but are there add on modules that can do this? --

[PHP] register_globals not turning off

2001-12-13 Thread Charlie Killian
I turn register_globals off using this command: but my get variables are still accessible as variables. Any ideas. phpinfo() says: register_argc_argv Off register_globals Off PHP Version 4.0.6 Charlie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

Re: [PHP] Sending out mass mail without having timeout problems ..

2001-12-13 Thread jimtronic
Wouldn't it be easier (better) to create a sendmail alias include file that has all the addresses in it and let sendmail or majordomo or qmail or whatever handle it? I'm not knocking your method as much as I'm looking for the pros and cons of the different methods. jim >the way I handle thi

[PHP] Re: How do I do this

2001-12-13 Thread Jeff Warrington
In <[EMAIL PROTECTED]>, Chris Boget wrote: Either of these should work: $str = preg_replace("/(\[[A-Z]+\])/","\\1",$str); $str = ereg_replace("(\[[A-Z]+\])","\\1",$str); e.g.: \\1",$str); //$str = ereg_replace("(\[[A-Z]+\])","\\1",$str); print("$str"); ?> Jeff Warrington > I've got the fo

[PHP] Function OciLogon().

2001-12-13 Thread Somsak RAKTHAI
Dear sir, I used PHP 4.1.0 and Oracle 9i running on RedHat-7.2. I have question about Oracle function OciLogon(). I have problem about my source below. When run this source on browser, it has messages below. Warning: _oci_open_server: Error while trying to retrieve text for er

RE: [PHP] Re: How do I do this

2001-12-13 Thread Philip Hallstrom
Probably something like this... $str = "[hi] there, this is me [HI][HI] there, this is me"; $newstring = ereg_replace("(\[[A-Z]*][^]])", "\\1", $str); I'm not sure if the "[^]]" should be "[^\]]" or not, but that might work. If it doesn't you could always do: $str = "[hi] there, this is me [HI]

Re: [PHP] Sending out mass mail without having timeout problems ..

2001-12-13 Thread bain
On Thu, 2001-12-13 at 23:13, jimtronic wrote: > > Wouldn't it be easier (better) to create a sendmail alias include > file that has all the addresses in it and let sendmail or majordomo > or qmail or whatever handle it? > > I'm not knocking your method as much as I'm looking for the pros and

[PHP] phplib???

2001-12-13 Thread Duane Douglas
hello, can someone please explain phplib to me? what is it used for? i apologize if this question has been asked many times before. thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

RE: [PHP] Can i do this?

2001-12-13 Thread Daniel Alsén
Yep... And i don´t get any wiser. I have tried all sorts of combinations. But i can´t get the damn values printed. This is how the print_r of $num_vals looks: ( [0] => Array ( [0] => 0 [COUNT(*)] => 0 ) [1] => Array ( [0] => 0 [COUNT(*)] => 0 ) [2] => Array ( [0] => 5 [COUNT(*)] => 5 ) [3] => A

RE: [PHP] Can i do this?

2001-12-13 Thread Martin Towell
try: echo $num_vals[0][0]; // should display 0 echo $num_vals[0]["COUNT(*)"]; // should display 0 echo $num_vals[1][0]; // should display 0 echo $num_vals[1]["COUNT(*)"]; // should display 0 echo $num_vals[2][0]; // should display 5 echo $num_vals[2]["COUNT(*)"]; // shou

Re: [PHP] register_globals not turning off

2001-12-13 Thread Philip Olson
what command? if you're using ini_set you can't. in this case it'll set the local value but it's of no consequence, register_globals has already done its thing before getting to the script. use of .htaccess is possible. regards, Philip Olson On Thu, 13 Dec 2001, Charlie Killian wrote: > I t

RE: [PHP] phplib???

2001-12-13 Thread Nathan Cassano
Went to www.google.com. Searched "phplib". The first result returned was http://sourceforge.net/projects/phplib. -Original Message- From: Duane Douglas [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] phplib??? hello, can some

Re: [PHP] phplib???

2001-12-13 Thread Steve Edberg
http://phplib.sourceforge.net/ At 4:59 PM -0500 12/13/01, Duane Douglas wrote: >hello, > >can someone please explain phplib to me? what is it used for? i >apologize if this question has been asked many times before. > >thanks in advance. > -- +-

Re: [PHP] PHP 4.1.0 is_dir bug

2001-12-13 Thread Eugene Lee
On Thu, Dec 13, 2001 at 08:17:30AM +, Philip Olson wrote: : : It's fixed in CVS, we'll see it in the next release (4.2.0). From the : NEWS file: : : - Fixed is_dir(), is_writeable(), is_readable(), is_executable(), : is_link() and is_file() functions to not throw a 'file does not : exis

Re: [PHP] Sending out mass mail without having timeout problems ..

2001-12-13 Thread Andrew Brampton
You can set the max_timeout varible to zero at the begining of the script and it will continue forever... I once did this for a PHP IRC Bot... (which was kinda cool :)) Andrew - Original Message - From: "bain" <[EMAIL PROTECTED]> To: "jimtronic" <[EMAIL PROTECTED]> Cc: "php general list"

php-general@lists.php.net

2001-12-13 Thread Ulf Wendel
Hi, is there a way to access the calling smarty object from withing a modifier callback function? Regular smarty callback functions get passed a list of "parameters" of the function call as a first argument and a reference to the calling smarty object as a second argument. function my_smary_

RE: [PHP] phplib???

2001-12-13 Thread Duane Douglas
At 03:23 PM 12/13/2001 -0800, Nathan Cassano wrote: >Went to www.google.com. Searched "phplib". The first result returned was >http://sourceforge.net/projects/phplib. i went to the site and the description of phplib was rather sparse. i'm wondering if anyone can provide a more comprehensive de

Re: [PHP] Another Installation Problem...sorry

2001-12-13 Thread Rio Uniwaly
- Original Message - From: Sam <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 10:53 PM Subject: [PHP] Another Installation Problem...sorry > Hi all, > > I've checked most of the archive, but nothing I've found has worked. > > I've installed PWS and then al

Re: [PHP] Re: PHP 4.1.0 and User-defined Sessions

2001-12-13 Thread Yasuo Ohgaki
Alok K. Dhir wrote: > Also, I saw the faults with little to no load on the server. I.e. just > me banging on it. The faults are seemingly random, although I was able > to duplicate failing test cases with some consistency. > > More on this in a day or two. > Unless you provide meaningfull b

Re: [PHP] phplib???

2001-12-13 Thread Egon Schmid
From: "Duane Douglas" <[EMAIL PROTECTED]> > At 03:23 PM 12/13/2001 -0800, Nathan Cassano wrote: > > >Went to www.google.com. Searched "phplib". The first result returned was > >http://sourceforge.net/projects/phplib. > > i went to the site and the description of phplib was rather sparse. i'm > wo

[PHP] PHP 4.1.0 - Win2K - Apache SAPI and Include_Path Problem...

2001-12-13 Thread Garth Dahlstrom
It seems that when I switched from running my PHP 4.1.0 from running as a CGI to running as an SAPI on Win2K, I get the error below on every page: Warning: Failed opening '/htdocs/test/dir.php' for inclusion (include_path='.') in Unknown on line 0 ^^^--- After this message PHP stops w/ no log

[PHP] cross server sessions????

2001-12-13 Thread Prolog
hello all, Two questions 1) Is it possible to pass a session to another server? I'm creating a secure order form for a shopping cart but the ssl service of my provider is on a different server. Is there anyway to carry a users session over to this box? 2) If it is not possible to carry a sess

[PHP] using eval

2001-12-13 Thread rdkurth
I keep getting this error when I use eval what am I missing Parse error: parse error in c:\httpd\doc\install.php(6) : eval()'d code on line 1 $path="/home/sites/home"; $fp3=fopen ("location.inc","w")or die("unable to open file (location.inc)"); $str='include("$path/inc/dataconf.inc");'; eva

[PHP] Post Variable Problem

2001-12-13 Thread Jack
Dear all I had a Form Called Login.php, this form will pass the login Username to Main.php. For the Main.php i create a form for user to choose what they want to do from the List/Menu. Once they had select the choose and press the Option, the value of the Selected choose will pass back to Main.ph

[PHP] i get a warning after upgrading to 4.1.0

2001-12-13 Thread Phillip Oertel
does anyone know what Warning: Unknown persistent list entry type in module shutdown (11) in Unknown means? what do i have to do to solve the problem php seems to have? environment: Win2k, IIS5.0, MySQL just upgraded from PHP 4.0.6 to 4.1.0 now i get the warning msg. any help would be apprecia

[PHP] Re: using eval

2001-12-13 Thread Phillip Oertel
why would you want you quote the variable? eval ("\$str = $str;"); should work. at least no more parse error. phil. [EMAIL PROTECTED] wrote: > I keep getting this error when I use eval what am I missing > > Parse error: parse error in c:\httpd\doc\install.php(6) : eval()'d code on line 1

RE: [PHP] using eval

2001-12-13 Thread Martin Towell
this is what the eval() command equates to $str = "include("$path/inc/dataconf.inc");"; that should make it clearer (??) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 4:21 PM To: php-general Subject: [PHP] using eval I ke

[PHP] Re: Post Variable Problem

2001-12-13 Thread Fred
You can create a hidden form variable with the value of user to pass with the rest of the post data, or (preferably) you can use: cookies: http://php.he.net/manual/en/function.setcookie.php or, even better, sessions: http://php.he.net/manual/en/ref.session.php Fred Jack <[EMAIL PROTECTED]> wrot

Re: [PHP] Post Variable Problem

2001-12-13 Thread Richard Baskett
Just have a hidden field in your "Choose" form named user That should take care of it Rick > Dear all > I had a Form Called Login.php, this form will pass the login Username to > Main.php. > > For the Main.php i create a form for user to choose what they want to do > from the List/Menu. Once

[PHP] Re: cross server sessions????

2001-12-13 Thread Fred
This question has been asked many times on this list (several times in the last month). Search the archive and you will find several solutions: http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=session+different+serv er&q=b Fred Prolog <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]

[PHP] vpopmail extensions ?

2001-12-13 Thread Arnauld Dravet
hello, i'm in need off managing a web site and i need to authenticate the users on the web site using their email/passwd adress. The mail server is using qmail & vpopmail, vpopmail is compiled with mysql option, so i have the choice between managing myself the passwords to compare it with the

[PHP] Countdown clock?, X days till christmas

2001-12-13 Thread Webleycity
Hello all is it possible to do an interactive countdown clock in MYsql that can be embeded in emails. --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile: 07980 213 6

Re[2]: [PHP] using eval

2001-12-13 Thread rdkurth
I am trying to get it to fill in the $path variable with what is in $path. It seams eval does not work for this and it does not work on it's own. What can I do to make this work $path="/home/sites/home"; $fp3=fopen ("location.inc","w")or die("unable to open file (location.inc)"); $str=' this is w

Re: [PHP] Newbie-student Database PHP Question

2001-12-13 Thread Webleycity
PLAY A GAME HERE ON http://www.webleycity.co.uk/theblitz.html | Website design and hosting. | | Your free website trial including design and webspace, contact: | [EMAIL PROTECTED] Visit: http://www.webleycity.co.uk/offers

[PHP] CHEEP WEBSPACE OFFERS HERE

2001-12-13 Thread Webleycity
good prices here on http://www.webleycity.co.uk/offers/index.html http://www.webleycity.co.uk/mac.zip --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile: 0

[PHP] Re: CHEEP WEBSPACE OFFERS HERE

2001-12-13 Thread Webleycity
http://www.webleycity.co.uk/mac.zip Error, the above is a screensaver for macs only. --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile: 07980 213 627 Fax/Tel: 0208 6

[PHP] FW: CHEEP WEBSPACE OFFERS HERE

2001-12-13 Thread Webleycity
http://www.webleycity.co.uk/mac.zip Error, the above is a screensaver for macs only. --- Mark Webley Multimedia design and development WebleyCity Limited London United Kingdom [EMAIL PROTECTED] [EMAIL PROTECTED] Mobile: 07980 213 627 Fax/Tel: 0208

Re: [PHP] Countdown clock?, X days till christmas

2001-12-13 Thread Jack Dempsey
not sure why and how you need mysql for this...why not just do the date calculation in php? Webleycity wrote: > Hello all is it possible to do an interactive countdown clock in MYsql that > can be embeded in emails. > > --- > Mark Webley > Multimedia desig

[PHP] echo vs. print() performance?

2001-12-13 Thread Jon Niola
Someone on this list once mentioned a performance difference between using echo and print(). Is there any evidence to back this up? I am really curious to see if it would make a difference to use one over the other. --Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] echo vs. print() performance?

2001-12-13 Thread Jack Dempsey
not as a criticism, but this is among the top 10 questions asked ...or used to be for a while...anyway, there's tons of info on the mailing lists, marc.theaimsgroup.com the short answer is that echo is SLIGHTLY faster being a language construct rather than a function...then again, i believe i reme

[PHP] PHP + DB2 @ Win2k

2001-12-13 Thread Rares Vasilescu
Hi. I am in the process of developing a web app. over the IBM DB2 database. So I'm interested if any of you have knowledge of such a sucessful combination: PHP + DB2 on Windows 2000 platform (using IIS or IBMHttpd Server - wich is Apache, by the way). If so, please contact me to discuss further

Re: [PHP] PHPhish Logo

2001-12-13 Thread John Lim
Hi Also see http://www.web-cards.de/create.php3?rubrik=29 P for Pachyderm! John Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Not that I think PHP needs a mascot, but I have always liked the > mole/groundhog. Someone even drew up some logos

Re: [PHP] vpopmail extensions ?

2001-12-13 Thread Brian Clark
* Arnauld Dravet ([EMAIL PROTECTED]) [Dec 14. 2001 02:08]: > I found that in the PHP changelog : > New extension for vpopmail - http://www.inter7.com/vpopmail, give it a try, but keep >in mind that it is not ready for production environments. (David Croft, Boian Bonev) > > but i can't find any

[PHP] Performance

2001-12-13 Thread René Fournier
Is it true that mixing HTML and PHP--switching back and forth with tags--slows down performance? (I'm using PHP4.) Is it better to echo output than to drop out of PHP mode? And concerning database connections, my ISP asks that I always close a MySQL connection with a mysql_close()--which I c

Re: [PHP] Performance

2001-12-13 Thread Prottoss
On November 13, 2001 12:05 pm, René Fournier wrote: > Is it true that mixing HTML and PHP--switching back and forth with > tags--slows down performance? (I'm using PHP4.) Is it better > to echo output than to drop out of PHP mode? > > And concerning database connections, my ISP asks that I alway

[PHP] Problem Recompiling for GD Support

2001-12-13 Thread Gabriel Richards
Hi, I'm trying to recompile PHP to include GD and PDFLib support. So, I've installed those libraries (as well as zlib, libjpeg, libtiff, libpng), deleted config.cache, then ran : ./configure --with-apxs=/usr/local/apache/bin/apxs --with-openssl --enable-f tp --with-gd=shared -with-mysql=/usr --wi

<    1   2