Reply to Re: Executing php code within an iframe

Your name:

Reply:


Posted by Harlan Messinger on 10/10/06 15:55

Nospam wrote:
> I am trying to execute a php script within an iframe, if I open up the html
> page on a standalone browser the php code executes, but running it from my
> server nothing happens, I basically have an html page
> <html>
> ...
> <iframe>
> link to php script
> </iframe>
> </html>
>
> Is there something blatant I am doing wrong?

Your questions are hard to answer because you keep explaining the
situation and what you're attempting to do in vague or meaningless terms
instead of with relevant information. PHP scripts don't execute with an
IFRAME, they execute on a server. I don't know what you mean by opening
"the" HTML page in a standalone browser (as opposed to what other kind
of browser?) or why you are making a distinction between that and
running it on a server--PHP *always* runs the server.

Meanwhile you're not bothering to show the code. So how do we know
what's causing the problem? We certainly can't tell from what you've
told us. If you think we can, it reflects some misconceptions about the
respective roles of the browser and the server and misunderstandings
about which has what information and about what runs where.

When a server receives a request, it has no idea whatsoever what was
clicked or activated to generate that kind of request--a hyperlink, a
button, a Javascript call initiated by a mouseover or timer, an address
typed into the browser's address field. If it doesn't know that a
hyperlink was clicked, it certainly doesn't know that the hyperlink is
inside an IFRAME. The server just processes the request, generates a
response, and sends it back to the browser.

The browser is responsible for determining what to do with the response
once it arrives. The browser has no idea how the response was
generated--by HTML or binary code being read straight out of a file or
by a program, be it ASP, PHP, JSP, Perl, etc., generating it dynamically.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация