|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
include(); Function: Dont Understand
I am reading a book on php/mysql, and I noticed that when the author used the include function it looked like this:
I don't understand why there is a dot and a slash placed before the file name (i.e ./file.php). Is there something special that happens when you do this or what? |
|
#2
|
|||||
|
|||||
|
RE: include(); Function: Dont Understand
in the few minutes i have available, i wasn't able to find you a perfect link.
here's a close one link basically, ./ means "everything in this current directory" (see just . at the url i gave you) the syntax of include() is very flexible you could also do php Code:
the only minor difference is that if you just type instead of then php will look in your entire include path instead of only looking in the current directory (usually the current directory is part of your include path) i hope that wasn't too confusing. gtg! --brewthatistrue |
|
#3
|
|||
|
|||
|
RE: include(); Function: Dont Understand
Thanks Dude.
|
|
#4
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'General Chat' by CodeKadiya.
Reason: Not a coding problem - General Help |
|
#5
|
|||
|
|||
|
RE: Message Moved
Quote:
php help? anyway, how can i edit the post i made while not logged in? |
|
#6
|
|||
|
|||
|
RE: include(); Function: Dont Understand
You cannot do it.. Simply you can't edit Anonymous posts. It's obvious I suppose!
|
![]() |
| Viewing: Codewalkers Forums > General > General Chat > include(); Function: Dont Understand |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|