Php Path help
Posted by: yofu (---.prod-infinitum.com.mx)
Date: September 07, 2007 08:45AM

Hi guys please help I am running wampserver in windows XP, so I have a site where I create a file named left.php where I have links of the site, this file is located in my include folder and the html code is like this:

<a href="<?=$path;?>/about-us/our-mission.php" tabindex="1">Our Mission and Vision</a>
<a href="<?=$path;?>/about-us/trajectory.php" tabindex="2">History</a>

My problem is when I browse locally the page the links are gone. The include file was this <? include("include/innerleft.php"winking smiley; ?> then I changed for this <?php include("include/innerleft.php"winking smiley; ?> and the links appear.

Now my problem is that the links of that panel looks like this:

[localhost]

And I dont know how I can make the link path correct?

can you help?

Cordially

Juan David CaƱas Yofu

Options: ReplyQuote
Re: Php Path help
Posted by: Fedex (83.224.136.---)
Date: September 07, 2007 03:17PM

hi,
try something like
/*-----------------------*/
<a href="<? echo $path;?>/about-us/our-mission.php" tabindex="1">Our Mission and Vision</a>
<a href="<? echo $path;?>/about-us/trajectory.php" tabindex="2">History</a>
/*-----------------------*/

bye ;-)

Options: ReplyQuote
Re: Php Path help
Posted by: Fedex (83.224.136.---)
Date: September 07, 2007 03:20PM

....hhng ,,.....hemmmm
/*-----------------------*/
<a href="<?php echo $path;?>/about-us/our-mission.php" tabindex="1">Our Mission and Vision</a>
<a href="<?php echo $path;?>/about-us/trajectory.php" tabindex="2">History</a>
/*-----------------------*/

rebye ;-)

Options: ReplyQuote
Re: Php Path help
Posted by: yofu (---.prod-infinitum.com.mx)
Date: September 07, 2007 03:33PM

Hi Fedex..

Look I did what you suggest and the link looks like this :

[localhost]

it seems that is not reconognize the path...it should be :

[localhost]

I have a file called config where I have the path

<?
$path="[localhost];;
?>


thanks Fedex

Options: ReplyQuote
Re: Php Path help
Posted by: Fedex (83.224.136.---)
Date: September 07, 2007 03:43PM

hi yofu,
maybe $path is not visible, try <?php echo "path: ".$path ;?>
doyou include "config.inc" ?
......
mmmmh. bye ;-)

Options: ReplyQuote


Sorry, only registered users may post in this forum.