|
Posted by "Gustav Wiberg" on 09/14/05 11:02
----- Original Message -----
From: "George Pitcher" <george.pitcher@ingenta.com>
To: "Gustav Wiberg" <gustav@varupiraten.se>
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.
>
> Do your coding as normal except where it might be affected by the platform
> in which case you need to be able to check the platform and perform the
> relevant function (works for paths etc too).
>
> My site was being developed on a Win XP laptop for deployment on a Linux
> server, until the company changed its mind and decided to use an existing
> NT4 server. My site still works fine even though my dev machine uses IIS
> and
> the server uses Apache. I don't need to worry about this as I include a
> config file at the head of each script that sets the paths accordingly.
>
> Hope this helps.
>
> George in Oxford
>
>> -----Original Message-----
>> From: Gustav Wiberg [mailto:gustav@varupiraten.se]
>> Sent: 14 September 2005 8:41 am
>> To: PHP General
>> Subject: [PHP] Output of html without using functions?
>>
>>
>> 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.
>>
>> Ideas? Please give me!
>>
>> /G
>> http://www.varupiraten.se
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
Hi there!
Ok, here's the deal. I want to do this:
A cooperation-partner has ASP.Net.
I have PHP.
Neither of us will change programming language.
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 the Internet?
Or what's the solution?
/G
http://www.varupiraten.se
Navigation:
[Reply to this message]
|