[svn:PHP-Sandwich] r6464 - PHP-Sandwich/trunk/lib/PHP
[email protected] Sat, 3 Jun 2006 21:03:55 -0700 (PDT)
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: theory
Date: Sat Jun 3 21:03:54 2006
New Revision: 6464
Modified:
PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
Log:
I think that this might be a better example.
Modified: PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
==============================================================================
--- PHP-Sandwich/trunk/lib/PHP/Interpreter.pm (original)
+++ PHP-Sandwich/trunk/lib/PHP/Interpreter.pm Sat Jun 3 21:03:54 2006
@@ -284,11 +284,13 @@
<?php
$perl = Perl::getInstance();
- $file = __FILE__;
- $instance = $perl->call_method('IO::File', 'new_from_fd', $fh);
+ $instance = $perl->call_method(
+ 'DBI', 'connect',
+ array('dbi:SQLite:dbname=file.db, '', '')
+ );
?>
-This will effectively call 'IO::File->new_from_fd($fd)' and return a PHP object of type 'PerlSV::IO::File' that will proxy all the Perl classes' method calls.
+This will effectively call "DBI->connect('dbi:SQLite:dbname=file.db')" and return a PHP object of type 'PerlSV::DBI:db' that will proxy all the Perl classes' method calls.
=head3 getVariable()