|
#1
|
||||
|
||||
|
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???? |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
||||
|
||||
|
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??? |
|
#6
|
||||
|
||||
|
Quote:
__________________
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 |
|
#7
|
||||
|
||||
|
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 |
|
#8
|
||||
|
||||
|
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. |
|
#9
|
||||
|
||||
|
YAY works.
http://www.hexzero.co.uk Try loading it in FF then in IE Nice morning work there ![]() Thanks for the help. |
|
#10
|
||||
|
||||
|
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 |
|
#11
|
||||
|
||||
|
Quote:
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 |
|
#12
|
||||
|
||||
|
Quote:
On My PDA it has the blaster Browers and it thinks that is IE Im still trying to perfect it. PHP Code:
Quote:
Any one know where I can get any? |
|
#13
|
||||
|
||||
|
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 |
|
#14
|
||||
|
||||
|
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 |
|
#15
|
||||
|
||||
|
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
|
![]() |
| Bookmarks |
«
Previous Topic
|
Next Topic
»
| Topic Tools | |
|
|
All times are GMT +1. The time now is 01:30 AM.
[
RSS ]









