Reply to Re: [PHP] Output of html without using functions?

Your name:

Reply:


Posted by Jochem Maas on 09/14/05 10:50

Gustav Wiberg wrote:
> Hi there!
>
> Look at the following code
>
>
> code1.php
>
> <?php
> echo rand(1,10000);
> ?>
>
>
> code2.php
>
> //Here I want to get the output of code1.php without using functions. Is
> it possible?
> //
> //Something like $test = require("http://<domain>/mobil_info.php"); but
> instead of returning 1 at success I want to return the random value...
>
> Why? Because I want to be platform independent. I'm connecting to a
> server running PHP 4.3.11.

I have no idea whether what you want to do is actually what you want to do but
output buffering will get you there none the less...

e.g.:

ob_start()
ob_get_clean()

start reading here:
http://php.net/manual/en/ref.outcontrol.php


>
> Ideas? Please give me!
>
> /G
> http://www.varupiraten.se
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация