PHP Upload fails for Video but not Image [closed]

The video may be going over your maximum upload size. To increase your maximum upload size, add the following lines to your .htaccess file: php_value upload_max_filesize “200M” php_value post_max_size “200M” (Replace “200M” with whatever you want the maximum to be – “200M” means “200 megabytes”.) Some hosts may not allow you to change those settings, … Read more

php form send email

First, Use this headers: <?php $headers = “MIME-Version: 1.0\r\n”; $headers .= “Content-type: text/html; charset=utf-8\r\n”; //Fom $headers .= “From: XXX XXXX XXXXX <[email protected]>\r\n”; //Reply $headers .= “Reply-To: [email protected]\r\n”; //Path $headers .= “Return-path: [email protected]\r\n”; //CC $headers .= “Cc: [email protected]\r\n”; //BBC $headers .= “Bcc: [email protected],[email protected]\r\n”; ?> Two, Read about PHPMailer and see the next code: And try with … Read more

HTML Form/PHP connected but MySQL is empty

You seem to be missing your opening form tag. also mysqli_real_escape_string first param is the connection, second param is the string and you are not selecting a database. I suggest having a read up on http://www.w3schools.com/php/func_mysqli_connect.asp http://www.w3schools.com/php/func_mysqli_real_escape_string.asp

Sending email from a form

Clearly, the fact that leaving out the if cause a NullPointerException means that one or both of the comment or subject parameters is missing. That would suggest that the problem is in the form. Use your browser’s web developer capabilities to find out precisely what request is being sent to your server. It looks like … Read more

Syntax error unexpected '<' [duplicate]

You are not closing the last else block else { $SenderAddress= “$Sender <$Email>”; $Headers= “From: $SenderAddress\nCC: $SenderAddress\n”; // Substitute your own email address for // [email protected] $result = mail (“[email protected]”, $Subject, $Message, $Headers); if ($result) echo “<p>Your message has been sent. Thank you, ” . $Sender . “.</p>\n”; else echo “<p>There was an error sending … Read more