[PHP] Re: Installing PEAR on machines without internet access.

2008-06-21 Thread Gregory Beaver
Lester Caine wrote: > I've been going through the hoops documenting installation and recovery > notes for my customer sites. The majority of these run local web > services with no internet access from the servers, so with the > increasing reliance on PEAR extensions, I'm looking to the correct way

[PHP] Re: http://go-pear.org?

2007-10-04 Thread Gregory Beaver
Steve Brown wrote: > I'm trying to install Pear on OSX, but http://go-pear.org/ doesn't > seem to be resolving. Pear manual states I should: > > curl http://go-pear.org/ | php > > but this fails and > > dig go-pear.org > > reveals that the name does not resolve. Is there a package somewehre >

[PHP] Re: Questions about overloading and visibility in PHP5

2007-09-18 Thread Gregory Beaver
Steve Brown wrote: > I've been doing a bunch of reading about objects and overloading in > PHP5, but I've got a couple of questions that I can't seem to find the > answer to online. Suppose the following code in PHP5.2.4: > > class foo { > public $x; > private $z = 'z'; > >

[PHP] zlib.inflate vs. gzopen/fread

2007-09-08 Thread Gregory Beaver
Hi all, I've run into a peculiar situation where the inflate implementation in the zlib.inflate filter fails to successfully inflate a gzipped file created using gzopen/gzwrite. The file is really quite simple. To replicate, download http://pear.php.net/get/PEAR-1.6.1.tgz and run this script:

[PHP] Re: Database includes

2007-08-26 Thread Gregory Beaver
Bruce Cowin wrote: > I'm curious as to how everyone organises and includes their classes in > PHP5. Let's take a simple example that has 3 classes: customer, order, > and database. The database class has a base sql db class (I know there > is PDO and other things but this class is already written

[PHP] Re: pecl in php5?

2007-08-16 Thread Gregory Beaver
Per Jessen wrote: > I'm trying to install the pecl mailparse extension, but I'm not getting > very far: > > pecl install mailparse > pecl/mailparse requires PHP extension "mbstring" > No valid packages found > install failed > > "mbstring" does not seem to be a php extension, and in any case I b

[PHP] Re: possible to "move_uploaded_file" to a variable instead a file?

2007-06-17 Thread Gregory Beaver
Mark wrote: > hey, > > i`m wondering if it`s possible to move a uploaded file inside a variable. > i would like to know this because i`m currently writing a database backup > script and in there the user uploads a sql file that gets executed. now i > _don`t_ want the file to be stored on the serve

Re: [PHP] [ANNOUNCE] TODO parser

2007-04-28 Thread Gregory Beaver
Edward Vermillion wrote: > > On Apr 27, 2007, at 8:24 PM, Daevid Vincent wrote: > >> For a long time I've wanted a tool that would traverse my source code to >> find all those little forgotten "TODO" entries. >> > > [snip] > > Doesn't phpDocumentor (http://phpdocu.sourceforge.net/) do that alre

Re: [PHP] retrieve POST body?

2007-04-19 Thread Gregory Beaver
Myron Turner wrote: > That's not been my experience. I've tested it with > enctype="multipart/form-data", since that's what you asked for, though > the enctype wasn't included in my sample code. I've run it on PHP > Version => 5.1.6 (Fedora core 4) and PHP 4.3.11 Fedora core 2. > Here it is on Fe

Re: [PHP] retrieve POST body?

2007-04-19 Thread Gregory Beaver
Justin Frim wrote: > Sorry burst your bubble, but your solution isn't a viable one in my case. > php://input only works if the form is submitted using > application/x-www-form-urlencoded. > > Take your sample HTML code there and add enctype="multipart/form-data" > to the tag, and I'm pretty sure

[PHP] Re: is pecl.php.net down?

2007-03-24 Thread Gregory Beaver
martin wrote: > Since about 7 hours now i can't get on the pecl.php.net pages. The site > doesn't seem to be available. > > Does somebody know why? Hi Martin, The entire machine that runs pear.php.net and pecl.php.net was down for a very long time. It has recently come back up online, you shou

[PHP] Re: _Construct question

2007-03-20 Thread Gregory Beaver
John Comerford wrote: > Hi Folks, > > I am still pretty new to PHP and I have a question regarding classes and > using _construct. Up until now I have been creating my classes as follows: > > class test1 { > var $name; > function test1($pName) { > $this->name = $pName; > } > } > > So I when I

[PHP] Re: working with class inheritance

2007-03-20 Thread Gregory Beaver
Jeff Taylor wrote: > Hey all, got a slight problem, where for some reasons my variables dont seem > to be getting stored in the child class: > > e.g > > class Parent > { > $private type; > > public function __construct() > { > } > >public function GetType() >{ > return $th

Re: FW: [PHP] Re: LOL, preg_match still not working.

2007-02-19 Thread Gregory Beaver
Beauford wrote: > I pasted this right from my PHP file, so it is correct. Just to elaborate. I > have tested this until my eyes are bleeding. > > Sometimes this works sometimes it doesn't. > > One minute !!!##$$ This is a test &&%% will work the way it is supposed to, > the next minute it does no

[PHP] Re: LOL, preg_match still not working.

2007-02-17 Thread Gregory Beaver
Beauford wrote: > Hi, > > I previously had some issues with preg_match and many of you tried to help, > but the same problem still exists. Here it is again, if anyone can explain > to me how to get this to work it would be great - otherwise I'll just remove > it as I just spent way to much time o

[PHP] Re: PHP/PEAR

2007-02-14 Thread Gregory Beaver
Malcolm Pickering wrote: > Hello there, > > As a new user of PHP I am finding it extremely useful, very fast, and > rewarding. I was also delighted to find the already proven and maintained > extensions in PEAR. > > I have recently downloaded one of these extensions (HTML_Table) which is > pr

[PHP] Re: Find midpoint between two points

2007-02-07 Thread Gregory Beaver
M5 wrote: > I found a nice javascript function that takes two points of latitude and > longitude and returns a midpoint. I'm now trying to rewrite in PHP, but > having some problems. Here's the original javascript function, taken > from http://www.movable-type.co.uk/scripts/LatLong.html : > > LatL

[PHP] Re: How to parse PHP tags in a string?

2007-02-07 Thread Gregory Beaver
Zak Mc Kracken wrote: > Hi all, > > Is there a PHP function that parses a string as it was the content of a > PHP file? > > I have a CMS application and editors write the news items text into a > text area. Since they have some knowledge of PHP, I'd like to allow them > to insert or and have th

[PHP] Re: REST, SOAP or XML-RPC?

2007-02-04 Thread Gregory Beaver
Paul Scott wrote: > I am developing a webservice like module for our framework that will > enable downloads of module code into the framework modules from a remote > server. > > Basically what this should do is: > > 1. User requests a list of available stable modules from server > 2. User clicks

[PHP] Re: __construct __destruct in PHP 4

2007-01-29 Thread Gregory Beaver
Peter Lauri wrote: > Hi, > > > > I have been trying going thru the PHP manual to find if there are any > equivalent to the __contruct and __destruct in PHP 4, but I cannot find any > solution for this part. I know it was introduced in PHP 5, but as __sleep > and __wakeup exist in PHP 4 already

[PHP] Re: What search algorithm does in_array() use?

2007-01-29 Thread Gregory Beaver
Ken Dozier wrote: > Does in_array() use a search algorithm (i.e., binary search), or does it > check sequentially each element in the array? > > I am using in_array() within a while{} loop to check query results against > an access-list array to produce a third array containing items that > succes

[PHP] Re: Package php code

2007-01-24 Thread Gregory Beaver
Peter Lauri wrote: > Hi, > > > > Is there any similar way to package PHP software as Java with a jar file or > similar? I have never seen it, because then would probably Smarty for > example be packaged already :-) This question came out of the blue when I > was thinking about how to deliver so

[PHP] Re: using return in include files

2007-01-22 Thread Gregory Beaver
Aaron Axelsen wrote: > I'm trying to figure out what the desired behavior is of using the > return function to bail out of an include page. > > I did some testing, and this is what I concluded. > > First, I created the following file: > > if (defined('TEST_LOADED')) { > return; > } > de

[PHP] Re: most powerful php editor

2007-01-20 Thread Gregory Beaver
Vinicius C Silva wrote: > hi everyone! > > i'd like to ask something maybe commonly asked here. what is the most > powerful php editor? I am Yours, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Gregory Beaver
Robert Cummings wrote: > On Thu, 2007-01-04 at 10:54 +, Roman Neuhauser wrote: > >> echo $blah . "\n" is *not* equivalent to printf("%s\n", $blah) >> > > H, could you explain to me how it is different? I would always use > the former unless I specifically needed formatting provided

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-03 Thread Gregory Beaver
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-02 21:23:02 +0100: >> David CHANIAL wrote: >>> We are preparing the upgrade of PHP for our customers, but, after some >>> tests, >>> we have a migration "problem" caused by the news E_RECOVERABLE_ERROR. >>> >>> So, even if the upgrade guide (

[PHP] Re: PEAR installation error

2007-01-02 Thread Gregory Beaver
Hi Alistair, There was a snafu in the PHP release process, PHP 5.2.0 shipped with an outdated go-pear.phar for some reason, you can fix this by downloading http://pear.php.net/go-pear.phar and saving it as PEAR/go-pear.phar in the unzipped windows distribution. Then, when you run go-pear.bat it w