Bitcoin Forum
July 13, 2024, 12:57:55 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 [2] 3 »  All
  Print  
Author Topic: webserver connecting to a VPS  (Read 2800 times)
lisek229
Sr. Member
****
Offline Offline

Activity: 344
Merit: 250



View Profile
February 04, 2015, 11:05:33 PM
 #21

I found this in the index.php


fwrite($w_file,'$driver_login=\'http://'.$_POST['w_user'].':'.$_POST['w_pass'].'@'.$_POST['w_host'].':'.$_POST['w_port'].'/\';'."\n");

however I looked in every folder and file and can not find a driver_login file anywhere is this a problem??

Show entire file index.php

Well. This variable  give data to the configuration file.
cr1776
Legendary
*
Offline Offline

Activity: 4088
Merit: 1304


View Profile
February 04, 2015, 11:07:08 PM
 #22

coin wallet  not need be synchronized to my script will work for you

your test showed the getinfo I see when I type netcoind getinfo

coin wallet (netcoind) may be in the directory as compiled or upload it to the root folder

To replace wallet.dat file, you need to stop the coin wallet (netcoind)

I did stop the wallet before maing any changes, but it still did very weird things LOL I even stopped and rebooted VPS and still same problems But like I said it is very OK no problems Smiley I just moved the coins out of the old wallet and threw it away since I have to resync anyways Smiley



In that case, it must also work getbalance, getnewaddress, etc.

Your script should work too.

Yes, That is good news that your script worked for him!

regarding $driver_login that is a variable.  I don't believe there is a file named that.

Can you check the coind logs on the coind server to see if it gives any error message?

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 12:31:11 AM
 #23

coin wallet  not need be synchronized to my script will work for you

your test showed the getinfo I see when I type netcoind getinfo

coin wallet (netcoind) may be in the directory as compiled or upload it to the root folder

To replace wallet.dat file, you need to stop the coin wallet (netcoind)

I did stop the wallet before maing any changes, but it still did very weird things LOL I even stopped and rebooted VPS and still same problems But like I said it is very OK no problems Smiley I just moved the coins out of the old wallet and threw it away since I have to resync anyways Smiley



In that case, it must also work getbalance, getnewaddress, etc.

Your script should work too.

Yes, That is good news that your script worked for him!

regarding $driver_login that is a variable.  I don't believe there is a file named that.

Can you check the coind logs on the coind server to see if it gives any error message?



I am not sure where to find that, I looked at the db.log and debug.log and there was nothing in them at all. is that what you were talking about??

well At least now I do know its not y communications its something wrong inside the code. I just can not find it, I do know I can force ti to get thru the installation is I tell it to accept all variables as true but once the site loads you can not deposit coins Sad it still is not connecting to the wallet

what i mean is take this code

$this->debug && $this->debug.='***** Server response *****'."\n".$response.'***** End of server response *****'."\n";
$response = json_decode($response,true);
} else {
throw new Exception('Unable to connect to '.$this->url);
}
if ($this->debug) {
echo nl2br($debug);
}
if (!$this->notification) {
if ($response['id'] != $currentId) {
throw new Exception('Incorrect response id (request id: '.$currentId.', response id: '.$response['id'].')');
}

if (!is_null($response['error'])) {
throw new Exception('Request error: '.$response['error']);
}

return $response['result'];
} else {
return true;

and make it say

$this->debug && $this->debug.='***** Server response *****'."\n".$response.'***** End of server response *****'."\n";
$response = json_decode($response,true);
} else {
throw new Exception('Unable to connect to '.$this->url);
}
if ($this->debug) {
echo nl2br($debug);
}
if (!$this->notification) {
if ($response['id'] != $currentId)
return true;
if (!is_null($response['error']))
return true;
return $response['result'];
} else {
return true;

it will get thru the installation but the wallet still wont work Sad

so what that tells me is it is a code that is present both during the installation and used after the installation.

but so far the only one I have seen is the driver_test.php which is the exact same file as the wallet_driver.php in another folder. since you are supposed to delete the install file after installation I decided to look for matching files elesewhere in the directories.

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 12:37:31 AM
 #24

Show entire file index.php

Code:
<?php
/*
 *  © BitcoinDice 


 
*/


if (isset($_GET['checkCons'])) {
  if (@!
mysql_connect($_POST['db_host'],$_POST['db_user'],$_POST['db_pass']) || @!mysql_select_db($_POST['db_name'])) {
    
header('Location: ./?step=3&db');
    exit();
  }

  
$included_=true;
  include 
'db_data.php';
  
  
$db_file=fopen('../inc/db-conf.php','wb');
  
fwrite($db_file,"<?php \n");          
  
fwrite($db_file,'$conf_c=true;'."\n");          
  
fwrite($db_file,'mysql_connect(\''.$_POST['db_host'].'\',\''.$_POST['db_user'].'\',\''.$_POST['db_pass'].'\');'."\n");
  
fwrite($db_file,'mysql_select_db(\''.$_POST['db_name'].'\');'."\n");
  
fwrite($db_file,'mysql_query("SET NAMES utf8");'."\n");
  
fwrite($db_file,"?>
");      ?><?php
  fclose
($db_file);

  
$w_file=fopen('../inc/driver-conf.php','wb');
  
fwrite($w_file,"<?php \n");          
  
fwrite($w_file,'$driver_login=\'http://'.$_POST['w_user'].':'.$_POST['w_pass'].'@'.$_POST['w_host'].':'.$_POST['w_port'].'/\';'."\n");
  
fwrite($w_file,"?>
");      ?><?php
  fclose
($w_file);

  
header('Location: ./?step=4');
  exit();
}

if (isset(
$_GET['saveB'])) {
  include 
'../inc/db-conf.php';
  
mysql_query("UPDATE `system` SET `title`='$_POST[s_title]',`url`='$_POST[s_url]',`currency`='$_POST[s_cur]',`currency_sign`='$_POST[s_cur_sign]',`description`='$_POST[s_desc]' WHERE `id`=1");
  
header('Location: ./?step=5');
  exit();
}

if (empty(
$_GET['step']) || ($_GET['step']!=&& $_GET['step']!=&& $_GET['step']!=&& $_GET['step']!=&& $_GET['step']!=&& $_GET['step']!=6)) {
  
header('Location: ./?step=1');
  exit();
}
else 
$step=$_GET['step'];

if (
$step==&& (!is_writable('../inc/db-conf.php') || !is_writable('../inc/driver-conf.php'))) {
  
header('Location: ./?step=2');
  exit();
}
?>

<!DOCTYPE html>
<html>
  <head>
    <title>BitcoinDice 2.0 - Installation</title>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="./install_page.css">
    <link rel="shortcut icon" href="./favicon.ico">
    <script type="text/javascript" src="jquery.js"></script>
  </head>
  <body>
    <div class="allbody">
      <div class="alls" style="text-align: center;">
        <h1>BitcoinDice 2.0 Installation</h1>
      </div>
    </div>
    <?php
    
switch ($step) {
      case 
1:
      
?>

        <script type="text/javascript">
          function next() {
            window.location.href='./?step=2';
          }
        </script>
        <div class="allbody">
          <div class="alls">
            <h3>Welcome!</h3>
            This is an automatic installation script. Please, follow the instructions on the following screens.
          </div>
        </div>
      <?php
      
break;
      case 
2:
      
?>

        <script type="text/javascript">
          function next() {
            window.location.href='./?step=3';
          }
        </script>
        <div class="allbody">
          <div class="alls">
            <h3>File Permissions</h3>
            Please make sure that following files are writable (chmod 777):
            <br>
            <table>
              <tr>
                <td><i>inc/db-conf.php</i></td>
                <td>&nbsp;&nbsp;</td>
                <td><?php if (is_writable('../inc/db-conf.php')) { echo '<span style="color: green;"><b>Yes</b></span>'; } else { echo '<span style="color: red;"><b>No</b></span>'; } ?></td>
              </tr>
              <tr>
                <td><i>inc/driver-conf.php</i></td>
                <td>&nbsp;&nbsp;</td>
                <td><?php if (is_writable('../inc/driver-conf.php')) { echo '<span style="color: green;"><b>Yes</b></span>'; } else { echo '<span style="color: red;"><b>No</b></span>'; } ?></td>
              </tr>
            </table>
            <br>
            The above files should be writable, otherwise the installation will not continue!
          </div>
        </div>
      <?php
      
break;
      case 
3:
      
?>

        <script type="text/javascript">
          function next() {
            $.ajax({
              'url': './db_test_call.php?db_user='+$("input#db_user").val()+'&db_pass='+$("input#db_pass").val()+'&db_host='+$("input#db_host").val()+'&db_db='+$("input#db_db").val(),
              'dataType': "json",
              'success': function(data) {
                if (data['error']=='no') checkWallet();
                else alert('Database error! Can\'t connect to database! Please check if provided informations are correct and try again.');
              }
            });
          }
          function checkWallet() {
            $.ajax({
              'url': './driver_test_call.php?w_user='+$("input#w_user").val()+'&w_pass='+$("input#w_pass").val()+'&w_host='+$("input#w_host").val()+'&w_port='+$("input#w_port").val(),
              'dataType': "json",
              'success': function(data) {
                document.getElementById('mform').submit();
              },
              'error': function() {
                alert('Wallet error! Can\'t connect to wallet! Please check if provided informations are correct and try again.');
              }
            });
          }
        </script>
        <div class="allbody">
          <div class="alls">
            <form id="mform" method="post" action="./?checkCons">
              <h3>Database Info</h3>
              <i>Please fill in correct database info:</i>
              <br>
              <table>
                <tr>
                  <td>Host:</td>
                  <td><input type="text" name="db_host" id="db_host" value="localhost"></td>
                </tr>
                <tr>
                  <td>Username:</td>
                  <td><input type="text" name="db_user" id="db_user" placeholder="DB user"></td>
                </tr>
                <tr>
                  <td>Password:</td>
                  <td><input type="text" name="db_pass" id="db_pass" placeholder="DB pass"></td>
                </tr>
                <tr>
                  <td>Database:</td>
                  <td><input type="text" name="db_name" id="db_db" placeholder="DB name"></td>
                </tr>
              </table>
             
              <h3>Wallet Info</h3>
              <i>Please fill in correct wallet info:</i>
              <br>
              <table>
                <tr>
                  <td>Host:</td>
                  <td><input type="text" name="w_host" id="w_host" value="localhost"></td>
                </tr>
                <tr>
                  <td>Login:</td>
                  <td><input type="text" name="w_user" id="w_user" placeholder="Wallet user"></td>
                </tr>
                <tr>
                  <td>Password:</td>
                  <td><input type="text" name="w_pass" id="w_pass" placeholder="Wallet password"></td>
                </tr>
                <tr>
                  <td>Port:</td>
                  <td><input type="text" name="w_port" id="w_port" placeholder="Wallet port"></td>
                </tr>
              </table>
            </form>
          </div>
        </div>
      <?php
      
break;
      case 
4:
      
?>

        <script type="text/javascript">
          function next() {
            document.getElementById('mform').submit();
          }
        </script>
        <div class="allbody">
          <div class="alls">
            <h3>Basic Settings</h3>
            <br>
            <form id="mform" action="./?saveB" method="post">
              <table>
                <tr>
                  <td>Site title:</td>
                  <td><input type="text" name="s_title"></td>
                </tr>
                <tr>
                  <td>Site description:</td>
                  <td><input type="text" name="s_desc"></td>
                </tr>
                <tr>
                  <td>URL:</td>
                  <td><input type="text" name="s_url"></td>
                  <td>(<b>without <i>http://</i></b>)</td>
                </tr>
                <tr>
                  <td>Currency:</td>
                  <td><input type="text" name="s_cur" value="Netcoin" disabled></td>
                </tr>
                <tr>
                  <td>Currency sign:</td>
                  <td><input type="text" name="s_cur_sign" value="NET" disabled></td>
                </tr>
              </table>
            </form>
          </div>
        </div>
      <?php
      
break;
      case 
5:
      
?>

        <script type="text/javascript">
          function next() {
            window.location.href='./?step=6';
          }
        </script>
        <div class="allbody">
          <div class="alls">
            <h3>CRON setup</h3>
            In order to BitcoinDice 2.0 to work properly, you must have the CRON set this way:
            <br><br>
            <b>Every 1 minute</b>: <i>content/cron/check_deposits.php</i>
            <br><br><hr>
            <b>Example (Linux):</b>
            <br><br>
            1) <i>Open CRON table:</i>
            <br>
            $ crontab -e
            <br><br>
            2) <i>Add the following line:</i>
            <br>
            * * * * * cd /var/www/content/cron; php check_deposits.php;
            <br><br>
            3) Save CRON table by pressing <b>CTRL</b>+<b>X</b>, than confirm (<b>Y</b>) and press <b>enter</b>.
            <br><br>
            4) Restart CRON service:
            <br>
            $ service cron restart
            <br><br>
            That's all.           
             
          </div>
        </div>
      <?php
      
break;
      case 
6:
      
?>

        <div class="allbody">
          <div class="alls">
            <h3>Thank You!</h3>
            <br>
            Your installation is done! You can login to administration or try your luck at your own gambling site :-)
            <br>
            <br>
            Admin details:<br>
            &nbsp;Username: <b>admin</b><br>
            &nbsp;Password: <b>admin</b>
            <br>
            <br>
            <i>Don't forget to change this info after first login!</i>
            <br>
            <br>
            <b>Warning!</b> Please remove the <i>/install</i> directory now, otherwise there is a security risk.
          </div>
        </div>
      <?php        
      
break;
    }
    
?>
   
    <div class="allbody">
      <div class="alls" style="padding: 5px; height: 30px;">
        <div style="float: left; font-style: italic;">
          <h2>Step: <?php echo $step?></h2>
        </div>
        <div style="float: right;">
          <?php
          
if ($step==6) echo '<input id="next" type="button" onclick="javascript:window.location.href=\'../admin/\';" value="Go to Admin!" style="padding: 5px;">';
          else echo 
'<input id="next" type="button" onclick="javascript:next();" value="Next ->" style="padding: 5px;"';
          
?>

        </div>
      </div>
    </div>
    <?php
    
if ($step==&& isset($_GET['db'])) echo '<script type="text/javascript">alert("Can\'t connect to database! Please check if provided informations are correct and try again.");</script>';
    
?>

  </body>
</html>

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 12:42:12 AM
 #25

I am not sure if order matters but shuld these

Code:
<h3>Wallet Info</h3>
              <i>Please fill in correct wallet info:</i>
              <br>
              <table>
                <tr>
                  <td>Host:</td>
                  <td><input type="text" name="w_host" id="w_host" value="localhost"></td>
                </tr>
                <tr>
                  <td>Login:</td>
                  <td><input type="text" name="w_user" id="w_user" placeholder="Wallet user"></td>
                </tr>
                <tr>
                  <td>Password:</td>
                  <td><input type="text" name="w_pass" id="w_pass" placeholder="Wallet password"></td>
                </tr>
                <tr>
                  <td>Port:</td>
                  <td><input type="text" name="w_port" id="w_port" placeholder="Wallet port"></td>

be in the same order as this

Code:
$test=new jsonRPCClient('http://'.$_GET['w_user'].':'.$_GET['w_pass'].'@'.$_GET['w_host'].':'.$_GET['w_port'].'/');

and this

Code:
function checkWallet() {
            $.ajax({
              'url': './driver_test_call.php?w_user='+$("input#w_user").val()+'&w_pass='+$("input#w_pass").val()+'&w_host='+$("input#w_host").val()+'&w_port='+$("input#w_port").val(),
              'dataType': "json",
              'success': function(data) {
                document.getElementById('mform').submit();
              },
              'error': function() {
                alert('Wallet error! Can\'t connect to wallet! Please check if provided informations are correct and try again.');

by order I mean shoud they all follow suite

user then pass then host then port

the first one order does not match the rest

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 01:09:55 AM
 #26

I am trying everything,

should this

Code:
function checkWallet() {
            $.ajax({
              'url': './driver_test_call.php?w_user='+$("input#w_user").val()+'&w_pass='+$("input#w_pass").val()+'&w_host='+$("input#w_host").val()+'&w_port='+$("input#w_port").val(),
              'dataType': "json",
              'success': function(data) {
                document.getElementById('mform').submit();
              },
              'error': function() {
                alert('Wallet error! Can\'t connect to wallet! Please check if provided informations are correct and try again.');
              }
            });
          }

actually say this

Code:
function checkWallet() {
            $.ajax({
              'url': './driver_test_call.php?w_user='+$("input#w_user").val()+'&w_pass='+$("input#w_pass").val()+'&w_host='+$("input#w_host").val()+'&w_port='+$("input#w_port").val(),
              'dataType': "json",
              'success': function(data) {
                if (data['error']=='no') document.getElementById('mform').submit();              },
               {
                else alert('Wallet error! Can\'t connect to wallet! Please check if provided informations are correct and try again.');
              }
            });
          }

funtotry
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


Ever wanted to run your own casino? PM me for info


View Profile
February 05, 2015, 01:20:17 AM
 #27

I've had so many problems with connecting externally, never could get it to do it. I just gave up and installed the wallet and the website on the same vps and that worked. its also much safer because you can close and ban outside attempts to connect, removing the possibility of someone getting into your wallet.

cr1776
Legendary
*
Offline Offline

Activity: 4088
Merit: 1304


View Profile
February 05, 2015, 01:50:51 AM
 #28

Re the log, I was thinking in

~/.bitcoin/debug.log

(Or wherever the path is for this coin).

If his code works, then it has to be something with this code being incorrect. In the debug.log, perhaps it will show an error when your web server goes to connect.  Assuming the web sever has created the proper URL.

Regarding the question about the url, you could just echo this to the display (temporarily of course)  or a temp variable depending on the development environment you are using just to ensure that everything is being filled in properly:

'http://'.$_GET['w_user'].':'.$_GET['w_pass'].'@'.$_GET['w_host'].':'.$_GET['w_port'].'/';

E.g. If the w_port is wrong or any of the others that could be an issue.   It should be a quick thing to check that the url is being created properly.
cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 01:52:29 AM
 #29

I've had so many problems with connecting externally, never could get it to do it. I just gave up and installed the wallet and the website on the same vps and that worked. its also much safer because you can close and ban outside attempts to connect, removing the possibility of someone getting into your wallet.


its not working either way LMAO,

 plus we know connection and communication is not the problem the script lisek had me try worked with no problems.

So I am sure it has to be the script somehwere somehow I just have to find it. I really REALLY like this games layout, this is why i wont give up. so,  I really do not want to try and get another one.

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 01:59:27 AM
 #30

I've had so many problems with connecting externally, never could get it to do it. I just gave up and installed the wallet and the website on the same vps and that worked. its also much safer because you can close and ban outside attempts to connect, removing the possibility of someone getting into your wallet.


its not working either way LMAO,

 plus we know connection and communication is not the problem the script lisek had me try worked with no problems.

So I am sure it has to be the script somehwere somehow I just have to find it. I really REALLY like this games layout, this is why i wont give up. so,  I really do not want to try and get another one.

do you know how it should look?

dos this look correct

http://my.vps.ip.addy:port@username:password/

cr1776
Legendary
*
Offline Offline

Activity: 4088
Merit: 1304


View Profile
February 05, 2015, 02:04:41 AM
 #31

I've had so many problems with connecting externally, never could get it to do it. I just gave up and installed the wallet and the website on the same vps and that worked. its also much safer because you can close and ban outside attempts to connect, removing the possibility of someone getting into your wallet.


its not working either way LMAO,

 plus we know connection and communication is not the problem the script lisek had me try worked with no problems.

So I am sure it has to be the script somehwere somehow I just have to find it. I really REALLY like this games layout, this is why i wont give up. so,  I really do not want to try and get another one.

do you know how it should look?

dos this look correct

http://my.vps.ip.addy:port@username:password/

Usually like this:

http://Http://username:password@hostname:port/

Which it looks like the code should generate, BUT, using $_GET you could have something being passed improperly.

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 02:08:30 AM
 #32

Re the log, I was thinking in

~/.bitcoin/debug.log

(Or wherever the path is for this coin).

If his code works, then it has to be something with this code being incorrect. In the debug.log, perhaps it will show an error when your web server goes to connect.  Assuming the web sever has created the proper URL.

Regarding the question about the url, you could just echo this to the display (temporarily of course)  or a temp variable depending on the development environment you are using just to ensure that everything is being filled in properly:

'http://'.$_GET['w_user'].':'.$_GET['w_pass'].'@'.$_GET['w_host'].':'.$_GET['w_port'].'/';

E.g. If the w_port is wrong or any of the others that could be an issue.   It should be a quick thing to check that the url is being created properly.

Ok sir I moved them around its not that, because when I move them around I get a different error involving the address itself being contacted, so we can be sure the order he has them in is correct.

so from what I can tell now is the information being received is not matching the information the script believes it should be. So it is giving an ID error. does this sound right to you?

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 02:16:08 AM
 #33

Ok how would the script get any kind of ID from a getbalance request?

Even a getinfo request will not show an ID unless the ID the scripts is talking about is the ip address

of this is the case then it should not bee seeking n ID but more so an IP

I am just guessing I have been string at this code for over a week now trying anything and everything to get it to work. I had no choice but to bother you guys here.

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 02:20:11 AM
 #34

I've had so many problems with connecting externally, never could get it to do it. I just gave up and installed the wallet and the website on the same vps and that worked. its also much safer because you can close and ban outside attempts to connect, removing the possibility of someone getting into your wallet.


its not working either way LMAO,

 plus we know connection and communication is not the problem the script lisek had me try worked with no problems.

So I am sure it has to be the script somehwere somehow I just have to find it. I really REALLY like this games layout, this is why i wont give up. so,  I really do not want to try and get another one.

do you know how it should look?

dos this look correct

http://my.vps.ip.addy:port@username:password/

Usually like this:

http://Http://username:password@hostname:port/

Which it looks like the code should generate, BUT, using $_GET you could have something being passed improperly.



actually I will have to m,ess them up again to check the order its putting them in LOL maybe it could be that

CR1776 thank you so much for trying to help me sir, I really do appreciate your time. If you and I somehow figure this out I will certainly send you some BTC out of the profits in the site.

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 02:24:28 AM
 #35

ok I put

Host:            1
Login:    2
Password:    3
Port:          4

and it returned this

Unable to connect to http://2:3@1:4/

so if its supposed to be

http://Http://username:password@hostname:port/

his order is correct Sad

cr1776
Legendary
*
Offline Offline

Activity: 4088
Merit: 1304


View Profile
February 05, 2015, 03:00:39 AM
 #36

ok I put

Host:            1
Login:    2
Password:    3
Port:          4

and it returned this

Unable to connect to http://2:3@1:4/

so if its supposed to be

http://Http://username:password@hostname:port/

his order is correct Sad

That is a good test! 

The next thing to check would be the log
cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 06:01:44 AM
 #37

when I try to edit the debug.log it does not have anything inside at all. its just an empty file.

do i need to shut netcoind down before trying to view/edit this file for a result?

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 08:22:13 AM
 #38

I tried  few things, I noticed when I make the password incorrect in the other script test that works I get the same error.

So I am not sure what is happening, is the script somehow maybe inputting the incorrect information somehow? when I move the items around it sems it is relaying the information as it is put into the script, but for somereason the firebig report shows it really is not getting anything back from the VPS after it is sent out. I do not understand. But that test script (from lisek) works fine no problems at all

cyberpinoy (OP)
Hero Member
*****
Offline Offline

Activity: 1008
Merit: 502



View Profile WWW
February 05, 2015, 08:28:55 AM
Last edit: February 05, 2015, 09:12:23 AM by cyberpinoy
 #39

HAHA I am desperate HAHA

I ran a PHP code checker on the index.php this was the result

Results
Error: There are 4 more closing parenthesis ')' than expected
Warning: There are 3 functions in your code that have been deprecated in the current version of PHP :
mysql_connect()----------------l
mysql_query()------------------l---------These are for the MYSQL which is working so no worries (if it aint broke dont fix it HAHA)
mysql_select_db()--------------l



PHP Syntax Check: Parse error: syntax error, unexpected '?' in your code on line 24
fwrite($w_file,"<?php \n"); <----------This has to do with the wallet
PHP Syntax Check: Errors parsing your code

---------------------------END TEST-----------------------

$w_file=fopen('../inc/driver-conf.php','wb');
  fwrite($w_file,"<?php \n");         
  fwrite($w_file,'$driver_login=\'http://'.$_POST['w_user'].':'.$_POST['w_pass'].'@'.$_POST['w_host'].':'.$_POST['w_port'].'/\';'."\n");
  fwrite($w_file,"?>");      ?><?php
  fclose($w_file);

lisek229
Sr. Member
****
Offline Offline

Activity: 344
Merit: 250



View Profile
February 05, 2015, 08:31:13 AM
 #40

Are You install script from felinegambler?

What is your version of PHP on webserver?
Pages: « 1 [2] 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!