ID: 48975
User updated by: celkaprog at gmail dot com
Reported By: celkaprog at gmail dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows 7
PHP Version: 5.3.0
Assigned To: pajoye
New Comment:
That was my first step to change the order.
Now I changed and still:
Warning: symlink() [function.symlink]: Could not fetch file
information(error 3) in E:\\foo\bar\tree_copy.php on line 148
Here is the code what is executing:
symlink('../../images/cms/original/1.jpg','../../images/cms/original/12.jpg');
../images/cms/original/1.jpg is exists,but 12.jpg is not created.
Previous Comments:
------------------------------------------------------------------------
[2009-07-19 13:55:30] celkaprog at gmail dot com
I logined into the administrator account.
Started apache+php.
But the problem is the same.
I opened a command prompt.
e:\foo\bar>mklink 5.jpg 1.jpg
then 5.jpg created and i can view with irfanview.
e:\anything\something>mklink "../../foo/bar/5.jpg"
"../../foo/bar/1.jpg"
(without " it says invalad parameter: --)
then 6.jpg created and I cannot open it with irfanview and cannot see
it's content(Total commander Lister(F3))
Interesting.
------------------------------------------------------------------------
[2009-07-19 13:46:12] [email protected]
Doh, I misread your code. Please read again the doc about symlink, the
arguments in your code are in the wrong order (then the error is
actually clear).
------------------------------------------------------------------------
[2009-07-19 13:35:09] celkaprog at gmail dot com
Soory I mistaken the eleveted word.
It's running with admin rights.(right click run as administrator.).
The problem is not solved.
I'll try to run as different user (Administrator) but I don't think
that it will be good with that because this account is a member of
administrators group.
------------------------------------------------------------------------
[2009-07-19 11:27:59] [email protected]
You have to be under an elevated user to create links (not a php
restriction, but the underlying API/Function). You can try it using the
console as well.
------------------------------------------------------------------------
[2009-07-19 11:22:27] celkaprog at gmail dot com
No,it's running with my account.No service.I can write that folder with
php (file upload is working too there).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/48975
--
Edit this bug report at http://bugs.php.net/?id=48975&edit=1