Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1614 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

I've never understood..

Thread title: I've never understood..
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
11-25-2008, 07:20 AM
#1
Cereal is offline Cereal
Status: Junior Member
Join date: Nov 2008
Location:
Expertise:
Software:
 
Posts: 29
iTrader: 0 / 0%
 

Cereal is on a distinguished road

  Old  I've never understood..

How some websites are .xhtml, .shm

all of those, yet they still function php?

11-25-2008, 10:54 AM
#2
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old

You can do this with a Mod Rewrite to change the url to go to the original files (which would be the PHP file) but it can appear as any other file type.

I'm pretty sure you can change the php file extension in the php ini file too.

11-25-2008, 07:14 PM
#3
richiejenkins is offline richiejenkins
richiejenkins's Avatar
Status: Junior Member
Join date: Aug 2007
Location: Harrogate, England
Expertise:
Software:
 
Posts: 84
iTrader: 0 / 0%
 

richiejenkins is on a distinguished road

  Old

Originally Posted by sketchie View Post
You can do this with a Mod Rewrite to change the url to go to the original files (which would be the PHP file) but it can appear as any other file type.

I'm pretty sure you can change the php file extension in the php ini file too.
Intresting, thanks

11-26-2008, 10:19 PM
#4
JamesW is offline JamesW
Status: Member
Join date: Mar 2006
Location: London, Ontario, Canada
Expertise: Design & Photograph
Software: Photoshop, Dreamweaver, Chrome
 
Posts: 182
iTrader: 1 / 100%
 

JamesW is on a distinguished road

Send a message via MSN to JamesW Send a message via Skype™ to JamesW

  Old

This usually involves some C++ as well.

11-27-2008, 05:16 AM
#5
rkquest is offline rkquest
rkquest's Avatar
Status: I'm new around here
Join date: Nov 2008
Location:
Expertise:
Software:
 
Posts: 18
iTrader: 0 / 0%
 

rkquest is on a distinguished road

  Old

I can think of 2 ways that is done.
1. mod_rewrite as mentioned earlier
2. Setup Apache (through .htaccess or httpd.conf) to handle (xhtml, shm, wml etc.) as PHP files.

11-27-2008, 05:26 AM
#6
Doughboy is offline Doughboy
Doughboy's Avatar
Status: Member
Join date: Aug 2006
Location: Canada
Expertise:
Software:
 
Posts: 176
iTrader: 2 / 100%
 

Doughboy is on a distinguished road

  Old

.htaccess
Code:
RewriteEngine On

RewriteRule ^mypage.shm$ page.php [L,NS]

12-04-2008, 08:47 AM
#7
Liam is offline Liam
Liam's Avatar
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
 
Posts: 287
iTrader: 0 / 0%
 

Liam is on a distinguished road

Send a message via MSN to Liam

  Old

Originally Posted by JamesW View Post
This usually involves some C++ as well.
wat?

12-06-2008, 02:38 AM
#8
ditch182 is offline ditch182
Status: Junior Member
Join date: Jul 2008
Location: NC
Expertise:
Software:
 
Posts: 70
iTrader: 0 / 0%
 

ditch182 is on a distinguished road

  Old

Originally Posted by JamesW View Post
This usually involves some C++ as well.
Why do you need c++? My mind is blown.

12-06-2008, 10:44 AM
#9
ezia is offline ezia
Status: Sin Binner
Join date: May 2008
Location:
Expertise:
Software:
 
Posts: 247
iTrader: 5 / 78%
 

ezia is an unknown quantity at this point

  Old

You can rename the files to anything . Like ireally.smell . I'm sure the more humorous of you out there can do better :P

12-06-2008, 08:30 PM
#10
Mundo is offline Mundo
Status: I'm new around here
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 16
iTrader: 0 / 0%
 

Mundo is on a distinguished road

Send a message via MSN to Mundo

  Old

The easiest way I know how to do this is by editing the .htaccess file (in apache anyway).

Closed Thread  
Page 1 of 2 1 2 >


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed