![[Image: logo.png]](https://proximity.host/images/logo.png)
Home - Client Area - Forum
Hello everyone!
Proximity.Host is a rebrand of AlphaHost which started in October 2016. We decided to change our name, With changing our name we have improved many things.
Limited Offer Shared Hosting Package. 1$/m
- 1GB SSD Disk Space.
- 100 GB Bandwidth.
- 100 Addon Domains.
- 100 Sub-Domains.
- 100 Email Adresses.
- 100 FTP Account.
- 100 SQL Databases.
- Free cPanel.
- Free SSL Certificates.
- 24/7 Live chat/Forum/Ticket support.
- Purchase Now!
- 5GB SSD Disk Space.
- 100 GB Bandwidth. (In the unlikely event you need more, we will upgrade this for free).
- 100 Addon Domains.
- 100 Sub-Domains.
- 100 Email Adresses.
- 100 FTP Account.
- 100 SQL Databases.
- Free cPanel.
- Free SSL Certificates.
- 24/7 Live chat/Forum/Ticket support.
- Purchase Now!
- 10GB SSD Disk Space.
- 100 GB Bandwidth. (In the unlikely event you need more, we will upgrade this for free).
- 100 Addon Domains.
- 100 Sub-Domains.
- 100 Email Adresses.
- 100 FTP Account.
- 100 SQL Databases.
- Free cPanel.
- Free SSL Certificates.
- 24/7 Live chat/Forum/Ticket support.
- Purchase Now!
If you are looking for help. Please contact us via live chat or support ticket. We will reply you within 1 hour.
Contact Us :
Phone : +923052726901
Email : [email protected]
Support : Contact Us.
A beginner here. I hope to be eager to learn things here and I would like to share my thoughts as well. This is going to be great

Don`t Let This Offer Slip Away
Are You Ready for Our Black Friday Sale?
Welcome to Cloudddos Offers,
Surprise folks ,Server is important ,but server can sometimes get kind of crazy.Especially when you start going to build your own website.On Black Friday Sale, we are going to try and simplify some of Black Friday offers 50% off for all of our Cloud Servers to make it simple for your website to host with upto 500GBPS Ddos protection.
http://www.cloudddos.com/about/news/116.html
The Clock Is Ticking ,Final Hours To Save Big. Take 50% For All Cloud Servers.
Code- BLACKFRIDAY
Are You Ready for Our Black Friday Sale?
Welcome to Cloudddos Offers,
Surprise folks ,Server is important ,but server can sometimes get kind of crazy.Especially when you start going to build your own website.On Black Friday Sale, we are going to try and simplify some of Black Friday offers 50% off for all of our Cloud Servers to make it simple for your website to host with upto 500GBPS Ddos protection.
http://www.cloudddos.com/about/news/116.html
The Clock Is Ticking ,Final Hours To Save Big. Take 50% For All Cloud Servers.
Code- BLACKFRIDAY
Few weeks ago I read about Nokia Flagship phone they are plan to release in this year. I\'m not sure if they have already done that or not but sounds like this smart phone is a real beast. It's called Nokia Edge. It's specs are really impressive,
<br/>
I don't know how much of this is true since I couldn't anything about it on Nokia website. The latest one they have is Nikia 8 and few local phones sites say Nokia Edge will hit markets in March next year.
So do yo u guys know any phones which have similar or better specs than this ?
- 6GB RAM.
- 128GB internal memory + 128GB with Micro SD card.
- Latest Qualcomm Snapdragon 835 chip-set.
- 5.7″ AMOLED screen with 2K resolution.
- Gorilla Glass 5.
- 24 Megapixel primary and 12 Megapixel selfie cameras.
- An inbuilt retina scanner.
- Run on the latest operating system Android 7.1.1 Nougat.
<br/>
I don't know how much of this is true since I couldn't anything about it on Nokia website. The latest one they have is Nikia 8 and few local phones sites say Nokia Edge will hit markets in March next year.
So do yo u guys know any phones which have similar or better specs than this ?
It seems nobody had mentioned it here yet so I thought to open a thread about it. Galaxyhost has started providing free vps without asking any commitments. These are small containers with lots of restrictions but can be handy if you want learn about vps and as a testing server. One important thing to remind is they do not allow any kind of mailing and port 25 is blocked.
Specs are,
Specs are,
- 256M RAM
- 10GB Space
- 100 GB Bandwidth
- 0.5 core CPU
Stunning VPS is Launched 2017. We aim to provide most affordable Web Hosting Service .
Coupon Code : BFCM2017
Order Now
Our Cyber Monday Deals
1GB Space Webhosting Package free for first month
- Space - 1GB
- Bandwidth - 10GB
- Addon Domains - 2
- Unlimited Database - Yes
- Unlimited FTP - Yes
- Unlimited Email Accounts - Yes
- Unlimited Email Forwarders - Yes
- Script Installer - Yes
- Managed Service - No
- Server - Shared With 25+ Client
- Back Up - No
- Location - USA
Coupon Code : BFCM2017
Order Now
Does anyone own the new iPhone X? Do you like the phone? How is wireless charging? Can you explain your experiences?
Should I wait for the next iPhone X or should I buy it now?
Should I wait for the next iPhone X or should I buy it now?
Posted by: humanpuff69 - 11-26-2017, 10:21 AM - Forum: Scripting & Programming
- No Replies
Hi Guys
Today i will show you how to make a simple cms that show a post and you can also create a post to be shown on the index page . you can make a blog with it . so without further a do lets get started
Preparation
- Apache / Nginx Webserver (nginx is reccomended)
- PHP 5+ (PHP 7 IS Reccomended and that is what im using)
- 1 Mysql database with 1 table with the name (entry) that have 5 column (id , title , image_url , content , author (optional))
1.config.php
We need a file to store our CMS setting so star by making a file called config.php . technically you can use any name but i choose config.php because it is easier and the name is showing what the content it is so you need the config php to store variable / setting . in this case we need the config to store the MySQL Credential setting
Make sure you have a correct setting otherwise the cms wouldnt work .
2.index.php
this is where the main file of the cms / website is . so your mysql data / entries will be shown here . to start create a index.php file like this . this file basically ill connect to myql server in the config.php and fetch the data from it
after that save the file and run it . if you set it up succesfully the website should run with no entry . for how to make the entry with admin.php that is for another part . stay tooned
3.admin.php
Now we need to make the admin page to insert an entry / post to our cms . sorry for random variable name . that is a variable name in indonesian . this cms is based on my other cms that im working on that is indonesian so sorry for that but by the way i already renamed the visible user content so no worry there . some of the text is still indonesian that i forget to translate but this cms should work fine
here is the code
after that save it as admin.php and open the admin.php and try to make a post with it and see the result
in part 2 i will add a login to make it more secure , make it sql injection proof and also make a page to make sure that not all the post show on the same page
thanks for seeing my tutorial hopefully it is useful for who want to learn to make a CMS
Today i will show you how to make a simple cms that show a post and you can also create a post to be shown on the index page . you can make a blog with it . so without further a do lets get started
Preparation
- Apache / Nginx Webserver (nginx is reccomended)
- PHP 5+ (PHP 7 IS Reccomended and that is what im using)
- 1 Mysql database with 1 table with the name (entry) that have 5 column (id , title , image_url , content , author (optional))
1.config.php
We need a file to store our CMS setting so star by making a file called config.php . technically you can use any name but i choose config.php because it is easier and the name is showing what the content it is so you need the config php to store variable / setting . in this case we need the config to store the MySQL Credential setting
Code:
<?php return array (
'servername' => 'localhost (server location it is probably localhost)',
'username' => 'mysql username ( you can use root but it is very unsafe)',
'password' => 'mysql passwor to that username',
'dbname' => 'name of the database that you want to use',
);
2.index.php
this is where the main file of the cms / website is . so your mysql data / entries will be shown here . to start create a index.php file like this . this file basically ill connect to myql server in the config.php and fetch the data from it
Code:
<?php
$config = include 'config.php';
$conn = new mysqli($config['servername'], $config['username'], $config['password'], $config['dbname']);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT id, title , image_url , content , author FROM entry ORDER BY id DESC";
$result = $conn->query($sql);
$conn->close();
?>
<head>
<title>humanpuff69 php tutorial</title>
</head>
<body>
<center><h1>Website Title</h1>
<p><b>HOME</b> </p></center>
<hr>
<?php
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "<h2>" . $row["title"] . "</h2><br>
<center><img src=" . '"' . $row["image_url"] . '"' . " width=". '"' ."95%". '"' ."></img></center>
<p>" . $row["content"] . "</p>";
}
} else {
echo "Entry not found";
}
?>
</body>
3.admin.php
Now we need to make the admin page to insert an entry / post to our cms . sorry for random variable name . that is a variable name in indonesian . this cms is based on my other cms that im working on that is indonesian so sorry for that but by the way i already renamed the visible user content so no worry there . some of the text is still indonesian that i forget to translate but this cms should work fine
here is the code
Code:
<?php
include('session.php');
$config = include 'config.php';
$conn = new mysqli($config['servername'], $config['username'], $config['password'], $config['dbname']);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$caption = $_POST['caption'];
$caption = nl2br($caption);
$judul = $_POST['judul'];
$image_url = $_POST['img'];
$caption = $conn->escape_string($caption);
$judul = $conn->escape_string($judul);
$image_url = $conn->escape_string($image_url);
if(!isset($_SESSION['login_user']) && !isset($_SESSION['user_hash'])){
header("location:login.php");
}else {
If ($_SERVER['REQUEST_METHOD'] == "POST" && $_POST['judul']=="") {
$notice_display = "";
$notice_type = "danger";
$notice_bold = "Terjadi Kesalahan ";
$notice = "Tolong masukan judul entri";
} elseif ($_SERVER['REQUEST_METHOD'] == "POST") {
$sql = "INSERT INTO entry (title , content , image_url , author)
VALUES ('$judul' , '$caption', '$image_url' , '$linkfb')";
if ($conn->query($sql) === TRUE) {
$notice_display = "";
$notice_type = "success";
$notice_bold = "Succes! ";
$notice = "Entri has been added";
} else {
$notice_display = "";
$notice_type = "danger";
$notice_bold = "error ";
$notice = "Error occured " . $sql . "<br>" . $conn->error;
}
}
}}
$conn->close();
?>
<!-- Text input-->
<head>
<title>Admin Area</title>
<body>
<p><b><?php echo $notice_bold ?></b></p><br>
<p><?php echo $notice ?></p>
<hr>
<form method="POST" action="admin.php" enctype="multipart/form-data">
<label class="col-md-4 control-label" for="judul">title</label><br>
<input id="judul" name="judul" placeholder="" class="form-control input-md" required="" style="width:100%" type="text"><br>
<label class="col-md-4 control-label" for="judul">Image url</label><br>
<input id="img" name="img" placeholder="" class="form-control input-md" required="" style="width:100%" type="text"><br>
<label class="col-md-4 control-label" for="caption">Content</label><br>
<textarea class="form-control" id="caption" name="caption" style="width:100%"></textarea><br>
<label class="col-md-4 control-label" for="linkfb">Author</label><br>
<input id="linkfb" name="linkfb" placeholder="" class="form-control input-md" required="" style="width:100%" type="text"><br>
<label class="col-md-4 control-label" for="submit"></label>
<button id="submit" name="submit" class="btn btn-primary">Submit</button>
</form>
</body>
in part 2 i will add a login to make it more secure , make it sql injection proof and also make a page to make sure that not all the post show on the same page
thanks for seeing my tutorial hopefully it is useful for who want to learn to make a CMS

Welcome, Guest |
You have to register before you can post on our site. |
Search Forums |
(Advanced Search) |
Forum Statistics |
» Members: 2,271 » Latest member: orzpainter » Forum threads: 3,103 » Forum posts: 34,787 Full Statistics |
Online Users |
There are currently 370 online users. » 0 Member(s) | 367 Guest(s) Bing, Google, Applebot |