Check out my twitter script by CMXads
Till death do us part Axels New Music releases | Goth and Gore Gifts Shop right now or else! | Sell your soul Believeth in me an hath everlasting life | Sharp Stuff Switchblades Icepicks and german knives |
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]);
?>