Skip to content

Instantly share code, notes, and snippets.

View zeroxsecurity's full-sized avatar
🔥

Zerox Security zeroxsecurity

🔥
View GitHub Profile
@zeroxsecurity
zeroxsecurity / upload.php
Created February 22, 2019 02:47 — forked from gayanhewa/upload.php
PHP Script to upload files via FTP
<?php
// Ref : http://php.net/manual/en/function.ftp-put.php
$name = "test.txt";
$filename = "/home/mine/Desktop/test.txt";
//-- Code to Transfer File on Server Dt: 06-03-2008 by Aditya Bhatt --//
//-- Connection Settings
$ftp_server = "server_url_here"; // Address of FTP server.
$ftp_user_name = "username_here"; // Username