Jump to content

Voldemort

Members
  • Posts

    70
  • Joined

  • Last visited

    Never

Contact Methods

  • AIM
    YodaOfDarkness
  • Yahoo
    YodaOfDarkness

Profile Information

  • Gender
    Not Telling

Voldemort's Achievements

Member

Member (2/5)

0

Reputation

  1. Here's my code. Example variable definitions follow. if(!empty($files)) foreach($files as $file){ if(is_dir($dir . "\\" . $file['album']) || @mkdir($dir . "\\" . $file['album'])) $text .= ' Folder <tt style="color:green;font-weight:bold;">' . dirname($file['new']) . '</tt> created or exists!<br />'; $renamed = @rename($file['old'], $file['new']); if($renamed) $text .= ' Couldn\'t rename <tt style="color:red;font-weight:bold;">' . $file['old'] . '</tt><br />'; else $text .= ' Done with <tt>' . $file['new'] . '</tt><br />'; } $dir - "C:\Documents and Settings\Steven\Shared\A-Ha" $file['old'] - "C:\Documents and Settings\Steven\Shared\A-Ha\Take On Me.mp3" $file['new'] - "C:\Documents and Settings\Steven\Shared\A-Ha\Hunting High and Low\Take On Me.mp3" $file['album'] - "Hunting High and Low" $files - an array of files... Sometimes it works, sometimes it doesn't. Thing is... it always says it doesn't work. Not once has it taken credit for actually achieving something! And I'd like to know if there's a way to make sure it'll work almost every time, instead of it being a crapshoot.
  2. I've got a script that takes around twenty seconds to execute, and while that's going on, all you can see is the top of the page. Is there a way (perhaps with a buffer?) to load the surrounding html and then, when all of the variables are set and ready to go, show it? Oh, and I've now been logged in for 24 hours total yay! Enough sidetracking... does anyone know how to accomplish this?
  3. It's already clean on the PHP side, but the page itself will show the text of what was entered and the picture, i.e. Smile
  4. I also need to make sure nothing bad can be input... would just encodeURI() work fine?
  5. I'm trying to make a section on my site where a user enters their name into a form, presses submit, and an image (theirname.gif) is shown, without reloading the screen. This is what I have right now, but it's not working... <html> <head> <title>New Page 1</title> </head> <body> <script language=javascript> function showimage (elem) { var url = elem.username.value; var imagearea = document.myimage; imagearea.innerHTML = "<img src='images/" + url + ".gif' />"; } </script> <form name="form" method="POST" action="javascript:showimage(document.form)"> <p align="center">Enter your name:<br> <input type="text" name="username" size="20"><br> <input type="button" value="Submit" name="enter" onclick="javascript:showimage(document.form)"></p> </form> <div name="myimage"> </div> </body> </html> images/(name).gif is a php image by the way
  6. This is just a wild guess, but I think my name is Steven. As a junior in high school, I don't really remember much, but I do remember that I'm around six feet tall, and weigh... let me go stand on a scale (I forgot)... 140 with my laptop, which I forgot to put down, and 135 without. Computer-wise, I'm a late starter... Spring 2005 - XHTML Summer 2005 - PHP Fall 2005 - Javascript Summer 2006 - Flash Fall 2006 - Java (AP Computer Science AB) Spring 2007 - Java (AP Computer Science AB) Fall 2007 - Either C++ or Ruby As you can see, I go through languages a bit fast. I don't ever get wildly proficient at any one language, I just build upon what I know to do bigger and better things. If I ever decide to do anything with this, I'll probably learn the more advanced features of each language, but until then, I'll settle for what I've got under my belt. Oh, and about Java... even though it says it was an AP class for school, I was the only one doing AB (as opposed to A, which had a dozen people in it), so it was pretty much a teach-yourself thing, which was best after all.
  7. Exactly. I don't care that it won't do much good for me, if I have to take it again in college, I'll be that much more prepared. I'm expecting a 4 on CompSci, 2 or 3 on Calc... I totally bombed the second multiple choice section and the last free response question.
  8. Ya, I passed the AP physics test last year with a 3, and I didn't study at all. I came out of it feeling better than people who studied their butts off and got 4s and 5s, because I didn't stress out about it. CompSci today was a... dog.
  9. I've got AP tests the next two days (Computer Science, aka Java, and Calculus) and even though I haven't been studying today, my brain just fried. I was sitting in a chair reading when I just couldn't think of what the next word was (it was 'generally')... 48 hours from now this will all be over... sigh...
  10. Speaking of fustrate, I still have no idea how to fix that. .htaccess won't redirect it...
  11. dynamic subdomains are now working... I still can't figure out how to block ~hoffman and cgi-sys/scgiwrap...
  12. Hmm, I'll check out the password thing, I think I know what it is... I've starting implementing something to clean the input, I've got it working pretty well now. The subdomains should be up within the hour, i found the mistake with that. And what do you mean bookmarks? edit: ah, I know what the problem is. How do you pass $_POST variables along with a redirect? can it be done?
  13. Ah, you found the log from when there was a fake login page It was an experiment to see what people would try to put in, that was the log from the last day it was up How would I block all of this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.