Jump to content

Sniffy

Members
  • Posts

    403
  • Joined

  • Last visited

Everything posted by Sniffy

  1. CLEVER :)So we get to see other languages performed to get that extra level of education.I like it.
  2. Okay, sounds good.So say I make a problem, and another person solves it, that other person would make a problem according to my knowledge?
  3. That would be cool, and I like SiteProCentral the best as well. A lot of options.
  4. I'm not sure if I should have put this in the PHP forum or not, but how do I process code but not execute it on my document?e.g <?php$fN = "sFile.txt";$fH = fopen($fN, 'a');$fC = "if(my == 0){ //exec }";fwrite($fH, $fC);fclose($fH);?>
  5. Does your IFRAME have an ID of iFrame1?<iframe id='iFrame1'>?
  6. You probably don't need a mysql database, but it would make things easier and more secure. Text files would be trickier but easier to use.
  7. I had a look at the samples and cookbook beta, it might be something that'll be of my greatest interest once I get a little better at XML and OOP.
  8. Sniffy

    Domain Name

    So, how are you doing on the actual site?What's the content/theme going to be?
  9. Whoa, that cleared up quite a bit just in those few posts.I always wondered how the global(g) flag was used.So in PHP, it would be: \/[b/]\g ?
  10. Cool.....I've heard that Visual Basic has it's uses but can make you lazy as far as the big functions and such. For VBscript and ASP and those languages, I have nothing against them, they're very powerful, but I just find them so different.Like you have to make the variable then give it a value, and the if statements are stated the same.eg //javascriptvar myvar = 0;if(myvar == 0){//..............} //vbscriptdim myvarmyvar = 0If myvar == 0 Then //.........End If Just two different types.VBscript seems to be more logical and literal, but it can be confusing that way.
  11. Not a very decorative/ graphical person, I can say that. It may be my lack of practice, or that I just don't have the talent in me. I guess that's what group projects (sourcefourge.net and such) is good for.
  12. This is going to come in handy, especially for a person like me. Bookmarked.
  13. Really?I don't know vbscript myself, I've only taken a glimpse at it, so thanks.Here's the best I can come up with if this is even correct. <script type='text/vbscript'>dim namename = "George";if name == "Joe"document.write("His name is Joe");elsedocument.write("His name is George");end if;</script>
  14. Your next step would probably be javascript after html/xhtml/css. Or choose vbscript, but that doesn't seem to be as popular.
  15. I've come back with even more of interest of programming and an understanding.My favorite programming language of all though is probably actionscript, used with flash. It's based on javascript but with a step up of features. Although I haven't covered object oriented programming(but will in the next month or two), it does have OOP in it. It has it's own unique features too to make games easily and to make cool business applications.It has some server-side and XML compatibility but they'll have to work on it before it really catchs on in that way.
  16. Sniffy

    Domain Name

    A kick in the nuts .So, when are you thinking about registering it?
  17. I really want to get my head around regular expressions but there's so much to knowI read about all the basic characters/sequences in THIS tutorial but there's still a lot of things that are unclear to me.First of all, what are the starting/ending delimeters and when/why would you use them?Also, what is a delimeter?Second, what are the paretheses used for? As in do(ugh)nut?For some reason it looks like it means maybe.Any other useful information would be create. Like how to use regular expressions and how ereg() can be used in a script and a detailed explanation of functions.justsomeguy already gave me the php.net reg expresion reference guide.Also after you answer my questions, if you don't mind posting some basic scripts using valid patterns.Hopefull by the end of this the matter will be cleared up.EDITI've just cleared up most of the matter on the delimeter. Correct me if I'm wrong. A delimeter is something that encloses the special characters in the regular expression. I could declare this string "^Sniffy$" and it would display ^Sniffy$. A delimeter would say that it's special text for a regular expression. A delimeter could be anything non-alphanumeric and that's not used in the expression, most commonly a backslash.But I believe I saw stuff like /\^Sniffy\\ and I don't know if that's just me imagining things or if a backslash can be used a long with a front slash to have a meaning.EDITI just read about the meanings of preg() and ereg().Please say if I'm correct.preg - For Perl Compatible regular expressions.ereg - PHP's Standard Regular Expressions.Note: I haven't really gotten into the differences between the two but that's what they're for I think.ereg would be quicker processed because there is less things to load; I saw something in one of the topics yesterday of which type is faster and that's my theory.EDITI just saw another code on the forum with /\ in it but I was mistaken, it's actually just a / followed by a character, but what character it was is what made me even more confused. It was posted by jesh and I hope he doesn't care that I question it. It's javascript, but it's still probably around the same rules. // replace [b] with <b>content = content.replace(/\[b\]/g, "<b>");// replace [/b] with </b>content = content.replace(/\[\/b\[/g, "</b>"); When would [b be put like \[b\?
  18. Yeah, VBscript is a client-side scripting language, so it only runs on the browser. It's not powerful enough to run as standalone software.
  19. BTW: <html><head><title>Files</title></head><body><style type="text/css">div.files{border:2px double gray;right: 5px;vertical-align:top;}table.files {border:3px double blue;right: 10px;vertical-align:top;height:70px;width:100px;}</style><?php$his = "<h1>";$ehis = "</h1>";$math = "<h2>";$emath = "</h2>";$sci = "<h3>";$esci = "</h3>";$eng = "<h4>";$eeng = "</h4>";$comp = "<h5>";$ecomp = "<h6>";$fhis = 0;$fmath = 0;$fsci = 0;$feng = 2;$fcomp = 0;$total = $fhis + $fmath + $fsci + $feng + $fcomp;echo "There are ".$total." files stored in our records";?><div id=files><table id="files"><tr><td><?php echo "History = ."$fhis." Math = ".$fmath." Science = ".$fsci". English = ".$feng." Computer= ."$fcomp"; ?> </td></tr></table></div></body></html> Close the string and add a '.' to add a string inside a variable.E.G: echo "Hello".$some_var_containing_world;
  20. You guys are doing great.You don't abuse the system and only close topics / ban members when it's really neccessary.
  21. Yeah, I've never heard that one before....
  22. Sniffy

    Domain Name

    Really?I never really looked at the pricing, so thanks.
  23. He means the tooltip/title attribute, not the link color.I've gotten as far as being able to access the attribute, but not skinning it, just the tag with the attribute. <html><head><style type='text/css'>*[title]{background-color: 000;}</style></head><body><a href='' title='hello world'>hi</a></body></html> I'll work on it though.NOTE: NOT SUPPORTED BY IE.
  24. Sniffy

    Domain Name

    Okay, vchris.net is probably the best choice anyways.If I ever by a domain, it'll be sniffygerbil.ca
  25. a.title{background-color: #000;} Like that?
×
×
  • Create New...