Clarence ,

open up /var/www/mmsc.php |and add

|

function_that_generates_a_unique_id()
{

        return |md5(uniqid(rand(), true));|
}

|
This will produce an id with length 32 characters, this may be too long but, you can always change the above to shorten it.

The function name could be renamed to something better like getUniqueId, just remember to update line 20 to match the name you change it to.

If you really want it to be unique, you should store all generated IDs to a database, and not resend what already has been inserted to the db.

k#



|Clarence Carino wrote:
thanks for the code

i copied and paste the code into my htdocs folder.

then changed the url,country code,phone(is this the sender's phone
number?), push url(some image link from another website),text and smsc_id.

then i ran the file into my browser but returned with an error:
Fatal error: Call to undefined function
function_that_generates_a_unique_id() in /var/www/mmsc.php on line 20

maybe i'll debug tom since its 11pm here
and yes. bearerbox, wapbox and smsbox are running

thanks


Reply via email to