FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math » Symbolic
'witm' - Web Interface To Mathematica.
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
Dave (from the UK)
science forum addict


Joined: 12 Jan 2006
Posts: 76

PostPosted: Sun May 21, 2006 5:32 pm    Post subject: 'witm' - Web Interface To Mathematica. Reply with quote

I've made some quite significant changes to the php code I mentioned a
few days back.

It can now run most Mathematica commands, as well as display 2D and 3D
graphics. I suspect you can produce sound too, but I have not tried.

There is a *non-functioning* demo at

http://www.althorne.org/witm/witm.php

A 3D graph was created over the web and is placed at

http://www.althorne.org/witm/graph.pdf

In order to run this, you will need a

1) UNIX or Linux computer.
2) Web server (almost certainly apache)
3) Web server configured for PHP.
4) Copy of Mathematica on the web server.

Feel free to download the php code at

http://www.althorne.org/witm/witm.txt

You will then need to save this as witm.php, not as .txt as on the web
server. The name is important - if you want to use anything other than
witm.php you will have to hack this line.

<Form action="witm.php" method="post" >

You would be strongly advised to password protect this, as it is
possible for a user to read/write to any file which the user of the web
server (typically 'nobody') can do. Also, Wolfram Research might object
if you made the full Mathematica program publically accesable.

You might need to hack a couple of lines - particularly this one

$tailprog="/bin/tail +3 | head -1";

which gets the results from the program, and misses any irrelevant junk
like the version of Mathematica. If it is not right, you will not see
the result.

Also this, which is the path to 'math'

$mathprog="/usr/local/bin/math -batchinput -batchoutput";

You might want to change these too:

$maxram=1000000000; // Maximum RAM in bytes
$maxtime=10; // Maximum time in seconds

which set how long the kernel can run the computation, and how much
memory it can use.

I'd be interested if anyone tries to get it working.

There are < 100 lines of php, including comments, so it should not be
hard to see how it works.

If there is any interst, I might stick it on Soureforce. Shame I can't
do a live demo, but it is just not practical for security and legal
reasons.
--
Dave K MCSE.

MCSE = Minefield Consultant and Solitaire Expert.

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 10:59 pm | All times are GMT
Forum index » Science and Technology » Math » Symbolic
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mathematica: how to feed Solve output... double d Math 12 Mon Jul 17, 2006 10:36 pm
No new posts A web browser interface to Mathematica Dave (from the UK) Recreational 3 Fri Jul 07, 2006 9:41 am
No new posts Level Instrument for Interface measur... Ramesh S Control 3 Tue Jul 04, 2006 6:04 pm
No new posts mathematica command for linearity robert Math 1 Sat Jul 01, 2006 8:04 pm
No new posts Segmentation violation with DASSL usi... Hannes Gruschinski num-analysis 0 Fri Jun 30, 2006 3:34 am

Debt Consolidation | Northern Rock | MPAA | Bankruptcy | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Electronics forum |  Medicine forum |  Unix/Linux blog |  Unix/Linux documentation |  Unix/Linux forums


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2219s ][ Queries: 16 (0.1497s) ][ GZIP on - Debug on ]