- Copy
phpinfo()output and paste it into Xdebug Wizard. - Download
xdebug.dll. - Copy the DLL to your PHP
extfolder. - Add the following configuration to your
php.ini:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql -u root -p < C:\laragon\backup\mysql\xxx.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd C:\laragon\usr\bin && curl -L -O https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && echo @ECHO OFF > wp.bat && echo php "%~dp0wp-cli.phar" %* >> wp.bat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- WordPress Admin User Creation Script | |
| -- Instructions: | |
| -- 1. Open phpMyAdmin and select your WordPress database | |
| -- 2. Go to the SQL tab | |
| -- 3. Copy and paste this entire script | |
| -- 4. Modify the values in the SET statements below as needed | |
| -- 5. Click "Go" to execute | |
| -- ==================================== | |
| -- CONFIGURATION - Modify these values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Joomla | |
| RewriteCond %{REQUEST_URI} ^/media/yootheme | |
| # WordPress | |
| RewriteCond %{REQUEST_URI} ^/wp-content/uploads/yootheme | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^.*$ /index.php [L,NC] |
- Copy
phpinfo()output and paste it into Xdebug Wizard. - Download
xdebug.dll. - Copy the DLL to your PHP
extfolder. - Add the following configuration to your
php.ini:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## BEGIN EXPIRES CACHING ## | |
| <IfModule mod_expires.c> | |
| ExpiresActive on | |
| # Perhaps better to whitelist expires rules? Perhaps. | |
| ExpiresDefault "access plus 1 year" | |
| # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5) | |
| ExpiresByType text/cache-manifest "access plus 0 seconds" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Method 1 | |
| window.addEventListener('load', function() { | |
| var theHash = location.hash; | |
| // add offset only for specific hashes | |
| var hashes = ['#project-togo', '#project-colombia-visajes', '#project-colombia-izquierdo', '#project-yemen', '#project-tansania']; | |
| if (hashes.includes(theHash)) { | |
| window.scrollBy(0, -100); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Get current user's location | |
| $geo_data = WC_Geolocation::geolocate_ip(); | |
| $country = $geo_data['country']; | |
| $state = $geo_data['state']; | |
| // Use a specific IP address | |
| $location = WC_Geolocation::geolocate_ip( '8.8.8.8' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Method 1: Using JUri (Recommended) | |
| // Get the full current URL | |
| $currentUrl = JUri::getInstance()->toString(); | |
| // Get only the base URL (without query parameters) | |
| $baseUrl = JUri::base(); | |
| // Get the current URI path |
NewerOlder