Forum Moderators: coopster
Something like this [javascript.internet.com]?
PHP [php.net] is typically run on the server side. The home page setting is a client side one. Thus you will need to use a client side technology to change that. The JavaScript solution does just that.
Of course you may produce the JavaScript code that is sent to the client any way you want. You may use PHP [php.net] to write JavaScript code that will then be sent to the client and run locally.
Andreas