-
How can I get the file relative path?
The title says it.
Thanks!
Why It Doesn't Work?! 
-
"the file"?
What file?
realtive to what? the current php script or some other file?
...
-
The current file
Why It Doesn't Work?! 
-
-
You can also try
$full_path = realpath('some_valid_file.ext') . '/';
OR
$dir = dirname(__FILE__) . '/';
Matt
-
Many thanks, I knew that but I forgot it. It's exactly what I am looking for.
Why It Doesn't Work?! 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks