Reply to Re: Running PHP from a remote server

Your name:

Reply:


Posted by Kimmo Laine on 11/15/34 11:25

"Troy" <troy@nospam.com> kirjoitti
viestissδ:gkbbh1tnmlk6dd3hqotjfejknj0bi79jni@4ax.com...
> My ISP provides me with 2 servers: one for normal web hosting
> (non-PHP) and a CGI server (with PHP). I create my website using
> fusion 7 and upload this in its entirity to the web hosting server. If
> I want to run CGI scripts, I can do so with an external link to a page
> on the CGI server. The problem however is that I have to maintain two
> sites and all associated links.
>
> Ideally, I'd like everything to be in one place, but I'm not allowed
> to upload my entire site to the CGI server. Alternatively then, is
> there a way of calling PHP scripts on the CGI server from a non-CGI
> server, without resorting to a clickable link. I can include HTML such
> as <A HREF="http://cgiserver/......>php script link<A>, however this
> requires the user to click on some text to run my script. I'd like to
> run the script from the remote server without them clicking.

how about
<script type="text/javascript"
src="http://www.urltotheother.site/cgi/mythingy.php"></script>

or alternatively call it as a src for an image.

<img src="http://www.urltotheother.site/cgi/mythingy.php"
style="display:none;">

Or yet another one: make it an iframe.

<iframe src="http://www.urltotheother.site/cgi/mythingy.php"
style="display:none;"></iframe>

That'll fool the browser to think it needs to fetch some content from the
other site. Thus we have successfully disguised a script to be run as an
image or a script or just another page.

IMHO, the iframe solution would be the best, cos that's not even fooling the
browser. And you can be quite sure that content isn't cahced in that case...
If I were you, I'd use the iframe. Just make it small enough, like on pixel
wide and heigh, hide it in every possible way using css, and that's it! It
gets fetched every time but is invisible to the user...

--
SETI @ Home - Donate your cpu's idle time to science.
Further reading at <http://setiweb.ssl.berkeley.edu/>
Kimmo Laine <eternal.erectionN0@5P4Mgmail.com>

[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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация