function call

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
jayson.ph
Forum Contributor
Posts: 165
Joined: Mon Jan 02, 2012 9:20 am
Location: MP
Contact:

function call

Post 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?
User avatar
php3ch0
Forum Contributor
Posts: 212
Joined: Sun Nov 13, 2005 7:35 am
Location: Folkestone, Kent, UK

Re: function call

Post by php3ch0 »

Code: Select all

include('/url/to/file.php');
User avatar
jayson.ph
Forum Contributor
Posts: 165
Joined: Mon Jan 02, 2012 9:20 am
Location: MP
Contact:

Re: function call

Post by jayson.ph »

Yes this is it.. thank you.. php3cho
User avatar
php3ch0
Forum Contributor
Posts: 212
Joined: Sun Nov 13, 2005 7:35 am
Location: Folkestone, Kent, UK

Re: function call

Post by php3ch0 »

not a problem. you could also try require_once('path/to/file.php'); as well if this suits you better
Post Reply