basballguy Posted January 26, 2007 Share Posted January 26, 2007 I'm using PHP Nuke so that may have some impact...but here's my understanding<?function test() { echo "test";}echo test;?>that will show "test" within the page. I thought if i called the function through a URL on PHP_SELF then that would also echo the function...i seem to be wrong. Can someone advise me what i should be doing differently? Link to comment https://forums.phpfreaks.com/topic/35757-calling-functions-via-url/ Share on other sites More sharing options...
fert Posted January 26, 2007 Share Posted January 26, 2007 you need to call the function like this:[code]test();[/code]or[code]echo test();[/code] Link to comment https://forums.phpfreaks.com/topic/35757-calling-functions-via-url/#findComment-169462 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.