Hmm. Also, I notice the error message indicates you used a single quote rather than a double in the script. While it should work that way, you might try " instead.
It is really weird that the error is not found despite the file being accessible from a browser. You didn't by chance copy and paste into your script right before things broke did you? On Fri, Dec 25, 2015 at 7:17 AM, Mike Bonner <bonnm...@gmail.com> wrote: > Not sure why it stopped working, but you might try hitting the file > directly. > put URL "binfile:ynh5list_UTF8.txt > <http://pba.on-rev.com/ynh5list_UTF8.txt>" > (Lyn Teyla just sent the same thought..) > > Also, the extension you use with onrev chooses which version of the server > you are hitting. I'm wondering if something is going on with the older > revserver on your onrev server. (you might try grabbing a file from > somewhere else, that is NOT your csv file and see if it works, or if all > URL "http://" requests are broken for you.) > > You also might consider using the most recent version of rev. Using the > extension .lc instead will do so. If it works with your .irev file copied > to an .lc file, then you can use a custom .htaccess file to get your .irev > to use the newest version too. There was a discussion about how to do this > not too long ago on this list. > > > On Fri, Dec 25, 2015 at 6:27 AM, Tim Selander <selan...@tkf.att.ne.jp> > wrote: > >> I'm continuing to work on a .irev web page, with varying success. >> >> On-Rev account, server sage, >> software:/usr/local/cpanel/cgi-sys/ireviam-engine according to the tip >> Alex gave me earlier. >> >> Brief description of page's function: >> 1) Load static .csv file from web server into a variable. This is a list >> of radio programs, the data is simply 3 items: Broadcast date, Program >> Title and Host. >> 2) Get today's date from the server. >> 3) Using the date, find today's program in variable vlist, show the >> broadcast date, the program Title, the Host. >> 4) Again using the date, fetch the appropriate mp3 filename from our web >> server and plug it into the audio tag's src. >> >> Extremely simple, no css or formatting of any kind. Just trying to get >> the three items of data on the screen and load the audio player with the >> correct mp3. >> >> Was working great, and I was plugging in test dates... >> >> When suddenly it stopped reading in the csv file. The command is: put URL >> "http://pba.on-rev.com/ynh5list_UTF8.txt" into vlist >> Instead of the data, vlist contains the html 404 page not found error. >> >> But the file is there. >> >> Copy and paste the url into the browser, and the text loads up. The csv >> file is in the very same directory as the .irev file ( >> http://www.pba.on-rev.com/ynh5today.irev). Both are in the root of the >> public_html folder. But the {put URL " >> http://pba.on-rev.com/ynh5list_UTF8.txt" into vlist} command returns a >> 404 error. >> >> Moved the csv file to two other web servers, On-Rev's deisel, and a >> Japanese web host I use. >> put URL.... etc. using the Japanese web host also fails. (could not >> connect to server) >> put URL.... etc. using deisel DOES WORK. >> >> Thought maybe Safari was acting up, so tried Chrome and Firefox. Same >> problem. >> >> I'm puzzled. >> Suddently, "Put URL..." can't find the file, but the browser can. >> (For what it's worth, also tried "Get URL...." with same results. >> Not related to browser software >> Non- on-rev web server fails >> Sage on-rev server fails >> Deisel on-rev server succeeds (for now?) >> >> Could this be some kind of latency problem? Is some kind of 'wait' period >> needed? >> >> Long time HC scripter, not a professional programmer.... >> >> Any tips appreciated. >> >> Tim Selander >> Tokyo, Japan >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode