adding regular expression in php not work
Posted
by
John Smiith
on Pro Webmasters
See other posts from Pro Webmasters
or by John Smiith
Published on 2012-07-01T10:25:04Z
Indexed on
2012/07/01
15:23 UTC
Read the original article
Hit count: 298
php
Code i added ([a-zA-Z0-9\_\-]+) but not work i wan't to include all css files is there is any other way to add??
My code file css.php
header("Content-type: text/css");
$css = array(
'([a-zA-Z0-9\\_\\-]+).css',
);
foreach ($css as $css_file) {
$css_get = file_get_contents($css_file);
echo $css_get;
}
call.php
<link href="css.php" rel="stylesheet" type="text/css" />
i wan't to rewrite css.php to css.css so public can see css.css instead of css.php. how can i do that using php script?
© Pro Webmasters or respective owner