Search results

  1. Scoochi2

    PHP doNav Function

    So how exactly do you call the function? <?php [...] echo (doNav(array('12345','67890','abcde'))); ?> Using your initial code, I would expect it to show: <a href="http://yoursite.com/">Index</a> » <a href="http://yoursite.com/abcde/">67890</a> » <a href="http://yoursite.com/abcde/">abcde</a>...
  2. Scoochi2

    PHP doNav Function

    Because the first time it is run, the value of $linksUsed is 1, which is set on line 4. After the first run, the value will be 2, then 3 and so on. Which means that on the first iteration of your for loop, $linksreturn will be set to $addonfromHere and it will ignore the else statement. To...
  3. Scoochi2

    PHP script - adding target="_blank" to links

    Copy all that into a simple notepad program or equivalent. Use search+replace and replace; <a href= with <a rel='nofollow' target='_blank' href=
  4. Scoochi2

    php in shtml page

    :/ I doubt anyone would send a single email out for each and every error. More likely that an email would be sent out once a day containing a list of all the errors...
  5. Scoochi2

    asp scripting enabled?

    To further Twinkie's response, I found this help topic: http://support.x10hosting.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=9
  6. Scoochi2

    asp scripting enabled?

    Maybe I got that wrong..? In your user CP, go to the CGI center. I'm not sure I can help you further with this one :(
  7. Scoochi2

    asp scripting enabled?

    The ASP Framework needs a Windows powered server. X10 uses Linux and as such... not Windows :) Are you really getting a blank page? Check the source. I suspect you'll find it output exactly what you told it to, considering that the code isn't parsed.
  8. Scoochi2

    PHP coding for banner header

    In your CSS (style sheet), add this: div #header { right: 0.5em; } If you already have a div #header or just a #header section, then you don't need to add that bit in, just add the right: 0.5em; bit. Basically, it will move anything in that div over to the right. Play around with the 0.5...
  9. Scoochi2

    PHP on Local Host

    Actually... If you are echoing it, DON'T. To run phpinfo: <?php phpinfo(); ?> If you get a blank page, I think PHP is working, but you're doing something wrong. If it wasn't working, you would see the PHP code outputting as it is not being parsed. If you get a blank page then *something* is...
  10. Scoochi2

    error in php

    What errors do you get? Please include the code that relates to the error (a few lines before and after, or the whole code if you prefer, as well as anything else that may affect it, such as includes).
  11. Scoochi2

    JavaScript: URL site text -> myVariable

    Hi. I had a problem the other day which I partially resolved. The major reason it still isn't working is because I am trying to use document.links[] in a different domain to my script. I need to be able to either simulate a link click on a different site, or to get the url of that link into my...
  12. Scoochi2

    Hheellpp!!

    ROFL! And gaming is not entirely unlike htmL design. Look at browser based games. Languages such as PHP and JavaScript depend highly on HTML in order to display content. 16zzundel5, what kind of game are you trying to create? Do you know any programming languages whatsoever? What have you tried...
  13. Scoochi2

    JavaScript: document.iframe.link.click() ?

    Hey, I'm trying to get JS to simulate a link click in an iframe on my page. Normally I would just change the src of the iframe, but the link I need to click contains a code that is different each time, and will not work with a different (or no) code. I have this: <iframe width='600'...
  14. Scoochi2

    Inserting flash in XHTML

    http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml <!--[if !IE]> --> <object type="application/x-shockwave-flash" data="movie.swf" width="300" height="135"> <!-- <![endif]--> <!--[if IE]> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"...
  15. Scoochi2

    log in problem?

    Have you recently upgraded your account or anything like that? If so, you might keep getting this until the operation is completed. EDIT: guess you got an answer before me :D
  16. Scoochi2

    basic password check - quick help!! - javascript

    Um... 'directed revision' ;) It's simple enough not to hinder someone's learning of the language (presuming they at least try), whilst also helping them to understand the basics.
  17. Scoochi2

    Simple JS exercises - answers needed asap!!!

    rofl. Why not look in the book for the answers? It's open book, remember! :D var word = window.prompt('What word do you have?',''); window.alert(word+' '+word.length); var total=0; while (total < 400) { total += parseFloat(window.prompt('Total is less than 400, please enter another...
  18. Scoochi2

    basic password check - quick help!! - javascript

    Without actually knowing what your test is on and what you've already learned/supposed to have learned, I don't know exactly how to do that. Where is the password coming from? I'll assume a basic level of JS tutoring, and the following is a function that may work (although the password could be...
  19. Scoochi2

    redirect

    Also, if they want directly to the file instead of using the forum, then no POST/GET data will be sent (although it is possible to send faux POST/GET data). Check this withif (isset($_POST['data']))
  20. Scoochi2

    Password one way encryption.

    That's a BAAAAD idea. More encryption is only likely to increase the chances of getting the same hash from multiple passwords. In other words, that would decrease your security.
Top