![]() ![]() Which is true, except for when I want different directories! I was advised to look into php includes on another forum as they said it would definitely be easier for what I wanetd to do. I've only ever done HTML sites in the past and issues like this never came up. I'm certainly not a programmer and most of what I've read in this thread goes right over my head. I'm sorry, but I'm not quite following what you're both saying here. This post has been edited by GeeDave: Sep 22 2008, 07:56 PM I hope to god i'm missing something simple here. Why!?Īll the pages on the root level can be found here, in full working order:Īnd then the /tutorials directory, which is just not having any of it. On the root level it works fine, but when I go into "tutorials/rigchar1.php", for some reason, it adds the "tutorials/" directory onto all of my links. There's also the issue of my navigation getting all screwy. ![]() See image for what I'm trying to say:Īs you can see, "./header.php" is telling this file to look up a directory and find it, which it does, as it's able to find the table and image from "header.php", it's just refusing to show the image itself. And even though it finds these include files, it is not displaying them correctly. "rigchar1.php" also uses the same includes as the pages on the root. "tutorials.php" on the root, which includes "header.php", which is also on the root.īut I need "tutorials.php" to point to > "tutorials/rigchar1.php"Īnd this is where I get a headache. php pages, the only real php I'm using is the include function. But now I need to make a new directory in the root folder called "tutorials", and in this directory for the moment is just a single "rigchar1.php" file. On the root level, I have a few pages including my includes, all works just fine and dandy. Heya folks, seems I'm having the same (or a similar) problem to that which is described here. * Well, there is a chance, but it would be a bug, not a feature as in CSS. Second, this is not CSS: if include "fred.txt" works ok, there is no chance* that it will suddenly stop working when you write include "././fred.txt" or whatever. ![]() It doesn't depend on other people's configurations. If you test your program and it works, that's the end. However, I'm unclear why you are that bothered about this.įirst, this is a server programming language. and it's likely that omitting the space before the first left bracket ( will also be interpreted as intended. Since in general if X is an expression, (X) is also another expression, it cannot be wrong to write: Where X is an expression that evaluates to a string, and might be a constant string, or any other of the following: Well, the PHP manual is slightly flaky, in that it calls "include" a function, and writes it as "include()", but it's fairly clear the standard syntax is Sorry for the typo, the two possible combinations should be: This post has been edited by nWo Sting: Apr 14 2007, 07:12 PM htaccess file but I cannot get the includes to work unless they are in the same exact directory. ![]() Do php includes work in reverse order or something? Or maybe its something with my. So Basically everything under the "s" directory will not show the include codes. See I thought that code should work because the "inc" directory with header.php is located inside the "flash" directory. So the php page located under the S directory will not show the include codes once I moved the "inc" directory up one, even after I changed my inc code to *flash directory (and inside the flash directory are.) I moved the "inc" directory out from inside the "s" directory so that both are under the "flash" directory. However I want to make several directories, and I want the "inc" folder to stay under "flash". Now I have a php page under the "s" test directory, and the includes do show up as long as I have the directory titled "inc" located inside of the "s" folder/directory. Now I made a few test directories, one of them is just the letter S, however the "s" directory is inside of a directory titled "flash". I am using this as a test code keeping all the include files under the "inc" directory. Thanks, I tried that and it is not working. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |