Page 1 of 1

function call

Posted: Fri Jan 06, 2012 10:19 am
by jayson.ph
hi ALL

how to call other page, like in an html they are using <a href>??</a> but how in php? like now on me, i want to call connection.php into index page?

Re: function call

Posted: Fri Jan 06, 2012 10:29 am
by php3ch0

Code: Select all

include('/url/to/file.php');

Re: function call

Posted: Fri Jan 06, 2012 10:34 am
by jayson.ph
Yes this is it.. thank you.. php3cho

Re: function call

Posted: Fri Jan 06, 2012 10:48 am
by php3ch0
not a problem. you could also try require_once('path/to/file.php'); as well if this suits you better