This is a discussion on PHP question, newbie within the alt.comp.lang.php forums, part of the PHP Programming Forums category; On Sun, 14 Dec 2003 14:46:42 -0000, "distant" <distant5939@hot-FOAD-mail.com> wrote: &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Sun, 14 Dec 2003 14:46:42 -0000, "distant" <distant5939@hot-FOAD-mail.com>
wrote: > How, using only HTML, can I include my PHP script onto an existing >page? > i.e. I give them a snippet of HTML to paste into their page which calls and >the PHP script. http://www.w3.org/TR/html4/struct/ob...dded-documents http://www.w3.org/TR/html4/present/frames.html#h-16.5 -- Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk) Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space) |
|
|||
|
Hi,
Trying to create something pretty simple in PHP but it's not a language I've used much. I've created a little php script that simply queries a local SQL database and returns some data. Fine, works great when I navigate to the php file on my webserver. However I want this text to display in other webpages, i.e. on peoples websites. How, using only HTML, can I include my PHP script onto an existing page? i.e. I give them a snippet of HTML to paste into their page which calls and the PHP script. Can this be done? Was I clear? Thanks, distant |
|
|||
|
"Andy Hassall" <andy@andyh.co.uk> wrote in message news:mptotvg3b1f137f1k768ke078sul33dp6l@4ax.com... > On Sun, 14 Dec 2003 14:46:42 -0000, "distant" <distant5939@hot-FOAD-mail.com> > wrote: > > > How, using only HTML, can I include my PHP script onto an existing > >page? > > i.e. I give them a snippet of HTML to paste into their page which calls and > >the PHP script. > > http://www.w3.org/TR/html4/struct/ob...dded-documents > http://www.w3.org/TR/html4/present/frames.html#h-16.5 > That seemed great! So I tried <IFRAME src="http://www.myurl.com/view.php?nickname=distant" width="400" height="500" scrolling="auto" frameborder="1"</IFRAME> But it didn't work, nothing displayed :( Neither did <OBJECT id="http://www.myurl.com/view.php?nickname=distant"> </OBJECT> or <OBJECT data="http://www.myurl.com/view.php?nickname=distant"> </OBJECT> I'll keep fiddling but any hints would be great 'cos I can't see myself getting anywhere atm! distant |
|
|||
|
On Sun, 14 Dec 2003 15:25:20 -0000, "distant" <distant5939@hot-FOAD-mail.com>
wrote: >>> How, using only HTML, can I include my PHP script onto an existing >>>page? >>> i.e. I give them a snippet of HTML to paste into their page which calls >>>and the PHP script. >> >> http://www.w3.org/TR/html4/struct/ob...dded-documents >> http://www.w3.org/TR/html4/present/frames.html#h-16.5 > >That seemed great! So I tried > ><IFRAME src="http://www.myurl.com/view.php?nickname=distant" width="400" >height="500" scrolling="auto" frameborder="1"</IFRAME> Missing closing > on the IFRAME tag? -- Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk) Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space) |
|
|||
|
"Andy Hassall" <andy@andyh.co.uk> wrote in message news:940ptvkpobc97ne0g8hjhi310d4ivqot9f@4ax.com... > On Sun, 14 Dec 2003 15:25:20 -0000, "distant" <distant5939@hot-FOAD-mail.com> > wrote: > > >>> How, using only HTML, can I include my PHP script onto an existing > >>>page? > >>> i.e. I give them a snippet of HTML to paste into their page which calls > >>>and the PHP script. > >> > >> http://www.w3.org/TR/html4/struct/ob...dded-documents > >> http://www.w3.org/TR/html4/present/frames.html#h-16.5 > > > >That seemed great! So I tried > > > ><IFRAME src="http://www.myurl.com/view.php?nickname=distant" width="400" > >height="500" scrolling="auto" frameborder="1"</IFRAME> > > Missing closing > on the IFRAME tag? > Doh :) Thanks, now it works when I have that standing alone in a test.html file local to my PC. But it doesn't work when I try to include it in a more complex page (one I don't own). Weird! .. well, annoying. distant |
|
|||
|
"distant" <distant5939@hot-FOAD-mail.com> wrote:
> > Thanks, now it works when I have that standing alone in a test.html file > local to my PC. But it doesn't work when I try to include it in a more > complex page (one I don't own). > Weird! .. well, annoying. security settings? cu mgk -- Korpela's 42 Laws about Usenet: 22. Comprehensive quoting indicates lack of comprehensive reading. http://www.cs.tut.fi/~jkorpela/usenet/laws.html |
|
|||
|
"Markus G. Klötzer" <DengejaaUveso@eze-domains.com> wrote in message news:bri619.3hg.1@news.mgk.org.uk... > "distant" <distant5939@hot-FOAD-mail.com> wrote: > > > > > Thanks, now it works when I have that standing alone in a test.html file > > local to my PC. But it doesn't work when I try to include it in a more > > complex page (one I don't own). > > Weird! .. well, annoying. > > security settings? > > cu > > mgk Dunno? I can include other HTML tags on that site without problem. Like inserting an "a href" or "img src" when I want to. distant |
|
|||
|
"distant" <distant5939@hot-FOAD-mail.com> wrote:
> > Dunno? I can include other HTML tags on that site without problem. Like > inserting an "a href" or "img src" when I want to. check for "Navigate Sub-frames Across Different Domains" and this is not a PHP question but a browser/html question. hth mgk -- Quantum Physics: The Dreams that Stuff is made of. Michael Sinz |
|
|||
|
"Markus G. Klötzer" <DengejaaUveso@eze-domains.com> wrote in message news:briajk.uo.1@news.mgk.org.uk... > "distant" <distant5939@hot-FOAD-mail.com> wrote: > > > > > Dunno? I can include other HTML tags on that site without problem. Like > > inserting an "a href" or "img src" when I want to. > > check for "Navigate Sub-frames Across Different Domains" and this is > not a PHP question but a browser/html question. > > hth I'm afraid not. I'm not sure if you mean for me to configure IE on my PC or the web server over which I have no control .. If it's the former I couldn't do it anyway, not really. Or I'd have to instruct everyone using the script to do that and that's not feasible. Thanks for replying. I'm open to any alternatives.. surely this must be done a lot .. distant |
|
|||
|
"distant" <distant5939@hot-FOAD-mail.com> wrote:
> I'm afraid not. I'm not sure if you mean for me to configure IE on my PC or > the web server over which I have no control .. browser > If it's the former I couldn't do it anyway, not really. Or I'd have to > instruct everyone using the script to do that and that's not feasible. you can't expect people to run insecure settings. > Thanks for replying. I'm open to any alternatives.. surely this must be > done a lot .. Read the file in PHP, strip out the body then place it in some text container. hth mgk -- If a man stands in the middle of the forest speaking and there is no woman around to hear him.... Is he still wrong? |