Re: [IUG] SMS Ability in WebPac/PHP Script


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
At 05:33 PM 7/23/2010, Tammy wrote:
Our site is on Millennium 2009A and I recently loaded the WebPAC 2007 example set into our Staging Directory. I'm in the process of configuring it and they really want the ability to text catalog records to one's cellular phone. I obtained information on how to get SMS activated on WebPAC at http://innovativeusers.org/iug_clearinghouse-app/index.php?qfdo=Full+Record&id=183 but I have to admit that I know little about PHP scripting or Java scripting. Our WebPAC is at http://topekalibraries.info:2082

I put sms.php on the web server and put the sms.js into the WebPAC staging directory (using the WebMaster submodule in Millennium). I also added data (below the signature) to the bib_display.html file. The only thing I changed on the javascript was a the the line toward the top to tell it where the php script is (var smsurl = "http://libweb.uoregon.edu/dc/iiisms/sms.php?";;).

Unfortunately, the script is not working. If I attempt to send the record to my phone, I get the following message:

The page at http://topekalibraries.info:2082 says:
There was a problem verifying information. Message not sent!

The error I get is a Javascript alert that says "There was a problem. Message not sent!" which is the error that comes in the PHP script when it can't verify that the location and call number that were passed to it exist on the bib record page (which is a security feature). So the Javascript on the WebPAC machine is working, and the PHP script never gets to the point of trying to send the message, but the machine where the PHP script lives can't verify that the location and call number sent by the Javascript are on the page. My guess -- and it's a Friday afternoon guess after helping a colleague unload a truck in 90+ heat at my advanced age...oy -- is that the two servers can't communicate with each other.

Advice: have the PHP person comment out the security check feature and see if things get better. If they do, then you'll either need to do without the security feature or figure out why the two machines can't play better together. If it doesn't change anything, then we'll try the next step.


I tried to enlist the help of a PHP expert who says that something on http://topekalibraries.info needs to be configured (but I don't know what). I don't what else I need to do to get SMS activated on WebPAC and I don't know exactly what I should communicate to the PHP expert.

Nothing needs to be configured on the WebPAC server (other than network settings that don't get in the way of communications with the other box), and SMS is never "activated on WebPAC" -- all the WebPAC does is host a Javascript that sends information to a PHP script that sends an email. SMS isn't really part of the process.

Bob Duncan


~!~!~!~!~!~!~!~!~!~!~!~!~
Robert E. Duncan
Systems Librarian
Editor of IT Communications
Lafayette College
Easton, PA 18042
duncanr at lafayette dot edu
http://library.lafayette.edu/

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.