Migrasi WP

update wp_options set option_value = replace(option_value, ‘http://domainsaya.tld’, ‘http://localhost’); update wp_posts set post_content = replace(post_content, ‘http://domainsaya.tld’, ‘http://localhost’); update wp_posts set guid = replace(guid, ‘http://domainsaya.tld’,’http://localhost’); update wp_links set link_url = replace(link_url, ‘http://domainsaya.tld’, ‘http://localhost’);

Continue reading

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat…

Continue reading

Dual xampp

apache/conf/httpd.conf Listen 80 >>> Listen 9999 ServerName localhost:80 >>> ServerName localhost:9999 apache/conf/extra/httpd-ssl.conf Listen 443 >>> Listen 444 ServerName localhost:443 >>> ServerName localhost:444 mysql/bin/my.ini ganti semua port = 3306 >>> 3308

Continue reading

Form dan output dalam satu halaman

Ini formnya:   <form¬†method=“post”¬†action=“”>¬†<!–¬†action¬†kosong¬†karena¬†form¬†proses¬†berada¬†di¬†file¬†yang¬†sama¬†–> <table> <tr><td>Username</td><td><input¬†type=“text”¬†name=“username”¬†autofocus¬†></td></tr> <tr><td>Password</td><td><input¬†type=“password”¬†name=“pass”></td></tr> </table> <input¬†type=“submit”¬†value=“login”¬†name=“login”¬†/> </form>   dan ini kuncinya: <?php if¬†($_SERVER[‘REQUEST_METHOD’]==‘POST’)¬†{¬†//¬†magic-nya¬†ada¬†di¬†baris¬†ini $username¬†=¬†$_POST[‘username’];¬†//¬†ambil¬†input¬†username $password¬†=¬†$_POST[‘pass’];¬†¬†//¬†ambil¬†input¬†password echo¬†“username¬†anda¬†:”.$username.“<br¬†/>password¬†anda¬†:”.$password; ?>

Continue reading