outwarsecrets
Sep 17 2004, 02:54 AM
| | Is there a way to have php act as an iframe? I dont want to have to change every single page when i want to move something around. If anyone can give me a tutorial or somethign telling me how that would be great, or ven another way of doing this without frames. |
Reply
Zenchi
Sep 17 2004, 02:57 AM
Taken Directly from http://lissaexplains.com (The ads there are so horrible.) QUOTE How do I make server side includes (SSI)? The most practical use of server side includes is to edit a large amount of pages just by editing one file. If you have a large site, using server side includes can make it a breeze to update your pages. As you may have noticed, my pages all have the .shtml extension instead of the regular .html extension. This is because I use SSI on my site to make it easier to update. I use it for the left navigation menu, my header, and my footer. My navigation menu is actually a text file that I upload to my server. A small code included in my .shtml document calls the text file when needed to make it appear on my site. I can update every page that has a menu just by updating that one .txt file and uploading it to my server. Since I have 50 + pages, it makes it so much easier to update. Keep in mind that not all servers allow the use of SSI, and you will probably have to rename all of your regular .html documents to .shtml (some servers allow you to continue to use the .html extension, but not many of them do).
First, rename your regular .html documents to .shtml.
Next, make a text file (you can use Notepad). You can name the text file with the extension .txt, .html, or .shtml, it depends on what you want. The text file can include HTML, javascript, music, whatever you want to show up on a large number of pages. After you've made the text file, save it with the .txt file extension, name it anything you want.
Insert this code in your .shtml document, changing the info in bold to reflect your filename:
<!--#include file="yourfilename.txt" -->
Now, when someone accesses your site, the text file will be inserted into your document and show up as regular html.
It's really not very hard, and it's an awesome tool if you have a large site! Original Page can be found here.  Enjoy SSI. Edit: I forgot to mention, I believe php will work as long as you have the tags. I may be wrong, however.
Reply
Mario
Sep 17 2004, 03:11 PM
QUOTE(Zenchi @ Sep 17 2004, 02:57 AM) Taken Directly from http://lissaexplains.com (The ads there are so horrible.) Well ofcourse the site was design mostly for preteen and teens. Thats what i heard from when i joined like a 1 year and half ago. Like you won't see like one of those russian dating ad or find your true love here.
Reply
Spectre
Sep 17 2004, 03:33 PM
PHP is a server-side language only. What it returns to the user is HTML - not PHP. So no, you cannot use PHP within an iframe, as PHP cannot be called from within HTML (HTML, however, can be imbedded in PHP). You could easily create a frame from within PHP. For example: CODE <?php echo "<iframe src=\"page.html\">"; ?> Or you could set the frame's source to be a PHP script ('src="script.php"').
Reply
Similar Topics
Keywords : embeding, pages
- Pagination
? (3)
Protect Pages
HOW? (20) I create certain pages for my web-site, and I would like to protect them that no one can hack or see
their source codes. So, if everybody knows how to do it, please post a reply over here. List of
the best ways, I can do it. Thanks.....
2 Pages Into One
how? (10) Hello, now this may be a stupid question but i'm very new to php so i need some help. what
i'm wanting to do is combine 2 pages in to one. like for example the install.php for
invisionpower board it starts with one page and you click continue and it gives you a whole new page
but if you look at the url you are still using the install.php file but it has somethinglike "?a=2"
at the end. how can i do this. Thanks....
Php Pages Problem [resolved]
Please help me im stuck ;-( (5) Hi, i have been working with a wap forum script, translating from russian and fixing errors etc..
but now im stuck, the problem is with the pages while viewing a forum.. Let me explain.. the pages
are set to show ten topics per page which all works fine as you can see in these screenshots: page
1: page 2: The problem occurs when there are PINNED topics (with the redish folder), it will
show ten topics but also the pinned ones on page one, and the "Next" link will appear before it
should leading to a blank page where there should be topics but they are still on th....
Php An Js Window.open Pages Trouble.
I need a way to set hidden input values to the new window. (3) I have 2 main pages Page A(events_locked.php) and Page B(add_attendance.php). Both are php files.
Page A takes a post var from another page(not Page B ) and then used to query for displaying records
in a mysql datase. This variable has set as a session variable because there is 1 <script
LANGUAGE="JavaScript"> window.name="main_index"; function openFormWindow() {
OpenWindow=window.open("add_attendance.php", "newwin", "height=250,
width=400,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=no"); var x =
getElementByName("form1"); x.target="newwin"; x.s....
Php Pages Permission On Apache Server
PHP pages permission on Apache Server (1) Hello, I want to know what permissions for PHP pages should be given on Apache web server so that
PHP pages can be executed. If PHP pages are in a folder, what permissions should be given for that
folder? ....
Putting Data Of 2 Pages In Mysql At Once
(1) suppose i have a page, page.php?part=1 there i have some text fields. user will give input, but
after taking input, it will not put the data in mysql .. but it will take to the next step..
page.php?part=2 (if any field is left blank, it will not go to next page.. ) . and there also some
fields.. after the user has filled that form also, then it will insert all data (from part1 and
part 2) in mysql. i want to ask, how i can collect data from 2 pages and put in mysql at once.....
Dynamic Php Pages
Nice tutorial (5) This is a really good tutorial on making php pages that normally appear as
www.domainname.com/links.php appear as www.domainname.com/index.php?page=links
http://nuwen.com/tutorials/php-dynamic-pages ....
Search Site Pages Using Keywords?
(6) We're doing a "Mock" e-commerce site for our project in Web Development and I was wondering how
to make a Search form like the ones in many sites. There will be a Search textbox and a button in
the form which will accept a string (keywords) which will then be processed by a script. If there
is a match, a page containg the keywords will be displayed. Is there a way to do this using PHP or
is there an existing free script out there already? Thanks very much.....
Changing Include Tag On All Pages
(11) I want to change an include tag (include menu.htm) to include menu.php on all my pages on my
website. Is there any fast way to do this, or do I have to edit all of my pages manually?
/unsure.gif' border='0' style='vertical-align:middle' alt='unsure.gif' /> ....
Parsing .html Pages
(9) This isn't really that urgent but I was wondering, I read somewhere that you can configure you
server to pars all html pages for php code, and I was wondering if that was true, and if trap17 has
that feature enabled?....
Blocking Pages & Making Ranks
(4) I would like to know how and where to put the code that would block certain pages so people could
only get to them if they logged in. And I would like to have ranks on the site and when you get to a
certain rank you get more options like being able to add members and stuff. And also. I would like
some code for a news sytem for the homepage. Like where you have to be logged in to post something
and only people with certain ranks will have access to it and only certain people can delete it. I
would like to be able to make it so on the members page it displays members and y....
Securing Pages
(2) just wondering if there is a easy safe way to secure some webpages. i have a payment facility on my
site which is linked through paypal. when the member has paid they are taken back to my site "thanks
your payment has been successful page", once its went to this page the item is no longer listed on
my site. now i have found away people can mess with this using the url. this means people can
change just a few digits in the url and and mess the listings up on my site. after payment has been
made the member is redirected to:- mydomain.com/class/thanks_paypal.php?myprod_....
Php Classes
Access the same class instance over multiple pages (1) Hey everyone. I am having some trouble accessing the same php class instance in more that one page.
This is for my login script and what i need to do is be able to call the classes logout function
from a separate page. What i have tried to do is create a new .php page and include the class file
and then make a new class and call logout. This does not work because it does not log out the
current user which is my problem. Can anyone help me fix this or know of another way to do it?
Below is my class file CODE <?php // member class // handlers member logo....
Pages In 1 File
?? (9) I know its possible to put many pages inside 1 file. But how? Lets say you have a guestbook with
different pages for signing and viewing. How to make so those pages are in 1 file? /huh.gif"
style="vertical-align:middle" emoid=":huh:" border="0" alt="huh.gif" />....
Looking for embeding, pages
|
|
Searching Video's for embeding, pages
|
advertisement
|
|