Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

the difference between ./ and none?

Status
Not open for further replies.

DaRNCaT

Technical User
Dec 18, 2002
566
0
0
NZ
I've redesigned a site, and at the moment the redesign is sitting in a sub folder waiting to go live.
Some of the include files are linked

<?php include("./includes/header.html"); ?>

and some are

<?php include("includes/header.html"); ?>

the includes folder is in the sub folder and both types seem to work fine, but I'm worried that once the pages are moved from the sub folder to the root directory, that the difference may cause problems.

Can anyone tell me what the difference is?

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
If your include_path path has ".:" at a minimum

<?php include("includes/header.html"); ?>

should be fine. If you override your include path or get rid of the current directory portion(the dot ".") then you must use the other.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top