Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. Funce

    Data Retrieval - Sundry Formats

    Taking a look through the Matomo docs also reveals JSON to be a valid alternative. I would recommend it due to its simplicity. json_decode() is an inbuilt function specifically for dealing with JSON.
  3. dsonesuk

    iFrame to PDF

    I think you have to deal with focusing on iframe content, then back to main frame for button to work properly, i had similar problem long ago with clicking for printing content of pop-up iframe.
  4. Yesterday
  5. 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.
  6. justsomeguy

    Data Retrieval - Sundry Formats

    The first one is a serialized array. The second is useless without knowing what the fields are.
  7. iwato

    Data Retrieval - Sundry Formats

    BACKGROUND: Between one and two moons ago I inquired about a strategy for speeding up my Matomo processing time, whereupon both Funce and Dsonesuk provided excellent insight in this regard. I am now on the verge of setting up a CRON Job to perform scheduled calls to the Matomo data base. Before implementing the scheduler, however, I must be clear about the format that I am to use to handle the data. As I am provided with a variety of formats, I decided to explore those that I thought would be useful before deciding on one. To my dismay I am overwhelmed with what I discovered. Both of the following responses represent the first few lines of the same cURL request. The only change when making these requests was the indicated formats. The problem is that I have no idea how to handle data in these formats. PHP a:100:{ i:0;a:96:{ s:6:"idSite";i:1; s:7:"idVisit";i:914; XML 1 914 205.175.107.119 ... action http://www.grammarcaptive.com/podcast_hostpage.php?hash=30a6836a3f7c5fc57751a61098e5c2fc&podcast_no=92 Grammar Captive Weekly Podcasts 14 wYBSoJ Nov 14, 2018 08:47:46 25338 25 25s 1824 1.82s 1 1542185266 action https://www.grammarcaptive.com/overview.html Grammar Captive Overview 6 CLxGe9 Nov 14, 2018 08:48:11 25339 1 1s 2419 2.42s 2 1542185291 action http://grammarcaptive.com/_gates/gate1/gate1.html Gate One - What Makes Grammar Captive Different 33 aXaszd Nov 14, 2018 08:48:12 25340 0 0s 262 0.26s 3 1542185292 action https://www.grammarcaptive.com/_gates/gate3/gate3.html Gate Three - Is Grammar Captive for You? 50 The three dots (...) represent sensitive data values. The indendation and line spacing was added by me. Although the first set of data resembles very closely that of JSON, the second set of data is completely lacking in the metadata required to understand what is being returned. Unfortunately, I have no idea how to handle either in the given formats. Please advise. Roddy
  8. justsomeguy

    get data (checkbox) from iframe

    If the page inside the iframe is in the same domain as the page with the iframe, then you can use Javascript to access the DOM of the iframe.
  9. Sigmahokies

    get data (checkbox) from iframe

    Hi everyone, is it possible to collect data such as checkbox and radio inside iframe when push button outside of iframe? or require to method of post inside iframe?
  10. 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.
  11. SimonGillham

    iFrame to PDF

    I am creating an internal HTML file which combines a few iFrames into one iFrame. What I am looking to do is to be able to save the final iFrame as PDF. By having a button to allow the user to do this. How can I write this to allow the user to save as PDF? I did find one solution but the PDF was coming out blank, plus it would one work on the first click. If I tried to click it again, it wouldn't work. Any help would be appreciated.
  12. dsonesuk

    function call not executing

    So you thought us being so magnificent, we would magically know that! This is what i mean about giving only partial code! You being a copy and paste person, we naturally thought, you copied part but not all of the code from somewhere. GIVE ALL CODE RELEVANT to the problem, JAVASCRIPT and HTML.
  13. s_avinash_s

    function call not executing

    Hi Actually i tried from https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_objects there that function is defined . similar way i tried with btn.onclick = function() { But login related part works if i directly assign a value to variable in html code but does not work when i get a value from server and click the particular tab
  14. dsonesuk

    function call not executing

    random(255)? where is this function? if you mean JavaScript random() method, and if you actually looked up this method you would find it does not work like that! https://www.w3schools.com/jsref/jsref_random.asp
  15. s_avinash_s

    function call not executing

    Hi I tried with following example var btn = document.querySelector('button'); function bgChange() { var rndCol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundColor = rndCol; } btn.addEventListener('click', bgChange); but still its same. If i give user_login=1 in html file it works fine. Please help am not exactly getting what is the issue
  16. justinh

    header info query

    EDIT: I found a config modules dialog in UniServer where I could toggle on php_openSSL.dll, and that enabled the HTTPS stream. Now I get success in my local env! Without this config interface I don't know how this would be configured (or why it is not out-of-the-box) - - - - I tried running my PHP file on my local stack (WAMP, Uniform Server Zero). I was getting a bunch of errors. php.ini shows allow_url_fopen = on. I was testing with HTTPS URLs, and I finally discovered that my local PHP does not have the HTTPS stream registered, but my remote PHP does have it registered. I can't figure out what is controlling the registration of streams or how to add a stream. Anyone know? Warning: get_headers(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar PS Sorry, dsonesuk, I was getting .htaccess and httpd.conf confused. Thanks.
  17. Last week
  18. dsonesuk

    A drop down menu

    Its called a mega-menu https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_mega_menu_responsive
  19. JMRKER

    A drop down menu

    Can you provide an HTML example of the layout of the elements you are trying to include in your request? I'm unclear as to the requirements.
  20. dsonesuk

    header info query

    IF its by website host, it maybe locked for security reasons to Off. According to php.net it is listed as PHP_INI_SYSTEM and changing of settings may be set by PHP_INI_SYSTEM Entry can be set in php.ini or httpd.conf .htaccess is not listed for PHP_INI_SYSTEM http://php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen http://php.net/manual/en/configuration.changes.modes.php
  21. ben03

    Backgrounds on Overflows

    I was wondering if there was a CSS property and value that could be given to containing divs to keep them expanding with the content that I didn't know about. The problem I am experiencing is when a div has overflow-x set to visible, the overflowing content is visible, but the background cuts off at the point where you start scrolling. display:inline-block; seemed to solve it when given to the container, but then caused errors for the table it contained which stayed collapsed at its minimum width as opposed to filling the space when div was expanded (the div in question is a re-sizeable draggable pane). Is there a way of solving this I am unaware of? Help much appreciated.
  22. ryanstua

    A drop down menu

    Not sure if this is the right place however I am trying to build, using HTML/CSS, a menu where items are arranged horizontally. One of the menu items, when clicked, opens a drop down menu. This sub menu is 100% wide aligned from the left edge of the page and will contain additional links. these links are arranged in columns and I want there to be 3 columns. Any help on this would be very much appreciated.
  23. justinh

    header info query

    It appears my setting for "allow_url_fopen" in my file's folder php.ini was not being honored; it wouldn't work even if I set it in the PHP file, even if I set the X-frame-options header. I had to set "allow_url_fopen" in the site root's php.ini! I thought the local (to the file) php.ini would be in effect. Is there someway to make that work, or am I totally washed up about that? Maybe I am thinking about htaccess? Man, I fought this for two days! Thanks so much, everyone. I'm sure I'll be back after I get to the next step :-)
  24. Gilbert

    upload the same specific file every day

    Thank you very much - I was getting the feeling that it couldn't be totally automatic. I guess I'll just have to take 30 seconds out of my day to upload the txt file to my server. Thank you for the link and your help. Happy Holidays to you!
  25. Funce

    getting dynamic data for one tab only

    I don't know how your server-side works (nor am I proficient in C to use it otherwise) so I wouldn't be able to help regarding that half, but the idea is below: You'd need to look into a JSON library for C, or otherwise string manipulate all the values into a big JSON object string. Then you can output the string as a response.
  26. Funce

    font size 62%

    Why does this matter? If you're using em or rem you're not after specific sizes, just proportional differences.
  27. dsonesuk

    upload the same specific file every day

    Then it IS uploading. You will always have to select the file from O/S to upload to the website server as you can't predefine the filename value for security reasons. You could use a local server to ftp the file directly to website directory https://www.w3schools.com/php/func_ftp_put.asp Then process for adding to database on website server.
  28. Gilbert

    upload the same specific file every day

    Thanx for the reply. Maybe I'm not understanding what I need to do - I think I want to upload because I want to use php to do something with the file on the server. Right now I am opening my phpAdmin every day and entering my daily data by hand which is getting kind of tedious. I do want to COPY my data from a text file on my computer, but I thought that to get it on the server I had to UPLOAD. I know I could go to the file manager on the server and click upload and put the file wherever I want, but I wanted to make it automatic so I would have a button on the website to run the php to upload the file and then add the info to my database, parsing it using php. I think I see what your saying - maybe I don't need $FILES at all because that has to do with the Form action and Post method? Maybe I need to specify the address of the file on my computer in a different way? I would think this would be possible to do, I just don't have the correct coding to do it. I hope you can help me figure this out; please be specific as I'm still learning. Thank you!
  1. Load more activity
×