Autoinstaller API
From Sohowiki
(Difference between revisions)
(→1. Ping our api to get latest build download link) |
(→1. Ping our api to get latest build download link) |
||
Line 4: | Line 4: | ||
<nowiki> | <nowiki> | ||
− | # Pull data for current stable build | + | # Pull data for current stable build |
− | ob_start(); | + | ob_start(); |
− | include("http://update.securexfer.net/public_builds/api-build_info-stable.php"); | + | include("http://update.securexfer.net/public_builds/api-build_info-stable.php"); |
− | $pubBuild = ob_get_contents(); | + | $pubBuild = ob_get_contents(); |
− | ob_end_clean(); | + | ob_end_clean(); |
− | $current_stable_info_array = unserialize($pubBuild); | + | $current_stable_info_array = unserialize($pubBuild); |
</nowiki> | </nowiki> | ||
Revision as of 14:12, 22 October 2009
Contents |
Here's the basic step by step for writing your own installer script
1. Ping our api to get latest build download link
# Pull data for current stable build ob_start(); include("http://update.securexfer.net/public_builds/api-build_info-stable.php"); $pubBuild = ob_get_contents(); ob_end_clean(); $current_stable_info_array = unserialize($pubBuild);
2. Download build file
[code]$myfile = file_get_contents($current_stable_info_array['download_full']);[/code]