Jump to content

Voldemort

Members
  • Posts

    70
  • Joined

  • Last visited

    Never

Everything posted by Voldemort

  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?
  14. This was something I randomly thought I should make two days ago... I made the majority of it in an hour on Thursday and fine-tuned it yesterday. It's basically your own e-notepad to save links/etc. at school or wherever, or just have quick access to a note. It's been done before, and a lot better, but I felt like trying my hand at making one to see how it works. If you could just play around with it and try to mess with it, I'd be grateful. Fustrate.com |~| Virtual Notepad If I can ever get wildcard subdomains working, the urls will be yourname.fustrate.com, but until then, notes.fustrate.com/yourname will have to work. Oh, and instructions: Make a page using the form, and remember the password. Go to the url it gives you, and edit the page by just changing what's in the box and using the password you specified. (TinyMCE is used for the editor)
  15. Last night my hosting company said they enabled it, but It doesn't seem like it is... Everything I read says I should get a "page not found" error, but I'm still getting a "site doesn't exist" error. I've sent another request, but that was two minutes ago, so I won't know for a while.
  16. I've been trying to create dynamic subdomains with htaccess but I've had no luck. I'm trying to make http://whatever.mysite.com redirect to http://www.mysite.com/index.php?name=whatever... RewriteEngine On RewriteCond %{HTTP_HOST} ^([^\.]+)\.mysite\.com$ [NC] RewriteCond %1 !^(www|ftp|mail)$ [NC] RewriteRule ^.*$ http://www.mysite.com/index.php?name=%1 [R,L]
  17. Some of the numbers are really hard to read... I got one that I think had 53 and 58, so I had no way of knowing which to pick... maybe don't include so much noisy stuff... if it's an image, I doubt most programs can read it anyways...
  18. I was renaming folders today when something got messed up, I can't find a backup so I'll start over... wasn't much anyways, so this can be closed for now... won't have another design for at least a week
  19. Clashing, colors, logo design, style, etc. Didn't want to keep going if things weren't going well at this stage, so I posted it here.
  20. Right now it's just a layout, so that's the only thing that needs critiquing. I might add a bar at the bottom instead of just plain text, but right now it's mainly the top that I'm concerned about. http://www.fustrate.com (the missing 'r' is on purpose)
  21. I've been wondering about this myself... I'm pretty sure there's not going to be a way... These two situations would collide: another quote and you might be able to search for quote tags with no other quote tags between them, then use a while+eregi until you've replaced them all.
  22. It definitely doesn't work in addon domains... it overwrote the .htaccess for my main domain (luckily I have a backup )
  23. but the two locations in SRI URL (/home/... A.K.A. http://...) are different, so which one will they be accessed by? I'm willing to bet I'm just really off... EDIT: Well I tried, but the backend login it gave me didn't exist... I hate to say it, but I think I'm going to give up. I'm sure it's a great system, but I've just got bad luck today (trust me, you don't want to know).
×
×
  • 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.