lynxus Posted August 9, 2008 Share Posted August 9, 2008 Hi guys, Im trying to include the output of a php file into a normal html page. http://212.125.94.168/imshout/dodata.php What i mean is, I have a html page. and i want to be able to insert whatever the output of that file is into it. The problem is the html page is on a non php server, So i want a users browser to go off run that above file and use the output in its own page. I tried this using javascript but it doesnt work. <script language="javascript" src="http://212.125.94.168/imshout/dodata.php"></script> Any ideas? Thanks Graham Link to comment https://forums.phpfreaks.com/topic/118932-solved-include-php-output-on-normal-non-php-html-server/ Share on other sites More sharing options...
lynxus Posted August 9, 2008 Author Share Posted August 9, 2008 I suppose what im trying to say is.. That php file echoes "Hello" In my .html page i want to do summat like. --- getoutputfromphp.php how are you. So the page would actually read " Hello how are you " I cant use a php include as the normal HTML page doesnt have php. I would of thought javascript could do it but it doesnt seem to lol Link to comment https://forums.phpfreaks.com/topic/118932-solved-include-php-output-on-normal-non-php-html-server/#findComment-612410 Share on other sites More sharing options...
lynxus Posted August 9, 2008 Author Share Posted August 9, 2008 Bump.. Im not trying to RUN php code on a non php server, i just want a normal html page to request from another server and then output to the normal html page.. Link to comment https://forums.phpfreaks.com/topic/118932-solved-include-php-output-on-normal-non-php-html-server/#findComment-612540 Share on other sites More sharing options...
genericnumber1 Posted August 9, 2008 Share Posted August 9, 2008 This, if anything, would be javascript... I don't think it's possible to do securely. Link to comment https://forums.phpfreaks.com/topic/118932-solved-include-php-output-on-normal-non-php-html-server/#findComment-612541 Share on other sites More sharing options...
lynxus Posted August 9, 2008 Author Share Posted August 9, 2008 Humm thats what ive tried. What im trying to do is i will be offering data basically to other sites in a small table. I have a php script that outputs this fine. What i want to do though is offer it to other people, people who dont have php support. so somehow i want to give themn code like .. include:http://blaaaa.commoo.php And then it will output ( include what i echo ) into their page.? See what i mean? Link to comment https://forums.phpfreaks.com/topic/118932-solved-include-php-output-on-normal-non-php-html-server/#findComment-612552 Share on other sites More sharing options...
genericnumber1 Posted August 9, 2008 Share Posted August 9, 2008 You might want to make a post in the javascript section, or get an admin to move this thread there... You would want to ask how to display the contents of a third party website page in a div. Link to comment https://forums.phpfreaks.com/topic/118932-solved-include-php-output-on-normal-non-php-html-server/#findComment-612557 Share on other sites More sharing options...
lynxus Posted August 9, 2008 Author Share Posted August 9, 2008 Ah cool, yeah ill ask there With that question.. been finding it hard to find the words to explain what i want to do lol. Ill mark this ojne as solved. Link to comment https://forums.phpfreaks.com/topic/118932-solved-include-php-output-on-normal-non-php-html-server/#findComment-612558 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.