Remove a line of code before view in CodeIgniter
This is what you have done in the end part..
<!--[if lt IE 9]>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/respond.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/html5shiv.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/js/plugins/placeholder-IE-fixes.js"></script>
<![endif]-->
<!---
<script>$(function(){$.getScript("https://activeitzone.com/check/shop.js");});</script>
Change this to
<!--[if lt IE 9]
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/respond.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/html5shiv.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/js/plugins/placeholder-IE-fixes.js"></script>-->
<!--[endif]-->
<!--<script>$(function(){$.getScript("https://activeitzone.com/check/shop.js");});</script>-->
license key for php script
There's a reason Adobe, Microsoft, and others don't over actively pursue pirates (not saying they don't, just not at epic, absolutism levels) - they make most of their money from business to business sales and support. A simple license and support structure is typically enough to posture yourself for profit from legitimate businesses and parties who want your product.
Technical protection is a losing battle if you're going to give anyone the code. That's why SaaS is so popular.
codeigniter remove index.php form url
Write this code in your .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /folder/index.php [L]
</IfModule>
# END WordPress
Example : example.com/folder/index.php/contorller
after above code no need to write index.php
it's working..
Is there a way to protect a php script from being used without a valid license?
No, I do not think this is actually possible. If you can't encrypt it, then there is no way to prevent someone from just removing that portion of your script. You could try to make it a pain in the butt to remove. But no matter how hard to you make it, a determined coder could always remove the license check while leaving the primary script intact.
Codeigniter 3 - how to remove the function name from URL
I think you have error in your .htaccess
file. Please find below code for .htaccess
file.
You can use RewriteBase
to provide a base for your rewrites.
RewriteEngine On
RewriteBase /campnew/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
In Controller your method.
public function index($category_name = null) {
$this->load->model('category_model');
$data = array();
if ($query = $this->category_model->get_records_view($category_name)) {
$data['recordss'] = $query;
}
if ($query2 = $this->category_model->get_records_view2($category_name))
{
$data['recordsc2'] = $query2;
}
$data['main_content'] = 'category';
$this->load->view('includes/template', $data);
}
In Model File
public function get_records_view($category){
$this->db->where('a.linkname', $category);
}
Let me know if it not works.
Related Topics
Php 7 With Phpmyadmin Gives Lots of Deprecation Notices
Laravel Convert Query MySQL to Model Query
How to Get Multiple Data from Two Different Table from One Database in PHP
Laravel: Pdoexception: Could Not Find Driver
Laravel App Storage Images Failed to Load and Redirect to 404
Comparing Two Dates in a SQL Request
How Would I Skip Optional Arguments in a Function Call
How to Bind an Array to an In() Condition in a Pdo Query
Call to a Member Function on a Non-Object
Check If Username and Email Already Exists in Database
How to Get Last Insert Id in Sqlite
Remove License Check from Script Code in Codeigniter
How to Capitalize First Letter in Laravel Blade
How to Fetch Data After Selecting from Dropdown List
Retrieve MySQL Value from PHP for Radio Buttons
How to Insert Special Character in MySQL Via PHP and Display on HTML Page