Jump to content

dcole.ath.cx

Members
  • Posts

    430
  • Joined

  • Last visited

Everything posted by dcole.ath.cx

  1. guest books are made of 3 scripts: form, writer, and viewer.you will first need a html form that the user fills out, it will then send the data to a writer, which will write the submitted data to a file (flat file or database), then the 3rd file will read the file and print out the data accordingly.I also have a hosting page where you can sign up and it will automaticly give you a directory on my server if you need access to php. I allow accounts to use php. Other wise you can google 'free website host php' and might find a free host that supports php but then you might have ads on your pages.
  2. dcole.ath.cx

    captcha test

    do spammer even go for sites with Captcha? I've only heard of people making OCR scripts to prove some Captcha isn't the best... nothing beyond that.
  3. I new that much but I was lost with $a and $b... what do they need to be in terms of $resultsso do I just go $a = $results;I don't need to mess with $b, it will just know?also what about the other sets count, rank, and url ... because it's $a['count'] but for me that would be $a[all][0] do I need to name each set that's in the inner array so it know the difference?
  4. First off I will start with printing the data... <?php$a = $_GET['a'];$b = $_GET['b'];$c = $_GET['c'];print $a;print $b;print $c?> that code with get http://www.surplusmagazineshop.com/file1.p...amp;b=1&c=1and print 111you can add if statements if($a != null){print $a;} ---- ---to have them change data without any knowlege, you can make a HTML form... they then fill out the form and then php will make the new URL. <html><body><form action='changeinfo.php' method='post' />name: <input type='text' name='a' /></form></body></html> then on page 'changeinfo.php' have something like: <?php$a = $_POST['a'];print "<a href='http://www.surplusmagazineshop.com/file1.php?a=$a'>Go to NEW home page!!</a>";?> in the print statement it has a=$a which will goto $a = $_POST['a'] and get what ever they put in... like there name!
  5. function compare_links ($a, $ { if ($a['count'] == $b['count']) { if ($a['rank'] == $b['rank']) { if ($a['url'] == $b['url']) { return 0; } return ($a['url'] > $b['url']) ? -1 : 1; } return ($a['rank'] > $b['rank']) ? -1 : 1; } return ($a['count'] < $b['count']) ? -1 : 1; } usort($results, "compare_links"); I need help here... that script above need to be fixed or maybe it's right... dnkI have an array $results, each set is an array 4 sets long (0-3)so the count for the first result is $result[0][0], rank is $result[0][1], and url is $result[0][2]now I want to order 'count' from highest to lowest, then if it's a tie order 'rank' from highest to lowest, and if 'rank' is a tie... order 'url' alphabetically.
  6. dcole.ath.cx

    captcha test

    SFB, you can not have errors on because it could show your scource to a hacker how puts in false information and trys to get access to your source... to help prevent this from happening Apache has permantly blocked access to letting php.ini turn on errors... even though you have posted your source here...I would try running the code on xampp or get a php account on Mitch's server...---- ---I never write over files... I just create a new folder and stick it in there... I have 2 desktop folders and my desktop... 3 server folders on my computer with folders in them for each version of my site, as well as 2 folders on my server that have backup copies...
  7. Any of you here have flash?Anyway... here is a zip of flash files I have found on the internet, images of cars and guys, and demo files of the game that test functions.http://dcole.ath.cx/dcole/FGTA.zip
  8. well I need to change data too so maybe a loop would be best!php needs to make a grid_multidimensional_array type thing... where it's like an array but you can access any way you want at anytime... just by changing stuff after the variable name... but not like a (SQL) DB where you have to read and write, open and close...
  9. I did the same thing to a though away camera... while it had the battery still in it, so it kept charging and releasing energy... couldn't feel my hand for a while..ever made shock boxes? then tell people not to touch it because it's yours.. I haven't because we ran out of time turning school, it was a extra credit thing for shop class.
  10. will it work for checking the 2nd set in every sub array... it's also the whole set... it would be like finding 2 in $z... it would check $z[0][1], then $z[1][1], then finally $z[2][1] ???$z[0][1] is 2, as $z[1][1] and $z[2][1] are 5 and 8
  11. dcole.ath.cx

    captcha test

    my captcha works by picking a character out of an array at random..you could have it pick a number between 1 and the size of the array. Then go to that character...
  12. How can I look to see if a value is in any of $z[any][1]... I don't really want to use a for statement unless I have to... maybe in_array??
  13. now, I know what's going on... I had it so $a, $b, and $c where endless and your saying there $a, $b, and $c are the first 3 in an endless amount of arrays in $z (also that $a, $b, $c are set)got it!
  14. would it be worth it for a to be big search engine to write it's own programming lanuage that is made to be used as a search engine or would it be better to use a premade one like C?it would be more work but it would really be optimized!
  15. lets use this as an example: <?php$a = array (1, 2, 3);$b = array (4, 5, 6);$c = array (7, 8, 9);$z = array ($a, $b, $c);print $z[0][0];print "and";print $z[0][1];print "and";print $z[0][2];?> that will print 123, but I want to keep 147 inline with each other... so does usort move each set(the numbers) in each set($a, $b, $c) one?so it will move a set in $a one, move a set in $b one, and move a set in $c one?
  16. My search engine is writen in PHP... but I wasn't making it so it had to be large scale, fast, or space saving... just to learn more php.I made my search engine so it only crawls pages on a list, and then it removes copys of the same URL... so then it can only rescan the same URL 100 levels in.
  17. it is kinda dead... I couldn't get any help, all the fash forums on the internet are dead. Maybe when school starts up the forums will... other wise I will just post what I've found.
  18. O... I didn't mean to use VNC to 'get back' at someone... My school also has VNC on the computers (paid version) and they don't always use it for real proposes... sometimes to be funny or make a joke.with the router thing, that would be a good solution if your brother wouldn't let up... he blocks you, you block him... then your going to have to work it out. Just because some people aren't going to be like "you should have access, what was I thinking..." while they have the upper hand. ---- ---Why did he change your password in the first place?Maybe I don't see the real problem... all computer in my house have at least one one account so anyone can access the computer... I also don't keep my data on other people's computers... unless it's my mom computer (where I know I will have 100% access all the time)I don't allow my brother to have access to my computer because he slows down every computer some how... when he uses a computer, it has to be reformated every month, I can make a computer last 6 years (and still have it running like new)
  19. not at all... Linux will be easier than Windows.On linux I just saw it one day while installing some php things though the add/remove program things... it installed and runs the programs for you.If your on windows, you will have to google 'real vnc' then find the download and tell them for what purpose your using it for. Then after installing it, run the listening program and add it to the start folder so it starts up when you turn on the computer.Then you just click VNC viewer and type in the IP address or the computer name...
  20. well a text editor is like notepad... you just see text, no images.
  21. google VNC... I use 'Real VNC' and 'Tight VNC'I know captcha is messed up, my scripts not getting the session for who know what season, and I desided to fix it tomorrow..
  22. dcole.ath.cx

    captcha test

    SFB, your not a good GooglerIf you say 'Googler' 10 times fast... you will be a better googler!
  23. about coding... you would write it in DOS... and put it on a floppy and then boot the computer and have it read the floppy.if you don't have a floppy drive, you could do it with a CD.. maybe USB (I don't think old computers could do it though... I'm not 100% sure.)
  24. well if you ever do get back in and have more than one computer, I would install VNC.. so then if you can get logged back in, you can login to VNC while he's on and go change it (right in front of him... lol)the first time I used VNC on my brother he though it was a hacker who took control of his mouse, so he ran down stairs to me and was yelling "there's a hacker on the computer up stairs and he has control over the mouse!" I couldn't hold it in and I was laughing for a long time... the look on his face. but then he got smart and tried to VNC me while I was VNCing him... like a mirror looking at another mirror... and both on full screen! MAN that exit button was hard to find!---- ---another way to get back if you have a router is to block websites... or limit website viewing times or keywords!(because my brother would pig out on bandwidth... my network speed 108mbps, my internet speed 2kbps... slower that dialup (I have 6mbps btw). Is there a program that eats bandwidth?)
  25. but for my sorting I want to sort by $count, then by $rank, then by $urlso it's like4 13 g.com4 12 a.com3 45 d.com3 45 e.com2 10 c.com2 10 f.com1 90 z.comso what is the best way to sort it? I need to sort from high to low, then high to low, the A to Z.well, where there is return 0; I can just have it search the next array... but will it move it correctly. Doesn't the multidimensional array look like $array($array_of_count, $array_of_rank_, $array_of_url, $array_of_list); so how will the correct rank, url, and list stay together? the first line would be $array[0][0], $array[1][0], $array[2][0], $array[3][0];maybe I'm just lost...
×
×
  • Create New...