Jump to content
  • 0

htlm/php based web


musica2

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  10/06/18
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   189
  • Joined:  11/27/11
  • Last Seen:  

  • 0

  • Group:  Developer
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   199
  • Joined:  05/03/13
  • Last Seen:  

You have to implement it on your own, you can use flux as a reference, since its already coded there. ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  10/06/18
  • Last Seen:  

wish i could,

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   189
  • Joined:  11/27/11
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   1
  • Joined:  10/06/18
  • Last Seen:  

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

×
×
  • Create New...