[PHP] array size in bytes

2006-10-02 Thread Roman Rumisek
Hi, Exists in PHP function returning array size in bytes ? (For saving array into shared memory without serialize.) Thnx. Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] $previous variable ?

2006-07-11 Thread Roman Rumisek
I am using apache 2.0.50 and php 4.4.3RC2 as mod (on Mandrake 10.1). When I run this script: in cli php, i give 'Undefined variable' error message - OK. But under apache, this variable has value 'N'. Is it error ? I found nothing about $previous variable in php.ini and php config directories.

[PHP] Re: Last array element not found

2006-03-15 Thread Roman Rumisek
Sorry, this is my bug. Roman Rumisek wrote: > Hi, > > this code fragment give following result in my error log: > > foreach($reg_array as $region_item) > $tmp_reg_array[] = $region_item[0]; > $sel_region = explode(',', $_POST[CLIENT_REGION]); > foreach($sel_

[PHP] Last array element not found

2006-03-15 Thread Roman Rumisek
Hi, this code fragment give following result in my error log: foreach($reg_array as $region_item) $tmp_reg_array[] = $region_item[0]; $sel_region = explode(',', $_POST[CLIENT_REGION]); foreach($sel_region as $sel_region_item) if(!in_array($sel_region_item, $tmp_reg_array)) { my_error_lo

Re: [PHP] leading slash in SCRIPT_NAME variable

2006-03-02 Thread Roman Rumisek
In phpinfo page SCRIPT_NAME variable is set correctly. What have effect this variable ? May be include_path setting ? Rumisek Chris wrote: > Roman Rumisek wrote: >> Hi, >> >> i have configured apache 2.0.50 with mod_php 4.4.2 and >> $_SERVER['SCRIPT_NAME&#

[PHP] leading slash in SCRIPT_NAME variable

2006-03-01 Thread Roman Rumisek
Hi, i have configured apache 2.0.50 with mod_php 4.4.2 and $_SERVER['SCRIPT_NAME'] beginning with /// (three slash). Where have i a error ? (probably configuration) Application apache configuration: Alias /trsklad/ /.../projects/akce/src/html/ AllowOverride All Order deny,allow

[PHP] gd extension crashed on mandrake

2006-02-16 Thread Roman Rumisek
Hi. I attempt the antispam.php from jpgraph library but both cli and mod php crashed with SIGINT 11 in imagecreatefromstring function. String is correct (I saved it into the file and view it in Firefox - OK). PHP version: 4.3.8, gd version: both 2.0.27 and 2.0.33. - original Mandrake rpm(libgd2-2