Jump to content
  • 0
musica2

htlm/php based web

Question

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  • 0

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
Link to comment
Share on other sites

  • 0
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? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.