CATATAN

Script Auto Send Google Form

				
					function onFormSubmit(e) {
  const responses = e.values;
  
  const timestamp = responses[0];
  const email = responses[1];
  const nama = responses[2];

  const subject = "Undangan Zoom – Kegiatan Online";
  const body = `
Assalamu’alaikum ${nama},

teks isi di sini

  `;

  MailApp.sendEmail(email, subject, body);
}
				
			

Cara Mengganti Directory Public HTML & Main Domain lewat .htaccess

				
					RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteCond %{REQUEST_URI} !folder/
RewriteRule (.*) /folder/$1 [L]
				
			

Jika pakai WordPress, pastikan mengupdate Permalink di Setting=>Permalink

Cara Mengganti Domain Website Lewat SQL PHP My Admin

				
					UPDATE wp_options SET option_value = replace(option_value, 'urllama.com', 'urlbaru.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'urllama.com', 'urlbaru.com');
UPDATE wp_posts SET post_content = replace(post_content, 'urllama.com', 'urlbaru.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'urllama.com', 'urlbaru.com');
				
			

Cara Mengubah Versi Multi PHP di Website lewat .htaccess

				
					<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-lsphp73
</FilesMatch>
				
			

Versi PHP yang bisa di gunakan x-lsphp : 51 | 52 | 53 | 54 | 55 | 56 | 70 | 71 | 72 | 73 | 74 | 80 | 81