PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
How do I set a relative path ? This code will only work if there exists a directory D:\xxx and I got permission to write to that directory. When I upload to a linux server (possibly shared) then I wouldnt know the full path.
any path in any function call in PHP default to where the script is run from (directory). So if your running the script from C:/path/to script.php, then the cookie file will be at C:/path/cookie_file_name.extension. If you want to put it in it own directory then you could do this...
any path in any function call in PHP default to where the script is run from (directory). So if your running the script from C:/path/to script.php, then the cookie file will be at C:/path/cookie_file_name.extension.
It doesnt seem so.
My Apache is in C:\Program Files\Apache Group\Apache 2\ and my htdocs is in D:\
When not giving the absolute path, cookie.txt is getting stored in C:\Program Files\Apache Group\Apache 2\ and not the D:\htdocs\xxx which is where my curl script is running.