Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Ingolme last won the day on November 18

Ingolme had the most liked content!

Community Reputation

930 Excellent

About Ingolme

  • Rank
    Coding Fox

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
    Not Telling
  • Interests
    Web development, drawing, videogames, foxes.

Previous Fields

  • Languages
    Java, PHP, MySQL, Javascript, CSS, HTML

Recent Profile Visitors

176,963 profile views
  1. Ingolme

    SwiftMailer - An Odyssey of Reconstruction

    The error message you showed earlier "Call to undefined function random_bytes()" is an indication that the code was not running on a server with PHP 7. Can you show me the file where those syntax errors are? They're not in the initial code you posted.
  2. Ingolme

    SwiftMailer - An Odyssey of Reconstruction

    You shouldn't be trying to shift the blame of your problems to other people. The people developing these things don't have the time or incentive to sabotage their own software. Your problem is that the software requires PHP version 7, as stated in the system requirements on their website: https://swiftmailer.symfony.com/docs/introduction.html. The random_bytes() function is exclusive to PHP 7, your server is probably running PHP 5.x.
  3. Ingolme

    Image Capture and Display

    If that is the only output of your script then you can make the browser interpret it as an image by sending a content-type header: header('Content-type: image/png'); echo $image_content; If you try to print anything else, like HTML or even just spaces and line breaks, then the image will appear corrupted in the browser.
  4. Ingolme

    jquery functions don't work for axis call

    I'm not sure what axis is, but there's no way to protect Javascript code, as long as the browser is able to run it, it is also available to the person using the browser. My first suggestion would be to rewrite your code to not require jQuery. Everything jQuery can do, native Javascript can do better as long as you're experienced enough to write the code. If you're making requests for content using AJAX and you have code that needs access to HTML elements created by the AJAX request, then you will need to run that code after the AJAX request has been completed.
  5. Ingolme

    Chaining PHP Class Methods

    That will probably work. You should test it to make sure. Run the code and see if it does what you expected it to.
  6. Ingolme

    Chaining PHP Class Methods

    No, it's not equivalent, there are actually two objects there: One is the scheduler and the other is whatever thing the scheduler's php() method is returning. The above code is equivalent to this: $thing = $scheduler->php('script.php'); $thing->hourly(); I don't know what type of object $thing is, since I haven't read the documentation. The concept of chaining is not native to any language, it only happens if somebody designed the objects to work that way.
  7. Ingolme

    iFrame to PDF

    There is no code for that. You would have to study the PDF file format and build software from scratch to do it. It would take an experienced software developer a few weeks to build or even months depending on difficulties encountered during development.
  8. Ingolme

    function call not executing

    You're in way over your head, you still have to learn the basics of Javascript and get familiar with them. You need a solid understanding of event listeners and event handlers before you can move on to big projects such as this one. You should try small exercises for now so that you can learn Javascript properly. A good simple starting project would be to create one event handler that highlights the element that fired the event.
  9. Ingolme

    change loaded page automatically with PHP?

    No, you have to do that with Javascript.
  10. Ingolme

    Data Retrieval - Sundry Formats

    To be certain, I would need to see documentation about the web service that you are making requests to. The first item is a serialized PHP data structure, you convert it back into data using the unserialize() function. I am willing to bet that the second item is XML, but since you have loaded it into a browser, the tags are being parsed and only the text content is being shown. If you want to actually see the XML tags in the browser, you either have to send a "text/xml" content type header or pass the data through htmlspecialchars(). While seeing the data is useful for debugging, ultimately, you don't really want to do that. What you should do with the XML response is create a DOMDocument for it so that you can retrieve the data contained within it.
  11. Ingolme

    iFrame to PDF

    You can search for HTML to PDF converters, but I don't think they can handle iframes. If none of the existing tools available can handle iframes, you might need to reconsider your requirements. This project would likely take several weeks of research and development.
  12. Ingolme

    function call not executing

    Here's a tutorial describing how to use events properly: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_objects
  13. Ingolme

    function call not executing

    The variable event is not defined. What is event for? If you don't know what it is for, that's an indication that you have been copying code without understanding it.
  14. Ingolme

    header info query

    If it returns false it probably means that it could not connect to the URL. file_get_contents() will get files from your local server. Depending on your server's configuration it might not be allowed to load files from remote servers. I recommend using cURL to load files from other websites: http://php.net/manual/en/book.curl.php
  15. Ingolme

    header info query

    Use var_dump() on the output of the get_headers() function and see what it shows. I doubt $_SERVER["yahoo.com"] would have anything in it, the $_SERVER array just contains some information about the server that the PHP code is running on.