Sometimes some websites require https to work. This can be useful in those cases.
This has been tested with XAMPP (PHP 7.0.8) on Windows 7. Please see the Reference links at the end if in confusion about some step.
Open:
C:\xampp\php\php.ini
| #!/usr/bin/env php | |
| <?php | |
| define('VERSION', '1.0.24'); | |
| define('DEFAULT_PIXEL', "\xE2\x96\x84"); | |
| define('RC', "\e[0m"); | |
| define('RCNL', RC . PHP_EOL); | |
| define('CURRENT_FILE', array_shift($argv)); | |
| error_reporting(0); |
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| if ($host.Name -eq 'ConsoleHost') | |
| { | |
| Import-Module PSReadLine | |
| } | |
| Import-Module -Name Terminal-Icons |
| <?php | |
| if (file_exists('sig1.php')) { | |
| unlink('sig1.php'); | |
| } | |
| function getc($url) | |
| { | |
| $ch = curl_init($url); | |
| curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); |
| <?php | |
| /*ini settings*/ | |
| set_time_limit(0); | |
| ini_set('memory_limit', '512M'); | |
| //DOWNLOAD SCRIPT | |
| $filePath = "G:/Software/versions/..PATH TO DOWNLOAD FILE...zip"; // set your download file path here. | |
| download($filePath); // calls download function | |
| function download($filePath) | |
| { |
| workspace "sfml_project" | |
| configurations { "Debug", "Release" } | |
| location "build" | |
| project "sfml_project" | |
| kind "ConsoleApp" | |
| language "C++" | |
| targetdir "bin/%{cfg.buildcfg}" | |
| files { "src/**.*" } |
| import bpy | |
| import os | |
| def rotate_and_render(angle, output_dir, output_set): | |
| newcamera = "Camera.00"+str(angle) | |
| bpy.context.scene.camera = bpy.context.scene.objects[newcamera] #set camera | |
| bpy.context.scene.render.filepath = os.path.join(output_dir, output_set+str(angle)+".png") #set export path | |
| bpy.ops.render.render(write_still = True) #start rendering |
| <?php | |
| $mime_types = array( | |
| '.3dm' => 'x-world/x-3dmf', | |
| '.3dmf' => 'x-world/x-3dmf', | |
| '.a' => 'application/octet-stream', | |
| '.aab' => 'application/x-authorware-bin', | |
| '.aam' => 'application/x-authorware-map', | |
| '.aas' => 'application/x-authorware-seg', | |
| '.abc' => 'text/vnd.abc', | |
| '.acgi' => 'text/html', |
| /** | |
| * Inspired by http://stackoverflow.com/questions/1727077/generating-a-drop-down-list-of-timezones-with-php | |
| * @return array | |
| */ | |
| function generate_timezone_list() | |
| { | |
| static $regions = [ | |
| 'Africa' => DateTimeZone::AFRICA, | |
| 'Americas' => DateTimeZone::AMERICA, |