Jump to content

KenHorse

Members
  • Content Count

    33
  • Joined

  • Last visited

Community Reputation

0 Neutral

About KenHorse

  • Rank
    Member
  1. Nope, I didn't ignore but using include introduced a different issue that was even a bigger problem for me. In any case, it is running (and yes, I do believe the shell_exec setting must be something proprietary for them. I've noticed thaat Bluehost/Hostmonster and their myriad of spinoff hosting services do kind do things their own way but I never expected this to be an issue, especially as my scripts were working fine there a while ago (but I can't say exactly what that time frame is)
  2. Thanks for the assist. Sometimes it takes a swift kick to get the brain cells working
  3. Then again, adding shell_exec=on in my php.ini fixed it....grrrrrrrr I swear I tried that before....oh well
  4. I understand that. Since clearflags.php is so small and only called from control.php, maybe the easiest solution is tol move the contents over instead of invoking a separate script....
  5. It must be as I CAN run it from the command line, no? phpinfo() doesn't report safe mode is on nor are any functions disabled
  6. I understand but why would it work on my own development server but not the hosted one, especially since safe mode isn't on and neither exec nor shell_exec are disabled_functions?
  7. If that were the case, it wouldn't work on my Debian development server nor even a Raspberry Pi (also running its version of Debian 10), no? But here's clearflags.php: <?php include("global.php"); //flag vars database entry as being sent $query = "update vars set changed = 0"; $result=safe_query($query); //flag commands database entry as being sent $query = "update commands set changed = 0"; $result=safe_query($query); //flag config database entry as being sent $query = "update config set changed = 0"; $result=safe_query($query); //flag config database en
  8. You'll note it is being called from a webpage button, hence the reason for calling it
  9. if(isset($_POST['clearflags'])){ $output = shell_exec('php clearflags.php'); } The above works fine on my local development server running Debian 10, PHP 7.4 and Apache 2.4.25. clearflags.php is a script that clears various fields in a MySQL database so it's easy to determine if it properly ran or not. On my hosted server however (Bluehost), clearflags.php is never executed. My hosting service swears that SAFE MODE is not on in PHP (which is also Version 7.4). If I call from the command line (php clearflags.php), it runs fine. $output on the hosted server is "Content-type: te
  10. Mon Aug 24, 2020 2:41 pm I'm using php_serial.class.php, called once require_once("php_serial.class.php"); and call it $serial: $serial = new phpSerial; The above are in a global.php file that sets up the serial com parameters. In another file, I include global.php that contains my other code to send and read from the class In a function, I pass the class: Function checkInput($serial){ And one in the Function: $read = $serial->readPort(); This throws an error: "PHP Fatal error: Uncaught Error: Call to a member function readPort() on string" If I do
  11. Disregard, problem resolved. Sorry for the spam
  12. I am reading in a table and ordering it by a column labeled "sub" and generating an HTML table. The "sub" column entries are in numerical order (i.e. 1 2 3 4 5 6 7 8 10 11 12 etc. etc.). There are over 100 entries in this table as well. The problem I'm facing is probably obvious to some of you as the display is 1 10 100 101 102 103 105 11 12 13 14 15 16 17 18 19 2 20 and so on... Obviously I'd like the display to be in numerical order. What can I do?
  13. I am reading in a table and ordering it by a column labeled "sub" and generating an HTML table. The "sub" column entries are in numerical order (i.e. 1 2 3 4 5 6 7 8 10 11 12 etc. etc.). There are over 100 entries in this table as well. The problem I'm facing is probably obvious to some of you as the display is 1 10 100 101 102 103 105 11 12 13 14 15 16 17 18 19 2 20 and so on... Obviously I'd like the display to be in numerical order. What can I do?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.