[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

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 should output 2, but outputs 1. The while

[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
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 usually in /usr/local/lib Ok, just reinstalled

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

2002-08-15 Thread Randall Perry
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 Ok, just reinstalled 4.2.2 to make sure I didn't miss anything -- it didn't install any php.ini file (although phpinfo

[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

[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 -- PHP General Mailing List (http://www.php.net

[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

[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 it done? -- Randall Perry sysTame

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

2002-12-23 Thread Randall Perry
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] preg_match_all - how does it work?

2002-11-17 Thread Randall Perry
, $match, PREG_PATTERN_ORDER); ...and try to print output, 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

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

2002-11-17 Thread Randall Perry
://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, but am having a problem with preg_match_all. I'm trying to extract data from an HTML table. Here's my preg_match call

[PHP] How to access properties of objects within objects

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

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

2002-12-01 Thread Randall Perry
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.8 Thanks, Wes -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP

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

2002-12-01 Thread Randall Perry
... 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 php with cURL support -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion

[PHP] Accessing HTTP_PC_REMOTE_ADDR var fails sporadically

2003-10-14 Thread Randall Perry
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] Using sessions with register globals off

2004-02-04 Thread Randall Perry
. 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
. session_name('name'); session_register('order'); -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales

[PHP] Session hell: register_globals off

2004-04-02 Thread Randall Perry
(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

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

2004-04-02 Thread Randall Perry
file include_once order_classes.php; // start session session_start(); // assign $_SESSION['order'] object to variable $order = $_SESSION['order']; -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/ -- PHP

Re: [PHP] Session hell: register_globals off

2004-04-04 Thread Randall Perry
-- 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
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] 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
. 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 -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Design/Development WebObjects Hosting Mac Consulting/Sales