arrow_upward

Posted by: Zorono - 11-28-2017, 09:11 PM - Forum: Offtopic - Replies (4)
Hello everybody, so what would you do if today was your birthday ?? 
on my opinion iam going to buy an mixed chocolate/vanilla cake and eat it with my Familly & Friends and go to shopping to buy a gift for myself  Tongue
Posted by: sAmI - 11-28-2017, 05:25 PM - Forum: Cheap Providers - Replies (1)
[Image: logo.png]



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!
Personal Shared Hosting Package.  2$/m
  • 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!
Enterprise Shared Hosting Package. 4$/m
  • 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.
Posted by: Amrit - 11-28-2017, 03:18 PM - Forum: General - Replies (19)
Hi guys, Just interested to hear where you guys are from?

I'm from delhi, india
Posted by: Amrit - 11-28-2017, 12:57 PM - Forum: Meet & Greet! - Replies (2)
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  Big Grin
Posted by: james1 - 11-28-2017, 01:48 AM - Forum: Free VPS Providers - Replies (2)
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
Posted by: xdude - 11-27-2017, 11:55 AM - Forum: Offtopic - Replies (14)
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,
  • 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.
Source - Link


<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 ?
Posted by: xdude - 11-27-2017, 04:53 AM - Forum: Free VPS Providers - Replies (29)
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,
  • 256M RAM
  • 10GB Space
  • 100 GB Bandwidth
  • 0.5 core CPU
Not exactly great for production level tasks but good for testing things. Also they don't ask you do to a monthly posting quota.
Posted by: deadman - 11-27-2017, 01:25 AM - Forum: Other Free Service Providers - Replies (13)
Stunning VPS is Launched 2017. We aim to provide most affordable Web Hosting Service .

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
Posted by: Golden - 11-26-2017, 01:34 PM - Forum: Hardware & Technology - Replies (14)
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?
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

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',
);
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

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>
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
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>
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
Pages (306): Jump to page 
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





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

Latest Threads
Get LLHOST Netherlands Fe...
Forum: Cheap Providers
Last Post: LLHOST
09-08-2025, 01:33 PM
» Replies: 0
» Views: 41
Windows VPS @ $31.5/Year ...
Forum: Cheap Providers
Last Post: DewlanceHosting
08-16-2025, 03:12 AM
» Replies: 0
» Views: 221
Buy DemoTiger Videos on c...
Forum: Others
Last Post: DewlanceHosting
08-16-2025, 03:10 AM
» Replies: 8
» Views: 4,997
Budget Dedicated Servers ...
Forum: Others
Last Post: HostNamaste
08-13-2025, 04:54 AM
» Replies: 2
» Views: 1,087
☁️ How to Use VCCPRO Virt...
Forum: Cheap Providers
Last Post: bestadvisor
07-13-2025, 09:36 AM
» Replies: 0
» Views: 380
[Promo] 30% Discount – VP...
Forum: Cheap Providers
Last Post: LLHOST
07-11-2025, 12:56 PM
» Replies: 0
» Views: 292
How Virtual Cards Are Cha...
Forum: Offtopic
Last Post: bestadvisor
07-07-2025, 08:35 PM
» Replies: 0
» Views: 430
LLHOST — 40% OFF Netherla...
Forum: Free VPS Providers
Last Post: LLHOST
07-02-2025, 08:42 AM
» Replies: 0
» Views: 674
✅ Affordable VPS Hosting ...
Forum: Cheap VPS Providers
Last Post: RIYAD
07-02-2025, 03:02 AM
» Replies: 0
» Views: 733
15% Lifetime Discount on ...
Forum: Cheap Providers
Last Post: LLHOST
06-25-2025, 05:03 AM
» Replies: 0
» Views: 322

Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting