To read HTML files using PHP, you can use the library simple dom html
You can download from - https://sourceforge.net/projects/simplehtmldom/
Online PHP Coaching
To read HTML files using PHP, you can use the library simple dom html
You can download from - https://sourceforge.net/projects/simplehtmldom/
microtime — Return current Unix timestamp with microseconds
[php] //Start time $time_start = microtime(true); // Sleep for 1 sec sleep(1); //Execution of your script //End time $time_end = microtime(true); //Time taken $time = $time_end - $time_start; echo "Time taken is $time seconds\n"; [/php]
function asset_url(){ return base_url().'assets/'; }Step 2: application/config/autoload.php:
$autoload['helper'] = array('url','utility');After this you can very well use asset_url(); with in your application
RewriteEngine on RewriteCond $1 !^(index\.php|assets|robots\.txt) RewriteRule ^(.*)$ index.php/$1 [L]where assets is the folder in the root directly containing all your assets Ref