You are here: Re: system() error ? « PHP Programming Language « IT news, forums, messages
Re: system() error ?

Posted by Kim Andr� Aker� on 01/19/07 08:43

PB wrote:

> Hello all,
>
> Thank you, I'm not very knowledgeable on PHP.
>
> when I go to my page I get
> Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
> `T_NUM_STRING' in /srv/www/htdocs/htdocs-new/metabo_info_cp.php on
> line 47
>
> line 47 is :
> <?php
> system("babel $data['mol'] -oxyz:struct.xyz -h");
> ?>
> babel is a program and the variable is some text I want to give to it
> the rest is the output from the script.

You might also want to try it like this:
<?php
system("babel ".$data['mol']." -oxyz:struct.xyz -h");
?>

But, as Geoff mentioned, I'd check the line preceding line 47, it might
be missing a quote and/or semicolon.

--
Kim André Akerø
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

 

Navigation:

[Reply to this 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

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