• Welcome to Valhalla Legends Archive.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - AC_Drkan

#1
Web Development / [PHP] Automatic Updater Code
March 08, 2006, 06:00 PM
Hmm.. Can't quite figure this one out. This is what my problem is,

I wrote  a script:
http://files.flawgaming.com/ServerStatus/

I wanted it to connect to here:
http://www.flawgaming.com/ServerStatus/UpdateChecker.php

And retrieve the current version, then, download the version if it isn't up to date.

Heres my coding so far:
$UpdateURL = "http://www.flawgaming.com/ServerStatus/UpdateChecker.php";
$CodingVer = 1;

$UPDateCheck = fsockopen($UpdateURL, 80, $errno, $errstr, 5);
echo($errno." ".$errstr."<BR>");
if ($UPDateCheck != NULL) {
echo("ENTERED LOOP<BR>");
$UPDate = fread($UPDateCheck, 1000);
$CheckThis = explode(' ', $UPDate);
Echo($CheckThis[0]." ".$CheckThis[1]."<BR>");
}

That is for the Update Checker

Now, this is what the Update checker looks like:
echo($CurrentVersion." ".$CurrentDownload); $CurrentVersion = 1;$CurrentDownload = "http://www.flawgaming.com/ServerStatus/";?>


Here's where im stumped:
2 No such file or directory

I check all the paths, and it looks clean, but still not connecting, did i make an error somewhere that im not seeing? Someone care to help a brother out?!


EDIT:
NVM, FIGURED IT OUT!
#2
Web Development / Re: [PHP] Weirdest Error?
January 04, 2006, 09:25 PM
Quote from: rabbit on January 04, 2006, 08:12 PM
IIRC, that has to do with either a) the result of the query is far too large (IE: a few gigs), or b) your MySQL server is extremely busy and can't store all the data it needs to in memory.

Try talking to your host, or, if you host yourself, get more RAM.

I thought that i might be too large but its only selecting 1 thing from the footer and thats only like 20 KB.  The SQL server i know isn't busy because im the only one using it. I have plenty of RAM to cover a 1 GIG SQL query, and have the CPU power to do it to.
#3
Web Development / Re: [PHP] Weirdest Error?
January 04, 2006, 12:42 PM
Tried it, it still does it.

Anyone else have any ideas?
#4
Web Development / [PHP] Weirdest Error?
January 03, 2006, 09:31 PM
Warning: Unknown: 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0

Im lost, looked it up on php.net and discovered it frees up memory from large queries to the SQL databse. Its located inside a footer from some scripts. Anyone wanna help a brother out on this one? I have never in my life, found this error.
#5
Web Development / Re: [PHP Solved] Form
December 30, 2005, 02:54 PM
Just as a side note, you don't have to separate every html code into a seperate echo statement, it can be included in 1 without the \n.
#6
Web Development / Unixtimestamp question
December 30, 2005, 09:16 AM
In some scripts i found, im trying to recreate them, heres my problem.

SELECT TO_DAYS(NOW())-TO_DAYS(FROM_UNIXTIME(logindate)) FROM members WHERE id = $mid

im trying to figure out what to set logindats as in phpmyadmin. So far i have tried everything and have been unsuccessful. So my question is, i know what NOW() returns, and have tried to make it similar to logindate, but i can't seem to figure out this FROM_UNIXTIME function. If someone could help me out, it would be muchly appreciated.

It produces this:

Days Since Login: 13148
Days in Clan: 12916


I just got the scripts able to login yesterday, and im sure i have all the correct tables.


EDIT:
I found the error, the table just need to be listed as an int with 15 values, and somehow it works.


Days Since Login: 0
Days in Clan:            12917
#7
Web Development / Re: PHP Bot
September 29, 2005, 05:33 AM
im interested in seeing a copy.

PLEASE PLEASE?!?!

Email: [email protected]

thank you so much.
#8
Web Development / Re: PHP Bot
September 24, 2005, 02:13 PM
Quote from: Warrior on September 21, 2005, 05:53 PM
.....you're an idiot.

Amen brother.
#9
Web Development / Re: PHP Bot
September 04, 2005, 06:33 AM
Quote from: Lenny on September 04, 2005, 12:35 AM
Well, don't forget to visit this.  Servlets or JSP is java's robust equivalent of PHP. 

100% Open Source, and 100% non-BNLS...

I just think it's fair to mention an alternative if someone plans to sell their source for $.

yeah.

but he wants to sell it for $200. Thats all he wants to do.
#10
Web Development / Re: PHP Bot
August 31, 2005, 09:51 PM
Im don't have any money,

but im willing to continue the project on my server.

You would still be listed as the "Core Programmer"

i would be listed as a developer.

I would make a site dedicated to the bot that would allow people i set to be able to view the source, modify the source, and do other things such as submit changes, etc....

I would give you administrative rights on this site, so you could make any changes necessary.

Please let me know what you think. Or read your pvm that i sent you.
#11
Web Development / Re: PHP Bot
August 28, 2005, 02:54 PM
Id be happy to buy it, but right now im kinda broke.

:(
#12
Java Programming / Re: J2ME Battle.net Bot?
July 06, 2005, 10:36 PM
Topic Locked.

Tired of Being Bashed for something as simple as a question.
#13
Java Programming / Re: J2ME Battle.net Bot?
July 06, 2005, 09:13 PM
Where else would i have posted it where i'd actually be looked at by a Java Programmer.
#14
Java Programming / Re: J2ME Battle.net Bot?
July 06, 2005, 08:33 PM
Quote from: MyndFyre on July 06, 2005, 08:25 PM
Quote from: AC_Drkan on July 06, 2005, 08:12 PM
Quote from: Hostile on July 06, 2005, 05:47 PM
If your phone was enabled so, you would just have to do a semi port with MIDP 2.0 functionality. Also seemingly simplify something like JavaOp to 1 bot even.

I pull up the Foreign Language Card.

I DON' DO JAVEA.

Well WHAT THE HELL are you doing asking if there is a Java bot that runs on the Java 2 Mobile Edition?!?  Stop bitching and be glad someone answered or discussed your question.

Damn!

Read my post and stop yelling. i ain't bitching, well no i am,but that beasides the point. My post was simply asking whether anyone KNEW IF THERE WAS A J2ME BOT AND IF THERE WAS WHERE TO GET IT.

CHILL.
#15
Java Programming / Re: J2ME Battle.net Bot?
July 06, 2005, 08:12 PM
Quote from: Hostile on July 06, 2005, 05:47 PM
If your phone was enabled so, you would just have to do a semi port with MIDP 2.0 functionality. Also seemingly simplify something like JavaOp to 1 bot even.

I pull up the Foreign Language Card.

I DON' DO JAVEA.