You are here: including image, js, css from private dir « All PHP « IT news, forums, messages
including image, js, css from private dir

Posted by juglesh on 11/06/05 20: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. I need to do this for a .js file and a .css as well. The
js and css I could easily enough just echo it to the page. (but they
would make my page messy while I'm debugging)

the idea is to have everything in the private dir, and have multiple
sites on my server use the code and the images.

now that I type this, I realize that I could set up a central public
site for the img css js, and use absolute links...

hints, ideas, shoves in right directions appreciated,

--
thanks for your time,
juglesh

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация