php-general Digest 5 Jul 2009 08:44:55 -0000 Issue 6212

2009-07-05 Thread php-general-digest-help
php-general Digest 5 Jul 2009 08:44:55 - Issue 6212 Topics (messages 294879 through 294895): Re: Love luxury? Buy a fashionable watch. 294879 by: Eddie Drapkin 294880 by: Daniel Brown Epiphany - a salute to APC 294881 by: Michael A. Peters 294888 by: Brandon

php-general Digest 5 Jul 2009 20:50:56 -0000 Issue 6213

2009-07-05 Thread php-general-digest-help
php-general Digest 5 Jul 2009 20:50:56 - Issue 6213 Topics (messages 294896 through 294902): Re: Editing PEAR packages 294896 by: Shawn McKenzie 294897 by: Greg Beaver 294899 by: Waynn Lue 294900 by: Greg Beaver 64 bit binary ? 294898 by: loki

[PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Brandon Johnson
you think this is similar to http://www.danga.com/memcached/ or you think this method would be faster ? Which do you say would be the greatest benfit ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Eddie Drapkin
if you want a pure opcode cache, APC is a great choice. APC should //not// be used for persistent RAM storage. Memcached is much faster and designed for that aim, while not being tied to the webserver. On Sun, Jul 5, 2009 at 2:10 AM, Brandon Johnsonbrandonl...@aol.com wrote: you think this is

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Paul Scott
Eddie Drapkin wrote: if you want a pure opcode cache, APC is a great choice. you think this is similar to http://www.danga.com/memcached/ or you think this method would be faster ? Which do you say would be the greatest benfit ? A simple rule of thumb that I use is: If you have one machine

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Brandon Johnson
ok thanks for information was just something I was reading about the other night. Then I came across this message. Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Eddie Drapkin
On Sun, Jul 5, 2009 at 2:43 AM, Paul Scottpsc...@uwc.ac.za wrote: Eddie Drapkin wrote: if you want a pure opcode cache, APC is a great choice. you think this is similar to http://www.danga.com/memcached/ or you think this method would be faster ? Which do you say would be the greatest benfit

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Michael A. Peters
Brandon Johnson wrote: you think this is similar to http://www.danga.com/memcached/ or you think this method would be faster ? Which do you say would be the greatest benfit ? In my case I think apc is better because I'm single server xen host and (after reading the other posts in thread)

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Eddie Drapkin
-=- (from other discussion) Interesting that facebook uses both. The fedora maintainer for the apc rpm listed it as conflicting with memcache. If you can use both, that's a fedora packaging but that should be fixed. I've never seen, nor heard of, a full scale caching implementation that

[PHP] Editing PEAR packages

2009-07-05 Thread Waynn Lue
I wanted to makes some local edits to a PEAR package that I downloaded in order to build some custom functionality into it. What's the best way to manage this process to ensure that I don't accidentally blow away any changes if I update the package? Should I just copy the entire package to my

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Shawn McKenzie
Waynn Lue wrote: I wanted to makes some local edits to a PEAR package that I downloaded in order to build some custom functionality into it. What's the best way to manage this process to ensure that I don't accidentally blow away any changes if I update the package? Should I just copy the

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Greg Beaver
Waynn Lue wrote: I wanted to makes some local edits to a PEAR package that I downloaded in order to build some custom functionality into it. What's the best way to manage this process to ensure that I don't accidentally blow away any changes if I update the package? Should I just copy the

[PHP] 64 bit binary ?

2009-07-05 Thread loki
Hello Is it plane to release 64 bit binary for php on windows ? -- Stéphane Http://www.arkadia.com/fra/ Http://www.arkadia.com/usa/ Http://www.arkadia.com/rus/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Waynn Lue
Yeah, that's why I was hoping to maintain a separate install, since it would be easier to diff the patches. Shawn: Thanks for the suggestion to extend, I only wanted to make small changes to an existing function though, so it's harder to do it that way. My other thought was to refactor the

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Greg Beaver
Waynn Lue wrote: Yeah, that's why I was hoping to maintain a separate install, since it would be easier to diff the patches. Shawn: Thanks for the suggestion to extend, I only wanted to make small changes to an existing function though, so it's harder to do it that way. My other thought was

[PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
I am confusing myself reading the docs just now. i.e.: include_path basename() and dirname() I had thought from many months ago that ?php include '/somedir/somefile.php'; ? would include somefile.php living in somedir regardless from where in the site structure I am calling it. Now it does

Re: [PHP] 64 bit binary ?

2009-07-05 Thread Daniel Brown
On Sun, Jul 5, 2009 at 15:43, lokiloki5100-newsgr...@yahoo.fr wrote: Hello Is it plane to release 64 bit binary for php on windows ? Pierre? -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting

[PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 2:33 PM, Govinda wrote: I am confusing myself reading the docs just now. i.e.: include_path basename() and dirname() I had thought from many months ago that ?php include '/somedir/somefile.php'; ? would include somefile.php living in somedir regardless from where in the

[PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 2:33 PM, Govinda wrote: I am confusing myself reading the docs just now. i.e.: include_path basename() and dirname() I had thought from many months ago that ?php include '/somedir/somefile.php'; ? would include somefile.php living in somedir regardless from where in the

Re: [PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Michael A. Peters
Govinda wrote: in my include statement, I am now successfully using: /home/metheuser/public_html/ and am not anticipating moving this site.. but still I am thinking there must be a way to make the code bullet proof to dir/ name changes *after* the virtual server root. Or do people just

Re: [PHP] exasperated again

2009-07-05 Thread Jim Lucas
Stuart wrote: 2009/7/4 PJ af.gour...@videotron.ca: Stuart wrote: 2009/7/4 PJ af.gour...@videotron.ca: Ashley Sheridan wrote: On Sat, 2009-07-04 at 10:47 -0400, PJ wrote: Jim Lucas wrote: PJ wrote: Could somebody please explain to me what is wrong with this code? In my script it

[PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Shawn McKenzie
Govinda wrote: I am confusing myself reading the docs just now. i.e.: include_path basename() and dirname() I had thought from many months ago that ?php include '/somedir/somefile.php'; ? would include somefile.php living in somedir regardless from where in the site structure I am

[PHP] Re: Editing PEAR packages

2009-07-05 Thread Shawn McKenzie
Waynn Lue wrote: Yeah, that's why I was hoping to maintain a separate install, since it would be easier to diff the patches. Shawn: Thanks for the suggestion to extend, I only wanted to make small changes to an existing function though, so it's harder to do it that way. My other thought was

Re: [PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 4:17 PM, Michael A. Peters wrote: I use $includeArray[]=/usr/share/pear; $includeArray[]=/some/other/path; $includeArray[]=/yet/another/path; $incPath = impode(':',$includeArray); ini_set(include_path,$incPath); is that ^ something one can generally set on a

Re: [PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 6:15 PM, Shawn McKenzie wrote: AFAIK, include '/somedir/somefile.php'; looks for that specific file in that specific path because you gave an absolute path. Well, that is what I wanted. So I tried this: include '/MY_inc_php/GovBC_php_functions.inc'; but that fails. So I

[PHP] preg_replace with UTF-8

2009-07-05 Thread SleePy
I seem to be having a minor issue with preg_replace not working as expected when using UTF-8 strings. So far I have found out that \w doesn't seem to be detecting UTF-8 strings. This is my test php file: ?php $data = 'ooo'; echo 'Data before: ', $data, 'br /'; $data =

[PHP] Add BCC parameter to mail()

2009-07-05 Thread c...@hosting4days.com
Hi folks - Newbie question... Q: Is there a way to add BCC and/or CC parameters to this simple email function? If there is a better way to do this - please let me know Thanks in advance ?php $Name = test; //senders name $email = t...@test.com; //senders e-mail adress

Re: [PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Shawn McKenzie
Govinda wrote: On Jul 5, 2009, at 6:15 PM, Shawn McKenzie wrote: AFAIK, include '/somedir/somefile.php'; looks for that specific file in that specific path because you gave an absolute path. Well, that is what I wanted. So I tried this: include '/MY_inc_php/GovBC_php_functions.inc';

[PHP] Lookup domain in directories VS database

2009-07-05 Thread Martin Zvarík
Imagine you are hosting 10.000 subdomains. SOLUTION #1: you create directories like: a/ b/ ... s/ s/some-subdomain.freehosting.com/ (this includes CONF.php, where you store some basic infos) Everytime visitor hits the page you do:

[PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
Hello everyone, I am trying to create a PHP login script using cookies but am having some troubles. Here is my setup index.php - authenticate.php - admin.php I want a login form on index.php that allows me to login with my username and password and then passes $_POST['username'] and

Re: [PHP] Add BCC parameter to mail()

2009-07-05 Thread Ashley Sheridan
On Sun, 2009-07-05 at 18:55 -0700, c...@hosting4days.com wrote: Hi folks - Newbie question... Q: Is there a way to add BCC and/or CC parameters to this simple email function? If there is a better way to do this - please let me know Thanks in advance ?php $Name = test;

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Paul M Foster
On Mon, Jul 06, 2009 at 12:03:34AM -0400, Jason Carson wrote: Hello everyone, I am trying to create a PHP login script using cookies but am having some troubles. Here is my setup index.php - authenticate.php - admin.php I want a login form on index.php that allows me to login with

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
Hello everyone, I am trying to create a PHP login script using cookies but am having some troubles. Here is my setup index.php - authenticate.php - admin.php I want a login form on index.php that allows me to login with my username and password and then passes $_POST['username'] and

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
Hello everyone, I am trying to create a PHP login script using cookies but am having some troubles. Here is my setup index.php - authenticate.php - admin.php I want a login form on index.php that allows me to login with my username and password and then passes $_POST['username'] and

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Eddie Drapkin
On Mon, Jul 6, 2009 at 1:45 AM, Jason Carsonja...@jasoncarson.ca wrote: Hello everyone, I am trying to create a PHP login script using cookies but am having some troubles. Here is my setup     index.php - authenticate.php - admin.php I want a login form on index.php that allows me to login