[PHP] $previous variable ?
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. Thanks Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array size in bytes
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] leading slash in SCRIPT_NAME variable
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 Deny from all Allow from 127.0.0.1 Thanks Rumisek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] leading slash in SCRIPT_NAME variable
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'] 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 >> Deny from all >> Allow from 127.0.0.1 >> >> >> Thanks >> >> Rumisek >> > > I don't think it's apache. > > Are you seeing this in a phpinfo page or in your code somewhere? > > If you're not using a phpinfo page then create one and see if it's in > there first. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Last array element not found
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_log("Unknown region: $sel_region_item, region array: ". var_export($tmp_reg_array, TRUE)); header("Location: ". get_error_result( $state_def[$_SESSION[STATE_VAR]][STATE_REDIR_PAGE]) ); exit; } The result: [15-Mar-2006 15:29:25] 0# - client.php : 327:Unknown region: 38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d83595a509, region array: array ( 0 => '38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d833f01a86', 1 => '38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d8323627c2', 2 => '38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d83595a509', ) Is it a bug of php ? Thanks Rumisek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Last array element not found
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_region as $sel_region_item) > if(!in_array($sel_region_item, $tmp_reg_array)) > { > my_error_log("Unknown region: $sel_region_item, region array: ". > var_export($tmp_reg_array, TRUE)); > header("Location: ". > get_error_result( > $state_def[$_SESSION[STATE_VAR]][STATE_REDIR_PAGE]) > ); > exit; > } > > The result: > > [15-Mar-2006 15:29:25] 0# - client.php : 327:Unknown region: > 38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d83595a509, > region array: array ( > 0 => > '38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d833f01a86', > 1 => > '38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d8323627c2', > 2 => > '38579a8bd51c2d656450bc41360362f39fdc528eca7b98b1c05221c676a0ce278cf30109fa1cd9cb5453fb91242176d83595a509', > ) > > Is it a bug of php ? > > Thanks > > Rumisek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] gd extension crashed on mandrake
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.0.33-3mdk, libgd2-2.0.27-3mdk, mod_php-4.3.8-1mdk, php-gd-4.3.8-2mdk, libphp_common432-4.3.8-3mdk, php-cgi-4.3.8-3mdk). Can you help me ? Cheers, Rumisek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php