skip to Main Content

php file working in localhost server but not in cpanel

if($_SERVER['REQUEST_METHOD']=='POST'){ //this is my database include 'db.php'; $con = mysqli_connect($servername,$username,$password,$dbname); //inputs $email = $_POST['email']; $password = $_POST['password']; $phone = $_POST['phone']; //checking query $Sql_Query = "select * from user_info where email = '$email' and password = '$password' and phone = '$phone'…

VIEW QUESTION

Nodejs https combined with cpanel

I am trying to get https working on my nodejs server like so: var http = require('http'); var https = require('https'); var fs = require('fs'); var express = require('express'); var privateKey = fs.readFileSync('server.key', 'utf8'); var certificate = fs.readFileSync('server.crt', 'utf8'); var…

VIEW QUESTION
Back To Top
Search