Go Back   Cyber Tech Help Support Forums > Software > Web Development & Graphic Design

Notices

Reply
 
Topic Tools
  #1  
Old March 25th, 2006, 10:31 PM
dudeking's Avatar
dudeking dudeking is offline
Banned
 
Join Date: Dec 2005
O/S: Linux
Location: UK, Midlands
Age: 18
Posts: 2,842
index php

*/Skip to the sooooooo if you cant be bothered to read it/*

This is probily somthing really ovious and every one is probily goin think im thick but If you look at the dudekings test on my signiture I am doing somthing like that so if you are using FF it will go to a enter hexzero page and if you are using IE it will go to download FF page as I have loads of problems geting things to work on IE does ma head in


Sooooooooo
If I call a file index.php will it load like an index.htm????
Reply With Quote
  #2  
Old March 25th, 2006, 10:42 PM
MishY's Avatar
MishY MishY is offline
Cyber Tech Help Administrator
 
Join Date: Sep 2000
O/S: Windows Vista 64-bit
Location: England
Age: 31
Posts: 8,590
Blog Entries: 1
Depending on how your webserver is setup yes an index.php file will act like an index.html
__________________
Searching the forums can help you to find your answers more quickly
Posting Tips & Support Forum Rules | Vivid Development | Get Firefox! | CTH News | Are you hungry ? | Registered Linux User #317145
Reply With Quote
  #3  
Old March 25th, 2006, 11:00 PM
dudeking's Avatar
dudeking dudeking is offline
Banned
 
Join Date: Dec 2005
O/S: Linux
Location: UK, Midlands
Age: 18
Posts: 2,842
Streamline say they fully support PHP but I guess the only way is a test

Thanks mishy ill test it out now see how it handles it.
Reply With Quote
  #4  
Old March 26th, 2006, 02:14 AM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,046
Blog Entries: 1
It depends. Usually on a Windows server default.asp is the default, although others are supported.

They do support PHP so you could have several default pages

default.asp
default.htm
index.htm
index.php
etc.
__________________
Cheers,
Degs

Please post back with your results
CTH Terms of Use

CTH Subscriptions :: Adaware Guide :: HijackThis
Reply With Quote
  #5  
Old March 26th, 2006, 09:59 AM
dudeking's Avatar
dudeking dudeking is offline
Banned
 
Join Date: Dec 2005
O/S: Linux
Location: UK, Midlands
Age: 18
Posts: 2,842
So say if I had a index.htm and a default.asp, I am running on a linux server.
Is there some sort of hierarchy??
Or does it just load the first one alphabeticly???
Reply With Quote
  #6  
Old March 26th, 2006, 10:36 AM
renegade600's Avatar
renegade600 renegade600 is offline
Certifiable Bum
 
Join Date: Sep 2003
O/S: Linux
Location: Jonesboro, Ar
Posts: 22,030
Quote:
Originally Posted by dudeking
Streamline say they fully support PHP but I guess the only way is a test

Thanks mishy ill test it out now see how it handles it.
just because they say they fully support php does not mean it will support index.php. If it doesnt, then do a index.html and redirect to the php page.
__________________
Dan
Registered Linux User #382181 - Don't be irreplaceable; if you can't be replaced, you can't be promoted.

posting tips - cth tos - how to post hijackthis log





Reply With Quote
  #7  
Old March 26th, 2006, 10:36 AM
oracle128's Avatar
oracle128 oracle128 is offline
Α Ω
 
Join Date: Oct 2000
O/S: Windows XP Pro
Location: Melbourne, Australia
Age: 24
Posts: 9,401
A hierarchy is used. I believe it can only be modified by the server admin (and not via htaccess in Apache, but I may be wrong). For example, if they place index.html and index.htm higher in the order than index.php (which most admins would), and you want to use index.php, you will need to either get rid of the index.html/htm file, or simply use it to redirect to the php file (with a link, JavaScript, or meta-refresh).
__________________
Oracle's backup tutorial

"A lot of people say games are addictive. Well, they're addictive in the sense that anything you like doing you repeat endlessly. But no one would say, 'Mr Kasparov, you have a chess problem,' or 'Tiger Woods, you have a golf addiction.'" - Ian Livingstone, Creative Director, Eidos.

"A problem well stated is a problem half solved" - Charles Franklin Kettering
Reply With Quote
  #8  
Old March 26th, 2006, 10:43 AM
dudeking's Avatar
dudeking dudeking is offline
Banned
 
Join Date: Dec 2005
O/S: Linux
Location: UK, Midlands
Age: 18
Posts: 2,842
I am trying to get index.php which loads a download FF page if you are using IE and if your using FF goes to a enter Site Page.
The first page of the site is called index2.htm.

I think the best way to work this out is to have a play around so ill do that now and post back and tell you how I got on.
Reply With Quote
  #9  
Old March 26th, 2006, 01:22 PM
dudeking's Avatar
dudeking dudeking is offline
Banned
 
Join Date: Dec 2005
O/S: Linux
Location: UK, Midlands
Age: 18
Posts: 2,842
YAY works.
http://www.hexzero.co.uk

Try loading it in FF then in IE

Nice morning work there
Thanks for the help.
Reply With Quote
  #10  
Old March 26th, 2006, 02:25 PM
degsy's Avatar
degsy degsy is offline
Cyber Tech Help Moderator
 
Join Date: Jul 2001
Location: North-East, UK
Posts: 22,046
Blog Entries: 1
Too bad it doesn't distinguish between IE and other browsers, such as Opera.
__________________
Cheers,
Degs

Please post back with your results
CTH Terms of Use

CTH Subscriptions :: Adaware Guide :: HijackThis
Reply With Quote
  #11  
Old March 26th, 2006, 02:33 PM
renegade600's Avatar
renegade600 renegade600 is offline
Certifiable Bum
 
Join Date: Sep 2003
O/S: Linux
Location: Jonesboro, Ar
Posts: 22,030
Quote:
Originally Posted by degsy
Too bad it doesn't distinguish between IE and other browsers, such as Opera.
it did for my opera.

Now if you really want the script to do something have it look for linux and if the user is using windows suggest linux.
__________________
Dan
Registered Linux User #382181 - Don't be irreplaceable; if you can't be replaced, you can't be promoted.

posting tips - cth tos - how to post hijackthis log





Reply With Quote
  #12  
Old March 26th, 2006, 02:37 PM
dudeking's Avatar
dudeking dudeking is offline
Banned
 
Join Date: Dec 2005
O/S: Linux
Location: UK, Midlands
Age: 18
Posts: 2,842
Quote:
Too bad it doesn't distinguish between IE and other browsers, such as Opera.
It looks for strpos if it finds it it presumes you are using IE
On My PDA it has the blaster Browers and it thinks that is IE
Im still trying to perfect it.
PHP Code:
<?php
                
if (strpos($_SERVER["HTTP_USER_AGENT"], "MSIE") !== false) {
            
?>
Quote:
it did for my opera.
Now if you really want the script to do something have it look for linux and if the user is using windows suggest linux.
Im trying to do that now but all the sorce I can find is dodgy.
Any one know where I can get any?
Reply With Quote
  #13  
Old March 26th, 2006, 02:43 PM
renegade600's Avatar
renegade600 renegade600 is offline
Certifiable Bum
 
Join Date: Sep 2003
O/S: Linux
Location: Jonesboro, Ar
Posts: 22,030
some browsers like opera in the settings/preferences area can make their browser look like msie. Some browsers also uses msie engine which will also give it false readings. There may not be much more you can do to the script.
__________________
Dan
Registered Linux User #382181 - Don't be irreplaceable; if you can't be replaced, you can't be promoted.

posting tips - cth tos - how to post hijackthis log





Reply With Quote
  #14  
Old March 27th, 2006, 02:46 AM
oracle128's Avatar
oracle128 oracle128 is offline
Α Ω
 
Join Date: Oct 2000
O/S: Windows XP Pro
Location: Melbourne, Australia
Age: 24
Posts: 9,401
There is definitely not much you can do. The script works with whatever the browser identifies itself as, which could theoretically be anything. Where you'll see this behaviour most is with download managers, which can identify themselves as one of the major browsers to get around scripts which block download managers.

A workaround involves testing the browser's capabilities to determine what it is (which can't usually be falsified), but it's more trouble than it's worth.
__________________
Oracle's backup tutorial

"A lot of people say games are addictive. Well, they're addictive in the sense that anything you like doing you repeat endlessly. But no one would say, 'Mr Kasparov, you have a chess problem,' or 'Tiger Woods, you have a golf addiction.'" - Ian Livingstone, Creative Director, Eidos.

"A problem well stated is a problem half solved" - Charles Franklin Kettering
Reply With Quote
  #15  
Old March 27th, 2006, 04:54 PM
dudeking's Avatar
dudeking dudeking is offline
Banned
 
Join Date: Dec 2005
O/S: Linux
Location: UK, Midlands
Age: 18
Posts: 2,842
Ok Thanks Oracle, Degsy, renegade.
Looks like I have the script working to its max.
But now im liking renegades Idea so gotta try and get it to detect linux
Reply With Quote
Reply

Bookmarks

Topic Tools

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
Forum Jump


All times are GMT +1. The time now is 01:30 AM.

[ RSS ]