Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Load .m file from a web server

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98801] Re: Load .m file from a web server
  • From: Helen Read <hpr at together.net>
  • Date: Mon, 20 Apr 2009 01:27:54 -0400 (EDT)
  • References: <gseor6$eek$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

Eric Brown wrote:
> Hi all,
> 	I wish to place a .m package on a web server and have many  
> mathematica sessions download and use this package.  However, I can  
> not find a way to get this to happen--typing "download" into the help  
> menu does not give me the answer.

Import["http://full-path-here/file.m";]

does the trick.

Depending on the host server settings, it might bring up a dialog asking 
for a username and password on the host when you Import. I just now 
tried it on my university web space and was asked for username/password 
when I imported the test file, but when I posted it on another 
(non-university) server where I have web space, I was able to import the 
file without supplying username/password.

-- 
Helen Read
University of Vermont


  • Prev by Date: Parallel processing downgrade
  • Next by Date: Re: Abort/Interrupt doesn't work?
  • Previous by thread: Re: Load .m file from a web server
  • Next by thread: Re: Load .m file from a web server