/    Sign up×
Community /Pin to ProfileBookmark

iframe and php

okay so i have this page, [url]http://lololcats.com/news2/index.php[/url]. at the bottom is a web proxy in an iframe. if you go to view source, you would see this at the very bottom:

[CODE]<IFRAME SRC=”rss.php” height=”100%” width=100% frameborder=”0″>Your browser doesn’t support iframes. Kill yourself.</iframe>
[/CODE]

is there way to display that iframe, or rss.php, at the bottom of index.php without allowing everyone to see that it’s source is from rss.php? i guess what i’m asking is that when viewing the source of index.php, instead of seeing

[CODE]<IFRAME SRC=”rss.php” height=”100%” width=100% frameborder=”0″>Your browser doesn’t support iframes. Kill yourself.</iframe>
[/CODE]

they would instead see

[CODE]<?xml version=”1.0″ encoding=”utf-8″?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” lang=”en-US” xml:lang=”en-US”>
<head>
<link rel=”stylesheet” type=”text/css” href=”style.css” title=”Default Theme” media=”all” />
</head>
<body onload=”document.getElementById(‘address_box’).focus()”>
<div id=”container”>
<form method=”post” action=”/news2/rss.php”>
<ul id=”form”>
<div style=”width:100%;align:center;margin:0;text-align:center;color:#000000;background-color:#ffffff;font-size:12px;font-weight:bold;font-family:Bitstream Vera Sans,arial,sans-serif;”>
<label><input id=”address_box” size=”80″ type=”text” name=”q” value=”” onfocus=”this.select()” /></label>
</div>

</ul>
</form>
</div>
</body>
</html>[/CODE]

which is the source of rss.php. i hope that makes sense, lol. i pretty much know nothing about php, but i can usually figure things out through trial and error.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@MindzaiApr 26.2009 — So you mean you want to remove the iframe and just include it's contents? The PHP include() function will do the job.
Copy linkTweet thisAlerts:
@cnstarzauthorApr 26.2009 — well, i still want the iframe there because i want the proxy page (rss.php) to work within the iframe. i just dont want people to know that the iframe's source is rss.php.
Copy linkTweet thisAlerts:
@MindzaiApr 26.2009 — Then you're SOL. The source code is the instruction to the browser, you can't have something there but not there unless you want to start imploding universes.
Copy linkTweet thisAlerts:
@cnstarzauthorApr 26.2009 — hahaha, ok. kinda knew i would be out of luck. thanks tho! ?
×

Success!

Help @cnstarz spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 2.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Samric24,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 10 SATS,

tipper: @neststayhome,
tipped: article
amount: 1000 SATS,
)...