LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-24-2011, 08:12 AM   #1
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Rep: Reputation: Disabled
How to use Symbolic file and use in php


Hi everybody, I'm working for some PHP stuff right now, and I'm having a bit problem..

Is it possible to use symbolic file in PHP?..

my template is located at /public_html/templates/template_name
and there is a file named config, which is a symbolic file point to
/public_html/temp_config/template_name/config

and in my root directory, I have a sub folder named conflicker, it is also a website and the template for conflicker is point to /public_html/templates/template_name as symbolic link

it's a bit confusing, but my problem is PHP is not reading the config which is a symbolic file as a physical file..

I hope you understand my question.

Thanks,
Eric
 
Old 11-24-2011, 06:20 PM   #2
goodhombre
Member
 
Registered: Mar 2010
Location: Ungheni, Rep. Moldova
Distribution: Ubuntu
Posts: 82

Rep: Reputation: 20
Hi,

Please check FollowSymLinks apache option .

http://www.maxi-pedia.com/FollowSymLinks
 
Old 11-24-2011, 11:40 PM   #3
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by goodhombre View Post
Hi,

Please check FollowSymLinks apache option .

http://www.maxi-pedia.com/FollowSymLinks
Thank you sir for the reply..I already change my .htaccess and its don't read my symbolic file as a physical file..

Is there any special function for PHP that use to read a symbolic link as a physical file..?
 
Old 11-25-2011, 04:23 AM   #4
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
Ohh..sorry..the symbolic link is really work..it reads the symbolic file as physical file..
but I still had a problem about the MAGIC that i need to go through..

Here is my directories structure:

/* Note: config is a file */

public_html/conflicker
->temp_config/myTemplate/config
->templates /* <- this is a symbolic link point to templates folder on the root directory */

public_html/templates/myTemplate/

public_html/temp_config/myTemplate/config

Now here's the tricky part, if I go to public_html/conflicker/templates/myTemplate/
and create a symbolic link point to the config file 2 directories down..meaning
public_html/conflicker/temp_config/myTemplate/config.

The result is the OS read the public_html/temp_config/myTemplate/config instead of
public_html/conflicker/temp_config/myTemplate/config

Is there a way to forece the OS to read the config file
base on the path where it comes to read.

It is quite confusing, but it would be so cool if this idea will work.

Please help, Thanks
Eric
 
Old 11-27-2011, 08:58 AM   #5
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Original Poster
Rep: Reputation: Disabled
Please help..
 
  


Reply


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 not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find file and create a symbolic link dragos19 Linux - Newbie 4 03-25-2008 12:41 AM
how does file dependencies work with symbolic linking? bulletck Linux - Newbie 1 12-23-2005 09:22 PM
How to find all symbolic links pointing to a particular file? Akhran Linux - Newbie 5 11-19-2005 06:25 AM
Checking whether a file is symbolic link or not rajesh_b Programming 3 01-06-2005 10:07 AM
Executing PHP symbolic link file from site ricocali Linux - General 6 11-22-2002 10:00 PM


All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration