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) mo

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 do

[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 own

[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 underly

[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

[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 would include somefile.php living in somedir regardless from where in the site structure I am calling it. Now it does not seem to be doing that. What is the sa

Re: [PHP] 64 bit binary ?

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

[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 would include somefile.php living in somedir regardless from where in the site structure I am calling it. Now it doe

[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 would include somefile.php living in somedir regardless from where in the site structure I am calling it. Now it doe

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 stop

Re: [PHP] exasperated again

2009-07-05 Thread Jim Lucas
Stuart wrote: 2009/7/4 PJ : Stuart wrote: 2009/7/4 PJ : 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 works, returns the correct id, but when I try 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 > > would include > somefile.php > living in > somedir > regardless from where in the site structure I am calling it. > > Now it d

[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 though

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

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: '; $data = preg_replace('~([\w\.]{6})~u', '$1 < >', $data); echo 'Data After: ', $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 $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields $fullto = $reci

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_function

[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: @include('t/test-subdomain.freehosting.com/conf.php')

[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 $_POST

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 > > > $Name = "te

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 lo

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['userna

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

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Eddie Drapkin
On Mon, Jul 6, 2009 at 1:45 AM, 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 wi

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
> On Mon, Jul 6, 2009 at 1:45 AM, 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 allow

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Eddie Drapkin
On Mon, Jul 6, 2009 at 2:01 AM, Jason Carson wrote: >> On Mon, Jul 6, 2009 at 1:45 AM, 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 -> adm

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Jason Carson
> On Mon, Jul 6, 2009 at 2:01 AM, Jason Carson wrote: >>> On Mon, Jul 6, 2009 at 1:45 AM, 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 -> authent

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

2009-07-05 Thread Sudheer Satyanarayana
Govinda wrote: 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 would include somefile.php living in somedir regardless from where in the site structure I am calling

[PHP] Call to object function, want to PHP interpret returned string

2009-07-05 Thread John Allsopp
Hi At the top of a webpage I have: getTop("my company title"); ?> to deliver the first lines of HTML, everything in HEAD and the first bits of page furniture (menu, etc). In the furniture object in getTop(), I want to return a string that includes the CSS file that I call with an include_on