Jump to content

ignace

Moderators
  • Posts

    6,457
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by ignace

  1. Take an educated guess on what our opinion was? Hint: the product name starts with Microsoft..
  2. You could create a Config Singleton object that holds all your application-wide configuration or if you want to have an object to contain your objects you could use a Registry which is also a Singleton implementation.
  3. Actually you can type quit some words with one hand on the keyboard http://www.google.be/search?q=words+you+can+type+with+one+hand&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:nl:official&client=firefox-a
  4. How do you mean off-brand? It said Shark.. How off-brand is that?
  5. Cheating at an exam will flunk you in life..
  6. Have you checked the apache error_log?
  7. I'm guessing you were that previous developer..
  8. No need for that. Let your flash call load-xml-data.php?id=2 Which returns a valid XML document.
  9. Here is your answer http://lmgtfy.com/?q=yahoo+secrets
  10. MVC has three components Model-View-Controller but this does not include the bootstrapping process therefor we use the FrontController pattern.
  11. I strongly disadvice using oni-kun's recommendation as what about user created content like a blog post or a page? Or what about having multiple sources of translation eg lang_fr.php and the db table pages and the db table blog_posts? Instead keep everything in your database like this: CREATE TABLE language ( id tinyint NOT NULL auto_increment, name varchar(32), -- native format Français name_translated(32), -- understandable format French PRIMARY KEY (id)); CREATE TABLE translation ( id integer NOT NULL auto_increment, language_id tinyint, message text, message_translated text, KEY translation_language_id_fk (language_id), PRIMARY KEY (id)); Now you create your website/application like you would normally with a few exceptions: <?php if (translation_exists($row['title']) && translation_exists($row['content'])): ?> <h2><?php print translate($row['title']); ?></h2> <p><?php print translate($row['content']); ?></p> <?php endif; ?> You can also leave the translation_exists() out and your translate() function would then return the original contents because it could not find a translation. However that may be unwanted behavior. The same applies for common GUI items (you may prefer using translate() without the translation_exists() option): <li><?php print translate($row['menu_label']); ?></li>
  12. Don't tell us we know. That's why were here
  13. They are being hard because they care. Anyone else would just say: "Yeah sure it's valid. Carry on!" Until you later find out your Google PageRank equals 0 and then you will blame them and they'll tell you "you asked if it were valid and we said yes you didn't ask if it had any implications!!" We care therefor we tell you everything wether you like it or not.
  14. Daniel THANK YOU I've been looking for this with no result and to imagine the keywords were so simple: binomial proportion and bayesian average.. How come actually you know so much about Math? What did you study?
  15. Your presentation is IMO wrong and its aim for beginners is misguided. Let's assume I'm a beginner I find your presentation then it will go like this: PHP/MySQL for beginners Next Agenda Next What is MySQL? .. How does it relate to PHP? .. Locate your php.ini ?? php.ini what's that??? IF I'm smart I'll try: F3 php.ini -> no results End of tutorial..
  16. @CB I'll have to remember that URI
  17. Aren't there any better choices then to just calculate an average? Many websites use this method and I think it sucks. Look at for example http://www.opensourcecms.com where a certain product receives many votes but a lower average while another product receives less votes but an higher average. Thus if you sort from highest to lowest the second product will show up first while the first has been critised more.. This makes it very unreliable because is a product with 4 stars and 10 votes more reliable then a product with 500 votes and an average of 3?
  18. @Buddski He already has but some people think they can do anything really. Their to dumb to make the required effort and they want help and they want it now even if they have to steal someone else's thread.
  19. You could also consider Ajax to submit the local settings to PHP and store them in _SESSION or _COOKIE
  20. Sorry, we don't write code for you. If you want to hire someone to write code for you head over to the Freelance section. Here, we help you in locating script errors and give advice on function usage.
  21. Like Daniel already said it becomes hard because they don't share the same table structure SELECT name, concat(location, ':', service_quality) info FROM business WHERE .. UNION SELECT concat(fname, ' ', lname) name, biography info FROM people WHERE UNION SELECT name, information info FROM products WHERE ..
  22. You might be better off using http://php.net/manual/en/book.bbcode.php
  23. You could aswell get rid of MySQL and MySQLi by using something like PDO or ODBC which allows you to use any kind of database through a common API. Meaning your code never changes while your database engine used can be switched from MySQL to PostGreSQL to SQLite to ...
  24. In normal circumstances everything will be fine however you may want to read this http://www.php.net/manual/en/migration52.php
×
×
  • 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.