Get alerted by sms!

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Get alerted by sms!

Post by Nik »

$sms = WWW::SMS->new("+36973814824", $host);

for ( $sms->gateways(sorted => 'reliability') ) {
if ( $sms->send( $_ ) ) {
last;
}
else {
print $WWW::SMS:Error;
}
}


Does anyone have experience with sms noification when someone enters his page?

if so i the compiler tells me that i have an error in this
at print $WWW::SMS:Error;

but i cant see what the erro is. if u see something wrong let me know pls..
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

$WWW::SMS::Error
http://www-sms.sourceforge.net/
why did you edit the example? ;)
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

to match my writing ;)

i corrected it and now i get this one:

Software error:
Can't locate object method "new" via package "WWW::SMS" at D:/web/cgi-bin/index.pl line 104.

For help, please send mail to the webmaster (nik0s@mycosmos.gr), giving this error message and the time and date of the error.

i have installes www::sms why it cannot locate the new method?
Post Reply