Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8623
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Include file in localhost |
| Date | 2013-03-10 11:40 +0000 |
| Organization | albasani.net |
| Message-ID | <khhret$5mo$2@news.albasani.net> (permalink) |
| References | <083528a4-0753-40f7-9f74-74056bf0c019@googlegroups.com> |
On 10/03/13 02:16, huynhtoan.it@gmail.com wrote:
> My project(Mysite) have some folder and file as
> .folderA
> + a.php
> + b.php
> .folderB
> + c.php
> .folderC
> .folder D
> + d.php
> index.php
> ................
> when I want to include file a.php in index.php, I have code
> include("folderA/a.php")->I know
>
> when I want to include file a.php in d.php and link to index.php, my code must like
> include(../../folderA/a.php)
> <a href="../../index.php">ex</a>-> It's ok.
>
> But when I have include file d.php in c.php, I have an error:
its should be
include('../folderC/folderD/d.php');
> a href link to another directory in my warm because a href is ../../index.php
> I try to a href("/Mysite/index.php") But my address in google Chrome is http://localhost/Mysite/folderC/folderD/localhost/Mysite/index.php -> it's wrong
> Can You give me a method to correct it??
>
>
--
Ineptocracy
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Include file in localhost huynhtoan.it@gmail.com - 2013-03-09 18:16 -0800 Re: Include file in localhost Jerry Stuckle <jstucklex@attglobal.net> - 2013-03-09 23:05 -0500 Re: Include file in localhost Denis McMahon <denismfmcmahon@gmail.com> - 2013-03-10 04:09 +0000 Re: Include file in localhost The Natural Philosopher <tnp@invalid.invalid> - 2013-03-10 11:40 +0000 Re: Include file in localhost "J.O. Aho" <user@example.net> - 2013-03-10 15:15 +0100 Re: Include file in localhost "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-03-11 09:56 +0100 Re: Include file in localhost LômCôm Toàn <huynhtoan.it@gmail.com> - 2013-04-14 18:41 -0700
csiph-web