[PHP] How to access properties of objects within objects

2002-11-29 Thread Randall Perry
var $mystring = $this->obj->string; } $o1 = New Obj1("hello"); $o2 = New Obj2($o1); print "\$o2->mystring = $o2->mystring" ?> -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame

[PHP] Re: [PHP-INST] OS X and Curl Issues

2002-12-01 Thread Randall Perry
rt... yes > checking for CURL in default path... found in /usr > checking for cURL 7.9.8 or greater... configure: error: cURL version > 7.9.8 or later is required to compile php with cURL support > [user/src/php4rc2] root# curl --help > curl 7.9.8 (powerpc-apple-darwin5.5) libcurl 7.9.

[PHP] Re: [PHP-INST] OS X and Curl Issues

2002-12-01 Thread Randall Perry
10 ipv6 zlib/1.1.3 > > > Here's the error: > > checking for CURL support... yes > checking for CURL in default path... found in /usr/local > found in /usr > checking for cURL 7.9 or greater... configure: error: cURL version 7.9 or > later is required to compile p

[PHP] Unable to match dollar sign in preg_match

2002-12-23 Thread Randall Perry
Here's my expression: $data = "xyz_%split%_$10.21"; preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match); Returns nothing (escaping the $ with a \ does the same), but this returns 10.21: preg_match ("/^.*_\%split\%_\D*(\d*\.\d*)/", $data, $match); How is

Re: [PHP] Unable to match dollar sign in preg_match

2002-12-23 Thread Randall Perry
chitect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php.ini on Solaris?

2002-08-14 Thread Randall Perry
Just compiled Apache 1.3.26 with latest php and discovered my form variables weren't getting thru to php scripts. Looked through archives and found ref to register_globals setting in php.ini. Only trouble is, I can't find php.ini on my server (except in the php source code folder). Where should

RE: [PHP] Php.ini on Solaris?

2002-08-15 Thread Randall Perry
> is usually in /usr/local/lib Ok, just reinstalled 4.2.2 to make sure I didn't miss anything -- it didn't install any php.ini file (although phpinfo() says it's location is /usr/local/lib). Should I just create one from scratch? -- Randy Perry sysTame Mac Consulting/Sales phn

Re: [PHP] Php.ini on Solaris?

2002-08-15 Thread Randall Perry
do to get it to read the php.ini? Php.ini is owned by root -- tried both 644 and 755 permissions. > rename php.ini-dist thats with the php source code to php.ini and copy it > to /usr/local/lib > > Adam > > On Thu, 15 Aug 2002, Randall Perry wrote: > >>> is usua

[PHP] HELP! php.ini file not read (was Php.ini on Solaris?)

2002-08-15 Thread Randall Perry
tried both 644 and 755 permissions. > >> rename php.ini-dist thats with the php source code to php.ini and copy it >> to /usr/local/lib >> >> Adam >> >> On Thu, 15 Aug 2002, Randall Perry wrote: >> >>>> is usually in /usr/local/lib >>&g

[PHP] HELP! php.ini file not read (was Php.ini on Solaris?)

2002-08-16 Thread Randall Perry
Ok, to answer my own question... Apparently php.ini doesn't get read until Apache is restarted. Restarting apache did the trick. -- Randy Perry sysTame Mac Consulting/Sales phn 772.589.6449 mobile email[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.n

[PHP] preg_match_all - how does it work?

2002-11-17 Thread Randall Perry
I get: $match[0] = Array $match[0][0] = Array[0] $match[1][0] = Array[0] $match[0][1] = Array[0] $match[1][1] = Array[0] Same result with PREG_SETORDER. What am I doing wrong? -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://

Re: [PHP] preg_match_all - how does it work?

2002-11-17 Thread Randall Perry
monthly worldwide magazine dedicated to PHP programmers > Check us out on the web at http://www.phparch.com > > > On Sun, 2002-11-17 at 11:13, Randall Perry wrote: >> I have some experience in using regular expressions in Perl, and have been >> able to use preg_match in php,

[PHP] Accessing HTTP_PC_REMOTE_ADDR var fails sporadically

2003-10-14 Thread Randall Perry
be using a different global var to grab a user's IP? -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Scope problem in while loop

2002-03-11 Thread Randall Perry
According to the PHP 4 docs all variables are global unless within a function. I've got the following test code which should output 2, but outputs 1. The while loop creates it's own class object (which seems strange since it isn't explicitly instantiated by my code; I would think it would cause er

Re: [PHP] Scope problem in while loop

2002-03-11 Thread Randall Perry
Whoops, you're right. Classic 'C' mistake using = instead of ==. Never mind :( > On Mon, 2002-03-11 at 18:51, Randall Perry wrote: >> According to the PHP 4 docs all variables are global unless within a >> function. I've got the following test code which sho

[PHP] Should I wait for PHP 5.1?

2004-08-01 Thread Randall Perry
Any major gotchas going from 4 to 5? Any problems with PostgreSQL connectivity? Will I have to scour and rewrite current scripts? -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Design/Development WebObjects Hosting Mac Consulting/Sales http://www.systame.com/ -- PHP

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Randall Perry
to install those for you, probably > they will do without much problem. Or, if they don't want to, you should > consider choosing another provider." > > If it is an issue, does anyone know of a hosting provider that allows these > extensions? > > -Brian Anderson -- Randa

[PHP] Using sessions with register globals off

2004-02-04 Thread Randall Perry
order' with the 'name' session. session_name('name'); session_register('order'); -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Using sessions with register globals off

2004-02-05 Thread Randall Perry
he following into code that can be used with >> register_globals set off. >> >> Assuming there's a preceding page that has created the session 'name' and >> registered the var 'order' with the 'name' session. >> >> >>

[PHP] Session hell: register_globals off

2004-04-02 Thread Randall Perry
#x27;--with-xml' '--with-openssl=/usr/local/ssl' '--with-pear' '--with-curl=/usr/lib' Apache/1.3.29 (Darwin) DAV/1.0.3 mod_perl/1.29 PHP/4.3.5 mod_jk/1.2.4 mod_ssl/2.8.16 OpenSSL/0.9.7c register_globalsOff Off -- Randall Perry sysTame Xserve

Re: [PHP] Re: Session hell: register_globals off

2004-04-02 Thread Randall Perry
ce to $SESSION[] > $_SESSION['order'] = $order; > > page 2 > __ > > // include class definition file > include_once "order_classes.php"; > // start session > session_start(); > // assign $_SESSION['order'] object to variable > $order = $_SESSION[

Re: [PHP] Session hell: register_globals off

2004-04-04 Thread Randall Perry
gure Command './configure' '--with-apxs=/usr/sbin/apxs' '--with-pgsql' > '--with-xml' '--with-openssl=/usr/local/ssl' '--with-pear' > '--with-curl=/usr/lib' > > Apache/1.3.29 (Darwin) DAV/1.0.3 mod_perl/1.29 PHP/4.3.5 mod_jk/1.2.4 > mod_ssl/2.8.16 OpenSSL/0.9.7c > > register_globalsOff Off > -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session hell: register_globals off

2004-04-04 Thread Randall Perry
e order object are set), to the end of > the php code -- now everything's getting passed to page 2 ok. > -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is there a MOD function in PHP

2001-02-15 Thread Randall Perry
Couldn't find one in the manual under arithmetic functions. -- Randy Perry sysTame Mac Consulting/Sales -- 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:

Re: [PHP] Is there a MOD function in PHP

2001-02-15 Thread Randall Perry
on 2/15/01 12:01 PM, Mukul Sabharwal at [EMAIL PROTECTED] wrote: > > $remainder = 10 % 5; > > --- Randall Perry <[EMAIL PROTECTED]> wrote: > Couldn't > find one in the manual under arithmetic Thanks -- Randy Perry sysTame Mac Consulting/Sales -- P

[PHP] shopping cart classes

2001-02-16 Thread Randall Perry
I've checked out the shopping cart packages available for PHP and am not thrilled by any of them. Was wondering if there are a set of classes available that could be used to support a shopping cart. I'm interested in the 'back end' -- working with the actual data, rather than the front end -- the