Jump to content




Real FTP transfer within ComputerCraft


  • You cannot reply to this topic
4 replies to this topic

#1 DaKodiMaster

  • Members
  • 7 posts

Posted 29 December 2015 - 03:14 PM

Does anyone know how I could use the http.post() method to upload a file to my own web server?
I know it would have to use interactions with PHP and ComputerCraft, but I have never been able to do that.

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 29 December 2015 - 03:24 PM

First, learn PHP. Next, set up an SQL server and open a port on your computer. If you want to use this from places other than your single player worlds, you'll likely need to get a domain name for it. Now, set up your PHP script to communicate to your SQL server when it receives a POST Request, and set up your SQL server to save the information it was sent from the PHP script. After all of that, you'll need to set up your PHP & SQL server for retrieval of said file.

https://www.codecademy.com/learn/php

http://dev.mysql.com...tabase-use.html

#3 DaKodiMaster

  • Members
  • 7 posts

Posted 29 December 2015 - 03:28 PM

Thanks! That helped!

#4 kolsto

  • New Members
  • 2 posts

Posted 29 December 2015 - 07:39 PM

Is there easier way to achieve this?)

#5 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 29 December 2015 - 08:22 PM

Probably not, it's web design basically, html, php, sql, none of those are easy.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users