A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »anyone whos useful in php would be helpful right now. (related to halo

Author Topic: anyone whos useful in php would be helpful right now. (related to halo (10 messages, Page 1 of 1)
Moderators: Dennis

thellt
Joined: Feb 14, 2009

chiperdilly the great 1999-2017


Posted: Feb 17, 2015 08:52 AM    Msg. 1 of 10       
so. i got a button on my website and what it does is launch the haloceded using php. i am having a serious problem with outputting the console text to the page. i am trying to print the entire log one by one to prevent buffering and crashing. but im having issues because the $output is not seperatable by lines... im having trouble as i cannot find the php code to make the executed program print only one line at a time. as halo's console is printing in cmd, its becoming far too great for the webpage to handle.

currently this is my code.
it is activated by the button:

dedi.lnk is the shortcut to the program haloceded.exe on my pc.... output is the current

<?php
system('dedi.lnk 2>&1', $output);
echo '$output';
flush();
?>

does anyone have enough halo dedicated server knowledge and or php knowledge to help?

note! the code for launching halo works. im trying to print stdout or error out to the console...
Edited by thellt on Feb 17, 2015 at 08:54 AM


thellt
Joined: Feb 14, 2009

chiperdilly the great 1999-2017


Posted: Feb 17, 2015 05:45 PM    Msg. 2 of 10       
i get that but it never prints the text. it loads the entire windows output as a single string infinitely... it woulld be good to take the output and make a string per line, and have it erase after so many lines. and becuause a halo server is constantly giving messages its currently going to continue till A;) the program is closed, b: the php script is stopped or c: chrome crashes due to oversised buffer.


thellt
Joined: Feb 14, 2009

chiperdilly the great 1999-2017


Posted: Feb 17, 2015 10:31 PM    Msg. 3 of 10       
<?php
if(isset($_POST['serber']))
{
$openf= fopen("out.txt","a");
$output = system('dedi.lnk');
$spam = array();
$spam[0] = '/use the /';
$spam[1] = '/command to stop the game/';
$spam[2] = '/Dedicated server is running on/';
$spam[3] = '/players/';

$fix = "";

$stuff = preg_replace($spam, $fix, $openf);
fwrite($openf, $stuff);
fclose($openf);
$openf2 = fopen("out.txt","a+");
$file = file_get_contents("out.txt");
$outtext = explode("\n", $file);
echo explode("\n", $file);

can you tell me what im doing wrong to get an array to string cnversion notice?


thellt
Joined: Feb 14, 2009

chiperdilly the great 1999-2017


Posted: Feb 18, 2015 01:47 AM    Msg. 4 of 10       
dont be like that. the forums are for people who still care about the community.. ive been up 4 days. wrking on this. i may be new to php and my thoughts are dsorganised speccally when im tired too but at least i care... im decent at coding most things. ether way the program is supposed to output a constantly updating output of haloce dedi while its running. whatever. not my fault they didnt program stext or stdout for it. lazy of them...... point is i was runing into errors accomplishing the most mundane of tasks...... read the script and think again about the thouhtprocess..... unless you are also lazy..... "random gibberish" is not the words used o describe 4 days of creation, deletio, and tinkering to no avail.
Edited by thellt on Feb 18, 2015 at 01:50 AM
Edited by thellt on Feb 18, 2015 at 01:52 AM
Edited by thellt on Feb 19, 2015 at 04:52 PM


Xx1Talon1xX
Joined: Feb 2, 2015

Mexicans, Mexicans Everywhere!


Posted: Feb 18, 2015 11:00 PM    Msg. 5 of 10       
Almost every time I see a post from you its always about crying about how the community is the problem or how people or jerks. Ever think for a second that you're the problem and you're a jerk?....

He tried to help and wasted his time doing so, and you just posting random code and saying whats wrong is retarded. Yes I mean the exact meaning of that word......

Calm down and grow up


thellt
Joined: Feb 14, 2009

chiperdilly the great 1999-2017


Posted: Feb 19, 2015 04:47 PM    Msg. 6 of 10       
Quote: --- Original message by: noob (responces in parenthisis)
Almost every time I see a post from you its always about crying about how the community is the problem or how people or jerks. Ever think for a second that you're the problem and you're a jerk?.... (im actually not the community is not the problem. its btfks like you. who down on others.)

He tried to help and wasted his time doing so (supposedly, but remember that ive been working on thsi fudging script for 4 flipping days. i was trying everything i knew code wise to make it work. ps. lame excuse)

and you just posting random code and saying whats wrong is retarded. Yes I mean the exact meaning of that word......

(^--- wow jerk much? you must be king of circlejerk)

Calm down and grow up
(im 22 you prepubescent scum, yeah im a bit more sensitive. deal with it.)
final notes:
excuse you. i wasnt talking about this thread. i was generalising. fact is that i asked for help and all im getting is insults and attacks. eff that. i see people ungrateful for everything released. i see people quitting mapmaking because of ungrateful little shets. unlike you i care about the community. i care about its people. go ahead continue waisting your time attacking others because they might be posting late at night and those people also might be the few notice that the community is dying because of people like yourself posting how you have a superiority complex. and how you apparently are above the others who develop. go count your richard. remove the rectal corncob and then post again. you are playing with fire. take the heat, and try not to burn your house down, or save everyone some trouble and dont start.

NOT aceptable. dont attack me. i asked for help. not to be blasphemised.
Edited by thellt on Feb 19, 2015 at 04:50 PM
Edited by thellt on Feb 19, 2015 at 04:51 PM


BKTiel
Joined: Mar 18, 2014

strong independent bird needs no cage


Posted: Feb 19, 2015 05:16 PM    Msg. 7 of 10       
Quote: --- Original message by: thellt

Quote: --- Original message by: noob (responces in parenthisis)
Almost every time I see a post from you its always about crying about how the community is the problem or how people or jerks. Ever think for a second that you're the problem and you're a jerk?.... (im actually not the community is not the problem. its btfks like you. who down on others.)

He tried to help and wasted his time doing so (supposedly, but remember that ive been working on thsi fudging script for 4 flipping days. i was trying everything i knew code wise to make it work. ps. lame excuse)

and you just posting random code and saying whats wrong is retarded. Yes I mean the exact meaning of that word......

(^--- wow jerk much? you must be king of circlejerk)

Calm down and grow up
(im 22 you prepubescent scum, yeah im a bit more sensitive. deal with it.)
final notes:
excuse you. i wasnt talking about this thread. i was generalising. fact is that i asked for help and all im getting is insults and attacks. eff that. i see people ungrateful for everything released. i see people quitting mapmaking because of ungrateful little shets. unlike you i care about the community. i care about its people. go ahead continue waisting your time attacking others because they might be posting late at night and those people also might be the few notice that the community is dying because of people like yourself posting how you have a superiority complex. and how you apparently are above the others who develop. go count your richard. remove the rectal corncob and then post again. you are playing with fire. take the heat, and try not to burn your house down, or save everyone some trouble and dont start.

NOT aceptable. dont attack me. i asked for help. not to be blasphemised.
Edited by thellt on Feb 19, 2015 at 04:50 PM
Edited by thellt on Feb 19, 2015 at 04:51 PM



22, clearly can't spell or utilize grammar past a third grade level, quickly resorts to petty insults. 22.


thellt
Joined: Feb 14, 2009

chiperdilly the great 1999-2017


Posted: Feb 19, 2015 05:49 PM    Msg. 8 of 10       
Quote: --- Original message by: BKTiel
Quote: --- Original message by: thellt

Quote: --- Original message by: noob (responces in parenthisis)
Almost every time I see a post from you its always about crying about how the community is the problem or how people or jerks. Ever think for a second that you're the problem and you're a jerk?.... (im actually not the community is not the problem. its btfks like you. who down on others.)

He tried to help and wasted his time doing so (supposedly, but remember that ive been working on thsi fudging script for 4 flipping days. i was trying everything i knew code wise to make it work. ps. lame excuse)

and you just posting random code and saying whats wrong is retarded. Yes I mean the exact meaning of that word......

(^--- wow jerk much? you must be king of circlejerk)

Calm down and grow up
(im 22 you prepubescent scum, yeah im a bit more sensitive. deal with it.)
final notes:
excuse you. i wasnt talking about this thread. i was generalising. fact is that i asked for help and all im getting is insults and attacks. eff that. i see people ungrateful for everything released. i see people quitting mapmaking because of ungrateful little shets. unlike you i care about the community. i care about its people. go ahead continue waisting your time attacking others because they might be posting late at night and those people also might be the few notice that the community is dying because of people like yourself posting how you have a superiority complex. and how you apparently are above the others who develop. go count your richard. remove the rectal corncob and then post again. you are playing with fire. take the heat, and try not to burn your house down, or save everyone some trouble and dont start.

NOT aceptable. dont attack me. i asked for help. not to be blasphemised.
Edited by thellt on Feb 19, 2015 at 04:50 PM
Edited by thellt on Feb 19, 2015 at 04:51 PM



22, clearly can't spell or utilize grammar past a third grade level, quickly resorts to petty insults. 22.


yes. 22. yes. doesent {sensored} care to be a grammar nazi. or to be a jew who gets burnt by the grammar nazi.

keyboards broken, uses phone most of the time to post especially if away or at work., doesent care to use grammar on a forum, most forums arent job related, or professional.... this isnt an english class or a book so doesent feel the need to haveto use grammer on a forum. (rediculous) high % of forums users dont use grammer in posts.

besides this yes is easily provoked. has autism, and a {sensored} ton of other issues, still tries to make the best of the situations. easily provoked. has a lot of ptsd especailly with social situations, anxiety up the ass, has a lot of fears, and trauma especailly caused by bullying, that makes it difficult for him to understand people, and is easily irratated by others, overthinks things, and sees hidden meanings beyond what is usually said and thinks beyond the words themselves and finds a lot of critisism alot of the time even when its not there.. and can take offence easily especailly if feeling attacked. does not handle provoking well.... blows up on people if provoked. true these things are. (#yoda lol)


makes sence.... yeah im a bit screwedup. but i am trying to make the best of every situation. maybe im lesser than everyone else in a lot of ways. but not okay, still to directly gang up and assult one who could be lesser in many ways, even if they are upset... your job as humanity is to be kind to those who are differnt... celebrate differences, and promote equality. just because they cannot think well on their own or function on a regular level does not give an excuse to belittle.

you dont know what i deal with. you do not know the daily struggles i face. nor will i be able to tell you the things haunt me on a level every day that is nearly the brink of insanity... forutnately im not insane.. and i have logic and compassion. but still. i could have been gone by now. i have flashbacks that ultimately remind me of things i refuse to think about. if it hadent been for willpower and kindness/love alone i wouldnt be here. so. every life counts, yes? or does it not? does one with a messed up mind deserve as much of a life as someone who doesent? an equal oppurtunity? does one have a right to attack one who has these issues plus many more that are unspoken?

im not asking for feels or your pity. i ask for every ones unbiased acceptance. or at least for open mindedness. i ask for forgiveness if i freak out. i ask for respect and to be away from the attacks. i also know that everyone else is dealing with probelems as well. my goal is to be the change i want to make in the world.. my goal is to stop hatred in general, because the only thing in this world that i hate is hatred itself. period.

tl;dr? then you dont have a heart, imagination, or compassion, and/or feelings. nor do you have time and/or patience.

i also have no idea what you go thru on a given day. however. it doesent deter you from your daily lives. i wish well for everyone on the forums.
Edited by thellt on Feb 19, 2015 at 05:53 PM

any other things/posts? http://forum.halomaps.org/index.cfm%3Fpage=topic&topicID=15269 refer to this.
Edited by thellt on Feb 19, 2015 at 05:59 PM


thellt
Joined: Feb 14, 2009

chiperdilly the great 1999-2017


Posted: Feb 22, 2015 03:43 AM    Msg. 9 of 10       
this is appreciated. im trying to force halo ce dedi to open a log.txt print to the log and display the log over html.... shouldnt be difficult... maybe 2 hours worth of work for those who are expereinced? im not trying to have it all done for me..... even though i know very litle of php i can understand bits and peices.


OrangeJuice
Joined: Jan 29, 2009

Documentation and debug.txt


Posted: Feb 22, 2015 03:41 PM    Msg. 10 of 10       
why not choose a newer/easier language to program in

(one that doesn't rely on obscure and undocumented perl, sed, and awk 1980s-linux references -_-)

Edited by OrangeJuice on Feb 22, 2015 at 03:45 PM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 8:35 AM 140 ms.
A Halo Maps Website