Hi Folks,<br /><br />I'm new to PHP but have programming knowledge. I've been experimenting with PHP and it looks like the way to go for me.<br /><br />I'm looking for a PHP Browser Detector to use in my html pages so I can serve the correct style sheets to browsers and format the pages for proper display.<br /><br />Can you tell me where I can get one? Free would be great but I'm willing to purchase one too.<br /><br />Thanks a mil.<!--content-->
You might want to read <a href="http://www.devarticles.com/c/a/PHP/PHP-Browser-Detection-and-Appropriate-CSS-Generation/" target="_blank">this</a> and these other google results for <a href="http://www.google.com/search?q=php+browser+detection&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-USfficial" target="_blank">php browser detection</a>. =)<!--content-->
This browser detection code made by Gary White is very good:<br /><a href="http://www.apptools.com/" target="_blank">http://www.apptools.com/</a><!--content-->
I read a bunch of those articles at the links. I had read a few prior to posting here.<br /><br />What do you guys use?<br /><br />I'd try some of those scripts at the links but I don't want to vilate any copyrights.<br /><br />What I'd like to do is find somebody who'll say, here is a script you can use on your website. I don't mind paying for it, I just need to locate one that I'm sure I can use on my site.<br /><br />Raul, that one script says it's free but it takes forever to read the Agreement. By the time I read the agreement, I lost touch and didn't even remotely understand it.<br /><br />Thanks guys for your help, I appreciate it. If you run across a script I can freely use, please let me know.<br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
GPL is a standard license that means that you are free to use and change the script as long as credits within the script remain intact. Feel free to use it. =)<!--content-->
Thanks Lisa,<br /><br />I'll check the scripts again. I ran across a couple with the GPL License.<!--content-->
Raul,<br /><br />I downloaded the script by Gary White. It's very comprehensive and looks good to me.<br /><br />I have a couple questions, sorry but I'm a PHP newbie<br /><br />Should I install the PHP browser detector file in the same folder as the other files that use use the detector?<br /><br />Or does it have to be uploaded to some other location such as a CGI folder for example.<br /><br />I'm assuming I install it in the same folder as the viewer documents and call it with includes placed at the top of my html files.<br /><br />Thanks<!--content-->
You should be able to put it where ever you wish and use<br />include $_SERVER['DOCUMENT_ROOT']."/path/file.php";<br />to include it.<!--content-->
hey Don,<br /><br />Long time, no chat.<br /><br />Thanks a lot.<!--content-->
Greets again,<br /><br />I have aquestion about the PHP.<br /><br />First the prelude:<br /><br />I downloaded the Browser Detector that Raul recommended. I made no mods to the file and loaded it up on one of my computers that has Apache Server installed. I connected with another box through ftp and uploaded my site and then began to work on learning to use the browser detector.<br /><br />I got it working and figured out how to call the detector from the web page and serve different content according to whatever browser. It seems to work great.<br /><br />Now the question:<br /><br />If I load the browser detector up on my TCH hosted site and change my pages to .php extension so that I can serve dynamic pages, is there any possible way that I could screw up something on the server?<br /><br />In other words, is there any way the browser detector or any of my files uusing it could corrupt or damage my site or any of TCH's software or equipment?<br /><br />Since I'm just starting, I have very little knowledge of PHP and don't want to risk damaging anything.<br /><br />Thanks for help.<!--content-->
I don't think you can do any harm.<br />The most you will run into is a script that may have an error and it will not work. Then you will see an error message tell you what file and line number the script stopped working at.<!--content-->
Thanks Don,<br />i'll give it a shot when I get my pages ready.<!--content-->
You might want to read <a href="http://www.devarticles.com/c/a/PHP/PHP-Browser-Detection-and-Appropriate-CSS-Generation/" target="_blank">this</a> and these other google results for <a href="http://www.google.com/search?q=php+browser+detection&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-USfficial" target="_blank">php browser detection</a>. =)<!--content-->
This browser detection code made by Gary White is very good:<br /><a href="http://www.apptools.com/" target="_blank">http://www.apptools.com/</a><!--content-->
I read a bunch of those articles at the links. I had read a few prior to posting here.<br /><br />What do you guys use?<br /><br />I'd try some of those scripts at the links but I don't want to vilate any copyrights.<br /><br />What I'd like to do is find somebody who'll say, here is a script you can use on your website. I don't mind paying for it, I just need to locate one that I'm sure I can use on my site.<br /><br />Raul, that one script says it's free but it takes forever to read the Agreement. By the time I read the agreement, I lost touch and didn't even remotely understand it.<br /><br />Thanks guys for your help, I appreciate it. If you run across a script I can freely use, please let me know.<br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
GPL is a standard license that means that you are free to use and change the script as long as credits within the script remain intact. Feel free to use it. =)<!--content-->
Thanks Lisa,<br /><br />I'll check the scripts again. I ran across a couple with the GPL License.<!--content-->
Raul,<br /><br />I downloaded the script by Gary White. It's very comprehensive and looks good to me.<br /><br />I have a couple questions, sorry but I'm a PHP newbie<br /><br />Should I install the PHP browser detector file in the same folder as the other files that use use the detector?<br /><br />Or does it have to be uploaded to some other location such as a CGI folder for example.<br /><br />I'm assuming I install it in the same folder as the viewer documents and call it with includes placed at the top of my html files.<br /><br />Thanks<!--content-->
You should be able to put it where ever you wish and use<br />include $_SERVER['DOCUMENT_ROOT']."/path/file.php";<br />to include it.<!--content-->
hey Don,<br /><br />Long time, no chat.<br /><br />Thanks a lot.<!--content-->
Greets again,<br /><br />I have aquestion about the PHP.<br /><br />First the prelude:<br /><br />I downloaded the Browser Detector that Raul recommended. I made no mods to the file and loaded it up on one of my computers that has Apache Server installed. I connected with another box through ftp and uploaded my site and then began to work on learning to use the browser detector.<br /><br />I got it working and figured out how to call the detector from the web page and serve different content according to whatever browser. It seems to work great.<br /><br />Now the question:<br /><br />If I load the browser detector up on my TCH hosted site and change my pages to .php extension so that I can serve dynamic pages, is there any possible way that I could screw up something on the server?<br /><br />In other words, is there any way the browser detector or any of my files uusing it could corrupt or damage my site or any of TCH's software or equipment?<br /><br />Since I'm just starting, I have very little knowledge of PHP and don't want to risk damaging anything.<br /><br />Thanks for help.<!--content-->
I don't think you can do any harm.<br />The most you will run into is a script that may have an error and it will not work. Then you will see an error message tell you what file and line number the script stopped working at.<!--content-->
Thanks Don,<br />i'll give it a shot when I get my pages ready.<!--content-->