PHP Gallery
PHP Gallery is a free php image script.
Viking gear
Gear Gifts and Apparel
Sharp Stuff
Switchblades Icepicks and german knives
Evil gear
Christmas is almost here

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