otoom ( Ant )
United Kingdom, West Midlands
|
|
Offline
Profile Views 9,222 |
|
|
|
Profile Overview
|
|
User Name
|
otoom |
Real Name
|
Ant |
Location
|
United Kingdom West Midlands |
Occupation
|
Hobby Coder... |
Gender
|
Male |
Age
|
14 Years Old |
WebSite
|
doxcoding.com |
|
|
|
 |
10 Articles
|
|
|
 |
22 Source Codes
|
|
|
 |
2 Pinned Codes
|
|
|
 |
0 Entries
|
|
|
 |
95 Friends
|
|
|
 |
4 Emoticons
|
|
|
 |
17 Comments
|
|
|
|
 |
1 Announcements
|
|
|
 |
1 Referrals
|
|
|
Whats up with my damn irc bot.
Web Development :: Perl / CGI
|
Hey all.
Im working on a simple irc bot but it will not connect.
Anyone know why?
#!/usr/bin/perl use strict; use IO::Socket; use Socket; my $server = "theseraphim.mine.nu"; my $port = '6667'; my $chanel = "#cybershade"; my $name = "oToom"; my $con = new IO::Socket::INET(PeerAddr => $server, PeerPort => $port, Proto =>
"tcp") or die "Couldn't connect xD"; print $con "NICK Jessica\r\n"; print $con "USER Jessica : Jessica\r\n"; print $con "JOIN $chanel\r\n"; while (my $body = <$con>){ chop $body; if($body =~ /^PING(.*)$/i) { print $con "PONG $1\r\n"; } if($body = /^¬version(.*)$/i) { print $con "PRIVMSG $chanel I am no bot! Version 0.1\r\n"; } if($body = /^¬owner(.*)$/i) { print $con "PRIVMSG $chanel I belong to oToom!\r\n"; } }
|
Cheers all.
Ant
|
View Topic (2 Replies)
|
|
|
Pulling users online
Web Development :: PHP
|
Hey,
I was just wondering how to pull the users online out of a forum.
As on DoxCoding, i have an IPB board.
And one the index page, i would like to add something into the right hand column that tells them how many users are online.
I know, it may be hard as you dont have access to the board,
But could you give atleast and idea.
Cheers.
Ant
|
View Topic (2 Replies)
|
|
|
Upload Script.
Web Development :: PHP
|
Hello again people.
I am having some trouble with my upload script.
<?php include('header.php'); ?> <?php if(isset($_POST['upload'])) { if($_FILES['file']['name'] != " ") { copy($_FILES['file']['tmp_name'],
'/'.$_FILES['file']['name']) or die ($error = 'Could Not Copy'); } else { die($error = 'No file!'); } ?> <h4> TUTOTIAL UPLOAD'S... </h4> <form action='<?php $_SERVER['PHP_SELF']; ?>' method='post'
enctype='multipart/form-data'> <table id='file_upload' colspan='2' cellpadding='2'
cellspacing='0' align='left'> <p> <tr> <td id='header' align='left' valign='top'
colspan='2'> Tutorial Upload... <?php echo $error; ?> </td> </tr> <tr> <td id='file' align='left' valign='top'
colspan='2'> <input type='file' name='file' size='45'> </td> </tr> <tr> <td id='upload' align='left' valign='top'
colspan='2'> <input type='submit' name='upload' value='Upload File'> </td> </tr> </table> </form> <?php include('footer.php'); ?>
|
I just need the file to upload into the main directory.
Parse error: syntax error, unexpected $end in C:\wamp\www\DoxCoding\upload.php on line 41 |
Thanks...
Ant
|
View Topic (3 Replies)
|
|
Please login to post comments. |
|
I really like the language. It don't think that it beats out C++ as my #1, but I do think that it steals the #2 spot for me :)
|
|
Off the Ruby website, I downloaded the interpreter and editor. That's all you
need to run your code.
As for learning Ruby, the site has several links to tutorials. I used those and
they were pretty good.
I looked at sockets, but I haven't had time to fully learn them. That'll
come later.
|
|