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

2005-09-15 Thread Gustav Wiberg
: Re: [PHP] Output of html without using functions? ?php echo htmlentities(file_get_contents('http://php.net')); ? On Wed, September 14, 2005 3:31 am, Gustav Wiberg wrote: Hi there! Ok.. Thanx! Yes, I must be able to get info from his site, BUT i can't install anything (Not Curl either

[PHP] Output of html without using functions?

2005-09-14 Thread Gustav Wiberg
Hi there! Look at the following code code1.php ?php echo rand(1,1); ? 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

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

2005-09-14 Thread Shafiq Rehman
Hi, You can use your code1.php as ?php return rand(1,1); ? and then you can get the value as $returnedData = require(code1.php); On 9/14/05, Gustav Wiberg [EMAIL PROTECTED] wrote: Hi there! Look at the following code code1.php ?php echo rand(1,1); ? code2.php

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

2005-09-14 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: //Something like $test = require(http://domain/mobil_info.php); but instead of returning 1 at success I want to return the random value... $test = file_get_contents(http://domain/mobil_info.php); assuming allow_url_fopen is on, otherwise look at the CURL functions or use

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

2005-09-14 Thread Jochem Maas
Gustav Wiberg wrote: Hi there! Look at the following code code1.php ?php echo rand(1,1); ? 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

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

2005-09-14 Thread Gustav Wiberg
- Original Message - From: George Pitcher [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 9:47 AM Subject: RE: [PHP] Output of html without using functions? Gustav, For true simplicity (platform independence), you need to do a lot more work

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

2005-09-14 Thread Gustav Wiberg
[EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 10:08 AM Subject: RE: [PHP] Output of html without using functions? Gustav, If I write a function in PHP. Main question: Would the partner be able to get the value from a function written in PHP across

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

2005-09-14 Thread Jesper Gran
I have tried a class called HTTP protocol client from phpclasses to retrive sourcecode from other websites. You should be able to used it to get the output from your remote script. And it works on b-one. http://www.phpclasses.org/browse/package/3.html /Jepser -- PHP General Mailing List

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

2005-09-14 Thread Gustav Wiberg
] Output of html without using functions? I have tried a class called HTTP protocol client from phpclasses to retrive sourcecode from other websites. You should be able to used it to get the output from your remote script. And it works on b-one. http://www.phpclasses.org/browse/package/3.html