PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
jebaraj wrote:If we use "copy('filename.txt', 'filename.dat');" both .txt and .dat files have same content. But i need .dat should be in binary coded format.
Yes, that was an important bit of information wasn't it? Try and assume that no one has any idea what your .dat file is or what the format is.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Can any one help me, what format of file is this .dat file(Binary or ASCII or...)?
I need text files to be converted like above .dat format!
Thanks,
Jeba Raj
Ah ha! Now we are getting some details. One at a time, but we have some. Do you happen to know what application creates the .dat file or if there is a specification for the .dat file somewhere? If I were to ask you how to convert a .txt file to a .bob file, what would you say?
-Shawn
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.