Hi.
I have a problem with a dirname. I can´t read a file if i write this code:
<?php
$user = $_REQUEST['username'];
$filename = dirname(_FILE_) .'/../revadv/$user';
$lines = file($filename) ;
?>
I have create a file with $user name. I write in the php page which i create
the file $user name:
$user = $_POST['username']; but it isn´t well..
If I write in php page with dirname: echo "$user"; it don´t write anything.
Thank you.
Regards
Joca
I have a problem with a dirname. I can´t read a file if i write this code:
<?php
$user = $_REQUEST['username'];
$filename = dirname(_FILE_) .'/../revadv/$user';
$lines = file($filename) ;
?>
I have create a file with $user name. I write in the php page which i create
the file $user name:
$user = $_POST['username']; but it isn´t well..
If I write in php page with dirname: echo "$user"; it don´t write anything.
Thank you.
Regards
Joca
Comment