Re: menu andfolder question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this is how i solved my issue :-)

On Jan 5, 2008 4:28 PM, jeffry s <paragasu@xxxxxxxxx> wrote:

>
>
> On Jan 5, 2008 7:36 PM, Alain Roger <raf.news@xxxxxxxxx> wrote:
>
> > ok, maybe i did not write my question well.
> > i already used it because i setup the DirectoryIndex to index.php,
> > index.html
> >
> > my concern for now, how to have the same behavior on my local computer
> > (development computer) ?
> > my computer has IP 200.170.1.2 (for example)
> > so in my brower i type : 200.170.1.2/myWebSite
> >
> > this load my firt index.php webpage to browser... if i pass my mouse
> > cursor
> > over menu link "Company", it displays
> > http://200.170.1.2/myWebSite/200.170.1.2/company
> > which is not great :-(
> >
> > here is the code i use :
> > print "<div class='MenuItem4'><a
> > href='".$_SERVER['SERVER_NAME']."/company'>Company</a></div>";
> >
> > thanks for help.
> >
> > A.
> >
> > On Jan 5, 2008 12:29 PM, chris smith <dmagick@xxxxxxxxx> wrote:
> >
> > > On Jan 5, 2008 10:23 PM, Alain Roger <raf.news@xxxxxxxxx> wrote:
> > > > Hi,
> > > >
> > > > Serveral web sites have a menu and when you pass your mouse over a
> > link,
> > > the
> > > > browser statusbar only shows the folder where is located the file
> > link,
> > > not
> > > > the complete address including the file link.
> > > >
> > > > i mean if you take web site : http://www.zend.com/en/
> > > > when you pass your mouse cursor over "Company" link, it displays
> > only :
> > > "
> > > > http://www.zend.com/en/company"; in the statusbar of your browser.
> > > > how is it possible whereas the link points to "company/index.htm" ?
> > >
> > > In that example the link takes you to http://www.zend.com/en/company/
> > > - not http://www.zend.com/en/company/index.htm
> > >
> > > index.htm is the default file it looks for based on apache config.
> > >
> > > See http://httpd.apache.org/docs/2.2/mod/mod_dir.html for more info.
> > > You can set it to whatever you like, but as a rule apache uses
> > > index.html or index.htm or index.php and asp/asp.net uses default.asp
> > > or default.aspx.
> > >
> > > --
> > > Postgresql & php tutorials
> > > http://www.designmagick.com/
> > >
> >
> >
> >
> > --
> > Alain
> > ------------------------------------
> > Windows XP SP2
> > PostgreSQL 8.2.4 / MS SQL server 2005
> > Apache 2.2.4
> > PHP 5.2.4
> > C# 2005-2008
> >
>
> omg.. i don't know someone will care enough to ask something like this..
> if you want the status bar to display the index.htm or index.php
> simply write the index.php or index.html in the link
>
> for example instead of this
>
> print "<div class='MenuItem4'><a
> href='".$_SERVER['SERVER_NAME' ]."/company'>Company</a></div>";
>
> do it like this
>
> print "<div class='MenuItem4'><a
> href='".$_SERVER['SERVER_NAME']."/company/index.htm'>Company</a></div>";
>
> the taskbar will display the whole link in href when you point the mouse
> over that link,.
>
>


-- 
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux