icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Shared Hosting » Accidently Deleted www in my files

Shared Hosting Questions about your shared hosting account.

Reply
 
LinkBack Thread Tools Search this Thread
Old August 18th, 2008, 5:00 PM   #10 (permalink)
Twist3d One
Super #1
 
Twist3d's Avatar
 
Joined in Dec 2007
Hosted on pass81
1,470 posts
Gave thanks: 23
Thanked 34 times
glad to see you got your problem fixed.
__________________
Pass81

Twist3d is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 18th, 2008, 6:39 PM   #11 (permalink)
Surpass Staff
Comfy Contributor
 
Adam's Avatar
 
Joined in Jun 2008
290 posts
Gave thanks: 8
Thanked 14 times
Quote:
Originally Posted by TJ09 View Post
Create a PHP file with the following (Be sure to substitute your home directory, of course) and place it in public_html

PHP Code:
<?php
$home 
"/home/user";
symlink($home."/public_html",$home."/www");
if(
file_exists($home."/www")) echo "Symlink created.";
?>
Then visit it in your web browser. For example, if you named it symlink.php, then visit http://domain.com/symlink.php . Make sure to remove the php file when you're done.
wow, very informative
__________________
wtb 1x [internet], pst | last.fm twitter flickr
Adam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 7th, 2008, 3:21 AM   #12 (permalink)
Surpass Fan
Excelling Contributor
 
fury's Avatar
 
Joined in Dec 2005
Lives in MN > USA
Hosted on pass84
934 posts
Gave thanks: 45
Thanked 41 times
Quote:
Originally Posted by TJ09 View Post
Create a PHP file with the following (Be sure to substitute your home directory, of course) and place it in public_html

PHP Code:
<?php
$home 
"/home/user";
symlink($home."/public_html",$home."/www");
if(
file_exists($home."/www")) echo "Symlink created.";
?>
Then visit it in your web browser. For example, if you named it symlink.php, then visit http://domain.com/symlink.php . Make sure to remove the php file when you're done.
Does this work for files too? For example, quite a few of my PHP pages have an include() for header.php and footer.php, but I'd like to use different files without editing all the PHP files. Can I create a symlink to the new files?
__________________
fury™ - not helping the situation since 1987
robmonroe.net | | bullsux.com
fury is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On