Jump to content

dlowery

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dlowery's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have two text content input forms for a website installed on a virtual-hosting service (leased). They were written a couple years ago; adapted from an article I found on the Web. They used PHP environment variables *before* the adaptation of  $_SERVER, $_POST, etc. variables. Earlier this year my hosting service upgraded PHP (and mySQL and so on). I has problems almost immediately but when I found out about the $_variables I changed ALL pages on my site to conform. They all work well, except for these input pages. Yes, it sounds like I should be in a PHP topic! But since the error is [b]http 406[/b] I leaped to the server. The pages in question include HTML forms to accept Author, Publisher, a teaser line, image link, and content text. A click on the submit button continues to inline PHP code to verify form data, open a MySQL connection, upload the info, etc.  It has been working perfectly for more than two years. And it HAS worked after upgrading the $_variable references. That's the hair-tearing thing! I tried to load some new stuff yesterday. The first entry effort worked perfectly. The second (and subsequent) attempts failed with the 406 error! To my knowledge nothing has changed on the server. The host's cpanel and my FTP client both indicate that files are in place where they are supposed to be and where the "call" expects them to be. I'm not using the PEAR libraries or any other db tricks...just the plain PHP interface with mySQL. (And the DuBois MySQL book!) I am befuddled! To say the least. If you have and suggestions or want some code, please let me know! Thanks for listening! dlowery (hairless)
  2. "I ain't no ex-spurt, but..." if the error line is outside the code file chances are that there's a missing brace '{}' or parenthesis '()'. I use a code editor that lets you check this quickly. Put your cursor in front of the first opening brace, hit CTRL-M and it finds the closing brace. No matter how deep or complex and free of charge! And so on down the line. The editor has features like tidy, strip M$Word excesses, and things I haven't explored...it's great! Google "HTML-Kit". There's a free version; look for it. There's probably some others in OSS and for linux. I just haven't looked. Have fun! dlowery
  3. A Website I've been running for 4 years now. It has new pix on a regular basis and the older pix are archived. Visitors may register (via PHP/MySQL) to access the Gallery Archive. No problems for 3+ years. Now, on an irregular basis, some registrations make it into MySQL while others don't. I've spent days researching the problem and the only thing that comes to mind is Virus Protection software. The PHP/MySQL script/code has been turned inside out and outside in. It works as expected with some requests and not at all with others. Registrations have been successful in Southern California but not in New England; Okay from Spain last week but a failure today from Canada! E-mails are sent to the regsitrant and to the Webmaster upon [b]successful [/b]completion of the DB update. (Hmmmm. One more posibility just came to mind. Let that be a lesson: describing a problem to others can lead to discovery of your own possible oversights!) More later! But if you have any thoughts, please respond! Thanks, dlowery in Los Angeles
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.