[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Webmasterplein.net • Toon onderwerp - Eerste keer speciaal bericht
Pagina 1 van 1

Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 18:57
door Johan
Ik zoek een scriptje (liefst JS, anders PHP) waarmee je kan zorgen dat de eerste keer dat een IP op de pagina van het scriptje komt, hij een aangepaste tekst/pagina te zien krijgt. :D Dus alleen de eerste keer. :mrgreen:


Kan dit?

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 19:13
door frizzy
Tuurlijk, gewoon IP opslaan in een database of bestand. Als hij er al instaat naar de gewone homepagina, anders naar de intro.

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 19:19
door libia
je doet dus een table bezoekers met daarin één column: ip (en eventueel ook nog het aantal bezoeken) en dan kun je kijken met iets van en dan kijk je naar het aantal teruggegeven resultaten. bij <1 oid en dan echo 'tekst'/include('pagina.html')
bij >=1 echo 'tekst'/include('pagina.html')

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 19:38
door KillerSponge
Hou er wel rekening mee dat IP's niet betrouwbaar zijn, die kunnen gefaked worden. Als het enkel om een welkomstbericht gaat is dit natuurlijk niet erg, maar als het kritieker is moet je iets anders verzinnen.

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 19:41
door libia

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 19:57
door KillerSponge
Nee klopt. Je provider deelt een IP uit, dus dat kan je niet direct faken. Maar proxies zijn er zat :P

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 20:02
door libia

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 05 nov 2008 20:06
door KillerSponge
Zou wat zijn. Dan zou je je als een ander persoon voor kunnen doen. Dan gaat het internet vast nog werken :P

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 06 nov 2008 19:40
door Derk

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 06 nov 2008 20:55
door Remi
Het nadeel van een ip is dat alle computers binnen een netwerk het zelfde externe ip-adres hebben.
Koekjes zijn dus beter.

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 06 nov 2008 21:57
door libia

Re: Eerste keer speciaal bericht

BerichtGeplaatst: 07 nov 2008 22:39
door Johan
Cookies in PHP gebruiken? I'll check.