Jump to content
Larry Ullman's Book Forums


  • Posts

  • Joined

  • Last visited

Everything posted by possowski

  1. I am using VSC 2019 and PHP 7; when I Live View an HTML file I have no problem. When I try to Live View a PHP file I get the following message: Cannot GET /%20--use-spdy=off%20--disable-http2 I had no issues with the install of either Vs or PHP and verified my PHP is running correctly. I need a little guidance please.
  2. 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.
  3. 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.
  4. 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?
  5. 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.
  6. thanks, sounds like something to tackle after I complete the PHP and MySQL book.
  7. 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?
  8. thanks, I will look at using either an array or simple data table.
  9. 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?
  10. 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.
  11. Larry, I changed to "c" to "C" and put the code on a single line and it works, thanks.
  12. 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.
  13. 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.
  14. 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.
  15. I found the files but am not familiar with GitHub. I created my profile but don't know how to download the files.
  16. I am a little lost on loading the feedback.html form in Ch 3 into a url. I am running XAMPP, Chrome, Windows 10 but whenever I open the file I get the local path. file:///C:/xampp/htdocs/feedback.html. I have looked through various advise sites and am no better off. How do I load this file into a http://url? I know my software is installed correctly because it has worked for all the previous exercises.
  • Create New...