Call a simple function from a Browser
Posted: Sat Jul 02, 2011 3:07 pm
Hi guys, I have this very simple code:
Then, to print out the line i do this:
http://www.mydomain.com/myName.php
Now... if I have this as a function:
What do i have to add in the end of the link
http://www.mydomain.com/myName.php
to call the function and print out the text?
Thanks.
Code: Select all
<?php
printf("John Carmack");
?>http://www.mydomain.com/myName.php
Now... if I have this as a function:
Code: Select all
<?php
function writeName(){
printf("John Carmack");
}
?>What do i have to add in the end of the link
http://www.mydomain.com/myName.php
to call the function and print out the text?
Thanks.