note 74096 added to function.pathinfo
| From: | php-general at lists dot php dot net | Date: | Sat, 24 Mar 2007 05:20:06 +0000 |
| Subject: | note 74096 added to function.pathinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124771@lists.php.net to get a copy of this message | ||
how do i concatenate strings sent from a normal html to my php, where by the format sud be like
this:
"$day $month.txt"
and i want to concatenate this file name to its directory so that the file can be searched and
displayed.
and the full path of the files sud be like this:
"$DOCUMENT_ROOT/Report/$day $month.txt"
i.e. "$DOCUMENT_ROOT/Report/1 JAN.txt"
can anyone help me on modifying da following code into the correct code?
$day.= " ";
$day.= $month;
$day.= ".log";
chdir('Report');
$directory = getcwd();
$file = $directory. $day;
btw, how to concatenate "\" into da directory?
HELP PLZ!!! Thx
----
Server IP: 64.71.164.2
Probable Submitter: 219.95.228.60
----
Manual Page -- http://www.php.net/manual/en/function.pathinfo.php
Edit -- https://master.php.net/note/edit/74096
Del: integrated -- https://master.php.net/note/delete/74096/integrated
Del: useless -- https://master.php.net/note/delete/74096/useless
Del: bad code -- https://master.php.net/note/delete/74096/bad+code
Del: spam -- https://master.php.net/note/delete/74096/spam
Del: non-english -- https://master.php.net/note/delete/74096/non-english
Del: in docs -- https://master.php.net/note/delete/74096/in+docs
Del: other reasons-- https://master.php.net/note/delete/74096
Reject -- https://master.php.net/note/reject/74096
Search -- https://master.php.net/manage/user-notes.php