Jump to content

symlink with php but I get this error: No such file or directory in


Recommended Posts

Posted

Hello,

 

I wanted to create a symlink using php, but I have this error: No such file or directory in /home/scvroinh/public_html/jobeet/createsymlinks.php

 

<?php
$target1 = '/home/scvroinh/public_html/scvroin/jobeet/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/web/';
$link1 = 'sfDoctrinePlugin';
$target1 = '/home/scvroinh/public_html/scvroin/jobeet/plugins/sfFormExtraPlugin/web/';
$link1 = 'sfFormExtraPlugin';
symlink($target1, $link1);
symlink($target2,$link2);
?>

 

I try to see if I could put in great shared host like heliohost, the symfony example: jobeet Jobeet on heliohost and it works except the assets in the admin part: Jobeet Admin at heliohost user and pass: fabien

 

Thank you

Posted

I've never used symlink() but just looking at your code, shouldn't you be defining a variable that says:

 

$target2 and $link2

 

also make sure your paths are correct.

Posted
I've never used symlink() but just looking at your code, shouldn't you be defining a variable that says:

 

$target2 and $link2

 

also make sure your paths are correct.

Thank you very much, now is working as expected.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...