PHP Uploads: Difference between revisions

== Configuration ==
 
#Run CMX and change the Upload protocol to PHP, set the URL to your web site + upload.php<br>for example: ''<nowiki>https://mysite.com/weather/upload.php</nowiki>''
#Copy the suggested unique "PHP Secret" from the Internet Settings (or make up your own)
#Edit the '''/webfiles/upload.php''' file, and change the default secret '''change_this_to_the_value_in_CMX''' to the value in CMX
#Copy the '''/webfiles/upload.php''' to your web server, place it in the root folder of the default web site along with the index.html files etc
#You will need to update the paths for the NOAA Reports (it probably needs to be just “Reports”) and any Extra Files you use
#Amend the paths of any Extra Files you upload
#The uploads should start working!
#You can now disable all the "Create local" options for files in Internet Settings|Interval Settings. Local copies of the files created in the /web folder are no longer required
=== Migrating your FTP settings ===
 
When setting the Upload protocol to PHP you may need to make the following upload settings relative as well:
#NOAA Reports
#Extra Web Files
 
NOTE: When using the Wizard you will also encounter Upload configuration which obeys the same rules.
NOTE: The settings are valid not only when you use ''CMX'' but also for ''CumulusUtils'', the last onewhich does not have any setting for ''upload.PHP'' of its own!
 
== Cumulus.ini ==