<?php $get_dump = file_get_contents( $_SERVER['DOCUMENT_ROOT'] . '/patch_to_file.sql' ); mysql_query( $get_dump ); ?>