Site Admin
|
seems this discussion is more about theory than practice. Let's consider the followin simple example. I suppose you know php quite well so you'll guess what path will be printed.
create a.php in the root directory of the disk C:\ with the following content:
create directory "include" in c:\ and create file b.php in it (its full path will be c:\include\b.php) and its content should be like below:
now create one more "include" subdirectory within the "include" just created and file c.php in it (its full will be c:\include\include\c.php) and its content should be like below:
and finally create a copy of c.php one level upper (c:\include\c.php) then try to run a.php with any php engine you have. then add a function call to a.php before the include:
and give it one more try. |
||||||||||||||||||||
_________________ The PHP IDE team |
|
hi Dimitri,
Just to clarify my point a little more and make sure there is no confusion: I am talking specifically about the "Open at Cursor" feature. When ever I right click on a require statement and choose "Open file at cursor" I am often finding phped is opening the wrong file. I have done this test in dreamweaver many times and dreamweaver always gets the correct file but phped doesnt. I honestly can't see what chaining includes has to do with opening file at cursor since I have no intention of opening the great great great grandchild of a.php by "Open file at cursor". It is my intent to only get at the immediate file. And as I stated before, dreamweaver does that correctly. Before I upgraded to phped's latest version and installed on windows vista, I believe that this problem never existed. After the upgrade and vista install, I am findng myself Opening a file at the cursor, editing it, uploading it, then running it in my browser and wondering why the heck my changes are not taking. Well it is simple. Phped is opening the wrong files. If it finds two files with the same name, then open file at cursor wont open the immediate one. Perhaps it will if the the immediate file is listed higher in the alpha numeric order as was demonstrated in one of my examples. Jeff |
||||||||||||
|
[resolved] open file at cursor |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by