Click to See Complete Forum and Search --> : HowTo... different folder


malliques
03-24-2001, 07:00 PM
Hi everyone!
I'm newbee in php and mysql and I have a one question:
- how to make desirable directory to be 'viewed' by Apache and PHP (ie. c:\www)

I installed NuSphere Web server (Apache 1.3, PHP4, MySQL Server +perl,cgi,...). What shall I do to make it work for me as I want to?

tia
Ian

malliques
03-25-2001, 05:55 PM
Hi Everyone!
I would like to rearrange my question.

As I mentioned, I run NuSphere Web server under Windows2000 and it works just fine, but...

Everynow and then I see something like 'link from database'.What does it mean? I mean is it: in a table links.links I have a field href which contains links to pages of my site; can I put them in a ordinary href tag with smth like:
...
$link = select href from links;
...
<a href="<?php $link ?>">link</a>
...

or am I wrong?

I need help!!!

tia
Ian

veggie2u
03-26-2001, 12:36 AM
Sure you can, but you will need to make the href statement look exactly like HTML.

eg <a href="links/file1.html">File 1</a>

$file = "links/file1.html"
<a href="<?php echo $file ?>">File 1</a>

The above will do the same thing.

veggie2u