Jump to content

blacklotus

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by blacklotus

  1. Daniel, what's wrong in wanting a stricter, cleaner version of HTML that forces you to write clean code anyways? I went through many sites in the gallery of http://www.cssdrive.com/, most being done by web design firms or professional web developers, and seeing all of the examples I've looked at are using some form of XHTML served as HTML (some using a Transitional DTD, but most using Strict), I would think that it's not such a bad idea to do the same. Just because you can write clean HTML 4.01 code if you put your heart to it, it doesn't mean that XHTML is useless when served as HTML. There's no way of validating HTML code against the same strict rules as XHTML unless you're using some custom DTD document, which won't mean anything to customers. However if you show the "Validated W3C XHTML 1.0" icon in the footer of a web site, then it shows you're following the market and the new standards and are up to date. HTML 4 is old and dirty, XHTML is new, clean, and shiny. I like clean and shiny!
  2. It's all about the conformity and syntax standardization and validation. HTML has a very loose syntax, and that makes it very hard for browsers to display the same things the same way, because each may have their own way of interpreting it. XHTML is meant to be more rigid in that regard, and easier to read by browsers, with only ONE WAY of writing tags and attributes, and a very clear definition of what each tag may contain and not contain, and in what order it should be. For example, each tag has to have a closing tag in XHTML, while in HTML, you "could" omit one and even tough your systax was incorrect, some browsers would still display it correctly. Also, all tags attributes in XHTML must be in lowercase, and attribute values must be enclosed in quotes or double-quotes. In HTML, you could write tags and attributes in uppercase, and obmit quotes if you wanted. You could also write special attributes such as "disabled" alone, without any key in front. (i.e. <input type=text disabled> instead of <input type="text" disabled="disabled" />).
  3. Hi, Your English is not very easy to understand, but from what I grasped, you need help with a project, but are hesitant to share the code so others can see it? Am I right? 10 years seems like a very long time to develop something like this, since PHP came out in 1995 and MySQL in 1998 (publicly), and those were very basic versions of what you get now with the latest releases... Anyway... If you want to share the code under a GPL license, then you wouldn't have any rights to prevent people from copying your code and using it for themselves, it's true, but it's what would probably get you the most help. The other solution would probably be to start your own company and hire programmers and software engineers so you could commercialize your idea. Either way, it's hard to say anything else based on the very little details you provided.
  4. I currently support a very old PHP/MySQL database application meant to manage an inventory of equipment along with a ton of other related information (i.e. support groups, clients, pager schedules, billing information etc...) One of that info is repeating maintenance window schedules per server. Currently, the application only stores the base information of each schedule (effective start date, start time, length, when it runs -- i.e. every day, every xx weekday(s), every month, biweekly, etc...). When we want to display the next windows (from today), we use complex function that calculates the next 3 dates based on the base information of each maintenance window. This works fine, and I managed to make the code efficient enough so that this process is very fast, even though there are several hundreds of schedules to calculate sometimes. The problem is when I want to search for every schedule that would be running on a given date in the future... how can I efficiently do that? For example, I would like to be able to search for a date, and return a calendar showing graphically every schedule (with its length) that would be running on that day. It's easy for me to start from a specific, and extrapolate the next dates, but to do the opposite would be very CPU intensive wouldn't it? So I was wondering how others would do this... Would it simply be best to store each day the recurrence runs into a database table so I can search for a date easily? For example, when I save a repeating schedule's base info, I would immediately insert every occurrence of the schedule into a table for a given period of time (say the next few years), which would take a lot of database space? Or is there an easier way or magical date calculation formula I can use? For example, in Outlook 2003's calendar, you can see repeating schedules for MANY years ahead, and it doesn't seem to have a limit. It can't possibly store each occurrence of the series in its database? So how does it do it?
  5. I FIXED IT! The code I was using was creating an infinite redirect loop. So I added a RewriteCond to exclude the nohotlinking.gif file... It's sad no tutorial I read about mod_rewrite said anything about that problem though... This is my final code: Options +FollowSymlinks # no hot-linking RewriteEngine On RewriteCond %{REQUEST_URI} !nohotlinking.gif$ RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?vortexaviation\.ca/ [NC] RewriteCond %{HTTP_REFERER} !google\. [NC] RewriteCond %{HTTP_REFERER} !search\?q=cache [NC] RewriteRule .*\.(gif|jpg|png)$ http://www.vortexaviation.ca/images/nohotlinking.gif [R,NC]
  6. ...Now it creates an internal server error if I try to open the nohotlinking.gif file directly...
  7. Okay... I'm getting really frustrated with this one and hope someone can help me. I want to prevent hotlinking to images on www.vortexaviation.ca, and for this I'm using mod_rewrite (or at least I'm trying) I have one image I want to use as a hotlink substitute (I want to show this instead of any image an external site would link directly). This is the image: http://www.vortexaviation.ca/images/nohotlinking.gif (If you can see the image below and it's showing a NO HOTLINKING icon, it's working now... if it's broken, is not showing anything or you see a Flightstar logo, I still need help) ---> <--- I read MANY tutorials on how to do it, and ended up with the following .htaccess file (located in my HTTP_ROOT) Options +FollowSymlinks # no hot-linking RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?vortexaviation\.ca/ [NC] RewriteCond %{HTTP_REFERER} !google\. [NC] RewriteCond %{HTTP_REFERER} !search\?q=cache [NC] RewriteRule .*\.(gif|jpg|png)$ http://www.vortexaviation.ca/images/nohotlinking.gif [NC] It's blocking the image fine, but it won't replace it with my substitution! All it does is create a broken image icon. You can see a test I'm doing from another one of my sites at http://vortexaviation.black-lotus.net/test.php The image should appear above the "Test referer" link (which directs to another page so I can debug the HTTP_REFERER string). Can anyone see something wrong? Would there be something not enabled on my server? I'm using the Economy Linux Hosting plan from godaddy.com and the domain is not a subdomain.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.