Forum Moderators: coopster

Message Too Old, No Replies

Link to a directory from php

Link to a directory from php

         

aff_dan

4:57 pm on May 24, 2005 (gmt 0)

10+ Year Member



Hi Sirs,

I have a problem with the php code:

echo "<a href='".str_replace(' ', '-',ucwords($s[$i])).".html'>".ucwords($s[$i]).'</a><br>';

I want to add

../Directory/

to that php code, like in html

<a href="../OneArticles/">Directory</a></body>

How to do the same thing to that php code?

Any help please?

Regards,
Dan Oproiu

jatar_k

5:23 pm on May 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if you just want that link to say Directory then this way

echo "<a href='".str_replace(' ', '-',ucwords($s[$i])).".html'>Directory</a><br>';