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
######################### | |
Supervisor | |
######################### | |
First install supervisor | |
apt install supervisor | |
Create a program then give permission to program | |
chmod +x <program_path> |
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
/** | |
* Extended version of function file_put_contents. | |
* | |
* This function will create all dirs in the path to the file, | |
* if they does not exists. | |
* | |
* @param string path to file | |
* @param string file content | |
* @param int flag taken by file_put_contents function | |
* @return bool false on failure, true on success |
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
.overlay { | |
position: fixed; | |
z-index: 100; | |
top: 0; | |
left: 0; | |
height: 100%; | |
width: 100%; | |
background-color: #000; | |
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=55); | |
opacity: 0.55; |
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 | |
/** | |
* @author: Sohel Rana | |
* @url: https://blog.sohelrana.me/parsing-xml-multiple-namespaces-using-php/ | |
* @license: MIT | |
* Parsing XML with multiple namespaces using PHP | |
*/ | |
$xmlString = "<en:Envelope xmlns:en=\"http://www.softcare.com/HIPAA/SC/Enrollment/0301\" | |
xmlns:sc=\"http://www.softcare.com/HIPAA/SC/0203\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" |
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 | |
/** | |
* Возвращает сумму прописью | |
* @author runcore | |
* @uses morph(...) | |
*/ | |
function num2str($num) { | |
$nul='ноль'; | |
$ten=array( | |
array('','один','два','три','четыре','пять','шесть','семь', 'восемь','девять'), |