arrow_upward

Posted by: sasalih416 - 05-27-2018, 01:40 PM - Forum: General - Replies (3)
I am searching for a VPS with 1xCPU, 2GB RAM, 500GB Bandwith or more for the purpose of running a bot.
Posted by: sagher - 05-26-2018, 05:49 AM - Forum: Offtopic - Replies (20)
Hi everyone : Hope you all fine. recently i sold out my smartphones. one of them is Samsung Galaxy Note 5 Duos and the second is Sony Xperia Z5 Premium.
now i would like to discuss with you and need expert opinions. my one choice is
Huawei P20pro
and the second is
Xiaomi MI Mix2s
which was best.
and any other choice? 
except Samsung and iPhone
Posted by: tiwil - 05-25-2018, 03:32 PM - Forum: VPS Support - Replies (1)
Hi guys. I'm going to straight to the point.
So, currently I have a problem which is, my GNOME doesn't auto start after I reboot my server.
I need to type "startx" to start GNOME after rebooting. But, it's not really efficient for me.

I already installed gdm and lightdm, but nothing happened.
And already followed some tutorials, but nothing happened too. Sigh.

Anyone have idea for this one?

Currently running Ubuntu Server 16.04 LTS on 64bit.
Thanks.
Posted by: xdude - 05-24-2018, 05:39 AM - Forum: General - Replies (9)
More of I wanted to ask which vps you have had for the longest period of time here. And the reason why did/do you stick with that server. Also what do you think about it's Sponsor/provider.

.


I have had vps2 for over a year now. This is not my first server here but I can say without a doubt this the best box I have got from giveaways here. It's KVM with 2GB RAM, 500GB Bandwidth, 15GB Space and 2 x 2.66GHz cores. Not SSD but that's not a issue for what I do. I'm using it basically for backing up sites and data bases and also for various social media tasks. also sometimes for do web browsing.

.

Sponsor is SSDblaze who offer some amazing range of vps and dedis for very good prices. You can check their VPS prices here >  Price List  . vps with above specs can get for jusy 4$/m and one with 4GB RAM is only 7$/m.  Their Dide prices started from 65$/m for 8 x 2.4GHz cores, 32 GB DDR3, 3 x 1TB SATA, 10 TB server.

.

I haven't seen their representative active in forum but I don't think it's needed. For this whole year I have only made 2 support tickets and one was about accessing problem which got sorted out quite fast and other was something i could sorted out my self. They do have great uptime too.
Posted by: Zorono - 05-24-2018, 01:14 AM - Forum: Tutorials - Replies (1)
Hello everybody, so iam going to show you Today how to Check for TCP Listening Ports's Validation and Status using a small PHP script.

  1. We have to initializate some required vars:
    PHP Code:
    $host "127.0.0.1"// The Device's remote host which will be used on Monitoring the Specified Ports.
        
    $timeout 2// The connection timeout. (in Seconds)
        
    $ports = array(80,21); // The specified Ports which will be Monitored.
        
    $datei fopen('portlist.ini''w+'); // Creating/Overwritting a file which will be used to store in the Data. 
  2. Let's Add the Tagline of your Logs File(portlist.ini or whatever):
    PHP Code:
    fputs($datei"[Ports]\r\n"); 
  3. Lets initializate a Loop Statement which will be used on switching between your specified Ports:
    PHP Code:
    for($i 1$i <= count($ports); $i++)
    {
            
    $a $i 1// it subtract a number ever time. and assign the result to the var $a 
  4. Let's Set the Variable's Type to Integer to avoid some stupid warnings/errors which will be caused of 'int to str':
    PHP Code:
    settype($ports[$a], "int"); // for more info about possible Types feel free to check http://php.net/manual/en/function.settype.php 
  5. Let's do the Magic:
    PHP Code:
    $print "Port".$ports[$a]."=" . ($handle = @fsockopen($host$ports[$a], $errno$errstr$timeout) ? 'OPENED' 'CLOSED') . "\r\n"
  6. Let's Write the results to your INI Logs file:
    PHP Code:
    fputs($datei$print); 
  7. Let's Close the Socket Connection to avoid Connection issues during the loop process:
    PHP Code:
    @fclose($handle); 
  8. Let's Close the Loop Statement's Bracket:
    PHP Code:

  9. Let's Close your INI Logs File's Process:
    PHP Code:
    fclose($datei); 

Full Code:
PHP Code:
$host "127.0.0.1";
    
$timeout 2;
    
    
$ports = array(80,21);
    
$datei fopen('portlist.ini''w+');
    
fputs($datei"[Ports]\r\n");
    for(
$i 1$i <= count($ports); $i++)
    {
        
$a $i 1;
        
settype($ports[$a], "int");
        
$print "Port".$ports[$a]."=" . ($handle = @fsockopen($host$ports[$a], $errno$errstr$timeout) ? 'OPENED' :  'CLOSED') . "\r\n";
        
fputs($datei$print);
        @
fclose($handle);
    }
    
fclose($datei); 

Posted by: chanalku91 - 05-23-2018, 10:02 AM - Forum: General - Replies (4)
I am igniting to ask if there is a CDN website that is able to optimize the TCP connection because recently I got the problem that is red latency for my game server is there any suggestions other than cloudflare speactrum
Posted by: Zorono - 05-20-2018, 10:55 PM - Forum: Hobbies - Replies (12)
Hello everybody, so What is your Favourite Music ?
  • My Heart is Going On. (Titanic)
  • Young Artists For Haiti - Wavin' Flag
  • 50 Cent - Candy Shop ft. Olivia
  • Apocalypshit - Molotov
  • Marshmello - Moving On
  • Imagine Dragons - Underdog
  • Estas Tonne - The Song of the Golden Dragon
  • Other, Feel Free to Mention it.

Posted by: Zorono - 05-20-2018, 02:57 PM - Forum: Scripting & Programming - Replies (6)
Hello everybody, so iam going today to show you my new PHP Work...

Let's at first define some Basics...
What is Discord ?
Discord is a proprietary freeware voice-over-Internet Protocol application designed for gaming communities, that specializes in text and audio communication between users in a chat channel. For more info...

What is Discord Communicator ?
[Image: messanger-result.JPG]
Discord Communicator is a simple lib which communicates with Discord's webhooks to send Messages to a specified Channel with JSON Content-Type through cURL. and its in background originally Created by nopjmp and it was called discord-webhooks and then its forked&developed by me since many months.

Requirements:
  • PHP 5.6.36+
  • cURL 7.59.0+
  • Running Discord Server.
  • Created Webhook in your Discord Server.

Setting up a webhook in Discord:
  1. On your Discord Server open 'Server Settings' and select 'Webhooks' on the menu:
    [Image: AcZ6EZp.png]
  2. Click on the Button 'Create Webhook' and then complete the form ("Name", "avatar" [the fields's values that you are setting will be the defaults and it may be overriden in this wrapper, but the channel you pick cannot be changed by the wrapper.You'll need a separate URL for each channel you want to post to...]:
    [Image: rNwg31Z.png]
  3. Copy the "Webhook URL" and use that when initializing the lib.

What is the original Features of this lib and What is the new Features ?
nopjmp's version's Features:
  • the Client/Embed class are less optimized.
  • Supports most of the possible Embed/Messaging Data: tts/message/embed fields[description/color/author/title/image/thumbnail/timestamp/footer/fields]
  • detects whether the color is hex or not and converts it to Decimal.
  • and many more...
My Version's Features:
  • Added the abillity to send your Data through cURL with JSON Content type...
  • Improved the ERROR Handler Script.
  • Optimized the Embed/Client Classes to be more cleaner.
  • Made it so easy to send the Data using a small Array (User Friendly).
  • Added Support for Hex colors and auto converstion from Hex Color to Decimel Color.
  • Added Default Values for Timestamp and Color.
  • Made most of the Data is optional.
  • Added a list of usefull Decimal Colors.
  • Added a kind of Advanced Embed Validator.
  • It now Checks for Messages Length before sending the Data to Discord's Systems.
  • and Alot more you can find it by yourself...
How to send a simple Message to my Discord Server's Channel using this lib ?
Using the Embed/Client Class directly:
  1. We have to include the Class code to our project file:
    PHP Code:
    include dirname(__FILE__) . "/DiscordWebhooks/Client.php";
    include 
    dirname(__FILE__) . "/DiscordWebhooks/Embed.php"
  2. We initializate the $webhook var and then assign the Client Class and set the arguemnt(s) to your {DISCORD_WEBHOOK_URL}:
    PHP Code:
    $webhook = new Discord/Client('https://discordapp.com/api/webhooks/{YOUR_CHANNEL_ID}/{YOUR_AUTH_TOKEN}'); 
  3. We initializate the $embed var and then assign the Embed Class without any arguments:
    PHP Code:
    $embed = new Discord/Embed(); 
  4. Let's do the Magic:
    PHP Code:
    $embed->description('This is an embed'); // it sets the description value of your embed...
    $webhook->username('Bot')->message('Hello, Human!')->embed($embed)->send(); // Let's set the Username of the BOT and send the Message 
Using the cURL Method: Feel free to checkout the cURL-Example.php

List of Avaible Functions/Variables:
PHP Code:
Client Class:
public function 
tts($tts// Controls the Message's tts settingswhether to be turned off/on (Boolean value, false by default)
public function username($username// Controls the BOT's Username (String value, NULL by default)
public function avatar($new_avatar// Controls the BOT's Avatar (String value, NULL by default)
public function message($new_message// Controls the Message which will be sent to the requested Channel (String Value, NULL by default, limit: 2000chr)
public function embed($embed// It Converts the Embed data to array
public function send() // It sends the requested Embed/Message data to the Discord Server and handles the errors

Embed Class:
public 
$COLOR_ // It Contains a list of usefull Decimal Colors (Array)
public function title($title$url ''// Controls the Title/Title URL of the Embed (String Value, NULL by default)
public function description($description// Controls the description of the Embed (String Value, NUL by default)
public function timestamp($timestamp// Controls the Embed's timestamp with the following Format: YYYY-MM-DDTHH:MM:SS.MSSZ (String Value, NULL by default)
public function color($color// Controls the Embed's Side Color (Integer value, NULL by default, Decimal Colors only)
public function url($url// Controls the Embed's master URL (String value, NULL by default)
public function footer($text$icon_url ''// Control the Embed's Footer's Text/Icon URL (String value, NULL by default)
public function image($url// Controls the Embed's Side Image (String value, NULL by default)
public function thumbnail($url// Controls the Embed's Thumbnail (String value, NULL by default)
public function author($name$url ''$icon_url ''// Controls the Embed's Author Name/Author URL/Icon URL (String value, NULL by default)
public function field($name$value$inline True// Controls the Embed's Fields Name/Value/Inline (String/Boolean Value, NULL by default, up to 25 Fields)
public function toArray() // It Converts Embed Data to Array 

Default Decimal Color List ($COLOR_ var):
Code:
     'default'   =>   0,
     'aqua'   =>   1752220,
     'green'   =>   3066993,
     'blue'   =>   3447003,
     'purple'   =>   10181046,
     'gold'   =>   15844367,
     'orange'   =>   15105570,
     'red'   =>   15158332,
     'grey'   =>   9807270,
     'navy'   =>   3426654,
     'cyan'   =>   1277892,
     'brown'   =>   11356937,
     'dark_navy'   =>   2899536,
     'dark_grey'   =>   9936031,  
     'dark_aqua'   =>   1146986,
     'dark_green'   =>   2067276,
     'dark_blue'   =>   2123412,
     'dark_purple'   =>   7419530,
     'dark_gold'   =>   12745742,
     'dark_orange'   =>   11027200,
     'dark_red'   =>   10038562,
     'light_grey'   =>   12370112

Note: The project is MIT licensed. To read the full license, feel free to visit LICENSE.md.
Posted by: Zorono - 05-19-2018, 09:20 PM - Forum: Tutorials - Replies (7)
Hello everybody, so iam going to show you how to calculate your Age with full detailes (Y/M/H/m/s/ms/ns/ms) in PHP by Date of Birth.

If you Wanna Calculate your real Age in numeric format:
You Have to subtract date('year') from date('Y') and insert on the last date function's timestamp argument strtotime('Year-Month-Day')
PHP Code:
To Be: date("Y") - date("Y"strtotime('Year-Month-Day'))
For 
Exampledate("Y") - date("Y"strtotime('2002-09-16'))) 
Output:
Code:
16

If you Wanna Calculate your real age with full details (Y/M/H/m/s/ms/ns/ms):
1- We initializate the $datebirth var with the DateTime Class and set the timestamp argument of the DateTime Class to your Date of Birth with the following Syntax Year-Month-Day
PHP Code:
To Be$datebirth = new DateTime('Year-Month-Day');
For 
Example$datebirth = new DateTime('2002-09-16'); 
2- We initializate the $today var with the DateTime Class without setting any arguments to get Today's Timestamp
PHP Code:
To Be$today = new DateTime
3- We do the algorithm to calculate the requested Person's Age with DateTime::diff and then to get the result we must use DateInterval::Format
PHP Code:
For Example: echo $today->diff($dabi)->format('%y Years, %m Months, %d Days, %h Hours, %I Minutes, %s Seconds, ' . ($today->diff($dabi)->format('%s')*1000) . ' Milliseconds, ' . ($today->diff($dabi)->format('%s')*1000*1000000) . ' Nanoseconds, ' . ($today->diff($dabi)->format('%s')*1000*1000000*1000) . ' Microseconds'); 

Let's Discuss somethings in our small algorithm...
  • We multiply the seconds in one thousand to get the Milliseconds.(Second = 1000 Milliseconds)
  • We multiply the milliseconds in one thousand ms and the result get multiplied in one million ms to get the Nanosecond.(Nanosecond = 1000000 Millisecond)
  • We multiply the Microseconds in one thousand ms and the result get multiplied in one million ms and the second result get multiplied in one thousand, to get the Microsecond.(Microsecond = 1000 Nanosecond)

Output:
Code:
15 Years, 8 Months, 3 Days, 19 Hours, 25 Minutes, 45 Seconds, 45000 Milliseconds, 45000000000 Nanoseconds, 45000000000000 Microseconds

Download Full Example Code: https://gist.github.com/JohnMagdy/8f8411...31cb9ec602
Posted by: Zorono - 05-19-2018, 06:12 PM - Forum: Suggestions and Feedback - Replies (12)
Hello everybody, it 'd be great if you @Administrators increased the length limit of the Signuature to 350±50.

because its too hard to add at least an Post Counter Image inside the backwards of Host4Fun...
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,100
» Forum posts: 34,783

Full Statistics

Online Users
There are currently 247 online users.
» 0 Member(s) | 243 Guest(s)
Applebot, Bing, Yandex, Google

Latest Threads
⚡ EnjoyVPS.Com : 35+ Glob...
Forum: Others
Last Post: RIYAD
01-06-2026, 01:21 AM
» Replies: 0
» Views: 679
Get LLHOST Netherlands Fe...
Forum: Others
Last Post: LLHOST
09-29-2025, 03:02 AM
» Replies: 0
» Views: 1,026
Super Fast LLHOST Netherl...
Forum: Value VPS Providers
Last Post: LLHOST
09-16-2025, 05:01 AM
» Replies: 0
» Views: 736
Get LLHOST Netherlands Fe...
Forum: Cheap Providers
Last Post: LLHOST
09-08-2025, 01:33 PM
» Replies: 0
» Views: 882
Windows VPS @ $31.5/Year ...
Forum: Cheap Providers
Last Post: DewlanceHosting
08-16-2025, 03:12 AM
» Replies: 0
» Views: 985
Buy DemoTiger Videos on c...
Forum: Others
Last Post: DewlanceHosting
08-16-2025, 03:10 AM
» Replies: 8
» Views: 6,619
Budget Dedicated Servers ...
Forum: Others
Last Post: HostNamaste
08-13-2025, 04:54 AM
» Replies: 2
» Views: 2,029
☁️ How to Use VCCPRO Virt...
Forum: Cheap Providers
Last Post: bestadvisor
07-13-2025, 09:36 AM
» Replies: 0
» Views: 1,487
[Promo] 30% Discount – VP...
Forum: Cheap Providers
Last Post: LLHOST
07-11-2025, 12:56 PM
» Replies: 0
» Views: 1,039
✅ Affordable VPS Hosting ...
Forum: Cheap VPS Providers
Last Post: RIYAD
07-02-2025, 03:02 AM
» Replies: 0
» Views: 2,341

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