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!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello! Sorry to bother with such a simple question.. documentation, books, everything's let me down despite I know it is in there..
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
function mod() is not imported to the class' scope (there is no such thing in php) but to the global scope.
You get "nothing" because the script contains numerous errors. Please set error_reporting=E_ALL , display_errors=on and display_startup_errors=on in your php.ini and restart the webserver.