Page 1 of 1

Can anyone tell me how can i execute a php script from......

Posted: Fri Jun 16, 2006 6:28 am
by radu
Can anyone tell me how can i execute a php script from another php script?
Thanks in advance!

Posted: Fri Jun 16, 2006 6:37 am
by shiznatix
require()
include()
require_once()
include_once()

is that what you mean? if you include it, all the code will also be executed soooo ya?

Posted: Fri Jun 16, 2006 7:10 am
by radu
but how about using exec(), system(), can anyone tell me the correct way of using them

Posted: Fri Jun 16, 2006 7:28 am
by tecktalkcm0391
what do you mean by execute... if you have a function on another php page. and you want to run or execut that function all you need to do is include_once(); and then just have it call for that function.

if the page only has php, and you want that php to run on another page just use include(); and it will include, and run the php.