CodeIgniter htaccess and URL rewrite issues
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule^(.*)$ index.php/$1 [L,QSA]
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule^(.*)$ index.php/$1 [L,QSA]
1- apply JavaScript on input Feilds do not accept special chrectors 2- use mysql_real_escape_string() to get input fields values 3- select values from database by username then compre db username and password with input username password . 4- after check above you can make sure no one can hack your website
<?php $resource = Mage::getSingleton(‘core/resource’); $readConnection = $resource->getConnection(‘core_read’); $query = ‘SELECT * FROM files where prod_id=’.$file_id; $results = $readConnection->fetchAll($query); if(!empty($results)){ echo “Download Files”; foreach($results as $resultsfile){ ?> <br/><a href=”http://www.infinityinfosystem.com/download.php?filename=<?php echo $resultsfile[‘prod_file’];?>”><?php echo $resultsfile[‘file_title’];?></a> <?php }}?>
downloadafile Down Load this file and check on your local bro
RewriteEngine on RewriteBase /~kbakst/admin/ #enables you to access PHP files with HTML extension RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^$ php/index.php [L] RewriteRule ^(.*)\.html$ php/$1.php [NC]
हाल ही में पांच राज्यों के विधानसभा चुनावों के परिणामों के बाद शेयर बाजार में उत्साह और रुपये में मजबूती दिखाई दी है। मगर आर्थिक विशेषज्ञों की राय है कि भारत की ओर प्रत्यक्ष विदेशी निवेश के प्रवाह में लगातार आ रही कमी के लिए जिम्मेदार कारोबार संबंधी जटिल बाधाएं 2014 के लोकसभा चुनाव के…