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
| <template> | |
| <div class="tabs-component"> | |
| <ul class="tabs"> | |
| <li | |
| v-for="(tab, index) in tabs" | |
| :key="index" | |
| :class="{ active: activeTab === index }" | |
| > | |
| <a @click="activateTab(index)">{{ tab }}</a> | |
| </li> |
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 | |
| if( !function_exists('mime_type_check') ){ | |
| function mime_type_check($path) | |
| { | |
| if( function_exists('mime_content_type') ) | |
| return mime_content_type($path); | |
| else | |
| return 'undefined/unknown'; | |
| } |
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
| <script type="text/javascript"> | |
| if("https:"!=location.protocol){var locationhref="https:"+window.location.href.substring(window.location.protocol.length);window.location.replace(locationhref)}if("www."!=document.domain.substring(0,4).toLowerCase()){locationhref=document.URL.replace("//","//www.");window.location.replace(locationhref)} | |
| </script> |
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
| create *.bat file | |
| @echo off | |
| php "D:\MY PHP\php practice\mySqli\Php Cronjob\run.php" | |
| exit | |
| craete sample *.php file | |
| <?php |
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
| # find local IP | |
| hostname -I | |
| install nano | |
| yum -y install nano | |
| #update system | |
| sudo yum update | |
| #How to install Apache, PHP 7.2 and MySQL on CentOS 7 (LAMP) |
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
| <script type="text/javascript"> | |
| function convert_to_unicode(source,destination) | |
| { | |
| var array_one = new Array( | |
| // "(",")", | |
| "ñ","Q+Z","sas","aa",")Z","ZZ","‘","’","“","”", | |
| "å", "ƒ", "„", "…", "†", "‡", "ˆ", "‰", "Š", "‹", |
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
| $alredy = false; | |
| if(filesize('myjson.json') > 0) { | |
| $alredy_data = file_get_contents('myjson.json'); | |
| $alredy_data = json_decode($alredy_data); | |
| //print_r($alredy_data);die(); | |
| foreach($alredy_data as $value) | |
| { | |
| $url22 = $value->url; |
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
| -- phpMyAdmin SQL Dump | |
| -- version 3.5.2.2 | |
| -- http://www.phpmyadmin.net | |
| -- | |
| -- Host: 127.0.0.1 | |
| -- Generation Time: Apr 08, 2013 at 02:48 PM | |
| -- Server version: 5.5.27 | |
| -- PHP Version: 5.4.7 | |
| SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
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
| function validate_data($data) | |
| { | |
| global $conn; | |
| $data = trim($data); | |
| $data = stripslashes($data); | |
| $data = strip_tags($data); | |
| $data = htmlspecialchars($data); | |
| $data = mysqli_real_escape_string($conn,$data); | |
| return $data; | |
| } |
NewerOlder