Make your own SMS sender in LINUX!!! [Warid, Telenor Added]

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
BoRn2BWiLd
Cadet
Posts: 10
Joined: Thu Jun 29, 2006 7:37 am
Location: Lahore, Pakistan.
Contact:

Postby BoRn2BWiLd » Thu Jan 11, 2007 3:50 am


BoRn2BWiLd
Cadet
Posts: 10
Joined: Thu Jun 29, 2006 7:37 am
Location: Lahore, Pakistan.
Contact:

Postby BoRn2BWiLd » Sat Jan 13, 2007 4:10 am


lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Sat Jan 13, 2007 4:26 am


BoRn2BWiLd
Cadet
Posts: 10
Joined: Thu Jun 29, 2006 7:37 am
Location: Lahore, Pakistan.
Contact:

Postby BoRn2BWiLd » Sat Jan 13, 2007 5:06 am


lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Sat Jan 13, 2007 2:57 pm


BoRn2BWiLd
Cadet
Posts: 10
Joined: Thu Jun 29, 2006 7:37 am
Location: Lahore, Pakistan.
Contact:

Postby BoRn2BWiLd » Sun Jan 14, 2007 5:44 am


BoRn2BWiLd
Cadet
Posts: 10
Joined: Thu Jun 29, 2006 7:37 am
Location: Lahore, Pakistan.
Contact:

Postby BoRn2BWiLd » Sun Jan 14, 2007 6:20 am

Okay, searched the net for CURL eXtension of PHP and found a site.

http://curl.haxx.se/dlwiz

The page leads to some CURL Version 7.16.0 packages. I selected the first one i.e. CURL eXecutable.

Then I was asked about Operating System. I selected "Windows/Win32" from the list.

Then they asked to select the Flavour for Win32. There were two options.
1- Generic
2- Cygwin

I selected the 1st one.

They asked to select the Win32 version. I selected "2000/XP".

Finally, they asked for the Processor (forunately they only know about one processor for the package I selected and it was i386).I have no idea what i386 is. Anyway, I got this URL after going through the above said process to download the zipped file.
http://curl.haxx.se/download/curl-7.16. ... l-sspi.zip

Now I've downloaded the package and I'm not installing or un-zipping it before you guys tell me that I'm not making any mistake(s) here. So the ball is (once again) in your court.

Thank you!

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Sun Jan 14, 2007 2:10 pm

did you really need to do that? doesn't your php installation already have curl?

as for the rest, read the documentation. maybe someone else can help you with that, but i don't use php on windows. this is, after all, linux pakistan.

ball's in your court, bud.

BoRn2BWiLd
Cadet
Posts: 10
Joined: Thu Jun 29, 2006 7:37 am
Location: Lahore, Pakistan.
Contact:

Postby BoRn2BWiLd » Mon Jan 15, 2007 3:56 am


lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Mon Jan 15, 2007 1:42 pm


barlas
Naib Subedar
Posts: 315
Joined: Mon Jun 30, 2003 11:07 am
Location: Lahore, Pakistan
Contact:

Postby barlas » Tue Jan 16, 2007 2:16 pm

BoRn2BWiLd, just follow these set of instructions:

1. install xampp from http://www.apachefriends.org/ (use windows installer)
2. Edit the text file as told by lambda
3. Rename it to warid.php and put it in xampp/htdocs directory
4. Open your browser and enter http://localhost/warid.php

That should run the script, after that it works or not, it is not guranteed :)
Aqeel Zafar

BoRn2BWiLd
Cadet
Posts: 10
Joined: Thu Jun 29, 2006 7:37 am
Location: Lahore, Pakistan.
Contact:

Postby BoRn2BWiLd » Sun Jan 21, 2007 10:36 am

Hi again and thank you for your replies.

First of all Mr./Ms. lambda, please tell me. What do you mean by BoRn2BSpoonFed :( ? I never asked you to come here and install the whole thing on my PC did I? I am actually trying to figure it out but since there are so many SPECIFIC things required to make that script work, I'm asking stupid questions here. Is it illegal to ask something on a forum? Or do you feel offended if somebody asks you something? I am searching for the setups myself and ONLY asking you whether the ones I downloaded are the right ones or not. Is that what you call Spoon-Feeding? I'm sorry to say I didn't know that a person like you would have such mentality about people who are trying to learn a-few things. You know what? If you can't en-courage somebody then you shouldn't (atleast) dis-courage them. Thank you very much for your help. I'm not asking YOU about anything now. I'll let somebody else (who doesn't think that he/she is a Super natural Granny and feeding others with spoons by just answering some technical questions) consider my problem. Thank you again for your Spoon-Feeding so far :).



Dear barlas,
thank you for your simple instructions.

1)- I am downloading xampp-win32-1.5.5-installer.exe (32.98 mb) for Windows from the site you mentioned (direct download link is http://superb-east.dl.sourceforge.net/s ... taller.exe ).

2)- I edited the text file right after downloading it. I know a-few things about HTML so this part was easy.

3)- Renamed the file. I'm on slow net (dialup) so I'll let you know when the file would be downloaded and installed. Also, I am downloading the "Basic Package" of xampp assuming that I don't need other packages listed there. Do I?


Plus, there is another (possible) way to make this sms script work (I was thinking about it). If a web-host (the free webhosting services available out there) supports PHP etc. then uploading the edited warid.php on that server would also make that script run. Right? If that's right then I wouldn't need to install anything on my pc to make this script work. I uploaded the warid.php to 110mb.com (they support PHP5, MySQL5, CGI, Pearl and Python). Now when I openned the warid.php ( http://b2bwild.110mb.com/warid.php ) it gave me two warnings.

Those are,

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /www/110mb.com/b/2/b/w/i/l/d/_/b2bwild/htdocs/warid.php on line 39

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /www/110mb.com/b/2/b/w/i/l/d/_/b2bwild/htdocs/warid.php on line 39


My guess is, my web-host doesn't have CURL eXtension installed.

Please be kind enough to tell me if I managed to find a free web-host with CURL eXtensions installed on it then I wouldn't need to install the xampp setup. Right? Actually I am trying to avoid installing anything on my pc unless it becomes the only option left (but I will install Xampp hoping that I wouldn't go through heavy and complicated configuration settings after installing it :D).

Thank you for your kind consideration in this matter.

-BoRn 2B WiLd

P.S. I'll be back with an update as soon as I get that xampp installed.

***EDIT***
After posting this post, I openned the warid.php I uploaded and tried sending a sms to my own number. And guess what? even with those warnings I got it on my cell :D. So the free web-host thing really worked for me.
See Mr. / Ms. lambda, some people can play cricket in a swimming pool even :p.

kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Postby kbukhari » Mon Jan 22, 2007 11:23 am

--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com

masud
Havaldaar
Posts: 108
Joined: Thu Aug 05, 2004 12:15 am
Location: Fremont, CA
Contact:

Wrong!!!

Postby masud » Mon Jan 22, 2007 12:58 pm

This script is still useful if you are sending sms only to Warid network.

Kbukhari save your post for this thread


Thnx
--SP--

mahin
Major
Posts: 605
Joined: Wed Aug 07, 2002 8:00 pm
Location: Karachi
Contact:

Postby mahin » Mon Jan 22, 2007 7:07 pm



Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests