It is currently Mon Sep 06, 2010 8:32 am

All times are UTC [ DST ]




 Page 1 of 1 [ 9 posts ] 
Author Message
 Post subject:
PostPosted: Sun Apr 08, 2007 5:36 am 
Lieutenant General
User avatar

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:



_________________
Image

September 10th 2003 - August 21st 2007 RIP RM
Personal 2004-2007 record: 15-2-5
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 2:50 pm 
Major
User avatar

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.
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 2:57 pm 
Major General

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
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 4:25 pm 
Major

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. :o


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.
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 5:10 pm 
Brigadier General

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.
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 5:52 pm 
Lieutenant General

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
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 8:18 pm 
Brigadier General

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.
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 8:22 pm 
Lieutenant General

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
Offline
 Profile  
 
 Post subject:
PostPosted: Sun Apr 08, 2007 9:54 pm 
Lieutenant General
User avatar

Joined: Thu Aug 17, 2006 2:39 am
Posts: 582
Location: Easton / New London CT
Thanks, let's see if this will work out...



_________________
Image

September 10th 2003 - August 21st 2007 RIP RM
Personal 2004-2007 record: 15-2-5
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Water Warfare skin developed by: Robert Lewis Webbe
Powered by phpBB [and water of course] © 2009 phpBB Group

phpBB SEO