PHP question, newbie

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: &...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-14-2003
Andy Hassall
 
Posts: n/a
Default Re: PHP question, newbie

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)
Reply With Quote
  #2 (permalink)  
Old 12-14-2003
distant
 
Posts: n/a
Default PHP question, newbie

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


Reply With Quote
  #3 (permalink)  
Old 12-14-2003
distant
 
Posts: n/a
Default Re: PHP question, newbie


"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


Reply With Quote
  #4 (permalink)  
Old 12-14-2003
Andy Hassall
 
Posts: n/a
Default Re: PHP question, newbie

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)
Reply With Quote
  #5 (permalink)  
Old 12-14-2003
distant
 
Posts: n/a
Default Re: PHP question, newbie


"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


Reply With Quote
  #6 (permalink)  
Old 12-14-2003
Markus G. Klötzer
 
Posts: n/a
Default Re: PHP question, newbie

"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
Reply With Quote
  #7 (permalink)  
Old 12-14-2003
distant
 
Posts: n/a
Default Re: PHP question, newbie


"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


Reply With Quote
  #8 (permalink)  
Old 12-14-2003
Markus G. Klötzer
 
Posts: n/a
Default Re: PHP question, newbie

"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
Reply With Quote
  #9 (permalink)  
Old 12-14-2003
distant
 
Posts: n/a
Default Re: PHP question, newbie


"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


Reply With Quote
  #10 (permalink)  
Old 12-14-2003
Markus G. Klötzer
 
Posts: n/a
Default Re: PHP question, newbie

"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?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:45 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0