GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   html/php - iframes... (https://gfy.com/showthread.php?t=768708)

Cyber Fucker 09-14-2007 12:58 PM

html/php - iframes...
 
How to make something like iframe that will display the actual code of the other page in the source code? I think that there must be some html or php solution for that...

example
I don't want in the source code :
<iframe src ="/page.html" width="100%"> </iframe>

but :
code code code
code code code
code code and so on...


Sorry for my another noob question, I would search the answer myself but I'm not sure what exactly I am looking for... so... :helpme

ridikuloz 09-14-2007 01:03 PM

err nevermind.

ridikuloz 09-14-2007 01:04 PM

http://www.addressmunger.com/display_code/ here, use this.

wateva 09-14-2007 01:28 PM

w3schools.com visit this

Cyber Fucker 09-14-2007 01:33 PM

thank you, but this not exactly what I am looking for :( I don't want to display the source code to the viewer, I want the viewer to see the actual content like pics and whole formating as it is on the original page, I just want that source code for search engines and to be viewed when I click on the browser bar view/source...

Chio 09-14-2007 02:08 PM

Quote:

Originally Posted by bbwebmaster (Post 13087849)
thank you, but this not exactly what I am looking for :( I don't want to display the source code to the viewer, I want the viewer to see the actual content like pics and whole formating as it is on the original page, I just want that source code for search engines and to be viewed when I click on the browser bar view/source...

php include.

Libertine 09-14-2007 02:10 PM

Use CSS.

Make a div with a fixed size and this attribute:

overflow: auto;

:)

Eh, nevermind. Thought you just wanted an iframe-like effect.

GeXus 09-14-2007 02:13 PM

Use file_get_contents() in php... then display it on a page that you iframe... I haven't tested that, may not work... but there is definitely a way without emulating a browser.

Cyber Fucker 09-14-2007 02:24 PM

Now you get what I want :) I will test both these php functions. Thank you for help.

Libertine 09-14-2007 02:24 PM

Some more info is needed, I think:

Is the file remote or local? If it's remote, you probably should retrieve it, store it locally and include it with a simple php include. If it's local, you can just use a simple php include.

Is the file a full html document or a snippet of html that uses the same formatting style as the page its in does? If it's a full html document, simply including it will most likely cause layout problems. If it's a snippet, it might still cause problems, but those should be easier to solve.

GeXus 09-14-2007 02:26 PM

Quote:

Originally Posted by Libertine (Post 13088086)
Some more info is needed, I think:

Is the file remote or local? If it's remote, you probably should retrieve it, store it locally and include it with a simple php include. If it's local, you can just use a simple php include.

Is the file a full html document or a snippet of html that uses the same formatting style as the page its in does? If it's a full html document, simply including it will most likely cause layout problems. If it's a snippet, it might still cause problems, but those should be easier to solve.

One word - Clueless.

Cyber Fucker 09-14-2007 02:29 PM

Quote:

Originally Posted by Libertine (Post 13088086)
Some more info is needed, I think:

Is the file remote or local? If it's remote, you probably should retrieve it, store it locally and include it with a simple php include. If it's local, you can just use a simple php include.

Is the file a full html document or a snippet of html that uses the same formatting style as the page its in does? If it's a full html document, simply including it will most likely cause layout problems. If it's a snippet, it might still cause problems, but those should be easier to solve.

It's a local php file :)

Libertine 09-14-2007 02:32 PM

Quote:

Originally Posted by GeXus (Post 13088096)
One word - Clueless.

Three words: eat shit, noob.

GeXus 09-14-2007 02:33 PM

Quote:

Originally Posted by Libertine (Post 13088129)
Three words: eat shit, noob.

Fuckin' Mr. "One-Up" Libertine

Libertine 09-14-2007 02:34 PM

Quote:

Originally Posted by bbwebmaster (Post 13088113)
It's a local php file :)

Then a simple php include should suffice.

Do you want to include full pages though, or just snippets of html?

Cyber Fucker 09-14-2007 02:43 PM

Quote:

Originally Posted by Libertine (Post 13088138)
Then a simple php include should suffice.

Do you want to include full pages though, or just snippets of html?

full page

Libertine 09-14-2007 02:53 PM

Quote:

Originally Posted by bbwebmaster (Post 13088182)
full page

Fuck.

Assuming that the page they're being included in is a full page with a separate design as well, you have a bit of a problem.

You could either get a custom include version that strips parts of html from the file being included (things like html tags, head tags, body tags, etc), or just strip it manually from those files and upload non-full versions as well, then include those.

The first version will require a bit of coding and will cause unnecessary server load, so I'd go for the second version if I were you. Of course, if there are many files, you might want to write/get a simple script that processes the whole batch.

Oh, and depending on the files being included and the ones they're being included in, there's the possibility of conflicting code.


All times are GMT -7. The time now is 04:17 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123