Few little problems...

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!

Moderator: General Moderators

Post Reply
aqwarium
Forum Newbie
Posts: 7
Joined: Thu Jul 11, 2002 1:36 pm

Few little problems...

Post by aqwarium »

I've got some little problem :

how can I

- wait two seconds in a pop-up window, then close it and refresh the original window ?

- detect the user language ?

And a little question who's driving me mad :
why if ($boolean = true) is not the same that if ($boolean !=false) ?????
never seen that in C or anything else !!!

Thanks for your tips

Axl
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Post by Bill H »

why if ($boolean = true) is not the same that if ($boolean !=false) ?????
($boolean == true) is the same as ($boolean !=false)
aqwarium
Forum Newbie
Posts: 7
Joined: Thu Jul 11, 2002 1:36 pm

Just one more...

Post by aqwarium »

Thanks for your help :D

I've found the solution for the language :

$lang = substr(getenv('HTTP_ACCEPT_LANGUAGE'), 0, 2);
where $lang is a global var (or affected in a conf.inc.php file)

I just need a solution for my last problem :

in a pop-up windows :
- wait 2 seconds
- close the pop-up
- refresh the original window
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

in a pop-up windows :
- wait 2 seconds
- close the pop-up
- refresh the original window
Have a read of this:
http://www.devnetwork.net/forums/viewtopic.php?t=1030

PHP is server-side, you need something client-side to do this.

Mac
Post Reply