Jump to content

Nick

Members
  • Posts

    17
  • Joined

  • Last visited

About Nick

  • Birthday 09/22/1989

Contact Methods

  • AIM
    NDriscoll9
  • MSN
    NDriscoll@gmail.com
  • Website URL
    http://68.84.198.166/
  • ICQ
    201955568
  • Yahoo
    NDriscoll09

Profile Information

  • Location
    Tucson, Arizona
  • Interests
    Computer Programming<br />Computer Hardware

Nick's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Also, you may want to make your html tags all lower-case, which is the proper way for current and future versions of (x)html.
  2. Something like this will make it kind of hard for people to see your download location. They'll never see it in the source and unless they're using Telnet or something like it they wont see the Location header either. <a href="download.php?id=1"> Then have a MySQL database with a list of files with unique id's. Make download.php have: <?php $id=$_GET['id'];mysql_connect("127.0.0.1",$user,$password);mysql_select_db($database) or die( "Unable to select database");$query="SELECT name FROM files WHERE id='$id'";$result=mysql_query($query);$name = mysql_fetch_row($result);header("Location:http://example.com/".$name[0]);exit;?> You could also have the id/filename references in a text file or something like that instead. The idea is to send an HTTP header to silently redirect to the file.
  3. You don't need much. That should work fine. I use notepad myself, so pretty much any program will work. Correct. The current date will simply be sent as if it was just regular text. PHP scripts are completely undetectable (except for the fact the the file extension is usually .php ) No, php creates the content before it's sent to the user, whereas javascript does this afterward. So php can't do things onmouseover. However, you can still put javascript in your php pages just as you would put html in them.
  4. Nick

    xhtml

    There aren't many large differences. Xhtml is extensible though, which means you can add new tags into it with different xml namespaces. An example of this is using xhtml+mathml together in web pages. Personally, I haven't figured out how to do it, but I'm told it's possible. :)You should use xhtml though. It's the future of html, and it's not very hard to deploy if you already write pages in html 4.01 strict.
  5. You should be able to do something like this: <a target="_blank"><xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute></a> There's also two posts about how to get the <img> tag to work someware in the XML and XSL forums. Those are about roughly the same thing you need here.Hope that helps!
  6. XML is a way to store data. I guess you could think of it almost as a text database. For the purposes of this site, it's generally used along with XSL to transform it into something like xhtml to make web pages. However, it has a lot of other uses too. For example the Jabber protocal, used to create several chat clients, transmits it's data in the form of XML.
  7. Nick

    XHTML or CSS?

    I agree. If you already make your HTML pages well-formed, then changing to xhtml should only take a small amount of work. So you should learn xtml then css.
  8. I'm not sure what the problem is. I see a yellow picture there that says "Lissa Explains it All" I'm assuming that's what you're talking about.Try pressing ctrl+F5 in case somehow the cache survived. (I know you said you deleted it, but computers are evil that way sometimes.) That'll tell it to refresh without cache.
  9. .php mostly because it's short.Also, I'm starting to output things in xml a lot more so .phtml wouldn't make sense.
  10. To the original poster, data islands aren't a web standard yet so you can't do what your asking without the help of .php or .asp or some other server-side scripting.
  11. Nick

    Adding an Image using XML

    If you had something like this: <LEFT_GRAPHIC>http://example.com/image.jpg</LEFT_GRAPHIC> I believe you could then apply this template in xsl when transforming to xhtml. <xsl-template match="LEFT_GRAPHIC"><img><xsl:attribute name="src"><xsl:value-of select="." /></xsl:attribute></img></xsl-template> It can also be done like I posted in this topic:http://w3schools.invisionzone.com/index.ph...st=0entry1227
  12. Either turn off the <? shortcut in your php.ini or do something like this: <?phpecho '<'.'?xml version="1.0" encoding="utf-8"?'.'>';?> That should result in <?xml version="1.0" encoding="utf-8"?>
  13. Well, you could use css. However, you'll be severly limited.I believe when you use CSS it just goes with the default template for all tags, which is just to treat them as raw text. You can only say how you want that text to be displayed.That means that tags like <a> and <img> can't work because you can't transform them into a link or image, just text.So you could make a semi-functional web page. (Text wil coloring and styles) I don't think you could make a functional web site.
  14. As far as I know, you'll need to somehow transform it.XML is not a language like HTML or XHTML. It's just a way of storing data. You would generally use XSL to transform your XML data into XHTML or something like that.XML is not just used in websites. Again, it's only a method of storing data. XSL is used to display that data.
  15. Nick

    help

    If you had something like this:<picture location="http://example.com/imagelocation.png" description="An image" />Your XSL stylesheet might look something like this: <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" ><xsl:template match="/"><html><head><title>A picture</title></head><body><xsl:apply-templates /></body></html></xsl:template><xsl:template match="picture"><img src="{@location}" alt="{@description}" /></xsl:template>
×
×
  • Create New...