Page 1 of 1

how to contol the rhythm or time of my process?

Posted: Sat Oct 12, 2002 1:16 am
by mybird
has php anything like function wait() to control the time? :oops:

Posted: Sat Oct 12, 2002 1:46 am
by DoppyNL
I'm just wondering why you need such a function??

you create web-pages with php, you want them to be made as fast as possible. No need for a wait function there....
I don't know you're actual problem (why you want that function), but I think you can work around it another way

So... What is the actual problem??

Greetz Daan

i mean……

Posted: Sat Oct 12, 2002 2:06 am
by mybird
i mean the rhythm, eg how to make a string move in the image? i use for(),but it goes too fast. :oops:

Posted: Sat Oct 12, 2002 2:09 am
by DoppyNL
I still don't get it.....

Posted: Sat Oct 12, 2002 2:13 am
by mybird
ok, if i want, how can i creat a moving string in my web page? i know other tools do it perfectly, but i want to know how php do it?

Posted: Sat Oct 12, 2002 2:17 am
by DoppyNL
If you want text te move around on you're page in the users browser you cannot use PHP.

PHP is server side, once it has been sent to the user php can't do anything about the contents.
You need to use something that is client-side (java, javascript, flash, stuff like that) to move you're string around on the page.

Greetz Daan

Posted: Sat Oct 12, 2002 2:25 am
by mybird
oh i s, thanks
so the main use of php is to use data base?

Posted: Sat Oct 12, 2002 2:46 am
by DoppyNL
from php.net (main page, left column):
What is PHP?
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

For more info see php.net

I'm just to lazy to give you a description myself :)

Greetz Daan

Posted: Sat Oct 12, 2002 3:34 am
by Jay
mybird wrote:oh i s, thanks
so the main use of php is to use data base?

Server side languages are used to generate page content 'on-the-fly' for instance, if you wanted a unique page for every visitor on your page. PHP cannot do special effects with your page, that's the client side (because the client's browser will do the effects on the page). PHP merely sends the coding for it, it's whether or not the clients browser can display it is the question.