Hello

September 10, 2010, 11:42:20 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
What sNews Is: - sNews is a simple, basic, customizable CMS tool suitable for developers with beginner-to-advanced PHP skills. It is also useful to have a good working knowledge of how to work with, set up and manage MySQL databases. sNews is not - geared towards the end-user who knows little or nothing about building and developing PHP-MySQL based websites.
News: Try sNews 1.7 DEMO
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Check for mod_rewrite [script]  (Read 2660 times)
Joost
Guest
« on: January 05, 2009, 06:37:32 PM »

sNews depends on an Apache module named: "mod_rewrite"
To find out if it is available on your host, here is a little script.

- Open a plain-text file (notepad is just fine)
- Copy-paste the following code into the file:

Code:
<?php
 
if( ! function_exists('apache_get_modules') ){ phpinfo(); die; }
 
$result ' not available';
 if(
in_array('mod_rewrite',apache_get_modules())) $result ' available';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Check for mod_rewrite</title></head>
<body>
<p><?php echo apache_get_version(),"</p><p>mod_rewrite $result"?></p>
</body>
</html>

- Save it, but change the extension (.txt) to .php IMPORTANT!
- Upload it (using an ftp-client) to the web space.
- point the browser to that address.
- Read what it says. Wink
Logged
Keyrocks
Doug
Administrator
ULTIMATE member
******

Karma: 420
Posts: 5573


Semantically Challenged


WWW
« Reply #1 on: January 05, 2009, 10:28:20 PM »

Now that's a useful little file (tool). Thanks Joost.
(+1K)
Logged

Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU
jlhaslip
Sr. Member
****

Karma: 16
Posts: 391



WWW
« Reply #2 on: February 12, 2009, 04:41:59 AM »

works exactly as advertised.

K+1 to Mr Joost
Logged

Yes! I have no siggy.
Pages: [1]
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!