skip to Main Content

Confuse about web hosting CPanel

I've read some article about deploying a website to a host. It has something like cPanel and we put all the source code into the public_html folder. And we can access those file using hostname.com/index.html will be pointed to /public_html/index.html…

VIEW QUESTION

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