Reply to Re: FORTRAN code in a PHP script?

Your name:

Reply:


Posted by Erik Kullberg on 07/06/07 21:48

Thank you Aho!
You confirmed my suspicion: This maneuver requires that I can compile, link
and run Fortran on both servers.
/ Erik


"J.O. Aho" <user@example.net> skrev i meddelandet
news:5f7cs2F3bea39U1@mid.individual.net...
> Erik Kullberg wrote:
>> I need to run a piece of FORTRAN code (to use a LAPACK routine) in a PHP
>> script. It should be possible by use of "shell_exec", but I have never
>> used
>> that and I cannot figure out how it works.
>
> shell_exec('/path/to/your/program');
>
>
>> The FORTRAN code has to be compiled and linked on my local PC, I guess
>> (where else?). Can I expect that linked code to work on the external
>> internet server as well as in my local PC based server?
>
> No, you have to be sure that you run the same operating system, and that
> you
> have same family of CPU and last you need to have the libraries that your
> binary depends on, on the server too.
>
>
> Example:
> Code compiled on a x86 microsoft xp, won't run on PowerPC microsoft nt.
>
> Code compiled on a x86 microsoft xp, won't run on x86 Linux.
>
>
> Even if most home users has a microsoft box, the majority of servers run a
> Unix like operating system like Linux or BSD. Even microsoft uses quite a
> lot
> BSD servers, as those are a lot more stable, less affected by viruses and
> are
> a lot more secure than their own products.
>
> --
>
> //Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация