|
|||
|
image in another home folder
Hi, I am wondering how can i use an image path outside the customers home account.
For example /home/jbn/public_html/ - with an index.php And in /home/system/mall/test/ is test.jpg In my index.php I have an image I want to show that is in the another home folder - system. I´m trying this: ./../../../system/mall/test/test.jpg - doesn´t work. /home/system/mall/test/test.jpg - doesn´t work.. If I include a file I use php include - /home/system/mall/test/test.php - and thats work. How can i show my image on my index file ? |
|
|||
|
Are you trying to use a url with those? Apache is not serving anything outside of public_html directly to the web. Includes are different, php is grabbing extra files. If you are doing actual urls though, it has to be in the web root.
If you really want to do it you could try sym-links, depending on your setup that should work.
__________________
John W Security and general linux how-to's w w w . t o t a l s e r v e r s o l u t i o n s . c o m Tss -- Live Support! Tweaking, Securing, 24x7 Service Monitoring, Monthly Management, Migrations, Restores, Optimization, Consulting English And Spanish Support! We do it all @ TotalServerSolutions |
|
|||
|
Quote:
|
|
|||
|
include problem
I move my templates(mall) folder tol public_html and now I get a problem with including files, how can I fix the permissions ?
Warning: include(/home/system/public_html/mall/siteadmin/bluerange/index.php) [function.include]: failed to open stream: Permission denied in /home/jbn/public_html/siteadmin2/home/index.php on line 7 Warning: include() [function.include]: Failed opening '/home/system/public_html/mall/siteadmin/bluerange/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jbn/public_html/siteadmin2/home/index.php on line 7 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Account copy, move everything but home folder? | Karabaja | cPanel and WHM Discussions | 4 | 06-08-2009 08:47 PM |
| Linking an account to a home folder | vbtweb | cPanel and WHM Discussions | 2 | 06-06-2009 03:22 AM |
| Multiple Domains, Multi IP's, One Account, One Home Folder | Stuff4Toys | cPanel and WHM Discussions | 3 | 01-29-2009 12:18 PM |
| Home folder problem | shayanz | cPanel Newbies | 4 | 09-25-2008 03:19 PM |
| Orphan perl588installer folder in home dir? | Kent Brockman | cPanel and WHM Discussions | 6 | 07-02-2008 11:10 AM |