Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. Ingolme

    php curl

    cURL is an interface that allows PHP (or other languages) on the server to send HTTP requests to another server. Form submission is done from the user's computer, not on the server that PHP is running on.
  2. It's in jQuery's documentation right here: http://api.jquery.com/jQuery/#jQuery-html-ownerDocument It creates a node that is not attached to the DOM.
  3. It sounds like an error is occurring but it's not showing up. Put this at the beginning of your file: ini_set('display_errors', 1); error_reporting(E_ALL); If there's a syntax error, though, you might need to look in your server's error logs.
  4. According to the manual it has existed since PHP 5.3.0 http://php.net/manual/en/mysqli-stmt.get-result.php What happens when you try the code, do you get an error message?
  5. You should read this article: http://php.net/manual/en/language.types.string.php This has nothing to do with preg_replace and everything to do with the way PHP parses strings.
  6. Ingolme

    php curl

    That is not what cURL is for. cURL cannot do that. You have to use the right tools for the right job, cURL is not the tool for that job.
  7. The ?> in eval() is to exit PHP mode, in case the person wants to run HTML. This is necessary if you're using the contents of a PHP file as input. If you wanted to valuate the code without putting the ?> tag you also have to remove the <?php tags from the input string. Only this would work: <?php $string ='phpinfo();' ; eval($string); ?> That's exactly what eval() is for. Until it is passed through eval() that is not PHP code, it is just a string. The parser does not care what is between the string delimiters.
  8. That "strtoupper" is not a function, it's just a string. It's not actually PHP code. As for the \1, it's called a backreference. It's explained in the PHP manual for preg_replace(): http://php.net/manual/en/function.preg-replace.php You should do more research on regular expressions if you really want to understand all of this. The information is out there if you look for it.
  9. The language attribute was deprecated in HTML 4.01, the type attribute is no longer required in HTML 5. To summarize: Never use the language attribute Use the type attribute for HTML 4.01 and XHTML For a modern page in HTML 5 you should not need either of them.
  10. You should look into a real programming language like C++, Java or something of the sort. Javascript can only read files in particular cases and it cannot write to any files. On a desktop it is even more limited.
  11. To center a responsive grid I prefer to wrap it in a container and change the container's max-width property.
  12. You need to set the width of their containers to 33.33%. If you need spacing between the images you will need to make the width a bit smaller than 33.33% and add a percentage margin on the containers.
  13. They can load Javascript files with the script tag, but AJAX requests are blocked.
  14. If it never changes, it might be best to just modify it in Photoshop rather than try to code it.
  15. It is not 100% complete. I usually check the MDN (Mozilla Developer Network) for more detailed information.
  16. Ingolme

    php curl

    You don't need cURL. Don't use it. If you're dealing with forms and submit buttons, what you need is Javascript.
  17. It does an XOR operation on the bits of A and B, they must be integers. If they aren't they'll be casted to integer.
  18. You would need some software that reads the feed XML and then generates HTML to display the data. You should link to the documentation they provided for this feed. Most likely they expect you to know programming.
  19. You have to call return in the function that you want to end, not in a sub function. This should work: function continueOrCancel(){ return confirm("Press OK to contimue... Else Press Cancel ."); } In the original function: if(idTag == 8){ if(continueOrCancel()) { // Continue alert(' idTag/thisIdTag Should be: 8/16 \n' + idTag+'/'+thisIdTag + ' ::'); } else { // Cancel return; } }
  20. Just change the order of the parameters so that they match the order in the documentation: http://php.net/mysqli_query First you pass the connection object, second the query.
  21. You have a comma between 0 and 7, it should be a point. You can only have one transition rule on an element, if you write two rules for the same element only the last one will be applied.
  22. Forcing an error is not a really good way to program. You could wrap the whole thing in a function and call return instead. It's more efficient and won't interfere with other unrelated scripts that may be running. function myProgram() { // All code in here if(wantToLeave) { return; } }
  23. You only made a transition for the background color, not for the font color. Add both. transition:background-color 0.7s ease, color 0.7s ease;
  24. Ingolme

    php curl

    The PHP manual explains that option on this page: http://php.net/curl_setopt
×
×
  • Create New...