[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/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 - Variabele meegeven voor include
Pagina 1 van 1

Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 14:36
door Douwe 666
Hoi,

Als ik een pagina include, kan ik dan een variabele in de te includen pagina zetten, die op het moment dat de pagina wordt geinclude gaat gelden, en als ik dan een andere pagina include dat hij in de variabele in die van de nieuwe pagina verandert? Question

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 14:47
door Derk

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 14:49
door Douwe 666
Ok die ken ik, maar als je geen variabele in de url zet, kan het dan ook?

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 14:51
door Derk
Je bedoelt dat je in mijn voorbeeld index.php aanroept, en dat er toch Ja! komt te staan, zonder dat je die ? erachter zet en zonder pagina2.php aan te passen?

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 14:55
door Douwe 666
pagina2.php juist wel aanpassen. Ik zal even uitleggen waarvoor het nodig is:
In inex.php moet de titel veranderen, als ik een andere pagina include, en toen dacht ik: als je in de te includen pagina bijvoorbeeld $titel = 'links' zet, dat de titel van de site links wordt.

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 15:08
door Moonstrike

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 15:11
door Douwe 666

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 15:17
door Derk

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 16:10
door Douwe 666
Dat is de rede dat ik dit forum starte Wink , daar een oplossing voor vinden. Question

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 16:18
door Rik
Eerst het bestand includen en dan pas $title echo'en? Question

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 16:45
door Douwe 666
ja, maar dan kan ik de tekst die ook in dat bestand staat niet meer laten zien Question , want die komt sowieso na de titel.

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 17:44
door Derk

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 19:01
door Rik

Re: Variabele meegeven voor include

BerichtGeplaatst: 15 apr 2007 19:09
door Douwe 666
tnx dit werkt al beter, ik kan natuurlijk ook de tekst in een variabele zetten, en gewoon alle variabelen aan het begin van de pagina laden.

Re: Variabele meegeven voor include

BerichtGeplaatst: 16 apr 2007 12:59
door Douwe 666
ob_start() is toch het beste, dan kan ik tenminste alle tekens gebruiken.
Heeft iemand een idee hoe ik een enkele quote ( ' ) kan echo'en Question

Re: Variabele meegeven voor include

BerichtGeplaatst: 16 apr 2007 15:29
door libia

Re: Variabele meegeven voor include

BerichtGeplaatst: 16 apr 2007 15:44
door Rik

Re: Variabele meegeven voor include

BerichtGeplaatst: 16 apr 2007 16:58
door libia

Re: Variabele meegeven voor include

BerichtGeplaatst: 16 apr 2007 17:05
door Remi
niet logisch,
ik probeer altijd zoveel mogelijk aan het begin van het script te doen. En daarna gebrui ik gewoon <?=$var?>

Re: Variabele meegeven voor include

BerichtGeplaatst: 16 apr 2007 17:25
door libia

Re: Variabele meegeven voor include

BerichtGeplaatst: 17 apr 2007 17:12
door Douwe 666
Tnx.
Gaat trouwens niet buiten PHP anders zou ik het niet vragen... Razz