Monday, April 23, 2012

Convert HTML file to PHP

[sourcecode language="php"]

ob_start();
include("myfile.html");
$var = ob_get_clean();


[/sourcecode]

No comments:

Post a Comment

How to enable CORS in Laravel 5

https://www.youtube.com/watch?v=PozYTvmgcVE 1. Add middleware php artisan make:middleware Cors return $next($request) ->header('Acces...