Help please? (with PHP)

Hi,

Would someone help me please?

I am trying to run a PHP program from Linux terminal. The PHP program contains:

<?php exec(wkhtmltopdf /srv/tftpboot/logwiping/uuuuuu_20140521-153902_552604979.html /srv/tftpboot/PDFlogs/uuuuuu_2014521-153902_552604979.pdf); ?>

This PHP program suppose to convert an html file to pdf file.

I run the PHP program by typing the following line on Linux terminal:

php /home/camara/Downloads/autosteps.php

and I receive the following error message:

PHP Parse error: syntax error, unexpected ‘_552604979’ (T_STRING) in /home/camara/Downloads/autosteps.php on line 2

This is the first time I am using PHP and I try to find out the problem on my own but I am wasting too much time and getting no where. can someone please help me?

I appreciate any help.

I think you need to put the whole thing in quotes

[php]exec(“wkhtmltopdf /srv/tftpboot/logwiping/uuuuuu_20140521-153902_552604979.html /srv/tftpboot/PDFlogs/uuuuuu_2014521-153902_552604979.pdf”);[/php]

Thank you very much for your help I tried it and it worked. I really appreciate it.

Sponsor our Newsletter | Privacy Policy | Terms of Service