Jump to content

Azu

Members
  • Posts

    1,047
  • Joined

  • Last visited

    Never

Everything posted by Azu

  1. http://www.google.com/search?q=User-agent+.htaccess&start=0&ie=utf-8&oe=utf-8&client=firefox&rls=org.mozilla:en-US:unofficial
  2. Only use IIS if you are working for somebody who will not give you any choice of using something else.
  3. Try replacing the "SELECT * FROM item_details WHERE model=$id" with "SELECT * FROM item_details WHERE model" and see what happens. It SHOULD select everything. If it doesn't select anything or if it gives an error, then there probably isn't a column called "model" and that's the problem.
  4. Azu

    [SOLVED] Replies

    Thanks that is what I am using right now. I have to open up every single one of those threads one at a time to see if there is a reply though.. =S
  5. Hi Sorry if this is the wrong section, wasn't sure where to post. In most forums, I can check to see if any of my posts/topics were replied to by just clicking the search thing and putting in my name, and it says who the most recent replier to the topic is, so if it isn't me then I know it's been replied to. Please tell me how can I do this on this forum? I'm tired of checking every single post I've ever made individually just to see if it was replied to or not lol..
  6. Azu

    Geese

    It's a difficult concept for people whose languages don't have that particular feature, so don't feel too bad. In many languages, certain nouns are assigned a gender, regardless of whether or not the object of interest actually has a gender, and often the noun's gender doesn't always make sense. A few examples: In French, "The car" translates to "la voiture", but "the boat" translates to "le bateau". Notice the different prefixes - "car" is feminine, where "boat" is masculine. But here's the tricky part: The car we're speaking of is not male, it can't be. The word is masculine. To give you an idea of what I mean, in French, "the person" translates to "la personne", even if the person of interest is not female. The word is prefixed with "la", so the word is in the feminine sense, but it makes no implications as to the gender of the person. The person could very well be a man. It works the same way in German. (Many others as well, but I can only say Spanish for sure.) The "die" prefix is assigned to certain nouns, and the "der" prefix is assigned to others. "The tree", for example, is "der baum", so it's masculine, but "the cat" is "die katze", so it's feminine. And where "the car", in French, was feminine, it is "das auto" in German, and has no gender. In reality, the tree has no gender, and the cat could well be a male, but the words are always prefixed the same. I'm sorry for offending you. I didn't mean to. I should probably let her speak for herself, but I'm fairly certain you didn't offend her - it appears that she realized that it was possible that you simply didn't understand. And as a side note: I didn't know those translations off of the top of my head. The babelfish is awesome. Thanks for the explanation! I just have one more question now.. how do you decide whether the object should be considered a female noun, or a male noun?
  7. Azu

    [SOLVED] {1} ?

    Thanks! This works perfectly! =) It's not shorthand like {1} {2} {3} etc but it's the same functionality
  8. Hello I'm used to using str_replace but now I want to switch to a regex solution since str_replace isn't working how I want it to work. Can somebody please tell me how to use a regex function to act like str_replace, except without changing the capilization of letters? For example, stri_replace('a test','<b>A test</b>','This is a test'); outputs '<b>A test</b>' (it changed the lowercase a to an upper case A). How do I do it with a regex function so that it won't change the case? This is for a search script that I am making, and have it change instances of the search phrase in the result to bold. It isn't supposed to change the case though. Please help.. I've never used regex before except copy and pasting regex that I found by searching, but I can't find this by searching.. x_x
  9. I guess I didn't understand your question. I thought you were asking how to check if it's a subdomain, so I told you how to check if it's a subdomain. Maybe rephrase your question?
  10. If there is more then one dot, and it doesn't start with www.
  11. I think you just set it as the index file, so it uses "page1" instead of "index.php". Or you could just make a folder named "page1" and put an "index.php" in it. This way it will work on all webservers without having to change any configuration, and best of all the functionality will work exactly the same. =)
  12. In what way is this better then the "optimize" function that is built into all versions of MySQL by default?
  13. Just name the file "page1" and set your server to open it as PHP. Then you don't need any rewriting.
  14. What's the differance between this topic and http://www.phpfreaks.com/forums/index.php/topic,158955.0.html ??? I can't seem to find any differences please explain yourself..
  15. Azu

    Geese

    I'm sorry for offending you. I didn't mean to. And I still don't get what you meant. How exactly is the German "der" different from the English "man" or German "die" different from English "Woman"?? *confused* Gender means whether something has male or female sexual organs, so how could it apply to anything besides men and women (and animals)?
  16. Azu

    [SOLVED] {1} ?

    Hello In PHP I can put {1} or {2} or whatever to access the first or second or whatever character in the string.. how do I do this in MySQL?
  17. Hello, I'm making a site for World of Warcraft. It's not even close to being finished yet, but could somebody please tell me if there are any security problems or bugs in it? I want to fix any before I focus on adding more functionality. And also if part of it is ugly/bad please tell me what's wrong so I can try to improve it. http://freethepenguins.com/
  18. Sorry but I have no idea what you just said. I'm not very good at MySQL yet. Could somebody please post a query or something that will do what my PHP code above does? That would be really nice!
  19. Oops forgot to click topic solved.
  20. Your professor is obviously a jackass. PHP is easy to start with; it's flexible syntax makes it easy to learn, but unfortunately also easy to create 'bad' applications. I'm currently forced to look at the MediaWiki source code, and I'll tell you: it's the worst excuse for an application I ever did see... To bitch a little more about MediaWiki (yes I'm a bit frustrated by this): it relies heavily on globals which makes it very hard to understand, it mixes data access code (database abstraction? what's that?) with HTML, it's poorly documented, unpredictable, not well thought through, it's incredibly SLOW (unless you have a server farm and use the mCached extension on all 20+ servers like WikiPedia), virtually un-extensible (plugins exist, although I can't imagine anyone would want to do that for fun), defies all OOP paradigms and has hardly organized classes of 2000+ (!!!) lines. Ya well I'm sure that someone has made a bad application in RoR to, and ASP, and C, and C++, and C#, and Javascript, and Java, and XML, and HTML, and Assembler, and VB, and pretty much every programming language that exists. Does this mean everything sucks? No. You can create bad stuff in anything, not just PHP. And this isn't the fault of the programming languages.
  21. Azu

    Geese

    What about "man" and "woman"?
  22. Try replacing the $addcode="echo '<label>Address: <input name=address id=address type=text></label><br />';"; $addcode.="echo '<label>City: <input name=city id=city type=text></label><br />';"; $addcode.="arr_selectbox('state', $STATES);"; $addcode.="echo '<label>Zip: <input name=zip id=zip type=text></label><br />';"; eval($addcode); With this; echo '<label>Address: <input name=address id=address type=text></label><br /> <label>City: <input name=city id=city type=text></label><br />'; arr_selectbox('state', $STATES); echo '<label>Zip: <input name=zip id=zip type=text></label><br />'; Does it work?
  23. Azu

    Geese

    I think maybe the English language is just to inconsistent for something like this =S Can somebody please tell me one that is consistent?
×
×
  • 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.