[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 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/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/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/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 - Bestanden uitlezen en sorteren
Pagina 1 van 2

Bestanden uitlezen en sorteren

BerichtGeplaatst: 24 okt 2007 21:36
door Douwe 666
Ik heb een bestand met verschillende variabelen erin. Een van die variabelen, die dezelfde naam heeft als $pagina, moet verhoogd worden met 1, en daarna teruggeschreven naar het bestand.
Uitleg (voorbeeld):
$pagina = 'hallo';
nu moet de variabele die dezelfde naam heeft als de inhoud van $pagina, verhoogd worden met 1
$hallo++ (hij was eerst 2 b.v.)
en moet in het bestand
$hallo = 2;
vervangen worden door
$hallo = 3;
Ik hoop dat het een beetje duidelijk is, en vooral dat iemand me ermee kan helpen :x

Re: Variabelen probleem

BerichtGeplaatst: 25 okt 2007 08:41
door frizzy

Re: Variabelen probleem

BerichtGeplaatst: 25 okt 2007 08:55
door Douwe 666
Ja, maar met fwrite kan je niet een oude tekst vervangen :?:

Re: Variabelen probleem

BerichtGeplaatst: 25 okt 2007 09:34
door frizzy

Re: Variabelen probleem

BerichtGeplaatst: 26 okt 2007 09:03
door Douwe 666

Re: Variabelen probleem

BerichtGeplaatst: 26 okt 2007 18:39
door Remi
Ik kan je laten zien in welke pagina je het wil veranderen.
Want aan de hand van wat er omheen staat kan ik opmaken wat je nodig heb.

Re: Variabelen probleem

BerichtGeplaatst: 26 okt 2007 22:05
door Douwe 666
De code is nog een soort warboel, omdat het nog losse stukjes staan.
Ik heb een tijdje terug een post gedaan over een top3 met de meest bezochte links op mijn site, daar is dit een deel van.
Het is de bedoeling dat alle pagina's als een variabele in het bestand komen, en vervolgens na ieder uniek ip adres dat de link bezoekt de varibele wordt verhoogd. Uieindelijk moeten de variabelen weer kunnen worden uitgezelen zodat er een top3 van gemaakt kan worden.
Als je een slimmere methode weet is dat natuurlijk ook welkom. ;)

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 11:58
door Douwe 666
Of moet je echt het script hebben?

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 13:06
door Moonstrike

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 15:04
door Douwe 666

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 15:42
door frizzy

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 15:49
door Douwe 666

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 16:00
door frizzy

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 16:09
door Douwe 666
Hij geeft nu inderdaad geen error meer, maar ik wel want het werkt niet :|

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 16:14
door Derk

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 16:16
door Douwe 666
De variabele wordt niet verhoogd,
misschien kan je ff jouw code geven? kan ik kijken of die bij mij werkt ;)

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 16:18
door Derk

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 16:25
door Douwe 666
Slim, deze werkt idd!
Dank je :aanbid:
Nu kijken of ik hem ook kan toepassen op mijn eigen code, of dat ik dan weer in de problemen kom :P

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 18:18
door Douwe 666
Hij doet het nu ook bij mijn code :engel:, nog een klein dingetje veranderd:
$inhoud_file='<?php
\$var1='.$var1.;?>';
omdat hij anders $var1 gewoon als een variabele ziet.

Wat kan ik het beste als extensie gebruiken voor de data :?: .dat / .php / .txt of iets heel anders?

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 18:51
door Remi
hoe hoeft niet gebackslahed te worden. Dat is namelijk alleen nodig als je hem double-qoute "
En bij een enkele quote hoeft dat niet ;)

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 19:13
door Douwe 666
Weer wat geleerd, ik heb inderdaad dubbel gequote toen ik hem teste 8)
En hoe zit het me de bestands-extensies?

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 19:16
door frizzy

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 19:19
door Douwe 666

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 19:24
door frizzy

Re: Variabelen probleem

BerichtGeplaatst: 28 okt 2007 19:40
door Derk
mysql is ergens aangegeven dat dat geen optie was. Daarbij is de vraag dan een beetje nuttelloos.

.php moet je gebruiken als extensie. Dan is de data namenlijk niet leesbaar voor anderen.