Sample code for 30+ languages & platforms
PHP ActiveX

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat PHP ActiveX Downloads

PHP ActiveX
<?php

$success = 0;

$http = new COM("Chilkat.Http");
$url = 'https://example.com/folder/page?lang=en&sort=asc#section2';
print $http->getUrlPath($url) . "\n";

// Output:

// /folder/page

?>