Tropo free sms client api class
Started on the old forum in May 2011 · view the original in the archive · old links redirect here
TL;DR · summary of 157 replies
- pkmob's problem was resolved after providing a valid token and copying the full token from the tropo application pop-up.
- The issue with messages not being received persists, as no clear fix has been provided yet.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
i have updated the archive and added v2.1.0 contains captcha. There is one known bug though, the valid human doesnt seem to work. I put a valid human setting that is supposed to turn off captcha automagically. When a user has entered the correct captcha x times, this is so that a user doesnt get pissed off (not that i care, its free anyway) but after a user has entered the correct captcha say 4 times, theres really no need to keep requesting captcha, hes proven to be a valid human. You can turn off the feature by setting a high value like 100000 lol.
Added after 22 minutes:
i just fixed it in my demo so you guys should fix it yall selves lol open process.php and edit the following:
// Find this line
$_human = (int) Arr::get($_SESSION, 'valid_human', 0, true);
// Change to ...
$_human = (int) Arr::get($_SESSION, 'valid_human');
// Then find this line...
$_SESSION['valid_human'] = $_human++;
// Change to...
$_SESSION['valid_human'] = $_human + 1;
When i entered a number without + sympole i got that error and it contain ur tropo token ,i replaced it with xxx array(3) { ["ftoken"]=> string(32) "xxxx" ["result"]=> string(4) "pct7" ["valid_human"]=> int(1) }
pmpl i forgot to remove a debug var i used when i was debugging the code. Look for it at process.php and remove the var_dump($_SESSION) statement
oh now i understand you, you mean in my demo? Yeah i know, thats not my token, thats the form token, its randomly generated.
It worked!! thanks creativitykills!! You r talent guy!!
CreativityKills wrote: pmpl i forgot to remove a debug var i used when i was debugging the code. Look for it at process.php and remove the var_dump($_SESSION) statement
oh now i understand you, you mean in my demo? Yeah i know, thats not my token, thats the form token, its randomly generated.
I got this error in my error log, can you please go through it, [29-May-2011 17:46:26] PHP Warning: session_start() [<#>]: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in public_html/freesms/app/captcha_string.php on line 2
Your host is the problem not the script. U could use cookies instead but set a very short time limit to expire
CreativityKills wrote: Your host is the problem not the script. U could use cookies instead but set a very short time limit to expire
how to Set cookies bro. pls. Post any example here.
oh my God youve gotta be kidding me!!!
setcookie('token', $token, time() + (60 * 2));
CreativityKills wrote: oh my God youve gotta be kidding me!!!
setcookie('token', $token, time() + (60 * 2));
bro i want to Set COOKIES on a Page, if user opne that page 50times, he automatically Redrict to other Page, pls. Bro. help me I m New In PHP.
give me that code.
iporidge wrote: Great service, going to design a new template.
very good..............
Is it stoped? i dont recive the messages i tried ur demo and 3 tokens :-S
atef wrote: Is it stoped? i dont recive the messages i tried ur demo and 3 tokens :-S
no itz working.....
it will stop working if the service is abused so make sure it isnt abused or overused.