Reference:
sudo fdisk -l
<?php | |
if($_FILES["followers"]){ | |
$followers_json = file_get_contents($_FILES["followers"]["tmp_name"]); | |
$followers_json = json_decode($followers_json,true); | |
$following_json = file_get_contents($_FILES["following"]["tmp_name"]); | |
$following_json = json_decode($following_json,true); |
{"Adana":{"Ağız, Diş ve Çene Cerrahisi":["ADANA FATMA KEMAL TİMUÇİN AĞIZ VE DİŞ SAĞLIĞI HASTANESİ","ADANA YÜREĞİR KARŞIYAKA AĞIZ VE DİŞ SAĞLIĞI HASTANESİ"],"Aile Hekimliği":["ADANA ALADAĞ İLÇE DEVLET HASTANESİ","ADANA CEYHAN DEVLET HASTANESİ","ADANA DR. EKREM TOK RUH SAĞLIĞI VE HASTALIKLARI HASTANESİ","ADANA İMAMOĞLU DEVLET HASTANESİ","ADANA KARAİSALI DEVLET HASTANESİ","ADANA KOZAN DEVLET HASTANESİ","ADANA SEYHAN DEVLET HASTANESİ","ADANA ŞEHİR HASTANESİ","ADANA TUFANBEYLİ DEVLET HASTANESİ","ADANA YÜREĞİR DEVLET HASTANESİ"],"Algoloji":["ADANA ŞEHİR HASTANESİ"],"Amatem (Alkol ve Madde Bağımlılığı)":["ADANA DR. EKREM TOK RUH SAĞLIĞI VE HASTALIKLARI HASTANESİ"],"Anesteziyoloji ve Reanimasyon":["ADANA CEYHAN DEVLET HASTANESİ","ADANA ÇUKUROVA DEVLET HASTANESİ","ADANA DR. EKREM TOK RUH SAĞLIĞI VE HASTALIKLARI HASTANESİ","ADANA FATMA KEMAL TİMUÇİN AĞIZ VE DİŞ SAĞLIĞI HASTANESİ","ADANA İMAMOĞLU DEVLET HASTANESİ","ADANA KARAİSALI DEVLET HASTANESİ","ADANA KOZAN DEVLET HASTANESİ","ADANA SEYHAN DEVLET HASTANESİ","ADANA TU |
//php | |
if(isset($_FILES["upload"])){ | |
$ext = ".".end((explode(".", $_FILES["upload"]["name"]))); | |
$filename="test"; | |
$file_public_addr =yourlocaladdr.$filename.$ext; | |
$success=move_uploaded_file($_FILES["upload"]["tmp_name"],SYS_EXT.$file_public_addr); | |
if( $success){ | |
$json["uploaded"]=true; |
<?php | |
class jsonaddModel | |
{ | |
private $arr; | |
public function __construct(){ | |
$this->arr=[]; | |
} | |
public function add($key,$value){ | |
$tmp=$this->arr; |
<?php | |
/* | |
. | |
$dbmodel=new DatabaseModel; | |
$this->db=$dbmodel->connect(); | |
insert | |
$result=$this->db->insert("etkinlik")->add("baslik","baslik")->add("icerik","icerik")->add("seo","seo-adresi")->exec(); |
<html> | |
<head> | |
<script src="https://api-maps.yandex.ru/2.1/?lang=tr_TR" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="map" style="width: 100%; height: 850px; border:0px; margin:-9px;"></div> | |
<script type="text/javascript"> | |
ymaps.ready(function () { | |
var myMap = new ymaps.Map('map', {center: [38.873928, 35.397949],zoom: 7}), |
### Serkan Özdemir | |
### 30.07.2018 | |
### Kullanım; | |
### <script> //<remoteipadress>/<sharedfoldername> <linuxmountfolder> <username> <password> | |
### sh ./mountwindir.sh //10.10.10.10/sharedfolder /mnt/test <username> <password> | |
### Eğer şifre girilmez ise soracaktır. If password not entered, asked next steps. | |
#!/bin/bash | |
remote=$1 | |
local=$2 |
mount -t cifs //<windowsip>/<windowssharedfoldername> /<mountingpathinlinux> -o username=<hostname>/<username> -o password=<password> | |
mount -t cifs //10.10.10.10/test /mnt/windir -o username=workgroup/admin -o password=1234asd- |
Reference:
sudo fdisk -l
#query: mysql-u[username] -p[password] -e [query] | |
for SQL in *.sql; do DB=${SQL/\.sql/}; echo importing $DB; mysql -uroot -p -e "create database $DB"; done | |
# first create filenames database | |
for SQL in *.sql; do DB=${SQL/\.sql/}; echo importing $DB; mysql -uroot -p $DB < $SQL; done | |
#import file to filename database |