Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 01-24-2005, 10:00 AM
sim sim is offline
Banned
Latest Blog:
None

 
Join Date: 01-23-04
Posts: 1,098
iTrader: 0 / 0%
.htaccess

is there any to config this so it will display 2 files at once instead of once.

for example if i visit www.po2.net/tmp.php


it will first display www.po2.net/test.php then after display that it will display www.po2.net/tmp.php


understand?
 
Reply With Quote
  #2 (permalink)  
Old 01-24-2005, 11:10 AM
gorillaboy's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 11-01-04
Location: USA! USA! USA!
Posts: 1,258
iTrader: 0 / 0%
Just do it w/ js.
 
Reply With Quote
  #3 (permalink)  
Old 01-24-2005, 11:15 AM
imaginemn's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 02-18-04
Location: Brownsville, Texas
Posts: 1,356
iTrader: 0 / 0%
Why not use include files?

Code:
<?php include("test.php"); ?> <p>This is my tmp.php page.</p>
imaginemn
__________________
Brownsville Web Design , McAllen Website Design, Harlingen Web Design
Website Design | Web Development | eCommerce | Search Engine Optimization (SEO)
 
Reply With Quote
  #4 (permalink)  
Old 01-24-2005, 11:20 AM
sim sim is offline
Banned
Latest Blog:
None

 
Join Date: 01-23-04
Posts: 1,098
iTrader: 0 / 0%
cause im thinking about making a phpBB mod that will allow people to host websites to its users.

Problem is, people want a feature to be able to include a banner in the header or footer.

so when people upload test.html, they want a banner at the top of all there html or at the bottom. so i figured there might be a way to do that with the htaccess file.
 
Reply With Quote
  #5 (permalink)  
Old 01-24-2005, 01:11 PM
kwvarga's Avatar
v7n Mentor
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 2,527
iTrader: 0 / 0%
for that i would have the .htaccess for a directory

users/sim.php redirects to showwebpage.php?user=sim

where the showwebpage.php would be

<?
include "header.php"; // your forums header/banner
include "useruploaddir/sim.html";
?>
 
Reply With Quote
  #6 (permalink)  
Old 01-24-2005, 02:54 PM
hatchet's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 10-11-03
Posts: 833
iTrader: 0 / 0%
The problem with that is you're using a variable to define the include file - security risk. I could put showwebpage.php?user=/httpd.conf or something like that and have complete access to it. Instead of directly including it you could have the script check to see if it's an allowable include first - maybe from a database.
So..
include "header.php"; // your forums header/banner
checkuser($user);
include "useruploaddir/".$user.".html";
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess & SSL Sketch Coding Forum 3 08-28-2006 03:12 AM
htaccess Sketch Coding Forum 10 12-22-2005 07:24 AM
What can you do with .htaccess? Jason Web Design Lobby 4 12-03-2004 10:39 PM
.htaccess help Limit Coding Forum 1 08-07-2004 10:34 AM
.htaccess Pimpen 2010 Coding Forum 15 10-21-2003 01:39 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:32 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.