Jump to content
Larry Ullman's Book Forums

possowski

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About possowski

  • Rank
    Newbie
  1. no confusion, this last chapter reinforced the need to sometimes WALK AWAY and take a break. Now that this is complete, it is time to get started on PHP and MySQL.
  2. fixed!! the issue was using word wrap I misread one of the lines (49) and had a replicated piece of code (is_numeric was repeated) so after removing the second one it worked fine.
  3. Larry, I have a similar issue (I tripled check the code and it is correct). when I choose a quote from the "View All Quotes" site I get a correct load, id is displayed in the URL and I can edit. However, when I click "Update this quote!" I get the access error message. I can send the code if you need it, but what else should I check?
  4. I have completed the login form (Script 13.5) and have no idea what LI and PW it is looking for. In ch 8 we created a LI and PW but that site isn't connected to this site.
  5. thanks, sounds like something to tackle after I complete the PHP and MySQL book.
  6. We are creating separate pages for each of the functions (add_entry, view_entry, edit_entry); other than having a long page of script and forms is there another reason why these can't be combined into a single page with multiple forms and corresponding code?
  7. thanks, I will look at using either an array or simple data table.
  8. I plan to modify the add_quote.php and quote.txt file into a grocery list that can be saved then printed. I looked in the online php manual and found a clear fcn (->clear) that seems to be able to clear an array, but can it also clear the contents of the txt file?
  9. I am using Atom and had it on soft toggle word wrap and that made it look like the move_uploaded_file() code line was on a single line, but it wasn't.
  10. Larry, I changed to "c" to "C" and put the code on a single line and it works, thanks.
  11. I am also having some issue with the directory path and don't want to put it in the same folder as the upload_file.php file. I have attached a snippet of my directory and here is the corresponding code: if (move_uploaded_file ($_FILES['the_file']['tmp_name'], "c:/xampp/uploads/ {$_FILES['the_file']['name']}")) { print '<p>Your file has been uploaded.</p>'; } else { // problem occurs My form is loading loading and seems to be functioning properly. this is my error message: Warning: move_uploaded_file(c:/xampp/uploads/ Freedom PE form.docx): failed to open stream: No such file or directory in C:\xampp\htdocs\FilesAndDirectoriesCh11\upload_file.php on line 19Warning: move_uploaded_file(): Unable to move 'C:\xampp\tmp\phpE046.tmp' to 'c:/xampp/uploads/ Freedom PE form.docx' in C:\xampp\htdocs\FilesAndDirectoriesCh11\upload_file.php on line 19 Your file could not be uploaded because: Something unforeseen happened.
  12. I am not sure what I did but the previous issue is corrected, now I am getting the same error message at Tri, so I will consider this a completed task.
  13. Larry, I am also working on script 8.10 and received the following error when I tried to send the email: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\CreatingWebAppsCh8\register.phpon line 44. this is my line 44: mail($_POST['email'], 'Registration Confirmation', $body, 'From: admin@example.com'); I am running win10 on a 64bit system, xampp v3.2.2 and when I looked at the phpinfo.php file it was set for SERVER_PORT 80 but this is what the php.ini file has: [mail function] ; For Win32 only. ; http://php.net/smtp SMTP=localhost ; http://php.net/smtp-port smtp_port=25 ; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = me@example.com I added the ini_set ini_set("smtp_port", 25); mail($_POST['email'], 'Registration Confirmation', $body, 'From: admin@example.com'); and received the same error message. I have looked at several different sources, including the php site and am still at a loss.
×