laine
July 22nd, 2001, 08:24
i'd like to ask is it possible to have a varibable inside the include()
for example
$url="a.txt";
include('$url');
... i've tried and... it doesn't work
for example i have 2 variables
$chapter=1 // what chapter
$page=1 //what page in the chapter
i'd like to then include the relavant txt file... in the document
the url of the file is like
$chapter/$page.txt
but i have no idea how to include that ...
sorry :rolleyes: but i am a beginner to php, please help :) thanks
for example
$url="a.txt";
include('$url');
... i've tried and... it doesn't work
for example i have 2 variables
$chapter=1 // what chapter
$page=1 //what page in the chapter
i'd like to then include the relavant txt file... in the document
the url of the file is like
$chapter/$page.txt
but i have no idea how to include that ...
sorry :rolleyes: but i am a beginner to php, please help :) thanks