•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,011 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,783 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 233 | Replies: 1
![]() |
•
•
Join Date: May 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
the thing is to do 1 index.php wich detects browster Firefox and IE7 to redirekt it in http://examples.com/ , if it detects IE6 let it go directly to that saves code in examples.html Sample
how can i do it?
how can i do it?
<?
$filename = "examples.html";
$realfile = "examples.html";
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=".$filename.";");
@readfile($realfile);
$counter = file_get_contents("examples");
(int)$counter++;
$fp=fopen("examples", "w");
fwrite($fp,$counter);
fclose($fp);
?> Last edited by crissrusso : May 14th, 2008 at 8:01 pm.
You should have a look on the PHP site:
http://us3.php.net/function.get-browser
http://uk.php.net/manual/en/reserved...les.server.php
http://us3.php.net/function.get-browser
http://uk.php.net/manual/en/reserved...les.server.php
If you find my post useful please add to my reputation!! Thanks!
ajtrichards web solutions
http://www.ajtrichards.co.uk
ajtrichards web solutions
http://www.ajtrichards.co.uk
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- BT Yahoo Browser causing difficulty (Web Browsers)
- Browser pops up with /yyy34.html (Viruses, Spyware and other Nasties)
- Browser Question (JavaScript / DHTML / AJAX)
- how to detect the username sharing by IP address? (PHP)
- Browser keeps getting reset to <none>..etc (Viruses, Spyware and other Nasties)
- MSN Browser sign in problem (Windows NT / 2000 / XP / 2003)
- Christopher_NG: IE6 Browser Window closes (Web Browsers)
- Click.linksynergy & donet detect(), HELP ME GET RID OF THIS .........PLEASE (Viruses, Spyware and other Nasties)
- hijacked web browser (prosearching.com) (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: Display Username
- Next Thread: php


Linear Mode