Skip to content

Instantly share code, notes, and snippets.

View tutweb's full-sized avatar

Tutorial Web Design tutweb

  • Tutweb
  • Indonesia
View GitHub Profile
@tutweb
tutweb / post-receive-json-php-curl.php
Created August 13, 2017 17:09
Mengirim dan menerima data JSON dengan PHP cURL
<?php
//API URL
$url = 'http://www.contohweb.com/api';
//create a new cURL resource
$ch = curl_init($url);
//setup request to send json via POST
$data = array(
@tutweb
tutweb / write-json-file.php
Created October 6, 2016 14:36
Write JSON file with PHP
<?php
// array
$array = Array (
"0" => Array (
"id" => "USR1",
"name" => "Steve Jobs",
"company" => "Apple"
),
"1" => Array (
"id" => "USR2",
@tutweb
tutweb / contact-form-email.php
Last active May 8, 2022 08:37
Contoh form kontak dengan PHP yang terkirim ke email
<?php
$statusMsg = '';
$msgClass = '';
if(isset($_POST['submit'])){
// Get the submitted form data
$email = $_POST['email'];
$name = $_POST['name'];
$subject = $_POST['subject'];
$message = $_POST['message'];
@tutweb
tutweb / popup-css-javscript
Created September 2, 2016 04:03
Popup dengan css dan javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Popup</title>
<style>
body{
font-family: arial, verdana, sans-serif;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Multilevel Dropdown Menu dengan CSS | Jurnalweb.com</title>
<meta name="description" content="Tutorial cara membuat multilevel dropdown menu dengan CSS tanpa perlu javascript sama sekali">
<meta name="keywords" content="css, menu, dropdown menu, menu dropdown, web design, desain web, multilevel menu, multilevel dropdown">
<style type="text/css">
.nav {
width: auto;
@tutweb
tutweb / multiple-file-upload.php
Created July 23, 2016 13:09
Script upload multiple file dengan PHP
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Multiple File Upload dengan PHP | Jurnalweb.com</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" id="file" name="files[]" multiple="multiple" accept="image/*" />
<input type="submit" value="Upload!">
@tutweb
tutweb / alexa-rank-checker.php
Last active April 19, 2019 18:17
PHP Alexa Rank Checker
<?php
/**
* Ranking Alexa dengan PHP
*
* @param string $domain (www.jurnalweb.com)
* @return int || void
*/
function AlexaRank($domain){
$uri = 'http://data.alexa.com/data?cli=10&dat=snbamz&url=';
@tutweb
tutweb / jw-embed-youtube.html
Last active July 16, 2016 09:15
Script Embed YouTube Video Player Responsive
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Youtube</title>
<style>
header h1{font-size:20px;}
header p{margin:5px auto}
.youtube-container { display: block; /*margin: 20px auto;*/ width: 100%; max-width: 600px; border:1px solid #000; }
@tutweb
tutweb / move.php
Created June 20, 2016 08:53
Script transfer file antar CPANEL hosting
<?php
/* Mengambil file dari hosting lama */
/* File juga bisa diambil dari IP tertentu */
$content = file_get_contents("http://DOMAINLAMA.com/FILE_WEB_SAYA.zip");
/* Menyimpan file di hosting baru. pada folder yang diinginkan */
@tutweb
tutweb / show-hide-password.html
Created May 24, 2016 04:12
Cara show hide password dengan javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Show Hide Password dengan Javascript | Jurnalweb.com</title>
<meta name="description" content="Cara hide show password dengan javascript agar pengguna bisa melihat dan menyembunyikan teks password form login atau register"/>
<meta name="keywords" content="html, javascript, coding, koding, pemrograman, show hide password, js"/>
<style>
header{