View Single Post
  #8  
Old 08-14-2012, 05:20 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Here is the one I have. PHP 5.3.6

Configure Commands:
Quote:
'./configure' '--prefix=/usr/local/opt/lsws/lsphp5' '--with-libdir=lib64' '--with-mysqli=mysqlnd' '--with-mysql' '--enable-ftp' '--with-openssl' '--enable-pdo' '--with-pdo-mysql' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-curl' '--with-mcrypt' '--with-litespeed'
test code
Code:
<?php
$subject = 'http://www.example.com/ext/url';
preg_match('|^([^:]+)://([^:@]*(?:[:][^@]*)?@)?([^/:@?#]*)(?:[:]([^/?#]*))?(/[^?]*)?((?:[?](?:[^#]*))?(?:#.*)?)$|', $subject, $matches);
print_r($matches);
?>
result
Quote:
Array
(
[0] => http://www.example.com/ext/url
[1] => http
[2] =>
[3] => www.example.com
[4] =>
[5] => /ext/url
[6] =>
)
Reply With Quote