Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 32662 | Replies: 2
![]() |
I have an HTML which posts a form to a PHP page. The PHP page encodes the password from the form using md5() function. And then I tried to save this MD5 code into a file using fwrite() function.
Here the error occures. fwrite() only accepts string parameter, but the return value of md5() is a number data type.
Can you tell me how can I convert a number to string, or string to number in PHP? (For general purpose. Not for only this problem.)
Here the error occures. fwrite() only accepts string parameter, but the return value of md5() is a number data type.
Can you tell me how can I convert a number to string, or string to number in PHP? (For general purpose. Not for only this problem.)
•
•
Join Date: Feb 2006
Posts: 32
Reputation:
Rep Power: 3
Solved Threads: 1
•
•
•
•
Originally Posted by AhmedHan
Can you tell me how can I convert a number to string, or string to number in PHP? (For general purpose. Not for only this problem.)
PHP is not a typed langauge so there is no string or number. A varible is a varible is a varible.
It probaby has something to do with missing qoutes but post the code and this will be a much eaiser question to answer.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode