php-windows Digest 11 May 2005 21:31:30 -0000 Issue 2665

Topics (messages 25993 through 25994):

Re: Print inside a variable
        25993 by: Maxwell Brodie

killer system
        25994 by: Shark Mayhem

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 ---
Thank you, I hope this will work, if it does, then you have been incredibly 
helpful, if it doesn't work, I still applaud you for trying to help me and 
increse my knowledge of php so that if I do run into a problem where I need 
somthing like that, I will know what to do.
"Jin Yong Wu" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>
> I am not sure whether you want to get the executing result of such PHP
> script into the variable $message or not ???
>
> If so, you can use output buffer.
> <?php
> ob_start();
>
> /* the following is the snippet you gave */
> if (isset($rss_channel["ITEMS"])) {
> if (count($rss_channel["ITEMS"]) > 0) {
>  ..........
>  print ("<b>There are no articles in this feed.</b>");
> }
> }
>
> $message = ob_get_contents();
> ?>
>
> Regards,
> Yong from Xerox, China
> 2005/5/8
>
> -----Original Message-----
> From: Maxwell Brodie [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 03, 2005 11:35 AM
> To: [email protected]
> Subject: [PHP-WIN] Print inside a variable
>
>
> Hello,
>
> I believe my problem is that I have to use the print funtion inside a
> variable, and I have no clue how to do that. For example, I need to get
> this:
>
> if (isset($rss_channel["ITEMS"])) {
> if (count($rss_channel["ITEMS"]) > 0) {
>  for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) {
>   if (isset($rss_channel["ITEMS"][$i]["LINK"])) {
>   print ("\n<div class=\"itemtitle\"><a href=\"" .
> $rss_channel["ITEMS"][$i]["LINK"] . "\">" .
> $rss_channel["ITEMS"][$i]["TITLE"] . "</a></div>");
>   } else {
>   print ("\n<div class=\"itemtitle\">" . 
> $rss_channel["ITEMS"][$i]["TITLE"]
>
> . "</div>");
>   }
>    print ("<div class=\"itemdescription\">" .
> $rss_channel["ITEMS"][$i]["DESCRIPTION"] . "</div><br />");   }
> } else {
>  print ("<b>There are no articles in this feed.</b>");
> }
> }
>
> Into variable "$message="
>
> Any help would be appriciated MUCH!
>
> Thank you!
>
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php 

--- End Message ---
--- Begin Message ---
alright im trying to make a really good php-mysql login system that
secures all files yet allows access to guests who are not logged in to
some files and also have my files encripted and my site and database
secure from hackers so i will need all your help on this so start
sending me some info on some good login scripts using php and mysql



-- 
Shark mayhem - Bradley

--- End Message ---

Reply via email to