Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 01-24-2005, 11:00 AM   #1 (permalink)
sim
Banned
 
Join Date: 01-23-04
Posts: 2,367
iTrader: 0 / 0%
Latest Blog:
None

sim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nice
.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?
sim is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-24-2005, 12:10 PM   #2 (permalink)
v7n Mentor
 
gorillaboy's Avatar
 
Join Date: 11-01-04
Location: USA! USA! USA!
Posts: 2,851
iTrader: 0 / 0%
Latest Blog:
None

gorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to beholdgorillaboy is a splendid one to behold
Just do it w/ js.
gorillaboy is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-24-2005, 12:15 PM   #3 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,946
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
Why not use include files?

Code:
<?php include("test.php"); ?> <p>This is my tmp.php page.</p>
imaginemn
__________________
Need a project done? - Set Your Own Price!
Imagine Creative Services
- Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-24-2005, 12:20 PM   #4 (permalink)
sim
Banned
 
Join Date: 01-23-04
Posts: 2,367
iTrader: 0 / 0%
Latest Blog:
None

sim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nice
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.
sim is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-24-2005, 02:11 PM   #5 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
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";
?>
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-24-2005, 03:54 PM   #6 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
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";
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > 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

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

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


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:11 AM.
© Copyright 2008 V7 Inc