.txt
    ~
Advanced Hosters -

zeoman
V.I.P.
: 19.03.2008
: 3708
# : 02, 2009 11:31 am
, , . .bat :

:
@echo off
setLocal EnableDelayedExpansion

for /f "tokens=* skip=1 delims=" %%a in (pages.txt) do (
echo %%a >> pages2.txt
)


, . ! . , . textpipe? - .

.
BidTraffic - ! | |

IseeDeadPeople
: 06.12.2005
: 18000
# : 02, 2009 1:41 pm
.. ,
$1 = trim($1):php - /.. ( )
chomp:perl - ..
http://m.lsl.com/

zeoman
V.I.P.
: 19.03.2008
: 3708
# : 02, 2009 1:52 pm
-, . Smile

, :

:
@echo off
setLocal EnableDelayedExpansion

for /f "tokens=* skip=1 delims=" %%a in (pages.txt) do (
echo %%a>> pages2.txt
)


php:

:
$txtfile="file.txt";
$file=file($txtfile);
unset($file[0]);
$fp = @fopen($txtfile, "w");
@fwrite($fp, implode($file)); @fclose($fp);



! :thup:
BidTraffic - ! | |

IseeDeadPeople
: 06.12.2005
: 18000
# : 02, 2009 10:00 pm
.. ,
unset($file[0]); -> array_shift($file);

:

array_shift -- Pop an element off the beginning of array
Description

mixed array_shift (array array)

Array_shift() shifts the first value of the array off and returns it, shortening the array by one element and moving everything down. If array is empty (or is not an array), NULL will be returned.

Example 1. Array_shift() example

$args = array ("-v", "-f");
$opt = array_shift ($args);

This would result in $args having one element "-f" left, and $opt being "-v".

http://m.lsl.com/
    ~