php-general Digest 25 Mar 2006 17:38:49 -0000 Issue 4035
Topics (messages 232569 through 232573):
Re: Test email
232569 by: Pham Huu Le Quoc Phuc
PHP Links
232570 by: Thomas Bonham
232571 by: tedd
Creation and transfer of object thru session
232572 by: Peter Lauri
Oject passed via session error
232573 by: Peter Lauri
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:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
----- Original Message -----
From: "PHP Mailer" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Saturday, March 25, 2006 10:59 AM
Subject: [PHP] Test email
> Seems pretty dead tonight.....
> Checking POP3 quickly.
>
> Ignore this email or reply kindest!
>
> =)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I'm trying to find out how make following happen
Example:
http://www.example.com/test.php?id=20
What makes this happen and how do I make it.
Thanks
Thomas
--- End Message ---
--- Begin Message ---
I'm trying to find out how make following happen
Example:
http://www.example.com/test.php?id=20
What makes this happen and how do I make it.
Thanks
Thomas
Thomas:
It's unclear as to what you want.
To make this happen, you click it:
http://www.example.com/test.php?id=20
To make this happen in html for others to click, you can use:
<a href="http://www.example.com/test.php?id=20"></a>
To make this happen in html with php for others to click, you can use:
<a href="http://www.example.com/test.php?id=<?php echo($value);?>"></a>
Just where and what are you trying to do?
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
--- End Message ---
--- Begin Message ---
Hi,
I am creating an object from a Web Service. Throughout a session I would
like to keep the object that was created in the beginning of the session.
The reason for this is that the creation of the object takes some time
because of the communication with the Web Service. As I see it, there are
two possibilities:
1. Save the object in the $_SESSION variable, because the objects are not
big
2. Serialize the object and save it to a database, and use $_SESSION to keep
reference to the database
What is to prefer? What are the benefits of using 1 against using 2? Is
there any 3rd option?
Best regards,
Peter Lauri
--- End Message ---
--- Begin Message ---
Hi,
I do this:
<?php
session_start();
require_once('classes/ns_cart.class.php');
if(!isset($_SESSION['ns_cart'])) $_SESSION['ns_cart'] = new NScart();
?>
The output will be the following with print_r of the $_SESSION:
--------------------
Array
(
[ns_cart] => nscart Object
(
[myProducts] => Array
(
[0] => ns_product Object
(
---------------------
When I reloads the page I get the following:
--------------------
Array
(
[ns_cart] => __PHP_Incomplete_Class Object
(
[__PHP_Incomplete_Class_Name] => nscart
[myProducts] => Array
(
[0] => __PHP_Incomplete_Class Object
---------------------
What is this? I am confused...
/Peter
--- End Message ---