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
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.
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
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
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
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
> 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
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
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
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
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://
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,
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
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
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
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
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
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
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.
>>
>>
>>
#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
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[
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
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
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:
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
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
26 matches
Mail list logo