FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Embed PHP+HTML

 


ParsaAkbari
While debating what extension pages should be i thought, why not just embed a PHP script?

PHP is the server side process right? What is seen on the page is the HTML output.....

So why not just change it?

So website A that doesnt support hosting, can run PHP scripts.
All the PHP interpreting leg work is being done by website B.

So... Website A has a html user input, sending it to website B
Website B gets the input and does PHP process,
sends it back to website A

Excuse my over usage of "website" i know it is not the correct terminology Very Happy

If this was to work, wouldnt loading times would be slower?
This is not really bad for small PHP scripts but for things like forums it might make a diffrence.

Also is it possible to install a PHPbb forum on a webhost that doesnt support PHP?

And finally is it possible to "install" a PHP interpreter on a webhost that doesnt have PHP already?
LukeakaDanish
It wouldn't be slower. But with pages like a forum ALL pages are generated by PHP. So server A wouldn't be doing anything.

Actually, a similar process already gets used on almost all websites on the internet. Its called CACHING and basically, what it does is to save the PHP output into a simple document (in this case a database field most likely). Then instead of running through the entire PHP script next time the page is shown, it just loads the simple html document and displays that.

Of course this kind of thing still needs PHP - to figure out whether the cache is "up-to-date", and to actually load the cache.

PHP can't be installed on a host without PHP (by anyone else than the server admin). Why would you ever have a host without PHP/ASP though?.

NO, of course you cant install phpBB on a non PHP host. Look at the name... Rolling Eyes

You could however host it on another server (there are many free phpBB services around) and then include it on your page with an iframe or just a link. It wont be on the non PHP host though. You knew that was a silly question.
ParsaAkbari
Quote:
You knew that was a silly question.


Yes i did Very Happy and all thanks to you for answering it!
I thought if i am going to make a topic and as questions i might as well ask all the possablities.

I had thought of the I frame thing but they are kinda ugly Wink

The reason i am with a non PHP host is because they gave me a domain free for two years in exchange for my credit card number (yes its safe). They say we will give you your domain registration code if you cancel the two years free, if not you can have it once you start paying.

Yes and to be honest they are a rubbish rubbish host >.<.

Not that my other website it up and running i decided to make a new website (not with them) and see how it goes Laughing
LukeakaDanish
If you add frameborder="0" or css: border:0; you can remove the border (if that's what you find ugly). Also you can make it 100% width and 100% to make it virtually invisible...
swizzy
ParsaAkbari wrote:
And finally is it possible to "install" a PHP interpreter on a webhost that doesnt have PHP already?


Not unless you have root access to the dedicated/vps server.
Related topics

Parsing PHP in HTML
php/HTML pages question
How to upload a file via html-form and php?
How to change extension php to html but the php script still
php html tags

javascript php html styling and good practice.
PHP or HTML
[PHP] HTML entities, inputs, quotes
SSI within php coded files
php dil çevirmede yardým edin lütfen

Make me a job application page in php and earn 110 FRIH$!
load file into div dynamically using html possible
What file extension should I use ?
SOLVED::PHP upload_max_filesize
Using Windows Media Player with Asp.NET
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.