| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | include function with mode rewrite? Hello all, I am using this to include a page Code:
$homepage = "http://www.x.com/video_files.html";
$currentpage = $_SERVER['REQUEST_URI'];
if($homepage==$currentpage) {
include('ads.php');
So, how can i still use include function. Thanks |
| |
| | #2 (permalink) |
| Danltn.com | Your method of doing it isn't pretty. But if you would want to expand this method... PHP Code: |
| |
| | #3 (permalink) | |
| NamePros Member | I must have over 500 pages for video_files.html My page listings are like this http://www.x.com/video_files.html http://www.x.com/1/video_files.html http://www.x.com/2/video_files.html http://www.x.com/3/video_files.html http://www.x.com/4/video_files.html ... I do not think it will be a good idea to list all the urls. is there any other way. Thanks Quote:
| |
| |
| | #5 (permalink) | |
| NamePros Member | Quote:
Waw thank you very much. it worked. I wile check my paypal, if i have got anything i will try to donate. Thanks again | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |