#1 (permalink)  
Old 07-04-2009, 03:22 PM
Registered User
 
Join Date: Jun 2009
Posts: 3
jbnmedia is on a distinguished road
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 ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-04-2009, 08:04 PM
cPanel Partner NOC
 
Join Date: Mar 2003
Location: Washington DC
Posts: 638
eth00 is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-05-2009, 05:26 AM
Registered User
 
Join Date: Jun 2009
Posts: 3
jbnmedia is on a distinguished road
Quote:
Originally Posted by eth00 View Post
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.
What is sym-links and how do I do that ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-05-2009, 01:44 PM
Registered User
 
Join Date: Jun 2009
Posts: 3
jbnmedia is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-05-2009, 10:48 PM
Senior Member
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,535
Spiral is on a distinguished road
jbnmedia, the error message you just quoted says the scripts are trying to
call include files located in the original path where you moved the files from
instead of the new location where you moved them.

Since you moved the files, you will need to update the scripts that are
broken (shown in the error messages you quoted) and replace the old path
locations in those files with the new location.
__________________
[b][color="Blue"]Server Support[/color]: [color="Red"]Server consulting, security, and management![/color][/b]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


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


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


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc