php - How to download a file from ftp on server and then use import data from it -


hi have build script downloads files ftp account , import data them. works on localhost after downloading files save them on c drive , read files there , process them. need on live server. how can achieve , can store files on server outside public_html folder.

i appreciate if can me please. thank you.

  • yes, store files outside public_html
  • you can create download folder outside public_html using various tools. log host provider account , use file manager tools there or else can ssh credential host , create folder using ssh client
  • also give proper permission folder, can write/ read it.
  • you can refer location of download folder script using script $_server['document_root'] .(replace public_html down load folder name)

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -