Jump to content
xisto Community
Sign in to follow this  
p_a

Open Php Page From Another Server If a server does not support php

Recommended Posts

If web server does not have .php support and I want to put a guestbook or something similar (no database), and there is no support for other server side scripting, what should I do?I would not like frames on my page, but - is there a possibility to put .php page from another site into layer on my webpage at the no-php-site? Does layer support (or any other html command, excluding frames) page including from another server?Also, does anybody have a solution for this any other way? How to make a guestbook without php, perl, other scripting languages? Or, how control (read, write contents) a file at the server without php, perl? Any way to do that?

Share this post


Link to post
Share on other sites

It is almost impossible to create an online guestbook or other such feature without being able to store content on the server (which would require a server-side language). It is possible, however, to incorporate PHP scripts from another site - but it could be quite risky, security wise, as you would need to pass all data to the script out in the open where anyone can see it.

 

One solution might be to set the 'action' of the form to point to the script on your other server, then have that script redirect users back to your other site once finished.

 

As for including content from scripts within pages, it would be difficult to do so without the use of frames - in a 'normal' environment, the script would be able to modify and add to the output before it is sent to the client, but as it is obviously unable to do so in such a situation, the only solution that I can see is using frames.

 

I'm don't think that it's possible, but you may be able to have JavaScript retrieve the contents of a webpage, store it in a variable, and then display it somewhere in the page. I avoid using JavaScript wherever I can, so I don't know - but it's unlikely it would work, as JavaScript has little to no file handling abilities (particularly where remote files are concerned).

 

A very unpractical (to the point of being absurd) solution could be to have the script on the server that supports PHP to generate an image containing the text and then display that image on your other web page. There are obviously a million reasons why this would be a stupid idea, but at a pinch, it could work.

 

There are various sites around that provide 'free' (usually ad-supported) guestbooks and other such remotely hosted scripts, but I'm quite sure most of them use frames.

Share this post


Link to post
Share on other sites

Of course - security reasons are so severe, I really do not want to make the link without being sure everything would be safe.But, for example - is there anything in HTML (not XML) excluding frames, including layers, that can have another page as it content. Layer can have pictures and texts, it can move from side to side, but, can it have complete webpage inside, or, is there any other possibility, any other HTML capability? iframe? something similar? I just want to include .php page that cannot be started in main server, to be started at another server, and after being started, as clean html, to be included in the main page.

Share this post


Link to post
Share on other sites

Hi, I'm thinking (as they said above) that the only way to do that is with a client-side script. Maybe you should take a look at AJAX (Asynchronous Javascript And Xml)...there is a thread started in the Javascript forum.Hope you can figure something out!!

Share this post


Link to post
Share on other sites

But how are you planning to use a php in your pages if your server does not support php? _I mean if you do have access to a file in another server which supports php, why dont you migrate all your content to that server? Would be much easier...And if you do not own the file you are planning on including, what kind of file would it be?Also, trap seventeen here offers php in its service, guess you already know.. hehe-10730

Share this post


Link to post
Share on other sites

i dont get it?

Open Php Page From Another Server

 

Hell guys I wanted to say that when I go to the moparscape server status page and I click on one of the server it says that you have to download the client so when I download it and open it it says the blah blah could not support the thing and hen it says to open a site where its originally from but it doesnt work I need help please...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.