Jump to content

thescientist

Moderator
  • Posts

    8,682
  • Joined

  • Last visited

Everything posted by thescientist

  1. I would definitely submit this to the WooCommerce forums, if you haven't already and it's not covered in any of their documentation http://support.woothemes.com/hc/en-us
  2. that's very vague, what do you mean the flags are "missing"? In what way? Are you checking for errors in your browser console?
  3. It's hard to read your code, you should at least format it with proper indentation. You also don't mention what is happening. Are you checking for errors? What about the success of the request / response to the server?
  4. Is PHP configured to run on your server?
  5. Just to be clear, jQuery is still just JavaScript. jQuery is just a documented, cross browser tested, helpful collection of API's such that you don't have to figure out the unique browser differences yourself.
  6. it just means move up 2 (two) directories
  7. Typically jQuery UI plugins act on a set of DOM elements as defined / expected by the plugin developer in their documentation. You still haven't show any the markup that your using. This is what is meant by showing all of your code. Any documentation for the plugin would also be useful.
  8. That's not the point or the counter argument being made though. Those tags are considered deprecated for a reason, using them locks you into a position of your code breaking unexpectedly whenever a browser vendor finally decides to not support it. As mentioned, in the case of <center>, as mentioned there are much better ways of accomplishing that task. In the case of technology and especially web languages, new features are added all the time, which comes in the forms of either creating a spec, improving an existing one, or removing them (deprecation).
  9. You're already using an array. Just set / get that. You'll have to serialize / unserialize it though. http://html5doctor.com/storing-data-the-simple-html5-way-and-a-few-tricks-you-might-not-have-known/
  10. did you try it out and see?
  11. You could also run NodeJS on your server as well, if you're looking for a universal / isomorphic implementation.
  12. I don't see you turning error reporting on and I don't see where you are creating a new instance of ZipArchive. Also, how are you testing for success / failure of the open method? http://php.net/manual/en/ziparchive.open.php Also, your formatting (lack of returns between lines) makes your code hard to read. I would recommend you post with proper formatting so it's easier for other users to follow along.
  13. You could always save the image as bas64 encoding.
  14. That's likely because you're only assuming that a browser is the only way to make an HTTP request. There are many other ways to make a request to your server, such as a command line utility like cURL. If a user makes requests through your site to the server they can see that in the network tabs. From there they can just reproduce that request through command line for example, in a script that runs in a loop until it get's a hit.
  15. absolutely. ANYTIME time you are accepting any data from an outside request and use it in your code, you should validate and sanitize that data (this isn't limited to just when used with SQL queries, btw). you should really read up about SQL injection if you're still unclear. In fact, w3schools uses the SELECT query as an example. http://www.w3schools.com/sql/sql_injection.asp Also, relevant XKCD https://xkcd.com/327/
  16. Did you make sure to remove the @ error suppression annotation?
  17. I'm not sure how a comment like this constructive. Maybe you could care to enlighten this user instead? Everyone needs to start somewhere
  18. if you give two functions the same name, then the second one will clobber the first one. The solution to this is to give your functions meaningful names that describe what they do (typically using verbs) and keep them small and scoped to just one responsibility.
  19. So is the issue with fetching the information from the database then? Can you confirm it's being entered into the database correctly? Please be detailed and show code as requested above.
  20. thescientist

    session cookie

    And to be clear, a user doesn't have to be logged in or anything to have a PHP session. You can use $_SESSION with any users browsing session
  21. what's the question? is something broken or are you asking us how to do it?
  22. Just make sure you read his post carefully though So unless you want to changes to B to propagate to C, then you have to use clone.
×
×
  • Create New...