note 68362 added to function.oci-connect
| From: | greatval<wow>gmail" com | Date: | Mon, 24 Jul 2006 16:30:45 +0000 |
| Subject: | note 68362 added to function.oci-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115098@lists.php.net to get a copy of this message | ||
For use PHPv5 functions in PHPv4 i use simple script:
<?php
$funcs=array(
'oci_connect'=>'OCILogon',
'oci_parse'=>'OCIParse',
'oci_execute'=>'OCIExecute',
'oci_fetch'=>'OCIFetch',
'oci_num_fields'=>'OCINumCols',
'oci_field_name'=>'OCIColumnName',
'oci_result'=>'OCIResult',
'oci_free_statement'=>'OCIFreeStatement',
);
// yoy can add yours pairs of funcs.
foreach ($funcs as $k=>$v)
{
if (!function_exists($k))
{
$arg_string='$p0';
for ($i=1;$i<20;$i++) {
$arg_string.=',$p'.$i;
}
eval ('function '.$k.' () {
list('.$arg_string.')=func_get_args();
return '.$v.'('.$arg_string.');
}
');
}
}
?>
simple, but it work. :-)
----
Server IP: 195.222.164.18
Probable Submitter: 217.150.192.174
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.oci-connect.php
Edit -- http://master.php.net/note/edit/68362
Del: integrated -- http://master.php.net/note/delete/68362/integrated
Del: useless -- http://master.php.net/note/delete/68362/useless
Del: bad code -- http://master.php.net/note/delete/68362/bad+code
Del: spam -- http://master.php.net/note/delete/68362/spam
Del: non-english -- http://master.php.net/note/delete/68362/non-english
Del: in docs -- http://master.php.net/note/delete/68362/in+docs
Del: other reasons-- http://master.php.net/note/delete/68362
Reject -- http://master.php.net/note/reject/68362
Search -- http://master.php.net/manage/user-notes.php