Jump to content
  • 0

htlm/php based web


Question

Posted

Hello, it is possible to connect custom made php website with registration/server status/etc codes without using fluxcp to SQL database?

if it does possible, how can i make it works without using flux cp?

can any1 give me some guides?

thx

5 answers to this question

Recommended Posts

  • 0
  • 0
Posted (edited)

yes and it's quite easy to code if you've PHP skills. If not, please consider using FluxCP instead...

Example of simple status server check :

/* Usage: 
$status =  GetServerStatus('http://domain.com',80)
or
$status =  GetServerStatus('IPAddress',80)
*/

<?php
function GetServerStatus($site, $port)
{
$status = array("OFFLINE", "ONLINE");
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
if (!$fp) {
    return $status&#91;0&#93;;
} else 
  { return $status&#91;1&#93;;}
}
?>

 

Edited by Vykimo
  • 0
Posted
3 hours ago, Vykimo said:

yes and it's quite easy to code if you've PHP skills. If not, please consider using FluxCP instead...

Example of simple status server check :


/* Usage: 
$status =  GetServerStatus('http://domain.com',80)
or
$status =  GetServerStatus('IPAddress',80)
*/

<?php
function GetServerStatus($site, $port)
{
$status = array("OFFLINE", "ONLINE");
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
if (!$fp) {
    return $status&#91;0&#93;;
} else 
  { return $status&#91;1&#93;;}
}
?>

 

yep i think so, and how about the registration form? 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...