Jump to content

Derek

Members
  • Posts

    105
  • Joined

  • Last visited

Everything posted by Derek

  1. If the code is hosted on the server, you should be using "localhost" as the server. Otherwise, you're might want to use "stevie.heliohost.org" or "216.218.192.170". I'm not sure if you need to include "http://" at the beginning of the server address, so try without "http://" first. If that doesn't help, just add it in to see if it helps. I hope I was clear, ~Derek
  2. Hey, I have a quick question, I hope someone can help. I'm going to be starting Web Programming classes, and a lot of the homework I'll be needing to pass in will have to be hosted online. I'd rather use this host because it has a lot more "growing room", but if you don't already have a host, you can host your files on the school's server. Let's say I need to pass in an assignment, and Heliohost's server is down. Is there any way I would be able to redirect to a server hosted at my house, or the schools server? I bet I could set up my domain's DNS settings to redirect to a BIND installation on my computer, which would try to connect to the nameservers here, or if failed, redirect to my schools server, but that sounds like a lot of traffic to my house (I technically have unlimited bandwidth, but let's not push it. I'd also not want to run a server on my computer all day while I'm at school in case of this scenario). Thanks.
  3. Derek

    File uploading

    If you go here (or if you want to go to that page manually, sign into your cPanel account, navigate to "FTP Accounts). Next to the user you want to configure (which should be the same as your cPanel username), click the button that says "Configure FTP Client", then click "Configure Filezilla". It'll give you the information you need to enter in. I hope it helps.
  4. It's not like it's against the rules or anything. I've been looking at the system requirements, and it says that it needs "to run daemon processes" and "Zope wants to open it's own port for incoming requests." So, I'm not so sure. But you're always welcome to try. I'm sure someone more experienced will reply soon, though.
  5. Derek

    Stack Exchange site?

    I think I understand, but that usually denotes that I don't. We'll see. I just don't want to waste all my Questions on bad examples.
  6. I don't think I'm understanding you correctly, but yeah. You can use PHP and HTML interchangeably. So for example, say you have a variable X, and you want an HTML Input Form's default value to be X. You could do: <?php for ($varX=1; $varX <= 5; $varX++) { echo "<input name='$varX' type='text' value='$varX'/>"; } ?> However, it would be easier, I think, to not use the echo, and just write the HTML: <?php for ($varX=1; $varX <= 5; $varX++) { ?> <input name='<?php $varX ?>' type='text' value='<?php $varX ?>'/> <?} ?> Even though the HTML is outside of the <?php ?> tags, it is still nested in the loop. I'm not sure what you meant to do by using $_POST. Could you explain that briefly so I can understand the problem better? Cheers, ~Derek P.S. We really need a PHP code tag. I think it would be a great addition. P.P.S. Yeah, I think this topic is dead...
  7. I thought this poll is pretty straight forward: What IDE do you like the most? I know a lot of people use more than one IDE, but I mean overall, which one is the easiest/most productive/more feature-rich that you use? A few years ago when I first started using Java, I tried out Netbeans and Eclipse. I've found them to be "project based", as in, you would import all the files you use for a project and use it like that (bad explanation, I know). I didn't like it, so I started using Microsoft Notepad instead. I was missing some of the features that IDEs had, like error correction. Syntax Highlighting was a big one for me. Then I tried Notepad++, and I haven't used any other IDE since then. I like that it supports syntax highlighting for pretty much any language you can think of, and it has more than 20 already predefined. You can change the color schemes for the highlighting if you want. However, Notepad++ doesn't have Error Correction, which I would love. So, please vote and/or post why you like a specific IDE. ~Derek P.S. If you don't use any of these, please post which one you do like, thanks.
  8. Derek

    Stack Exchange site?

    Small typo by the way: The homepage says "...a la 'Stack Overflow'...". Sorry, I'm not "down" with this hip, new lingo. >.> I thought "a la" meant "by means of". I'm kind of confused about the "Off Topic" questions, by the way. I tried reading the site's FAQ, but it seemed more focused on the site process. Could you please explain that to me? I think it means a question that's not a good one, but isn't that "Not A Good Example"?
  9. My brother uses Chrome. He says it's engine runs faster than Firefox's. But I'm a big fan of the Firefox plugin Ad Block Plus, and Chrome doesn't seem to have a vast plugin-system like Firefox does, so I stick with Firefox.
  10. Derek

    MySQL timezone

    Well, I think if you were to do that, it would change the timezone for everyone on the server. California is on GMT-8, so you could just add 8 hours to the value of Current_Time (which if I understand correctly, is the same as NOW().) I think you're looking for the function CONVERT_TZ(time-date, starting_timezone, new_timezone). EDIT: In this case, I think for the current timezone, you would use PST.
  11. After doing a quick Google search, I haven't found a problem having both Fantastico and Softaculous installed at the same time. I guess since Fantastico's license is technically ran out, you could install Softaculous (kind of like a "soft migration"). Once people got used to it a bit (or once Fantastico stops working), you could uninstall Fantastico. My two cents. I honestly manual install the applications myself, but if Softaculous has more applications, I'd like having the options.
  12. This might be the wrong section, and you might need to supply your cPanel username (not your sub domain), and the email you registered with.
  13. This thread was last posted in 4 years ago. And no, Internet Explorer doesn't have an antivirus bundled.
  14. I used to run Windows XP dual boot with Ubuntu, then I formatted my hard drive and did a Hackintosh -> Windows XP dual boot, did Windows XP with Fedora for a bit, and now I'm just plain Windows XP. Yeah I like Windows XP. When I finish building my computer, I'm going to get Windows 7, since I like it a lot better, and probably Windows XP for gaming. I don't think Hackintosh will run nicely with an AMD processor (since real Macs use Intel), so I don't think I'll bother installing Mac Leopard.
  15. I was going to say something, but then I realized I had already said something similar about two years ago. Am I that predictable? >.> Well, off to sleep.
  16. The Earth is round (it has no faces or vertices), but it's not a sphere. It's an oblate spheroid (the distance from the north and south poles is shorter than half the length of the equator).
  17. EDIT: I did it for you. The email should have reached you. It's probably related to the sites being down. Just go to the link below and type in the username he registered with, and it'll be fine (hopefully). http://www.helionet.org/index/index.php?ac...&CODE=reval I think the URL should be in the FAQ, only because it's not really easy to remember, and it saves the admins the trouble of resending people's validations in the Admin CP. Cheers, ~Derek
  18. Yeah, sorry. I accidentally commented out mysql_connect(...); after I posted this thread. So I fixed that problem, but I still get that error. P.S. You'll get a Notice: Undefined index: valid_username in /home/derekboy/public_html/site/admin/index.php on line 23 notice. Don't worry about it. I turned on notices so I could debug this problem, and if you look at that line on the source code, you'll realize it's not a mistake (I hope). I'm using "if ($_SESSION['valid_username']) { ... }" to check if you're already signed in. That error won't pop up if I shut off notices. Thanks again. EDIT: Yeah. I know where the error is coming from after a while. I rewrote part of login.php to be this instead: if (($_POST['username']) && ($_POST['password'])) { $checklogin = mysql_query('SELECT * FROM site_admin' . 'WHERE admin_username = ' . $_POST['username'] . ' ' . 'AND admin_password = ' . $_POST['password'] . ' ' . 'LIMIT 1'); $rownumber = mysql_num_rows($checklogin); // If result matched $myusername and $mypassword, table row must be 1 row if($rownumber == 1) { // Sign in. $rownumber in this case is supposed to give an integer. Instead, I'm getting: So I added mysql_error(); and got Then I changed $checklogin to $query = 'SELECT * FROM site_admin ' . "WHERE 'admin_username' = '" . $_POST['username'] . "' " . "AND 'admin_password' = '" . $_POST['password'] . "' " . 'LIMIT 1'; $checklogin = mysql_query($query); And it got rid of all the mySQL errors, but I still get the original error (Error code 002: The server denied you access. You must have entered in a wrong username and/or password.) So, I brought all the files up-to-date on the pastebins. Thanks again.
  19. So, long story short-ish, I type in a username and password to "login", and it checks if: You entered in both a username and password. If not, you get an "error Code 002". If you did enter in both a username and password, but they don't match with any in the database, you get an "error code 001". Everything works, except when I enter in a legitimate username and password, it gives me the "error code 001". I checked phpMyAdmin, and my username and password is indeed in the database. index.php - http://pastebin.com/s8EqjPvP login.php - http://pastebin.com/kBmWe7XU You can try it here. Username is "Derek", password is "qwerty". EDIT: I fixed it, thanks everyone. Apparently, you can't "SELECT ........ WHERE $_POST[...]", you have to store the $_POST in a variable first. Thanks, ~Derek
  20. You could try installing it manually. Hopefully you won't get the same error.
  21. Wow, I can't believe I didn't think of that >.> It's simple but it still does exactly what I needed. I think I'm going to do what both of you suggested--I'm going to make an AdminCP and one of the things I can do is I can change the .htaccess files with the maintenance page (except my /admin directory). EDIT: Or I can just do it in cPanel. *shrug* </EDIT> Thanks, ~Derek
  22. That sounds like a good idea. A lot better than mine xD. I'm still thinking about it though, but I think what I end up doing is very similar to your idea.
  23. Hey--it's me again I'm hoping you guys could give me a few suggestions on how I could do this. My end-goal is to show a "Maintenance in progress" or such page when I'm currently copying over files, etc, instead of the normal page someone would be viewing (no matter what page that would be). This is how I was thinking of doing it: /control/status.ini: ;; Site Status file ; status = 'maintenance' -- the website is down ; status = 'green' -- the site is fine. ;; TODO: ; reason = 'We are updating a bug in blah blah blah' -- specify some more information to show up on the "Site under Maintenance" page. status = 'maintenance' /control/maintenance.php: <?php //Maintenance.php echo 'SITE IS DOWN'; $?> /index.php (or any file for that matter): <?php $ini_array = parse_ini_file("/control/status.ini"); print_r($status_array); if ($status_array['status'] == "maintenance") { header('Location: http://unorthodox.co.cc/control/maintenance.php'); } else { //Normal page } ?> In a nutshell, everytime a page is loaded, the page will check /control/status.ini, and if "status" equals "maintenance", it will only show "SITE IS DOWN". Otherwise, nothing will change. Drawbacks are, that everytime a page is loaded, status.ini will have to be checked. Also, if you wanted to put the site under "maintenance", you would have to edit the status.ini and FTP it, and the same if you wanted to take it down from maintenance. So what are your thoughts? (Not involving code,) How could I improve this (using a database, or checking a .ini on my own computer...?). Thanks. ~Derek
  24. Derek

    Prolonged Downtime

    Just thought I would let you guys know-- Heliohost seemed to be down for me very early this morning (about 1AM Eastern Standard Time), and it was also down for a proxy that was located in North Carolina (I live in Massachusetts), but it wasn't down on another proxy (located somewhere else in the USA). This didn't really affect me in anyway, but I thought it might be important--you never know. And according to the FAQ, you're supposed to read two articles if you think the hosting is bad. It never tells you to post in an announcement thread >.>. Seriously, if you expect a free hosting service (a popular service which is frequented by thousands of people, no less) to have 99% uptime, then you're crazy. If you want that kind of uptime, pay $10 a month for paid hosting. But I wouldn't expect you to get the support and community that you can get here. A free hosting company isn't considered "professional", so if you're expecting everything about the service to be professional (including a high uptime rate), then you need to find a different hosting company. Nonetheless, this hosting works out perfectly for me. Cheers. ~Derek
×
×
  • Create New...