Search results

  1. S

    Horizontal line in CSS

    To be safe, I'd suggest using <hr>, just as what others have said. You can style <hr> any way you want, even add fancy height and background images and all that work (if that's your intent). And if the user decided to disable CSS for whatever reason, your plain <hr> will still be there to save...
  2. S

    How to make transparent background for a gif?

    One of the easy ways to check whether an image have transparent background or not is to create an HTML file with background of some color (eg: black) and include the image there. Example: <html><head><title>Hello World!</title></head><body style="background:#000;"> <img...
  3. S

    Questions on rewrite rule and rewrite map

    Yah, I couldn't find too much information on rewrites other than the apache manuals (and other sites which goes around and eventually refer back to the manual). I guess I'm just too paranoid when it comes to simple things like that, especially since we've never really done that thing on a big...
  4. S

    PHP/MySQL Newbie

    Programming languages are always easiest to be learned by doing projects. Start small, and slowly work your way up. Register and login script is a huge project, so let's put that off for a while. Start with something as simple as Hello World program. Then move to something more complicated...
  5. S

    Questions on rewrite rule and rewrite map

    Thank you for the replies. Right now we are hosting our site in a shared hosting, so putting the rewrites in httpd.conf is not an option at this moment. But if I remember correctly, don't .htaccess stat goes bottom-up? Which means it will go from the deepest directory up to our root...
  6. S

    Questions on rewrite rule and rewrite map

    We have a website where we want to rewrite the URL to something shorter. The website is running on apache 1.3.37 on linux. Right now, it's done using .htaccess with rewrite rules to do it. A sample of our .htaccess is attached below (The original is about 50+ rules, I think?) The...
  7. S

    javascript libraries

    I'm starting to look into yui myself, although I can say I haven't gotten too far considering how limited my background in JS is.. But it looks more interesting than other I've seen, especially how it allows us to use the library as they are hosted in yahoo's own server -) Haven't heard of...
  8. S

    What web development tools do you use?

    When I used to use windows, I would use crimson editor. It hasn't been updated for ages, but it's still useful at its current state. When I'm doing stuffs on Mac, I would use smultron Nowadays we're mostly on linux, and I'd use kate that comes with KDE. Btw, anyone knows if I can get...
  9. S

    What is a better way to create multi-language website?

    Okay, then. I guess we worried too much about performance, which we haven't seen yet but want to be prepared for. I'll bring this issue up again on our next tech meeting, and we'll see once again if we need to approach our design differently. Thanks again for all the help and patience...
  10. S

    What is a better way to create multi-language website?

    Okay, I'm beginning to see what you are saying now. So basically what you are saying is that I put the contents of template1.html, template2.html, etc, into the database? And then generate them on the fly based on the language chosen? Explaining this is probably frustrating to some of you...
  11. S

    What is a better way to create multi-language website?

    Adding pages is a given, adding language we probably can put off if the need is not that urgent. btw, hooflung, what you attached was actually similar to what we thought of. The part where you set user cookie depending on the language used, and so on, was shorted by me on this line that i...
  12. S

    What is a better way to create multi-language website?

    Oh, sorry for the misunderstanding. I guess I was not clear on my last post. Yes, the sites will be done in PHP. What the templates are, are actually the template file containing the "meat" of the page that needs to have different languages, which will be read by the main PHP scripts Btw...
  13. S

    What is a better way to create multi-language website?

    Just a little update. We have talked about this on our meeting, and the consensus was to use template files for each languages. So we will have: /home/web/en/template_1.html and /home/web/cn/template_1.html /home/web/en/template_2.html and /home/web/cn/template_2.html etc which will be...
  14. S

    What is a better way to create multi-language website?

    We're talking about at least 30 pages of generated contents. For now, we're looking at two languages, but it may grow to add another one. It seems like you're suggesting we save the contents of a page in the database? Or are you simply implying we save the page_id (which I'm assuming points...
  15. S

    What is a better way to create multi-language website?

    Helo, We are trying to make multi-language website. Our website itself is based on php/mysql, plus some other things here and there. Now, we have talked about different ways of accomplishing it and it came down to two options: 1. Use templates. Basically what this means is that we...
  16. S

    openoffice calc: How to disable auto convert from "- text" to #Name?

    Hmmm... I always thought spreadsheet programs will only convert the data to formula if I start the data with = sign. In any case, now that you mentioned it, I remember having to put apostrophe to notify the program to display the data as text. Tried it just now and it works. Thank you for...
  17. S

    openoffice calc: How to disable auto convert from "- text" to #Name?

    Helo, We're using openoffice calc 2.0.2 on linux, and we found an annoying "feature" we'd like to disable. When we want to type a list like this (there's a dash in front of the text): - Data Inside a cell, openoffice will automatically convert it to: #NAME? And when we look at the...
  18. S

    Need a little Regex help

    Glad to know it worked -) IIRC, you can also put this before your RewriteRule so you don't have to put a leading slash: RewriteEngine On RewriteBase / RewriteRule ..... blah blah blah -stndn.
  19. S

    Need a little Regex help

    Try to see if this works (note that i didn't test them so it might not work): RewriteRule ^promotional-products/(.+)\.php$ promotional-products/products.php?cat=$1 [L] To enable callback (or whatever it's called), you need to enclose the expressions in (parantheses), and then refer to them...
  20. S

    How can we use subdomain as part of query string?

    As expected, things don't go as smoothly as we first thought.. At first we thought that we were able to create subdomain and have the subdomain use the same document root as 'www'. However, after trying, we were not able to do that. What we wanted was to have www.mydomain.com and...
  21. S

    How can we use subdomain as part of query string?

    After doing a little bit of experiment, we found two ways that we can solve the problem at hand (or at least it seems so, for now) First solution: using .htaccess Based on the information from the links provided above, we added the following lines in .htaccess of our www directory. See...
  22. S

    How can we use subdomain as part of query string?

    Markbnj: Don't think we have access to changing the DNS (not sure, have to ask the sysadmin on this), because we're using third party for our web hosting. xtknight: What did you mean by reading the 'Host:' parameter sent by the client? Do you mean the http header data or something in the...
  23. S

    How can we use subdomain as part of query string?

    Thyme: Thanks for the link. I searched for 'using subdomain as part of query string' and 'use subdomain as query string', but the results weren't helpful. We've actually used something similar to the one from the link you posted, except that we didn't detect the http/s and the port (only takes...
  24. S

    How can we use subdomain as part of query string?

    Hello, We are trying to figure out if there is a way we can use subdomains as part of query string that the user submitted to our page? What that means is, supposed the user goes to our page using something like this: URL1: one.mydomain.com/search.php?q=hello URL2...
  25. S

    How can we get two sentences out of many sentences and/or paragraph(s) on PHP?

    Hmm... i see what you're trying to say. And yes, it does make sense. We'll try to discuss this problem again with our team members and hopefully we can agree on changing the way we handle user input. thanks -) -stndn.
  26. S

    How can we get two sentences out of many sentences and/or paragraph(s) on PHP?

    maybe a monday morning exercise would help your brain start up? -p -stndn.
  27. S

    How can we get two sentences out of many sentences and/or paragraph(s) on PHP?

    maybe someone would like to do some weekend exercise? ,) -stndn.
  28. S

    How can we get two sentences out of many sentences and/or paragraph(s) on PHP?

    Hello, This may sound more complicated than it is, but I'll try my best to explain the question. Suppose I have five input strings: String one: This is a string of four sentences. The second sentence is this one. All four sentences have periods at the end. Should be simple. String...
  29. S

    anyone knows where to look for freelance programming projects

    give get a freelancer and guru a try and see if they are close to what you are looking for... also, pardon my english, but are you actually looking for freelancer or are you a freelancer? -stndn.
  30. S

    code efficiency vs code readability - which one is more important?

    torpid: In your code above, PHP will spit out error message saying $vlKey and $vlValue is not defined. Which is correct since the variables $vlKey and $vlValue are not created until we enter the foreach() loop. Maybe you were thinking about variable variable? Where the name of variable will...
  31. S

    I think I just got scammed on Half.com

    fyi, you can always find competitive pricing at addall -stndn.
  32. S

    code efficiency vs code readability - which one is more important?

    Thank you all for the input. Really appreciate it. DaveSimmons: Yes, the answer depends greatly on who get asked the question. Since the code I'm working on is PHP (and thus not compiled code), I don't think the interpreter will do any fancy optimization for me. So, from your comment...
  33. S

    code efficiency vs code readability - which one is more important?

    When coding (in any language), do you put more points in code efficiency or code readability / understandability? This question came up as I am working on a piece of code (in PHP) involving foreac() and if() statements. Attached are two really simplified codes. First code is what I had at...
  34. S

    Backing up a DB

    1. Login to phpmyadmin 2. Choose the database 3. Click on 'export', select the table(s) to backup, check 'save to file', and go --- sometimes later --- 4. Click on 'import' 5. Select the file saved from step 3, and go At least that's how it looks like from phpmyadmin 2.8.1 For...
  35. S

    The perfect CSS layout

    take a look here and see if there's anything useful: "><a target=_blank class=ftalternatingbarlinklarge href="http://webhost.bridgew.edu/etribou/layouts/skidoo/">http://webhost.bridgew.edu/etribou/layouts/skidoo/</a> i used the sample from that site. it has a lot of div containers, which...
  36. S

    MySQL Select Query Question

    SELECT buyer.name AS name, fruit.fruit AS fruit, COUNT(fruit.fruit_id) AS purchase FROM purchase LEFT JOIN buyer USING (buyer_id) LEFT JOIN fruit USING (fruit_id) GROUP BY name, fruit Output: name fruit purchase john apple 2 john orange 1 sally apple 1
  37. S

    Simple PHP/MYSQL

    Btw, just a small addition to the code above. Make sure you do error checking on what value was passed as the value of orderBy This is to avoid the "Bad Guys" from injecting silly codes to your SQL query.
  38. S

    PHP/MySQL question: When is the best time to apply htmlentities() to user's input?

    Hmmm... I thought I read somewhere that it's a safer approach to change them before storing to database.. Although I'm really unsure now that I've read more on this topic. My initial thought was that if I have to change them everytime I display them, it will put a little more processing to...
  39. S

    PHP/MySQL question: When is the best time to apply htmlentities() to user's input?

    I'm developing a PHP front-end for a review site. The data submitted by the user will be processed by PHP and submitted to MySQL database. In order to prevent unexpected entries, we would apply htmlentities() to the user input before doing mysql_real_escape_string(). This is to say, for...
  40. S

    SQL question: How to sort SELECT result

    Oopss.. just noticed that the data set from my first post is slightly different from what I have on my computer... (but that's beside the point) Anyways, I agree that the solution from kpilkington is much cleaner. It took me a while to figure out what the statement means (I rarely use...
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |