Jump to content

Archived

This topic is now archived and is closed to further replies.

member

PHP include, set the size

Recommended Posts

Hi, just wanted to know what the code is to a php include, which i could set a specified width and height.

Thanks, ur help is most appreciated

Share this post


Link to post
Share on other sites
does anyone have a clue?, i'm sure it's very simple

[quote author=member link=topic=108971.msg438980#msg438980 date=1158871562]
Hi, just wanted to know what the code is to a php include, which i could set a specified width and height.

Thanks, ur help is most appreciated
[/quote]

Share this post


Link to post
Share on other sites
Ok what i mean is, I have a php include, what i want to do is adjust the size of it as in height and width.
A php include is like an iframe in html.

a sample code could be:

---------------------------------------------------------------------
<?php print file_get_contents('http://hanmia8.freehostia.com/index.php?option=com_content&task=view&id=12&Itemid=27'); ?>
---------------------------------------------------

i want to specify it's dimensions.

does anyone have a clue?

[quote author=Demonic link=topic=108971.msg439000#msg439000 date=1158873702]
Can you clear that question up? Because I have no clue on what you mean.  ???
[/quote]

Share this post


Link to post
Share on other sites
r u sure?, i didn't want an iframe, as people would know my src, which then they could add it to theirs using the html iframe,

if not I'll have to change the source size

if anyone else know, let me know here. Thanks

Share this post


Link to post
Share on other sites
An include is nothing like an iframe at all.

Use an iframe definition to produce the size and other properties of the iframe into which you can place whatever source you want. Set the source atrribute to whatever file you want.

Since a php include is parsed on the server and sent as generated html, nobody will be able to see your source code, however it got to the page. All they'll see is the html generated by your php file.

Although I don't see what this has to do with iframes at all. Better to define a scrollable div and include your content therein.

[code]<div style="border : solid 1px #fff; background : #fff; color : #000; padding : 0px; width:200px; height : 80px; overflow : auto; ">
<?php include("my_stuff.php"); ?>
</div>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.