|
| Author |
Message |
|
Lewis
|
Post subject: Posted: Sun Apr 08, 2007 5:36 am |
| Lieutenant General |
 |
Joined: Thu Aug 17, 2006 2:39 am Posts: 582 Location: Easton / New London CT
|
|
Ok, well tonight I decided to change the SM structure to one of directories rather than a flat root. Files would go in their related places instead of all being lumped in the root directory. I should have done that when I first started, but better now than later when there's more files. I use php-based includes, which are very picky about how you call them. I thought I could just call my 6 backend files using absolute URLs, which would solve the problem of directories breaking the relative ones. Well no, they failed and said I couldn't do that. So instead of 6, I'm now referencing 72, 6 files per each of the 12 directories so far. It's plain retarded.
How do you get php includes to reference one file in the root directory from another directory? It's obviously possible because others have done it.
My second huge headache has been revalidating every page against XHTML 1.0 Strict. One of the pages had 21 errors, all stemming from a single extra <p> tag.
Happy Easter, and may your lives be far less complicated and stressful than mine. :blink:
_________________

September 10th 2003 - August 21st 2007 RIP RM Personal 2004-2007 record: 15-2-5
|
|
|
|
 |
|
CA99
|
Post subject: Posted: Sun Apr 08, 2007 2:50 pm |
| Major |
 |
Joined: Sat Sep 09, 2006 9:08 pm Posts: 132 Location: MI
|
|
Sound's awful. Don't know much about this stuff, but sounds like quite a pain; hope you can get this fixed.
_________________ Teams, Armory, Local Water Warfare, etc. HydroBrawl Water Warfare.
|
|
|
|
 |
|
isoaker-com
|
Post subject: Posted: Sun Apr 08, 2007 2:57 pm |
Joined: Thu Aug 17, 2006 4:54 pm Posts: 427 Location: Here
|
|
I don't use PHP, but would like to try to help. I'm curious about the syntax used to call files. Doesn't sourcing a file using something similar to: src="../filename.html" work to call in a file in a directory up one level?
As for re-validating things for Strict... can't help there. I'm lazy and would use Dreamweaver to help me find code aberrations, but that'd still need to be done for every page. On the bright side, Dreamweaver does highlight unclosed tags and will spit out a report in terms of compatibility for different HTML doc-types.
B)
_________________ Leave NO one dry! - iSoaker.com
|
|
|
|
 |
|
forestfighter7
|
Post subject: Posted: Sun Apr 08, 2007 4:25 pm |
Joined: Sat Sep 09, 2006 6:30 pm Posts: 101 Location: Santa Cruz CA
|
C-A_99 post Today, 08:50 AM <!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Sound's awful. Don't know much about this stuff, but sounds like quite a pain; hope you can get this fixed.<!--QuoteEnd--></div><!--QuoteEEnd--> Yeah, I'm pretty much on that same level... I hope you can fix it up. 
Last edited by forestfighter7 on Sun Apr 08, 2007 4:29 pm, edited 1 time in total.
_________________ If you would like to join the S.W.A.T(Superior Water Attack Team) Please pm me. We are in CA.
|
|
|
|
 |
|
btrettel
|
Post subject: Posted: Sun Apr 08, 2007 5:10 pm |
Joined: Sun Aug 20, 2006 3:23 pm Posts: 208
|
|
DX, you have to use "../" to move back a directory when calling the files. You also could rewrite the script to detect where it is in relation to the files that need to be called, but that might be a little too complicated.
Also, I would not worry about validation very much. Just make sure there are no huge errors and that the page displays well in all popular browers. Validating is a plus, but it should not be a requirement as to impede website development.
Last edited by btrettel on Sun Apr 08, 2007 5:11 pm, edited 1 time in total.
_________________ Formerly Ben. Now btrettel.
|
|
|
|
 |
|
Silence
|
Post subject: Posted: Sun Apr 08, 2007 5:52 pm |
Joined: Thu Aug 17, 2006 6:07 pm Posts: 796 Location: Virginia. Ugh.
|
|
Or ".../" to go up two levels, "..../" to go up three, etc. Or so I should think.
Hope all goes well now. Did you start on the 72 files to reference? Or did you just copy and paste the 6 basic ones?
_________________ Forum rules
|
|
|
|
 |
|
btrettel
|
Post subject: Posted: Sun Apr 08, 2007 8:18 pm |
Joined: Sun Aug 20, 2006 3:23 pm Posts: 208
|
You can't go back two or more directories that way. You have to use "../../" to go back two directories, and "../../../" to go back three. 
_________________ Formerly Ben. Now btrettel.
|
|
|
|
 |
|
Silence
|
Post subject: Posted: Sun Apr 08, 2007 8:22 pm |
Joined: Thu Aug 17, 2006 6:07 pm Posts: 796 Location: Virginia. Ugh.
|
|
Oh, sorry then. I think some other interfaces and languages allow for that, but I guess php doesn't.
_________________ Forum rules
|
|
|
|
 |
|
|