Current location: Hot Scripts Forums » Programming Languages » PHP » AIM Profile script {NO mySQL}


AIM Profile script {NO mySQL}

Reply
  #1 (permalink)  
Old 09-13-04, 07:10 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
AIM Profile script {NO mySQL}

I'm writing a script that sees who viewed an AIM profile then counts how many times but I'm getting notices and I will just add the same name twice despite me trying to fix that I guess it just needs a new pair of eyes.
PHP Code:

<?

if(isset($_GET["sn"]) and $_GET["sn"] != "%n"){
//sn crap
$name_1 $_GET["sn"];
$name_2 str_replace(" """$name_1);
$name_3 strlen($name_2);

//database crap
$log 'users.log';
$check fopen($log'r');
$check_1 fread($checkfilesize($log));
fclose($check);
$check_2 explode('||'$check_1);
$check_3 count($check_2);
if(
$name_3 "16" and $name_3 "3"){
    for(
$index 0$index <= $check_3$index++){
        
$check_4 explode("*"$check_2[$index]);
        
$check_5 count($check_4);
        switch(
$name_1){
        case 
$check_4[$index][0]:
            
$check_5 fopen($log"w");
            
$check_4[$index][1]++;
            
$content $name_1 '*' $check_4[$index][1] . '||' $check_1;
            
fwrite($check_5$content);
            
fclose($check_5);
            break;
        default:
            
$set ' ';
            break;
        }
    }
    if(isset(
$set)){
            
$check_6 fopen($log"w");
            
$content $name_1 '*' '1' '||' $check_1;
            
fwrite($check_6$content);
            
fclose($check_6);
        }
        else{
        }
    }
}
else{
    echo(
"Please View in AIM");
}

?>
And I'm getting this notice:
Code:
Notice: Undefined offset: 2 in c:\easyphp1-7\www\aim\index.php on line 26

Notice: Undefined offset: 3 in c:\easyphp1-7\www\aim\index.php on line 23

Notice: Undefined offset: 3 in c:\easyphp1-7\www\aim\index.php on line 26
Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 09-14-04, 10:37 AM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
Before looking at your script the first thing that came to my mind was to use XML. PHP has great support for parsing xml files and okay support for making them post PHP 5.

It might be easier.
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Reply With Quote
  #3 (permalink)  
Old 09-14-04, 10:48 AM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
Well I have no experiance in XML at all so would you be able to point me in a dirrect besides w3schools since that didn't help. Thanks,
Reply With Quote
  #4 (permalink)  
Old 09-14-04, 09:53 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
..::bump::.. Can anyone help me at all with getting started using XML?
Reply With Quote
  #5 (permalink)  
Old 09-15-04, 01:25 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
I can see people are viewing it just no one wants to help.... pfft
Reply With Quote
  #6 (permalink)  
Old 09-15-04, 02:10 PM
<?Wille?> <?Wille?> is offline
Junior Code Guru
 
Join Date: Jan 2004
Location: Helsinki, Finland
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
would if i could.. never done any xml
Reply With Quote
  #7 (permalink)  
Old 09-15-04, 02:21 PM
Eclipse's Avatar
Eclipse Eclipse is offline
Coding Addict
 
Join Date: May 2004
Location: Long Island, New York
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
could you maybe just try to help with the script that all i'm really asking for right now....
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
MySQL Problems (register script) zenonflare PHP 3 04-05-04 11:59 AM
looking for a member manager/player profile script. mrjones Script Requests 0 12-15-03 02:20 PM
looking for a member manager/player profile script. mrjones Perl 0 12-15-03 12:06 PM
PHP to MySQL script question...(using a field to update info in MySQL) DisneyFan25863 PHP 4 11-02-03 03:31 AM


All times are GMT -5. The time now is 04:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.