SYMLINK(3) 1 SYMLINK(3)symlink - Creates a symbolic linkSYNOPSIS
bool symlink (string $target, string $link)
DESCRIPTION symlink(3) creates a symbolic link to the existing $target with the specified name $link.
PARAMETERS
o $target
- Target of the link.
o $link
- The link name.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | This function is now available on Windows plat- |
| | forms (Vista, Server 2008 or greater). |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
Create a symbolic link
<?php
$target = 'uploads.php';
$link = 'uploads';
symlink($target, $link);
echo readlink($link);
?>
NOTES
Note
Windows users should note that this function will only work if the system you run PHP from is Windows Vista/Windows Server 2008 or
newer. Windows versions prior to that do not support symbolic links.
SEE ALSO link(3), readlink(3), linkinfo(3).
PHP Documentation Group SYMLINK(3)
Check Out this Related Man Page
LINKINFO(3) 1 LINKINFO(3)linkinfo - Gets information about a linkSYNOPSIS
int linkinfo (string $path)
DESCRIPTION
Gets information about a link.
This function is used to verify if a link (pointed to by $path) really exists (using the same method as the S_ISLNK macro defined in
stat.h).
PARAMETERS
o $path
- Path to the link.
RETURN VALUES linkinfo(3) returns the st_dev field of the Unix C stat structure returned by the lstat system call. Returns 0 or FALSE in case of error.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | This function is now available on Windows plat- |
| | forms (Vista, Server 2008 or greater). |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
linkinfo(3) example
<?php
echo linkinfo('/vmlinuz'); // 835
?>
SEE ALSO symlink(3), link(3), readlink(3).
PHP Documentation Group LINKINFO(3)
hi all,
I am trying to ftp and get some symbolic link file as it is instead of getting whatever it is pointing at. Is it do-able?
Thx in advance. (11 Replies)
As I read the source code of unix I wonder where u_ofile(it should be stdout) link to ?
Does it link to a file structure like ordinary files? :confused: (7 Replies)
Any idea how to create a symbolic link...for example i want to create a symbolink link for a specific user in his profile to use the df command...?
Thanks in advance (9 Replies)
Hi,
Can someone let me know the detail procedure for configuring NTP in Solaris/Windows/Linux environment....???
I would like to use any NTP Server on Windows Server & rest of the systems running with Solaris 10/9 & Linux be as NTP Client. All NTP Client should take the time from NTP Server... (8 Replies)
I'd like to know if it's possible to run Windows "inside" a Linux-like OS similar to how you can run Linux in Windows, rather than dual-booting them both. As I mentioned in an earlier post, I want to do some serious parallel computing which Windows isn't even capable of at the moment... But I'd... (6 Replies)
Hello,
I need to implement a locking system in C. My problem is how to make the check if the lock file exist and locking it atomic operation.
I want to make something like this:
FILE* lock_fname;
lock_fname = fopen ( "file.lock", "r");
/*check if file exsists*/
if (lock_fname)
{
fclose... (7 Replies)
ls -l shows the number of links for each file. Is there a command that will show the link sources for a specific file? Running find on the entire filesystem and doing a little Perl "magic" is the only method I'm aware of. I'm running SunOS 5.8.
Thanks. (6 Replies)
Does anyone know how can I determine which user is UPLOADING via http protocol? Like sending video on youtube?
Or maybe how to throttle multimedia uploads ? Or any uploads?
maybe get packet size? (9 Replies)
Hello,
I've been using AIX cifs to mount windows XP shares with no problems till now.
Now it's Windows Server 2008 R2 - no go:
mount -v cifs -n host1/user1/pass1 /share1 /mountpt1
There was an error connecting the share or the server.
Make sure the lsdev command shows that device nsmb0 is in... (6 Replies)
Hi all,
Can anyone please confirm if the command below is the only way that I can get what the symbolic link is set to?
mnlxd110(oracle)/db/posd2/dba$: ls -l | grep "^l"
lrwxrwxrwx 1 oracle dba 28 Aug 9 2011 bdump -> diag/rdbms/posp1/posp1/trace
mnlxd110(oracle)/db/posd2/dba$:... (7 Replies)
My grep returns a row of data like this:
75=20130130;60=074338;61=985;511=55473883;452=115439;62=196;267=1;
Is there a way for the grep to only return 60="something" and 511="something" ?
Thanks in advance. (10 Replies)
Hi All,
Is there any way to create a symlink that will point to last 1000 line of a log file. My symlink will always point to "tail -1000 logfile".
This can be achieved by writing a script and scheduling with high frequency, but I am looking for some other alternatives.
Please let me know... (8 Replies)
Hi Folks -
I need to mount a Windows Share to a Linux server. What is the best/easiest way to do this?
Is this 'how-to' guide accurate:
How to Share Files Between Windows and Linux
Or is there a better method you could share?
Thanks! (8 Replies)