Jump to content

plassma

Members
  • Posts

    7
  • Joined

  • Last visited

plassma's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I'm trying to see if it is possible to recover any of the files from my disabled account. It turns out that one of my partners still needs some of the data from a SQL db file that was hosted on the site, and I'm trying to see if there is any way to recover it. Any help would be greatly appreciated. a. HelioHost username: plassma b. Server: stevie c. HelioHost main domain: ucsbcreativity.heliohost.org Thanks very much for your help.
  2. Fixed, thank you! I'd be interested to know the command DjBob is referring to for future reference.
  3. When trying to access my files through Cpanel on Stevie I get the following message: "Thank You for installing cPanel / WHM. This server is currently not licensed. Please contact the server administrator. Other services available on this server such as web services are likely functioning normally. (License has a future date)" I can access my pages from the web; Cpanel just seems to be having problems. Any help? I'm trying to finish off a project ASAP! Thanks very much for the excellent service and any help.
  4. Ok, I found the problem -- not sure if you can help me solve it. My python script is running on python 2.4.6 by default, but my script requires 2.5+. The website says you guys have 2.7.1; do you know how to activate it or cause my CGI file to run through it? Thanks so much for your help Nevermind! Just had to specify in the python file! Thanks much, its all running now!
  5. Yea I've already created and uploaded the database. I tried putting it in the home directory and pointing the script to it -- no real luck. There must be something odd I'm doing... Have you created your database yet? You could put your database inside your home directory where only you could see it. It would look something like this: $db = sqlite_open("/home/byron/load_db");
  6. Hmmm... thanks for the help but I'm still not getting it to run. Is there a preferred way to refer to the database on the server? Some how I'm just not getting data written to the file (though the exact same script works just within the confines of my own computer). Also, I'd prefer to save the database somewhere where it can't be accessed by the general public -- is this possible? It can go in the same directory as your form. I'm using sqlite with php and this is how I connect to my database. <?php $loadavg_array = explode(" ", file_get_contents("/proc/loadavg")); $new_load = $loadavg_array[2]; $day = date("D"); $date = date("d"); $month = date("M"); $year = date("Y"); $time = time(); # open DB $db = sqlite_open("load_db"); $sql = "INSERT INTO serverload (day, date, month, year, time, load) VALUES ('$day', $date, '$month', $year, $time, $new_load)"; # execute query sqlite_query($db, "$sql"); ?>
  7. Hello, first post here (yay!) I have a possibly n00bish question: basically, how do you use SQlite on my site hosted on Stevie? I basically just have a simple form and I'd like new user input to it to be appended to a basic table in an SQLite database. I have the HTML form set up and communicating just fine with my python CGI, and the python CGI writes to the SQLite file fine when I test it on my home computer. However, I don't know where to direct the CGI to for writing to the SQLite db when running it on Heliohost. I've tried placing a preformatted SQLite db file in a few different places on the webpage to no avail. Is there a preferred location for the db file? OR is there a default location on the server tree which the db will save if I simply point the CGI script to the filename (without folders and subfolders, etc.) OR is there something I need to set up? Or is there just some problem with my code I'm missing... Thanks in advance for any help.
×
×
  • Create New...