RE: [PHP] putting the result of PHP code into a string

2001-11-10 Thread power jessie


$id = 2;
$code = td . Func1($id) . /td
$html = someFunction($code);

hope that helps!

jessie

-Original Message-
From: Morten Gjetanger [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 10, 2001 1:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] putting the result of PHP code into a string


Ok. Maybe a bad example. But what if it's a function, e.g.

$id = 2;
$code = td?php echo Func1($id) ?/td
$html = someFunction($code);

Now, $html should contain td{the result of the Func1 function}/td

The reason why I want this is that I have a site where all the text on each
side lies in a MySQL database, and I have a php script which shows the pages
with a common header, footer, menu etc.. But I want the text to also contain
php code which will be evaluated by the script!

regards

Morten Gjetanger

Jason Stechschulte [EMAIL PROTECTED] skrev i melding
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Fri, Nov 09, 2001 at 10:33:39PM +0100, Morten Gjetanger wrote:
  I like to evaluate som PHP code, but I want the result to be putted into
a
  string.
  example:
 
  $var = Test1;
  $code = td?php echo $var1?/td;
  $html = someFunction($code);
 
  After this i want $html to contain tdTest1/td

 $var = Test1;
 $code = td$var/td;
 $html = someFunction($code);

 Done.

 --
 Jason Stechschulte
 [EMAIL PROTECTED]
 --
 You can't have filenames longer than 14 chars.
 You can't even think about them!
  -- Larry Wall in Configure from the perl distribution



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


---
This incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 11/1/2001

---
This mail is certified Virus Free. No need to worry.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 11/1/2001


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] how to set session expiration

2001-09-12 Thread power jessie


hello everyone,

  how can i set the expiration of my sessions with or without 
  the cookies enabled? say if a user idles for some time, the 
  session will now expire.

TIA!
jessie

void signature () {
cout  Jessie Natividad-- [EMAIL PROTECTED]  endl ;
cout  Cell: +63 919 272 7925  endl;
cout  Primum Regnum dei  endl;
}
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PEAR Integrated Template Class

2001-07-21 Thread power jessie


Hi!

Anyone using this?
Can someone point me to a link on
how to use this class.

Thanks in advance!


   ~{{}}~
   jessie
 .o0O()O0o.

 --
 j e s s i e @ p o w e r - j e s s i e . n e t

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Class/Func Librarys

2001-07-01 Thread power jessie


try the PHP Classes Repository site on
http://phpclasses.upperdesign.com

hope that helps!
jessie

-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 01, 2001 8:29 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Class/Func Librarys


Hey,
 Just Wondering if any one knows, any sites that havea a function
and/or class library on there site, for any thing? Might save some time if i
find some functions and/or classes :)
 Come on might just be a function you put in a script you made, send
them!!!

  - James ReDucTor Mitchell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]