php-windows Digest 12 Oct 2005 11:00:41 -0000 Issue 2793

Topics (messages 26394 through 26400):

PDF question
        26394 by: Raul.IONESCU.volksbank.com.ro
        26395 by: Raul.IONESCU.volksbank.com.ro

Re: cannot use $mysqli->set_charset (undefined method)
        26396 by: Julien Ricard - Condenet

Re: Handling objects as session vars
        26397 by: David Collard
        26398 by: trystano.aol.com

Hey Php ;)
        26399 by: Richard Afolabi

Re: PHP cannot load extensions
        26400 by: Karl Orbell

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi all,

Does anyone know how can I open an existing PDF file to get the text
content from it, into PHP???

Many, many thanks! 

--- End Message ---
--- Begin Message ---
Hi all,

Does anyone know how can I open an existing PDF file to get the text
content from it, into PHP???

Many, many thanks! 

--- End Message ---
--- Begin Message ---
Hi,

I tried to use the procedural style but it doesn't work :-\ Now it's a :
"Call to undefined function mysqli_set_charset()"

I looked into the php source code, the compiler adds these functions to the mysqli extension if php is compiled with the correct mysql version. It seems to me that I'm using a wrong dll or something. I will try to look again today.

Any (other good) idea ? :)

Julien


--- End Message ---
--- Begin Message ---
Marcos R. Cardoso wrote:

i'd try using serialize() to turn the object into a string which can then be put in the session, and then unserialize() when you want it back out again

sessions work by using cookies, and cookies can't take php objects

;)

I'm trying to use an object as a session var so I could handle its properties and methods as long as the session is still on. But when I use a second PHP script the values inside this object are lost. I have a script like this.

<?
include("class/object_def.php");
session_start();
$new_object = new TNewClass($cod,$password);
if ($new_object->getCod() == 0) {
 echo $new_object->getMsgError();
} else {
 $_SESSION['session_object'] = $new_object;
?>
<script language="JavaScript">
 location.replace("new_script.php");
</script>
<?
}
?>

then in the script "new_script.php" I have the following instructions:

<?
include("class/object_def.php");
session_start();
if ($_SESSION['session_object'] == "") {
 echo "there is no session open<br>";
 exit;
}
echo $_SESSION['session_object']->getCod()."<br>";
echo $_SESSION['session_object']->getName()."<br>";
?>

The result from the script new_script.php always return empty where the methods should return something. I've already read the documentation at www.php.net, tried what it's shown there and checked some other sites as well, bu I haven't found a solution yet.

Environment:

Windows 2003 Server
Apache 2.0.54
PHP 4.4.0
Sun Chili!Soft ASP 3.6.2
MySQL 4.0.20a
Oracle 9i (through a Oracle 8i NetClient)


TIA,
Marcos R. Cardoso
Blumenau
Brazil


--- End Message ---
--- Begin Message --- I'd say not to both with serialize. Your just adding extra work when there is no need to.

It is possible to pass Objects across Sessions. I do it on my E-Commerce site by using a Shopping Cart object (it even says so on php.net!). Are you sure there is nothing wrong in the Class (that it is setting the data that you want correctly)? Try...

if (isset($_SESSION['session_object'])) {
   // do something
}

.... to see if the session is actually.

(I will check my code later when I get home to see if this is correct)

Tryst

-----Original Message-----
From: David Collard <[EMAIL PROTECTED]>
To: Marcos R. Cardoso <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Tue, 11 Oct 2005 15:57:50 +0100
Subject: Re: [PHP-WIN] Handling objects as session vars

 Marcos R. Cardoso wrote:

i'd try using serialize() to turn the object into a string which can then be put in the session, and then unserialize() when you want it back out again

sessions work by using cookies, and cookies can't take php objects

;)

> I'm trying to use an object as a session var so I could handle its > properties and methods as long as the session is still on. But when I > use a second PHP script the values inside this object are lost. I have
a script like this.
>
> <?
> include("class/object_def.php");
> session_start();
> $new_object = new TNewClass($cod,$password);
> if ($new_object->getCod() == 0) {
> echo $new_object->getMsgError();
> } else {
> $_SESSION['session_object'] = $new_object;
> ?>
> <script language="JavaScript">
> location.replace("new_script.php");
> </script>
> <?
> }
> ?>
>
> then in the script "new_script.php" I have the following instructions:
>
> <?
> include("class/object_def.php");
> session_start();
> if ($_SESSION['session_object'] == "") {
> echo "there is no session open<br>";
> exit;
> }
> echo $_SESSION['session_object']->getCod()."<br>";
> echo $_SESSION['session_object']->getName()."<br>";
> ?>
>
> The result from the script new_script.php always return empty where > the methods should return something. I've already read the > documentation at www.php.net, tried what it's shown there and checked > some other sites as well, bu I haven't found a solution yet.
>
> Environment:
>
> Windows 2003 Server
> Apache 2.0.54
> PHP 4.4.0
> Sun Chili!Soft ASP 3.6.2
> MySQL 4.0.20a
> Oracle 9i (through a Oracle 8i NetClient)
>
>
> TIA,
> Marcos R. Cardoso
> Blumenau
> Brazil
>

-- PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Richard Afolabi has invited you to join hi5. By joining hi5, you will be 
connected to Richard and all of Richard's friends.
 
hi5 is the place where friends meet. You can use hi5 for the following purposes:
* Find old friends
* Meet new people
* Browse photos

Join Richard, meet Richard's friends, and meet people that share your interests 
now!

Click here:
http://www.hi5.com/register/2ZXPK?inviteId=BZGRX1KQBD29498151p0







This invitation was sent to [email protected] on behalf of Richard 
Afolabi ([EMAIL PROTECTED]).

If you do not wish to receive invitations from hi5 members, click on the link 
below:
http://www.hi5.com/friend/displayBlockInvite.do?inviteId=BZGRX1KQBD29498151p0

--- End Message ---
--- Begin Message ---
I'm getting the exact same problem with Apache.

It's not isolated to phpMyAdmin though.

The php.ini file is read by Apache, but then no matter what the 
extensions_dir is set to it says "cannot load module 'filename'" giving a 
filename that most definitely exists.

It only seems unable to find the extensions from the module version of PHP, 
running it as a CGI or running PHP directly does not produce the error. 
It's exceptionally annoying.  Any ideas what's wrong with it?




Karl.

""Ryan J. Cavicchioni"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Did you put "extensions=php_mysqi.dll" or "extensions=php_mysqli.dll"
> in the php.ini file?
>
> chistian wrote:
>
>> Hi,
>>
>> I've installed PhpMyAdmin 2.6.2, PHP 5.0.4 and Mysql 4.1.11 and PHP
>> is working fine but when I try to start PhpAdmin I get this
>> message: "PHP cannot load mysqli extensions, please controll your
>> PHP configuration". In "Paths and directories" I wrote:
>> extensions_dir="e:\php\ext\" and in "Dynamics extensions" I wrote:
>> extensions=php_mysqi.dll. All that on a w2k server with IIS 5 and
>> mysql is running as a service. Can someone give me little help on
>> that ? Thanks in advance. Chris
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (MingW32)
> Comment: GnuPT 2.6.1.1 by EQUIPMENTE.DE
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFCZxiSTMDaAcJxvKgRAoeiAKCoNPOYk2gKjE5sn3WFWENvDS6qTgCggucO
> uZvbSUjK5lU9+Hv7+BGBKeU=
> =FkOC
> -----END PGP SIGNATURE----- 

--- End Message ---

Reply via email to