| 
	
 | 
 Posted by juglesh on 06/14/24 11:31 
Malcolm Dew-Jones wrote: 
> juglesh (jugleshjunk@hotmail.com) wrote: 
> 
> : Oli Filth wrote: 
> : > juglesh said the following on 06/11/2005 18:28: 
> : > > hello, here is my dir structure: 
> : > > 
> : > > /private 
> : > >     mainaction.php 
> : > >     img.jpg 
> : > > 
> : > > /public_html 
> : > >     index.php 
> : > > 
> : > > in index.php, I include mainaction.php.  In mainaction.php, i want to 
> : > > have 
> : > > <img src='<?php insertImageHere ?>' >  and have img.jpg show in 
> : > > index.php. 
> : > 
> : > If the image file is in a private directory, it can't be accessed by the 
> : > outside world, hence it can't be seen in a browser... 
> 
> : not directly, no, but can i do some thing with header() etc.? 
> 
> No. 
 
or with some file_get_contents thing.  For instance, you can turn an 
image into a string of text and spit it out.  Not sure how compatible 
this is. 
 
> The file must be in an accessible place. 
> 
> You mentioned having a public directory with links to the "real" copy of 
> each "private" file.  That technique would work. 
 
Yeah, I'm just going with serving the images and .js from a public dir. 
 The css I couldnt make work with FF, @import worked fine with IE.  I'm 
just echoing the css straight to the page now. 
 
--  
thanks all! 
juglesh
 
  
Navigation:
[Reply to this message] 
 |