possowski
Members-
Posts
19 -
Joined
-
Last visited
possowski's Achievements
Newbie (1/14)
0
Reputation
-
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.
-
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?
-
Ch 13 LI and PW
possowski replied to possowski's topic in PHP for the Web: Visual QuickStart Guide (5th Edition)
got it, thanks. -
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.
-
combining pages for DBM
possowski replied to possowski's topic in PHP for the Web: Visual QuickStart Guide (5th Edition)
thanks, sounds like something to tackle after I complete the PHP and MySQL book. -
Ch 11 clearing the text file
possowski replied to possowski's topic in PHP for the Web: Visual QuickStart Guide (5th Edition)
thanks, I will look at using either an array or simple data table. -
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.
-
Sending Email - Script 8.10
possowski replied to tri's topic in PHP for the Web: Visual QuickStart Guide (5th Edition)
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. -
Sending Email - Script 8.10
possowski replied to tri's topic in PHP for the Web: Visual QuickStart Guide (5th Edition)
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.