smart reading from a text file


Posted on 16th Feb 2014 07:03 pm by admin

Hello there fellow coders, i was wondering if one of you wouldnt mind helping me with this problem i seem to have hit:

There is an application which i am currently coding, which writes everything that is searched for into a file called search.txt, basically, it looks like this:

--
Windows XP, http://www.example.com, 26/10/09, 00:00
Tractors, http://www.example2.com, 29/10/09, 04:12
--

I was wondering how i would go about tabulating raw data such as that in a PHP page? I assume it would have to know the comma's were seperators...
If anyone can think of a better way to do this (it is purely a flat-file system) that would be helpful too

No comments posted yet

Your Answer:

Login to answer
305 Like 52 Dislike
Previous forums Next forums
Other forums

IF STATEMENT HELP
Hi
i have created a calendar from a table:

Code: Calendar: October 2009
<table w

Help with syntax
Hi all!

The $bridge variable is not getting passed while it is contained in the line below:

Required to login help
I'm trying to set up my site so users have to be logged into the forum to access the site.I've been

php/mysql auto logout after 2 hour and reset password
Hi all,

This I hope will make sense. I've the following code which when a user logins in, cr

Problems generating word documents on server side for security reasons
I have a problem with word documentation generation when generating a word document (docx) with PHP.

Table sorting
Hi,

I'm trying to modify the following in order to make the output table sorted alphabeticall

Mysterious Timeouts
I've deployed a few simple AJAX-enabled web page to a local server that is accessed through the Inte

Using two $_POST Function / Switch () statements, second does not work.
Hi all. I’m new to php and am having a problem getting $_POST Function / switch () to work. I

PHP using IF to display error
i have a MySQL query and i want to display 1 thing only if the number of affected rows is >=1

Extract text from string
Hi folks,

I have a string that looks like this:

aaaaaaaaaa:
bbbbbbbbbb (ccccccccc)

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash