Search results

  1. Scoochi2

    Can someone....

    Care to elaborate? Do you want to create a site about games? with games? a game itself? What experience do you have? And what have you already tried?
  2. Scoochi2

    web switcher

    if you use PHP, your index page could simply include the content of another page, chosen at random. So save your HTML pages as normal, but upload them as 'version1.inc', 'version2.inc' and so on. Then have an index.php page that looks like the following: <?php $page = rand(1,5); require_once...
  3. Scoochi2

    How do I protect my form in php??

    PHP is processed server side. None of the code will be shown to the users of your form. Unless you include some form of output that includes your email address... (or if you cock up your coding which results in an error that reveals part of your code, your email address being including within that).
  4. Scoochi2

    change submit button for image

    Only problem with that method is that non-JS browsers will not be able to submit the form.
  5. Scoochi2

    change submit button for image

    I'm unsure... do you want the image to change when something happens (such as the user pressing a button) or do you just want to use a custom image instead of a submit button? If it's the latter, the following simple piece of HTML can be used instead of <input type='submit'> or as you did...
  6. Scoochi2

    Insert records from a local csv file

    It should work for any file. Just make sure you use an absolute rather than a relative path. That being said, it depends on how the sever the script is hosted on whether it will for for files hosted elsewhere. I think on X10 you need the intermediate level PHP (at least). You do not need to...
  7. Scoochi2

    Insert records from a local csv file

    The following function takes a filename as the only parameter, and returns an array. Use as follows: $data = explode_by_lines('testdata.csv'); <?php function explode_by_lines($filename) { $data_1 = array(); foreach (file($filename) as $array) { $data_1[] =...
  8. Scoochi2

    iframe Troubles

    The iframe is not actually part of the document like a normal frameset. It is simply a document embedded in another. (I think, can someone say yes or no to this?) I think the only way you can get around this is by using JavaScript. And even then, it won't work for all users (such as people with...
  9. Scoochi2

    Hash? Or something similar..,

    All it does it write them to a flat text file. Well, it actually write them to a PHP file as an array which is then required when reading. So it's as simple as showing the value of the array where the key is the message number. That's why it gives you a number, and that's why it starts at 0...
  10. Scoochi2

    New Version of Java

    Hence the question being "what is the new version" :nuts: rich, you can find out what the latest version is by visiting the Java site. At the time of this posting, the version is Version 6 Update 7.
  11. Scoochi2

    unsuspension

    Depends why you were suspended... doesn't it usually say how long until you are unsuspended in the control panel? If you need staff assistance on the matter, you're better posting in the Free Hosting forum. :naughty:
  12. Scoochi2

    Java scripting

    I know nothing about Java, although it could be done using JavaScript if the text documents are all supplied to the script. So my guess is that any programming language can achieve this :)
  13. Scoochi2

    Hash? Or something similar..,

    How about something like this that I made in like... 5 mins. lol http://scoochi2.freehostia.com/store/. You can save messages, view messages or delete messages. When creating, you can choose to have a password for viewing and/or deleting. Go ahead. Try it out and see if that's any use for...
  14. Scoochi2

    Java scripting

    ok. I've updated it. I've designed it to be used once and then deleted. If you keep it and then accidentally run it again, it will possibly add all the records into your database again but more likely (and hopefully!) it will cock up and not adjust anything :) All you need to do is to edit 5...
  15. Scoochi2

    Java scripting

    I can't do Java yet, but I can certainly help you using PHP. <?php $file = 'location/of_file.txt'; // enter the location of the text file above. // if it's in the same directory as you put this file, just enter 'filename.txt' $array = file($file); $business = array('name' => array(),'address'...
  16. Scoochi2

    Insert records from a local csv file

    Also remember to use the trim function if the list might include whitespace that you don't want to keep :)
  17. Scoochi2

    Insert records from a local csv file

    yeah, the csv file will need to be uploaded onto *a* server. Not necessarily your server, any will do so long as your script has the permissions needed to read it. Once the script is online, you can do something along the lines of the following in order to convert the file into an array in your...
  18. Scoochi2

    IE spanish characters

    Just out of curiosity, does your source output the character entity or the character itself? I highly recommend using entities! For example, use &eacute; instead of é
  19. Scoochi2

    PHP Word Scrambler - String Questions

    assuming your form looks vaguely like the following: <form action='scramble.php' method='post'> <textarea name='words'></textarea> <input type='submit' value='Scramble!'> </form> then the following should work (I've included comments so you see what I'm doing and why, and hopefully you'll...
  20. Scoochi2

    Hash? Or something similar..,

    Not unless your original string has 32 or less characters :p Encoding can be done in several ways. The easiest is a simple Caesar Cipher. With one of these, each letter is advanced by a certain number of characters. At the end of the list, it loops back to the start. So if a becomes c, c becomes...
Top