Reply
Excute java?
Old 02-24-2005, 08:54 PM Excute java?
Novice Talker

Posts: 5
Hi I am trying to make a php script that will excute a *.jar file I downloaded that cuts up this huge array and makes an output file in a txt file. The command I run is "java -jar PvPLogParser.jar SavedVariables.lua output.txt"

Is it possible for me to run this threw php? or would it be better to make something from scratch that can turn this "very very large arrays" into a txt document?

Thanks
stickthemepark is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-24-2005, 10:06 PM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Run the java commands in an html file. Rename it as a .php file and just include it in the area that you want it to run.
__________________
Media Help & Discussion
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 02-24-2005, 10:07 PM
Gaffer Sports's Avatar
Ultra Talker

Posts: 397
Name: Steve
Location: Scotland
Why not just code it in php and create the arrays that way?
__________________
Media Help & Discussion
Gaffer Sports is offline
Reply With Quote
View Public Profile Visit Gaffer Sports's homepage!
 
Old 02-24-2005, 10:36 PM
Skilled Talker

Posts: 62
I really have no clue what you are talking about, but normally when I use java I just put embed it, not execute it.
I don't know if this is what you want, nor if it will work, but you can execute programs on your server by going :
[php
exec(path/to/program);
//or
system(path/to/program);
[/php]
Depending on what your host allows, you may only be able to use both, one, or all of them.

Good luck
-Jason
The Jasong is offline
Reply With Quote
View Public Profile
 
Old 02-24-2005, 10:57 PM
Novice Talker

Posts: 5
I belive excute is disabled on my server, anyways heres what the array looks like which dosnt seem normal to me within php.

PHP Code:
 PvPLogData = {
    [
"Blackrock"] = {
        [
"Blazingpengu"] = {
            [
"notifyKill"] = "party",
            [
"dispLocation"] = "overhead",
            [
"battles"] = {
                [
"Gummers"] = {
                    [
"race"] = "Night Elf",
                    [
"guild"] = "Allied Guard",
                    [
31] = {
                        [
51] = {
                            [
"wins"] = 1,
                            [
"loss"] = 0,
                        },
                    },
                    [
"class"] = "Hunter",
                    [
"enemy"] = false,
                },
                [
"Shotta"] = {
                    [
35] = {
                        [
52] = {
                            [
"wins"] = 2,
                            [
"loss"] = 0,
                        },
                    },
                    [
"race"] = "Troll",
                    [
"guild"] = "Fun and Games",
                    [
"class"] = "Mage",
                    [
"enemy"] = true,
                }, 
stickthemepark is offline
Reply With Quote
View Public Profile
 
Old 02-24-2005, 11:00 PM
Novice Talker

Posts: 5
I think I may have to code something in php to chop up these arrays but these arnt the normal arrays that you see if you print a php array, correct? They are like => value or something, right?
stickthemepark is offline
Reply With Quote
View Public Profile
 
Old 02-24-2005, 11:17 PM
Skilled Talker

Posts: 62
Quote:
Originally Posted by stickthemepark
I think I may have to code something in php to chop up these arrays but these arnt the normal arrays that you see if you print a php array, correct? They are like => value or something, right?
Correct.
The Jasong is offline
Reply With Quote
View Public Profile
 
Old 02-24-2005, 11:25 PM
Novice Talker

Posts: 5
Is there any way arround this to make it more php friendly?
stickthemepark is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Excute java?
 

Thread Tools

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 5.41257 seconds with 12 queries