Execute php file from another php

Posted by skiria on Stack Overflow See other posts from Stack Overflow or by skiria
Published on 2010-05-15T17:41:17Z Indexed on 2010/05/15 17:54 UTC
Read the original article Hit count: 306

Filed under:
|

I try to call a php file that starts like

<?php

//Connection
function connection () {
...

I call from a php like:

<?php
exec ('/ /opt/lampp/htdocs/.../name.php)')
?>

I get:

line1-> cannot open ?: No such file
line 3 //Connection: not found
line 4 Syntax errror: "("

What happens? Why I can't execute it?

© Stack Overflow or respective owner

Related posts about php

Related posts about execute