Search results

  1. marshian

    Multiple date & time support

    You just need to store the GMT (or any other) time as a UNIX timestamp and add/remove a certain amount depending on the timezone offset. For example, a timestamp is 1000000 (GMT). If a user in timezone GMT needs the date, you don't have to change it and just use the date() function on it. If a...
  2. marshian

    Need help with PHP.

    Showing the current status of the server is not hard, but if you want to show the uptime percentage, you'll need to know how long the site has been up and how long it has been down... The only thing I can come up with is to make a cron every x minutes and if the server is online add x to the...
  3. marshian

    Centering website using css

    I didn't say to change all absolut into relative! If you set the parent to anything but static, the absolute positioning of the children will be relative to the parent instead of the screen. example (might be not really working, but ok): <html> <body> <div style="position: static;"...
  4. marshian

    HELP - Running PHP script via CRON job doesn't work

    try "php -q /home/username/public_html/pets/pets.php" That worked for me on absolut
  5. marshian

    Centering website using css

    @EdwardJH This is not completely correct. Absolute positioning positions the element according to the position of the first parent element which is not "static". So in this case, you can add a parent element, place it in the center and use "relative" positioning. @ryanlwh True, there is no...
  6. marshian

    floor lvl help

    If you keep the same statment ($woodcuttexp > 320) and the same code in the if-clause without resetting the xp, the woodcutting lvl will increase by 1 each time you visit that page...
  7. marshian

    Switch to second level php?

    There is no php in there... The text at the beginning of the document is actually just in there... Also lots of \par in tags where it doesn't belong... Is this some kind of thingie made with some WYSIWYG-editor that makes some crap of your pages?
  8. marshian

    floor lvl help

    <?php $woodcuttexp = $Exp['woodcuttingexp']; $newwoodcuttinglvl = $Levels['woodcuttinglvl'] + 1; $level = $newwoodcuttinglvl; if ($woodcuttexp > 320){ echo '<font color="yellow">You have reached woodcutting lvl ' . $level . ' </font><br />'; mysql_query("UPDATE `Levels` SET `woodcuttinglvl` =...
  9. marshian

    floor lvl help

    floor() just makes an integer of the given float/double by dropping anything behind the decimal sign. So floor(32) = 32, floor(32.1) = 32, floor(32.999) = 32
  10. marshian

    Quick php question

    You forgot a '}' in your php, and also, each line in JavaScript should end with a ';'. Try this code: <?php include("sheet.php"); ?> <table align="center" width="59%" border="1"> <tr> <td align="center"> <form name="counter"><p><input type="text" style="width:75px;" name="d2"></form> <?php...
  11. marshian

    Switch to second level php?

    @Livewire: If the http is missing, the link is seen as a relative link. So the url would become http://forums.x10hosting.com/mfhome.x10hosting.com/website_revision_1.0.0.html . @Wizet: That doesn't look like an error, errors are usually more clear... HTTP 500's, Warning blahblahblah (in case...
  12. marshian

    Switch to second level php?

    I don't see any php errors there, so switching to intermidate php will probably not help anything... Perhaps you've made some logical errors somewhere?
  13. marshian

    php problem?

    (Pretends to be awake and to have noticed the 2006.) Why do you think I said that topic is not useful? xD Anyway Themasterrocker, it might be a good idea to link to this topic in your post in the Free Hosting section, as you don't really explain your problems really specificly there... EDIT: by...
  14. marshian

    php problem?

    I've done a little searching and all I foud was this: http://forums.x10hosting.com/news-announcements/22219-new-updates.html?highlight=library+updates Which is not really usefull.. But as it is 1:15 AM here, I think I'm going to look up my bed now instead of posts ;-)
  15. marshian

    php problem?

    I noticed the topic about the updates was 11 pages long yesterday, so I kinda gave up on reading it... It could be in there (a). I'ld just wait a couple of days and if it still doesn't work try to open a topic in the free hosting section. And thanks =]
  16. marshian

    php problem?

    They're doing a lot of stuff with server config and such lately, aren't they? It looks a lot like they currently have the GD-thingie not installed or messed up. The function exists, so this is not a programming issue, but a server config-thingie. Try posting this in the free hosting section.
  17. marshian

    PHP memory limit problem when creating zip file on fly?

    This is basicly spam... Ontopic: I'm not sure about the memory limits, but it might be a good idea to limit the amount of bytes the user can download. This does not require JavaScript, but it can be done serverside. I'm thinking you can give a maximum of (for example) 10 mb limit, so you...
  18. marshian

    PHP versions

    There will be absolutely no problem with php at all, as this code does not contain a single line of it. The only problem that can exist is on the servers off bravenet.com and your browser being a pain in the a__.
  19. marshian

    Animated PHP and GD image?

    I don't think most users will have adobe fireworks on their pc, nor will they spend a lot of time downloading all pictures off your site and then importing them in fireworks etc... In case you don't get it, the frames would be created using PHP, and diabolo wants to output an animated picture...
  20. marshian

    PHP Problems

    You have to upgrade your php version. x10 has disabled this kind of stuff in the basic php configuration due to abuse. Go to your control panel and request to change to intermidate. control panel: http://www.x10hosting.com/account
Top