Skip to content

Instantly share code, notes, and snippets.

@paulund
Created June 25, 2013 18:33
Show Gist options
  • Save paulund/5861048 to your computer and use it in GitHub Desktop.
Save paulund/5861048 to your computer and use it in GitHub Desktop.
A PHP snippet to read multiple javascript files and combine them by changing the content type of the combined files.
<?php
readfile('jquery.js');
readfile('general.js');
readfile('jquery-ui.js');
readfile('page.js');
header('Content-type: text/javascript');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment