Jump to content

iwato

Members
  • Content count

    710
  • Joined

  • Last visited

  • Days Won

    1

iwato last won the day on June 10

iwato had the most liked content!

Community Reputation

6 Neutral

1 Follower

Contact Methods

  • AIM
    moogoonghwa
  • Website URL
    http://www.grammarcaptive.com
  • Yahoo
    iddor
  • Skype
    kiusau

Profile Information

  • Gender
    Male
  • Location
    Seattle, Washington USA 98104

Previous Fields

  • Languages
    HTML, CSS, Javascript, PHP, MySQL and Spoken Language

Recent Profile Visitors

6,307 profile views
  1. Yes, the session.save_path directive is present, but in my configuration it is commented out. Still the information contained in the $_SESSION superglobal is being saved somewhere. How would you recommend that I discover where the information is kept. Running the session_save_path( ) function does not reveal the location. Also, please read this quote from W3Schools and then my original entry. My observation appears to contradict W3Schools. Can you explain why? Roddy
  2. It depends on how the session is specified and how the session is ended. If the session is user-defined, and the session is closed using the session_write_close( ) function, the session variables and their values remain for future use. How important are they? I am not sure yet and am still exploring as I always do when confronted with an extension that I have never used before. It is part of the learning experience. It started in Thailand way back in 2010, and I cannot rid myself of the habit. I like grammar! Roddy
  3. Thank you for responding. There is a lot having to do with sessions that is configured in php.ini, but a link to a text file that stores session data does not appear to be one of them. I just checked. Have you got any other ideas as to where the data is stored? Roddy
  4. BACKGROUND: Ever since I realized that the $_SESSION superglobal was the future of my podcast page (two-three days ago) I have been diligently exploring the PHP SESSION extension. It is amazing what I discovered. In particular, I am impressed by the tenacity of a user created session and the associated $_SESSION superglobal. Indeed, using the session_write_close( ) function one can not only close a browser window, quit one's browser, open the same page in a new browser, but one can also reboot one's machine, and still, the values of the session variables contained in the $_SESSION superglobal associated with the user_created session are in tact. QUESTION: To where does the session_write_close( ) function write such that it is forever saved, and how does one purge that location short of destroying the entire file, if the location's contents are not unique to the session whose data it is storing?
  5. Please help a newbie

    Place the following code before you make your call to the mysqli_connect( ) function and see if it does not give you a better clue: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); Roddy
  6. Unusual Code - A PHP Shortcut?

    <?=++$a?> <?=++$b?> <?=$private_id?> <?=session_id()?> I found this on the internet amongst some other code, and it appears to work. Unfortunately, I do not quite understand it. Is <?= a shorthand for <?php echo ... ;
  7. Load Page with Filler Update

    Understood. But, pages with .php extensions can display HTML. One of my pages displays no HTML, the other does. This is what I meant. Thank you. Roddy
  8. Load Page with Filler Update

    It will be my first time to use a session, but I could see the time coming long before I started the current task. So, now is just as good as time as any, and it looks like using a session will provide me with all of the communication that I need between the PHP and HTML pages. Once again, Dsonesuk, you have struck home. Many thanks! Roddy
  9. Load Page with Filler Update

    I have just discovered that I can use the PHP header( ) function with an URL as the value of the function's location parameter to open the HTML page from the PHP age. header("Location: $url"); Ostensibly, i could append a query string to the end of the URL and then process this string on the HTML when the page opens. Would this not require, however, that I change the extension of the HTML page from .html to .php? Likely not a big deal as the HTML page is still in a stage of development. Roddy
  10. Load Page with Filler Update

    The user will click on the third-party website only if he wants. That is his choice. i only care about what happens after he clicks. Yes and no. Yes, when the user clicks on the third party website, he is taken to my website, but his action does not open an HTML page, rather an invisible PHP page. What I need to know is how get this latter page with the .php extention to open an .html page in the user's browser after it has processed the information sent to it from the third-party website. In addition, I would like that the information processed on the PHP page be transferred to the newly opened HTML page. Is it clear now? Roddy
  11. Load Page with Filler Update

    OK. We appear to have touched base here: If you're saying the page isn't loaded by the browser yet, then nothing can happen until the browser sends a request for the page and gets a response from the server. So, I have to 1) Get the PHP page to send a request to the user's browser to open the host HTML page. 2) Force a request from the newly opened HTML page to the PHP page. 3) Receive the response and display it in the HTML page. This looks like AJAX. Something that I have never used before, but appears entirely within my reach as I have some knowledge of both Javascript and JSON. This appears to be something that I can do except for the fact that I do not know who the user is. Once again, The TASK The user clicks on a link on a third party website. An HTTP request is sent from the third party website to a PHP document hosted on my own webpage that uses the requested information to query a database and make a determination. But, how does the PHP document know where to send the HTTP request necessary to open the host HTML page in the user's browser? Roddy
  12. Load Page with Filler Update

    Let me try one more time. Usually, information from an external source is loaded into an HTML page that is already opened. In my case, the HTML page in which the information is to appear is not yet opened. What is more, the unopened page in which the processed information is to appear is used for several other purposes and cannot be easily produced from the processing PHP page that produces the information that is to appear in the HTML page. Roddy
  13. Load Page with Filler Update

    So as to be simpler. QUESTION ONE: Is it possible to call a page into which the calling page is itself loaded? QUESTION TWO: If this is possible, there is likely more than one technique available to achieve the task. What are they?
  14. Load Page with Filler Update

    JSG: I have created a form page (sender.php) with a single input field. The value of this input field is sent via a $_GET superglobal to another page (receiver.php) that: one, retrieves all of the records from a data base; two, compares the value received from the form page (sender.php) with the values of a field of all of the retrieved records, and three, displays the receiver.php page with the value of another field of the same matched record. Everything up to this point has now been accomplished. JSG: Indeed, this is the part that I have yet to overcome. The displayed result (see above) is the information that should serve as a filler for another page that hosts all such form queries. QUESTION: How do I get the information from this filler (receiver.php) to appear in the host page with the host page when the result of the form query is sent to the filler template? Roddy
  15. Load Page with Filler Update

    Thank you for responding. I have decided to play with my idea a little before coming back. For, in this way, I will be able to ask a better question dealing specifically with code. In so doing, I may even be able to answer my own question.
×