> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.aceproxies.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to use our proxies in PHP code?

Sample code for using our proxies in PHP Code:

```<?php

$url = 'http://aceproxies.com/';
$proxy = '1.1.1.1:8800';  // <-- set your proxy
$content = requestUrl($url, $proxy);
print $content;
print 'Done requesting '.$url.'...';

function requestUrl($url, $proxy = NULL) {
	$curl = curl_init();
	curl_setopt($curl, CURLOPT_URL, $url);
	if ($proxy != NULL) {
		curl_setopt($curl, CURLOPT_PROXY, $proxy);
	}
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
	curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
	curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
	$contents = curl_exec($curl);
	curl_close($curl);
	return $contents;
}

?>```