member Posted September 21, 2006 Share Posted September 21, 2006 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 Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/ Share on other sites More sharing options...
member Posted September 21, 2006 Author Share Posted September 21, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/#findComment-96341 Share on other sites More sharing options...
Demonic Posted September 21, 2006 Share Posted September 21, 2006 Can you clear that question up? Because I have no clue on what you mean. ??? Quote Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/#findComment-96343 Share on other sites More sharing options...
member Posted September 21, 2006 Author Share Posted September 21, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/#findComment-96346 Share on other sites More sharing options...
member Posted September 24, 2006 Author Share Posted September 24, 2006 anyone? Quote Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/#findComment-97687 Share on other sites More sharing options...
Daniel0 Posted September 24, 2006 Share Posted September 24, 2006 You would have to place it inside an iframe. Include just includes the code. Quote Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/#findComment-97690 Share on other sites More sharing options...
member Posted September 24, 2006 Author Share Posted September 24, 2006 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 sizeif anyone else know, let me know here. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/#findComment-97699 Share on other sites More sharing options...
AndyB Posted September 24, 2006 Share Posted September 24, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/21579-php-include-set-the-size/#findComment-97740 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.