| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() | 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'); ????: NamePros.com http://www.namepros.com/programming/393264-include-function-with-mode-rewrite.html So, how can i still use include function. Thanks |
| |
| | #2 (permalink) |
| Danltn.com Join Date: May 2007 Location: Danltn.com / Nottingham, UK
Posts: 1,201
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Your method of doing it isn't pretty. But if you would want to expand this method... PHP Code:
__________________ |
| |
| | THREAD STARTER #3 (permalink) | ||||
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() | 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
| ||||
| |
| | #4 (permalink) |
| Danltn.com Join Date: May 2007 Location: Danltn.com / Nottingham, UK
Posts: 1,201
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code:
__________________ |
| |
| | THREAD STARTER #5 (permalink) | ||||
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() |
Waw thank you very much. it worked. I wile check my paypal, if i have got anything i will try to donate. Thanks again | ||||
| |