This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
/ GeoMaker Public archive
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
GeoMaker/test.phpGo to file
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|echo '<p><strong>It worked! It worked! Igor, fetch me a brain!</strong></p>';|
|echo '<p>Trying to post some content and such...</p>';|
|$apiendpoint = 'http://icant.co.uk/geomaker/test.php';|
|$post = 'test=foo';|
|$ch = curl_init($apiendpoint);|
|curl_setopt($ch, CURLOPT_POST, 1);|
|curl_setopt($ch, CURLOPT_POSTFIELDS, $post);|
|curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);|
|$results = curl_exec($ch);|
|echo '<p>Trying to do some XML stuff, below you should see an object representation.</p>';|
|$xml = simplexml_load_string('<starwars><chewie>Huurrrrrrrrrrr</chewie><hansolo>I know!</hansolo><leia>Aren\'t you a little small for an XML file?</leia></starwars>');|
|echo '<p>Has it worked? If so, Mazeltov, get <a href="index.php">get GeoMaking</a>.</p>';|