How to create Latest search

Started on the old forum in September 2012 · view the original in the archive · old links redirect here

1 reply · 546 views · started 14 years ago · 1 min read

2 participants
Rrobyf Newbie · 9 posts #1

How to create latest search with .txt files on Form action. plz masters, i need this code

arnage Lead · 811 posts #2

If its line by line saved for the first 5 may be:

$file = file('file.txt');
foreach ($file as $k => $v) {
	if ($k < 5) echo $v.'<br/>';
}

... if its comma separated just do explode() on it.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close