Goth and Gore Gifts
Shop right now or else!
Viking gear
Gear Gifts and Apparel
Sell your soul
Believeth in me an hath everlasting life
Till death do us part
Axels New Music releases

here are some of the best and useful php scripts and snippets to help in your projects. Php displayed below. Use the search for specific script lookups. Click the category links to view scripts in Javascript and cgi. To add your own script click the link and add your useful script example.

delete any number of lines from file just modify to your needs
using file array chunk count and file put contents

delete file lines
delete_file_lines Date added Dec 2012

<?php
$lines 
file('/path/to/file.txt');
$split array_chunk($lines, (count($lines) - 4));
file_put_contents('/path/to/file.t­ xt'$split[0]);
?>


Add your comment.













No comments yet

Search ScriptsnTips


Php JavaScripts CGI/Perl