Kamis, 22 Oktober 2020
Rabu, 07 Oktober 2020
Upload file using VB.NET and PHP
VB COde
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Using wc As New System.Net.WebClient()
wc.UploadFile("http://apps.pastioke.com/info.php", "x:\wa.php")
End Using
End Sub
PHP CODE
<?
if($_FILES){
$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = print_r($_FILES, true);
$target_file = 'ff.txt';
move_uploaded_file($_FILES["file"]["tmp_name"], $target_file);
fwrite($myfile, $txt);
$txt = print_r($_GET);
fwrite($myfile, $txt);
fclose($myfile);
}
?>
s
Minggu, 04 Oktober 2020
Little Javascript Trick
Move Document to End (Scroll to end)
window.scrollTo(0,document.body.scrollHeight);
Langganan:
Postingan (Atom)
-
a < script > /** * sends a request to the specified url from a form. this will change the window location. * @param {string} path th...
-
function popup ( idbrg ){ $.ajax({ type : 'POST', url : '?plain=app/barang-harga.php...
-
Mount Storage opkg update opkg install kmod-usb-storage block-mount block-hotplug kmod-fs-ext4 kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso885...