Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Dec 05, 2019 8:32 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: RealBasic Web Sending PHP code...
PostPosted: Mon Apr 04, 2011 3:40 pm 
Offline
User avatar

Joined: Tue Jan 19, 2010 2:01 pm
Posts: 10
Location: Earth
I downloaded a PHP script that send a text message to a mobile phone carrier. I was wondering if I can incorporate this PHP code into a WE application or just a plain desktop application. Or if there is a alternate way to send a textmessage through WE or RB Desktop?


Thanks RB Community

_________________
iMac 24" [ 2.8x2 - 320 - 4] MacBook Pro [ 2.6 - 250 - 4] Axiotron Modbook [2.4 - 500 - 4] iPhone 4 [16] iPad [16]

"Knowing is not enough we must apply,
Willing is not enough we must do."
~ Bruce Lee


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Mon Apr 04, 2011 4:58 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
I think you can use an HTTPSocket. Format the message and Post it to the appropriate URL.


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Mon Apr 04, 2011 5:11 pm 
Offline

Joined: Tue Mar 23, 2010 8:44 pm
Posts: 673
kdemon wrote:
I downloaded a PHP script that send a text message to a mobile phone carrier. I was wondering if I can incorporate this PHP code into a WE application or just a plain desktop application. Or if there is a alternate way to send a textmessage through WE or RB Desktop?


Thanks RB Community

Which script are you using?

I think there are different ways to send a message to a cell phone. Besides sending a cell text message I think most carriers have email addresses which you can email and the cell phone will get the text message.

That might be easier to do in WE.


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Mon Apr 04, 2011 6:15 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
J.Sh3ppard wrote:
kdemon wrote:
I downloaded a PHP script that send a text message to a mobile phone carrier. I was wondering if I can incorporate this PHP code into a WE application or just a plain desktop application. Or if there is a alternate way to send a textmessage through WE or RB Desktop?


Thanks RB Community

Which script are you using?

I think there are different ways to send a message to a cell phone. Besides sending a cell text message I think most carriers have email addresses which you can email and the cell phone will get the text message.

That might be easier to do in WE.


i use www.textmagic.com for that same thing. sebd trough smtpsocket is much simpler than a web api.

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Mon Apr 04, 2011 7:14 pm 
Offline

Joined: Tue Mar 23, 2010 8:44 pm
Posts: 673
swort wrote:
J.Sh3ppard wrote:
kdemon wrote:
I downloaded a PHP script that send a text message to a mobile phone carrier. I was wondering if I can incorporate this PHP code into a WE application or just a plain desktop application. Or if there is a alternate way to send a textmessage through WE or RB Desktop?


Thanks RB Community

Which script are you using?

I think there are different ways to send a message to a cell phone. Besides sending a cell text message I think most carriers have email addresses which you can email and the cell phone will get the text message.

That might be easier to do in WE.


i use http://www.textmagic.com for that same thing. sebd trough smtpsocket is much simpler than a web api.


Swort why would you pay for that service when you can send for free?
Do they offer something different?


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Mon Apr 04, 2011 8:04 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
nothing is free. textm uses keynames and bisness names wich you can register. by the way can you pm the service name? ill have a look...

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Mon Apr 04, 2011 11:13 pm 
Offline
User avatar

Joined: Thu Aug 26, 2010 6:57 am
Posts: 569
Location: Sydney Australia
There are limited free SMS services out there but don't count on their reliability. The reason they are free is that they can bump the company up to the next level of pricing with the carrier. Any messages that you send under a free account get written off as a loss but save the company money with the new pricing bracket and existing clients message volumes. The reason they are unreliable is that very strict conditions must be met before they will allow the free service ie usually towards the end of the billing cycle, decline in usage for the month, close to the end of a price bracket etc etc.

Always go with a paid service. I have never had an SMS disappear or take more than 5 mins to transmit, except for free services.

And PS most companies I have seen use XML based requests to send SMS for easy integration. There are of course com, php, and some weird protocols but XML is the easiest to implement.

_________________
Regards

Chris Musty
http://www.specialised.net.au
-----------------------------------------------
if date.shortdate >= 4/6/2013 then
msgbox "I am using Xojo - YAY!!!"
else
msgbox "I am still using RS 12r2.1 - BOO!!!"
end if

Win 8 Pro, Ubuntu 13.04, Mint and Debian(gnome and KDE)
AWS for Hosting and TKL for AMI's


Top
 Profile  
Reply with quote  
 Post subject: The PHP Code I'm using is
PostPosted: Fri Apr 08, 2011 9:23 pm 
Offline
User avatar

Joined: Tue Jan 19, 2010 2:01 pm
Posts: 10
Location: Earth
I found the code here http://sourceforge.net/projects/php2sms/.

So my understanding on webbased server communication is a little gray.... A user accesses a webpage from a computer connected to the web, where the page talks to the server using a coding language (PHP, RBWeb, ruby) and these languages can also talk to a DataBase.

Now I see code in PHP that let's a page access data from another servers/sites. Can I incorporate PHP in RBWeb (WE), or can I add PHP code in my WE project?

Here is the code in PHP that Returned the Users current geographic location, can I add this in a WE page or can I write it in Basic?

Thank RB community



<?php
require_once('geoplugin.class.php');
$geoplugin = new geoPlugin();
// If we wanted to change the base currency, we would uncomment the following line
// $geoplugin->currency = 'EUR';

$geoplugin->locate();

echo "Geolocation results for {$geoplugin->ip}: <br />\n".
"City: {$geoplugin->city} <br />\n".
"Region: {$geoplugin->region} <br />\n".
"Area Code: {$geoplugin->areaCode} <br />\n".
"DMA Code: {$geoplugin->dmaCode} <br />\n".
"Country Name: {$geoplugin->countryName} <br />\n".
"Country Code: {$geoplugin->countryCode} <br />\n".
"Longitude: {$geoplugin->longitude} <br />\n".
"Latitude: {$geoplugin->latitude} <br />\n".
"Currency Code: {$geoplugin->currencyCode} <br />\n".
"Currency Symbol: {$geoplugin->currencySymbol} <br />\n".
"Exchange Rate: {$geoplugin->currencyConverter} <br />\n";

if ( $geoplugin->currency != $geoplugin->currencyCode ) {
//our visitor is not using the same currency as the base currency
echo "<p>At todays rate, US$100 will cost you " . $geoplugin->convert(100) ." </p>\n";
}

/* find places nearby */
$nearby = $geoplugin->nearby();
if ( isset($nearby[0]['geoplugin_place']) ) {
echo "<pre><p>Some places you may wish to visit near " . $geoplugin->city . ": </p>\n";
foreach ( $nearby as $key => $array ) {

echo ($key + 1) .":<br />";
echo "\t Place: " . $array['geoplugin_place'] . "<br />";
echo "\t Country Code: " . $array['geoplugin_countryCode'] . "<br />";
echo "\t Region: " . $array['geoplugin_region'] . "<br />";
echo "\t County: " . $array['geoplugin_county'] . "<br />";
echo "\t Latitude: " . $array['geoplugin_latitude'] . "<br />";
echo "\t Longitude: " . $array['geoplugin_longitude'] . "<br />";
echo "\t Distance (miles): " . $array['geoplugin_distanceMiles'] . "<br />";
echo "\t Distance (km): " . $array['geoplugin_distanceKilometers'] . "<br />";

}
echo "</pre>\n";
}
?>

_________________
iMac 24" [ 2.8x2 - 320 - 4] MacBook Pro [ 2.6 - 250 - 4] Axiotron Modbook [2.4 - 500 - 4] iPhone 4 [16] iPad [16]

"Knowing is not enough we must apply,
Willing is not enough we must do."
~ Bruce Lee


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Sat Apr 09, 2011 4:03 pm 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
Sending SMS via email is no problem. It's easy to accomplish with either PHP or RB, I've done it.

I use the addresses from this site, load them as a ton of constants, and go on my way. :)

http://www.emailtextmessages.com/

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Tue Aug 23, 2011 1:15 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
Jason_Adams wrote:
Sending SMS via email is no problem. It's easy to accomplish with either PHP or RB, I've done it.

I use the addresses from this site, load them as a ton of constants, and go on my way. :)

http://www.emailtextmessages.com/


In the forum at oh-darn.com this list has been updated and includes international carrier to email gateway addresses as well :-)

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Wed Aug 24, 2011 9:56 am 
Offline

Joined: Mon Jan 11, 2010 11:56 am
Posts: 87
Location: United Kingdom
I use www.clickatell.com who seem to be very good on price, and their service is reliable. The first RB program I wrote is a front end to creating messages and links into our office database via ODBC so we can select groups of staff to send messages to, compile and send etc. This program works really well and is in use daily with an inbuilt sqlite database to store sent message, frequently sent phrases etc. and the reliability has been excellent. On occasions we send a few thousand messages at a time with no issue.

I use their SMTP API, but they also have https, soap, http etc., full details here http://www.clickatell.com/developers/clickatell_api.php

May be worth a look.

_________________
Paul
Realstudio 2010r5.1 & Realstudio 2012r4.3
Windows 7, Mac OSX
Core-i5, iMac


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Mon Aug 20, 2012 8:06 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
See my recent Phone Info Class....handles SMS gateways for you determines user location as well as network type and if or not it is a landline or mobile phone (mobile phone will return the gateway address ie 5556661234@vtext.com)

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Tue Aug 21, 2012 12:40 am 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
I'm using a Swedish company called Cellsynt frequently to send/receive SMS to my WE app. Never had any problems with their HTTPS API :)
http://www.cellsynt.com/en/sms/api-integration

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Tue Aug 21, 2012 1:31 am 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
akiland...it is good to see you friend... I will look into their services for my public phone info class.

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: RealBasic Web Sending PHP code...
PostPosted: Tue Aug 21, 2012 1:37 am 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
simulanics wrote:
akiland...it is good to see you friend... I will look into their services for my public phone info class.

Right back at y'a :)
They do have developer accounts (at least I got one) but you still have to pay for the SMS credits ;)
Let me know if I can help!

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group