riots Posted June 19, 2007 Share Posted June 19, 2007 I know the extension has to be php unless you change web server settings What im trying to do is put this gallery script i got from Stadaus.Com Into my current web layout I even trying putting the code from the gallery.php into the spot where i can it to display which is Div- Content and the script dose not show. But gallery.php show fine. Thanks Here is my code <?php mb_http_input("utf-8"); mb_http_output("utf-8"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>My WebSite</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="default.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"> <div id="logo"> <h1> </h1> <h2> </h2> </div> <div id="menu"> <ul> <li class="active"><a href="#" title="">Home</a></li> <li><a href="#" title="">Photos</a></li> <li><a href="#" title="">Battle Boards</a></li> <li><a href="#" title="">Forums</a></li> <li><a href="#" title="">Contacts</a></li> </ul> </div> </div> <div id="wrapper"> <div id="content"><?php include("gallery.php") ?></div> <div style="clear: both;"> </div> </div> <div id="footer"> <p id="legal">Copyright © 2007 GraffInTheNo. All Rights Reserved. </p> <p><a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a></p> </div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/ Share on other sites More sharing options...
Dragen Posted June 19, 2007 Share Posted June 19, 2007 so have you changed the server setting to allow php in .html files? Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/#findComment-277498 Share on other sites More sharing options...
MasterACE14 Posted June 19, 2007 Share Posted June 19, 2007 your best to save the files as .php Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/#findComment-277499 Share on other sites More sharing options...
riots Posted June 20, 2007 Author Share Posted June 20, 2007 It is .php Here is the page script i want to use . http://graffintheno.com/Test/gallery.php And here is the page i want to out it on. http://graffintheno.com/Test/pic.php And i used the code above So if anyone can tell me how i can integrate that gallery into my layout that be ill. Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/#findComment-278282 Share on other sites More sharing options...
Dragen Posted June 20, 2007 Share Posted June 20, 2007 I think your problem is with html not php. You seem to be trying to insert a page made up of frames into a div, which I'm quite sure wouldn't work. Try putting it in an iframe, if you must use frames at all. <?php mb_http_input("utf-8"); mb_http_output("utf-8"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>My WebSite</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="default.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"> <div id="logo"> <h1> </h1> <h2> </h2> </div> <div id="menu"> <ul> <li class="active"><a href="#" title="">Home</a></li> <li><a href="#" title="">Photos</a></li> <li><a href="#" title="">Battle Boards</a></li> <li><a href="#" title="">Forums</a></li> <li><a href="#" title="">Contacts</a></li> </ul> </div> </div> <div id="wrapper"> <iframe id="content"><?php include("gallery.php") ?></iframe> <div style="clear: both;"> </div> </div> <div id="footer"> <p id="legal">Copyright © 2007 GraffInTheNo. All Rights Reserved. </p> <p><a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a></p> </div> </body> </html> That could work Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/#findComment-278406 Share on other sites More sharing options...
riots Posted June 21, 2007 Author Share Posted June 21, 2007 nope did not work :-\ here are results http://www.graffintheno.com/Test/test.php Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/#findComment-279504 Share on other sites More sharing options...
riots Posted June 21, 2007 Author Share Posted June 21, 2007 Oh yeah if you look at the source youll notice this section <div id="wrapper"> <iframe id="content"> <html> <head> <title>Gallery Script</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <frameset cols="*,200" frameborder="NO" border="0" framespacing="0"> <frame name="mainframe" src="./gallery/y_frame_main.php?"> <frame name="naviframe" noresize src="./gallery/y_frame_navi.php"> </frameset> </html> </iframe> I put like you had it and it displays that code. and nothing appears. Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/#findComment-279536 Share on other sites More sharing options...
Dragen Posted June 22, 2007 Share Posted June 22, 2007 oops.. I think that was my mistake. i haven't used frames for a couple of years. I think it should be this: <?php mb_http_input("utf-8"); mb_http_output("utf-8"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>My WebSite</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="default.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header"> <div id="logo"> <h1> </h1> <h2> </h2> </div> <div id="menu"> <ul> <li class="active"><a href="#" title="">Home</a></li> <li><a href="#" title="">Photos</a></li> <li><a href="#" title="">Battle Boards</a></li> <li><a href="#" title="">Forums</a></li> <li><a href="#" title="">Contacts</a></li> </ul> </div> </div> <div id="wrapper"> <iframe id="content" src="gallery.php"></iframe> <div style="clear: both;"> </div> </div> <div id="footer"> <p id="legal">Copyright © 2007 GraffInTheNo. All Rights Reserved. </p> <p><a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a></p> </div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/56171-put-php-script-into-current-html-page/#findComment-280068 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.