HI all,
I want to hadnle IO for text file in PHP. I would like write my own methode for writing raading data to text file instead of using inbuilt methode.
Can I do that?
plz reply...
thx in advnce...
how to handle IO for text file php
Page 1 of 17 Replies - 406 Views - Last Post: 29 January 2012 - 05:58 AM
Replies To: how to handle IO for text file php
#2
Re: how to handle IO for text file php
Posted 29 January 2012 - 01:28 AM
Are you talking about a serverside text file or something that a client will upload via their web-browser?
#3
Re: how to handle IO for text file php
Posted 29 January 2012 - 01:36 AM
menukadevinda, on 29 January 2012 - 09:23 AM, said:
Can I do that?
only when you step out of PHP and make another programme (shell, C, …) do it. in the end that will most likely end up more complicated and slower than using native PHP methods (that’s why there are so many PHP functions, to make it easier).
#4
Re: how to handle IO for text file php
Posted 29 January 2012 - 01:41 AM
thanks for the reply.
ok then do u know how to solve this problem
above fread($fh, 4) methode provide 4 bit data.
but I want to read data from with a starting and ending point of text file.
that's something like fread($fh, 4, 10);
then start from 4th char and end from 10th char
cheers...
ok then do u know how to solve this problem
$myFile = "testFile.php"; $fh = fopen($myFile, 'r'); $theData = fread($fh, 4); fclose($fh); echo $theData;
above fread($fh, 4) methode provide 4 bit data.
but I want to read data from with a starting and ending point of text file.
that's something like fread($fh, 4, 10);
then start from 4th char and end from 10th char
cheers...
#5
Re: how to handle IO for text file php
Posted 29 January 2012 - 01:50 AM
I already answered that question.
#6
Re: how to handle IO for text file php
Posted 29 January 2012 - 01:53 AM
Dormilich, on 29 January 2012 - 08:36 AM, said:
menukadevinda, on 29 January 2012 - 09:23 AM, said:
Can I do that?
only when you step out of PHP and make another programme (shell, C, …) do it. in the end that will most likely end up more complicated and slower than using native PHP methods (that’s why there are so many PHP functions, to make it easier).
though complicated or slower , how to start ?
#7
Re: how to handle IO for text file php
Posted 29 January 2012 - 01:55 AM
read my answer in the other thread and decide, whether that is a path that can solve the problem.
#8
Re: how to handle IO for text file php
Posted 29 January 2012 - 05:57 AM
Closed for being a duplicate of this topic
Page 1 of 1
|
|

New Topic/Question
This topic is locked



MultiQuote




|