After having followed an huge ammount of tutorials here on p2l i managed to do a neat system for my father's company but now i came across a problem regarding writing to files!
I would be extremely grateful if anyone could help me getting this issue of mine solved!
So basically is this:
I have 2 files for a store in a certain city, Oporto-comunicate.php and Oporto-see.php, and I have an admin panel where i can add another city (reads the name from a form) and this would create another 2 files this time with the new city name
Example given: the new city is Lisbon then it would create Lisbon-comunicate.php and Lisbon-see.php
The problem is that I want to write PHP in the new files...
So let's imagine I have a template like
<?php <--- CODE ---> $nameOfTheNewCity echo "$example"; <--- CODE ---> ?>
$nameOfTheNewCity should be seen on the new file as Lisbon and
echo "#example"; should be as is on the new file
Can anyone help me ? Or was this a bit confusing ?
Thank you in advance
