Cyervo
03-31-2004, 03:27 AM
Hello, this is my firts post on this forum, and I speak spanish, so if my english isn't good, just.. sorry :thumbsup:
Well.. I need to do a single script but I dont know how to start with that.
So the script is anything like:
- I could put manually some words in a text file (file.txt)
- From a PHP file take these words, and make a link to a file with the SAME name of that word...
- On the new page... the variable must be at the title of the page <title>$var</title> and at the body ... <body> $var</body>
i dont know basically how to make the script in PHP to take the words from the text file and make a link over the word TO $var.php
I mean...
in file.txt i have;
shoes
and in the index.php..
shoes (shoes.php)
so... when anybody click on "shoes" appears on a page called "shoes.php" with the title "shoes" and in the body "shoes".
Sorry for the confusion :P
Well.. I need to do a single script but I dont know how to start with that.
So the script is anything like:
- I could put manually some words in a text file (file.txt)
- From a PHP file take these words, and make a link to a file with the SAME name of that word...
- On the new page... the variable must be at the title of the page <title>$var</title> and at the body ... <body> $var</body>
i dont know basically how to make the script in PHP to take the words from the text file and make a link over the word TO $var.php
I mean...
in file.txt i have;
shoes
and in the index.php..
shoes (shoes.php)
so... when anybody click on "shoes" appears on a page called "shoes.php" with the title "shoes" and in the body "shoes".
Sorry for the confusion :P