1 2 3 |
$(".action").unbind().click(function() { //Stuff }); |
There are few step
Step 1
Create FileUpload Model
1 |
php artisan make:model FileUpload |
Step 2
Create upload function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2... |
1 2 3 4 5 6 7 |
function functionname(){ $results = ''; // your data echo json_encode($results); die(); } add_action('wp_ajax_functionname', 'functionname'); add_action('wp_ajax_nopriv_functionname', 'functionname'); |
HTML
1 2 3 4 5 6 7 8 9 |
<div class="panel-body" ng-controller="TreeCtrl"> <div ng-show="showLoader" style="text-align:center;"> <img src="assets/images/LoaderIcon.gif"> <!-- or any other spinner --> |
change root user
1 |
sudo su |
edit file
1 |
sudo nano /filepath |
copy and overwrite
1 |
yes | cp -rf /source/* /destination |
move
1 |
mv /source/* /destination |
make 777 dir permission
1 |
chmod -R 777 /www/store |
The session support can be turned on automatically at the site level, or manually in each PHP page script: Turning on session support automatically at the site level we have to modify some setting in php.ini file. you can get php.ini file in folder you install PHP. To your sessions you have to set or reset following parameter in your php.ini file
Define path to save sessions
session.save_path = “C:\php\sessiondata\”
Directory related to server session should be under 777 chmod > fully writable
Whether to use cookies.
session.use_cookies = 1
Name of the session (used as cookie name).
session.name = PHPSESSID
Define Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
;The path for which the cookie is valid.
session.cookie_path = /
The domain for w...