Forum Moderators: coopster

Message Too Old, No Replies

Change home page to my index

PHP- How to scsript my quest

         

henry0

10:58 pm on Apr 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello
I run a portal news based, my news are tended by a pro chief editor so I do quite well and get may hits
a few viewers that first thing first in the morning want reading the news
asked me about a quick button "set your home page to actual page"
how do I code such a request?
thank you

regards

Macguru

11:03 pm on Apr 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi henry0,

Something like this [javascript.internet.com]?

henry0

11:07 pm on Apr 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi McGuru
thank you
yes indeed that will do it

I did not think in JS way; which I am not a good scripter at!
I was looking for PHP

but don't get me wrong I am ready to pop it in :)
regards

andreasfriedrich

12:28 pm on Apr 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




>>I was looking for PHP [php.net]

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

henry0

1:21 pm on Apr 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thank you
I will look at implementing that solution
<<<
.... You may use PHP to write JavaScript code that will then be sent to the client and run locally.
>>>
regards