≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
For those who wants to create Multiplayer games.
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b][/b] wrote: you can use any system command within coppercube. here is the sample code to download a sample file to directory on local computer from a remote ftp server. [code] system("curl ftp://server.com/filename.txt -O --user username:password"); [/code] here in the above code you need to replace server name,filename, username, and password with yours. this will download the provided text file from the ftp server to the project directory, you can then read the text from that file using the command. [code]ccbReadFileContent("filename.txt")[/code] same goes with the uploading of text file to the server. here is the sample code to upload a desired file to the remote server [code]system("curl ftp://server.com/ -T filename.txt --user username:Password");[/code] made the appropriate changes to the above command by replacing username password, filename etc. and it will upload the file to the server. to upload to a specific directory you can specify the path like. [b]ftp://server.com/directory1/[/b] same goes for the local directory just specify the full path of the file or directory when uploading or downloading. Hope this makes sense and you will be able to understand it now. [b]Note:- If you are not on Windows 10, then you might need to install Curl to your computer then only the above command will work, otherwise it can throw an error lik "curl is not recognised as external or internal command" you can pack the curl installation along with your game to make it work on the endclient as well.[/b] Cheers*holy**holy*[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact