Thread: IMDB Mod
View Single Post
  #1  
Old 2nd October 2009, 02:23
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default IMDB Mod
Add this to your database:

PHP Code:
CREATE TABLE `cache_imdb` (
  `
idint(10NOT NULL AUTO_INCREMENT,
  `
votesint(32NOT NULL,
  `
ratingdecimal(10,1NOT NULL,
  `
cache_timeint(32NOT NULL,
  
PRIMARY KEY (`id`)
ENGINE=MyISAM AUTO_INCREMENT=DEFAULT CHARSET=utf8 
Then add this in htacces. file

Rewrite Rule for Apache

PHP Code:

RewriteEngine On
RewriteRule 
^imdb_(.*?).pngimdb.php?id=$
For nginx webserver:

PHP Code:
rewrite  /imdb_(.*)\.png$
/
imdb.php?id=$1    last
Attachment pictures paste in tracker root directory.
Folder class paste also in tracker root directory.

Example how to use this:

http://yousite.com/imdb.png
Attached Files
File Type: rar Mod_IMDB.rar (17.1 KB, 226 views)
Reply With Quote
The Following User Says Thank You to kp380lv For This Useful Post:
look (26th March 2012)