« first day (686 days earlier)      last day (4276 days later) » 

user50049
4:00 PM
Though making your own loader for them seems easy enough
 
Hey guys
I am using SSH2
For starting a process on a Linux server
Do you guys know how i can return the PID of that process that was just started
 
4:15 PM
http://stackoverflow.com/questions/12229350/assigning-users-money
 
what's delv?
 
delete vote
@cspray Could you update the gist about the cv-ring?
 
@PeeHaa Yea, I've been meaning to update it for a couple days now
 
Anyone used SSH2?
 
4:20 PM
lol
it's like asking "has anyone drunk water in past week ?"
 
user50049
@HarryBeasant The init script would have to return that for you. You could look in /var/lock/processname.pid to find it however, where 'processname' is the name of whatever you just started. Init scripts have to return a bool.
 
Okay i see
 
user50049
@HarryBeasant However, if you /bin/myprog &, shell job control will return the PID wrapped in brackets []
 
$stream = ssh2_exec($connection, 'long command');
Any way i could get it from that?
 
user50049
@HarryBeasant It would really depend on the command
 
4:23 PM
@cspray tnx :)
 
Its starting a game server
 
Anyone still has the table flip css3 animation?
 
$stream = ssh2_exec($connection, 'minecraft java -Xmx1024M -Xms1024M minecraft_server.jar nogui');
$stream = ssh2_exec($connection, 'java -Xmx1024M -Xms1024M minecraft_server.jar nogui');
Well that
 
user50049
@HarryBeasant Can the game server be told to write its PID through some option to a file? That's the best way, just wait for the file to appear and read it.
 
Well i can do, but i need to instert the pid into a sql database
after the command is ran
So that the user can then stop it
 
user50049
4:26 PM
any program in a POSIX system can get its PID, just have it write that value somewhere and read it.
 
So there is no way of returning the value back to the variable $stream
 
user50049
What game server are you talking about?
 
user50049
Not unless the process you start writes it to stdout or stderr
 
user50049
But likely, it will write it to a file you can read
 
Whats that?
 
user50049
4:27 PM
What's what?
 
stderr
 
user50049
standard error (like stdout, but can be redirected differently from stdout)
 
oh right
So lets say i have a PHP scrit
I need to get the PID straight after the process is started
Whats the best technique to do it
 
user50049
The process is a PHP script?
 
ps auxwww
 
4:29 PM
No i mean that the command is from a php script
 
but if through apache you can't know which one is which
 
Like i pasted before
bare in mind, there will be 40+ processes running
So i need to be able to get that exact pid
I was thinking of giving the process a screen name
And then searching for it
 
user50049
The game server you are starting will likely write its PID to a predetermined file once it starts.
 
user50049
Are you sure there is no option to tell it to do that?
 
I doubt it.
> Note: Always use Zend_Cache::factory() to get frontend instances. Instantiating frontends and backends yourself will not work as expected.
Anyone care to help me decode this?
 
user50049
4:32 PM
Then you'll need to transverse /proc to find it, or the output of ps
 
user50049
Wait, does it start on a unique port each time?
 
user50049
brb just heard glass shatter
 
Unique port yes
well the port is in the config of the game files
 
user50049
Ok, @HarryBeasant What does /bin/ss | grep xxxx (where xxxx is the pre-determined port number) show you from a shell?
 
Okay let me check
 
user50049
4:36 PM
(run of course on a server that is running and you know what port)
 
well
this could be for starting a server
actually
it depends
 
user50049
So you don't know the port in advance?
 
i need to track the pid whenever the server starts
well yes ill know the port
So the script will be like
 
user50049
If you know the port, once the call to start it returns, it should show up in the ss (socket status) command
 
start server with command
then track the PID using the port
Mind you, the server could be running with different IPs also
maybe 3 at a time
 
user50049
4:38 PM
There is no way to say "and gimme the PID" unless what you're starting makes it conveniently accessible.
 
I thought of starting it as a screen
giving it a name
 
user50049
If you know the port, you should be able to get the PID from ss
 
user50049
wat
 
and then getting the PId via that
 
user50049
(headdesk)
 
4:39 PM
Lol what
 
user50049
do you have a running game server now?
 
user50049
What port is it on?
 
25565
 
user50049
then just use ss or netstat to find the PID owning that port
 
4:41 PM
Hmm, this does need to be done by the script and inserted into a sql database automatically
So, it needs to be done via php
Just if you didn't know
Sorry if i'm making you facepalm
 
Where do I ask if something is possible from Facebook API ? Is it webmasters.stackexchange.com ?
 
user50049
@HarryBeasant Ok, your call to start it succeeded. You have determined that this service is NOT going to put a PID anywhere convenient. If the call succeeds, then talk to netstat or SS using grep to find the line of the output containing the port it should reside on.
 
Kev
@PeeHaa can you guys wait until the OP has at least had a chance to read the comment I added.
 
user50049
You can't expect the call to start it to return a PID if the service you are starting can't be told to display or write it somewhere.
 
user50049
I'm pretty sure, if it's a daemon, it can be told to write the PID to a file.
 
4:46 PM
hmm okay
cheers for you help
 
@Kev Can't you read your own deleted questions even if you're <10k?
 
Kev
@TimPost howdy chap
@NikiC nope..bloody annoying that
 
user50049
@Kev What's a Scott like you doing in a room like this?
 
Kev
@TimPost I'm a Kev :P
@NikiC which is half the reason the noobs ask the same thing again after a deletion
 
user50049
@Kev How far down the Codeigniter rabbit hole did you go?
 
Kev
4:49 PM
@TimPost christine (partner) just whipped up a big batch of Irish mussels, big 'uns too...yum.
@TimPost not far...we have ameeting about tooling next week
 
user50049
@Kev Any idea on this one
 
Kev
@TimPost - we're down to just one PHP dev ATM and he's on holidays, and I had to fix some bugs the other day on something the lad that left wrote last year....made me weep.
@TimPost you probably know more than me
 
user50049
It looks like I have to generate PDF copies of a lot of stuff in the near future, and that was not a design consideration
 
I have the feeling that Phalcon is superior over ZendFW1
 
Kev
@TimPost tbh, I'd like us to standardise on ASP.NET MVC for bespoke dev, and just use PHP for wordpress, drupal, off shelf stuff plugins (gets coat :) )
 
user50049
4:55 PM
@Kev we're going to get stabbed, tarred and feathered if we have that conversation here :P
 
Kev
@TimPost lol....wasn't meant as a flamer, just the practicalities of the balance of skill sets in the company.
@hakra I looked at that, seemed quite sensible
 
pce
@hakra do you also checked out YAF (php.net/manual/en/book.yaf.php), also a C Extension but not as much features as Phalcon.
 
@hakra wat?!
@TimPost code.google.com/p/wkhtmltopdf ? I saw lots of HTML
 
user50049
@hakra A 'feeling'? Scary :)
 
not a but the ...
... so, is it?
 
user50049
5:04 PM
@webarto It's .. fast, as advertised, that's all I can say for now. I'm testing against a redis server initially.
 
@pce You should not have told that to me.
 
user50049
@webarto But also not out of the learning curve. It's worth playing with. Beyond that, not sure.
 
pce
@hakra why? no feelings about ZF1 anymore?
 
@pce Nah, I did not even finish the docs for Phalcon but should back my stuff for holidays instead. Too lazy today ;)
 
pce
@hakra yeah, holidays are more important.
 
5:11 PM
@Kev OP already asked that exact same question
Besides every new user has to tick the checkbox stating he/she has read the "How to ask" page @Kev
 
Kev
@PeeHaa ja...I know....but the original question got deleted before he could see the reason why
 
@Kev No it wasnt deleted before he could read it. I know it because my vote was the last to delete it :P At that time he already added his duplicate question :)
 
@pce yeah. and pasta :)
 
Kev
@PeeHaa ah..ok...then my apologies. That said, hopefully a message from a diamond might actually make him take notice. It'll get deleted anyway in 30 days.
 
@Kev no worries :) btw it sucks that users cannot see their own questions which has been deleted :( Has there been a meta request for that already?
 
5:16 PM
^ good idea
 
Kev
@PeeHaa tell me about it. It's been asked a few times, and declined. Stupid really.
@PeeHaa I'll dig out the relevant meta posts after dinner...gotta run.
 
259
Q: Show all of my question/answers to me even if they are deleted

vavaI would really like to see all of my questions and answers on the profile page, even if some of them were deleted, and I don't have enough rep to see them on the site. (Note that some questions are automatically deleted after 30 days or 1 year, and the author might be oblivious about what happen...

:)
@Kev enjoy
 
Kev
@PeeHaa wilco...yeah that's it...laters.
 
later @Kev
 
 
+1 :)
@TimPost Can I @mention editors in comments?
@PeterSzymkowski Don't change the code in the question. If that was the error how would we know now??? — PeeHaa 2 mins ago
 
user50049
@PeeHaa He 'corrected' the code in a question in an edit?
 
@TimPost yup
Don't think I can ping him?
 
@NikiC congrats :)
 
user50049
@PeeHaa Yeah, revert that and let them know that broken code in the question needs to stay so answers can correct it
 
5:39 PM
Ah great editor answer the question :)
 
user50049
(and answers need to speak to bugs still in the question), I hate it when people do that
 
user50049
Rep whoring goddamn .. oh wait
 
@TimPost lol?
 
user50049
:P
 
user50049
The rep incentive for suggested edits once in a while backfires.
 
5:43 PM
to cache or not to cache?
 
user50049
We sometimes get edits that fix everything wrong in code that is given in a question. And then the WTF? flags pour in. Never ever correct code in a question, the answers it gets depend on it being broken.
 
user50049
And, yes, they get approved.
 
user50049
Time to fry up some sausages and scrambled eggs on toast
 
5:48 PM
@TimPost Sounds good :)
 
user50049
@PeeHaa Got a loaf of good sourdough I have been saving for the weekend. Hope so :)
 
:-)
 
@TimPost just had teh same, small world :P
Although it's 8PM, 20h, here...
 
@PeeHaa I always love how people say "I don't really feel performance difference", yes you don't, because you just bought latest equipment... when I open some "cool WP theme" for example, I hear cooler speed increasing instantly...
It really you lets you write s* code... and it's used mostly by non-programmers... there are two sides of the medal, of course...
 
6:03 PM
1
Q: how to use mod_rewrite with godaddy

LokeshI am using godaddy linux shared hosting and i am having some problem with mod_rewrite. I am not much familier with mod_rewrite my code is RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] RewriteRule readfile.php(.*)$ seceretfile.php?$1 [L,QSA] this cod...

 
@Mayankswami yes, and?
 
@webarto It's just like software developers. They expect hardware to get faster. But for javascript it is damn fucking slow in e.g. mobile devices. Besides it is often not neccesary to be that slow
 
@webarto iam also getting the same problem with godaddy in such this case
 
pce
@PeeHaa jQuery is 94% slower on Linux/Chrome
 
@pce Only 94? That's pretty good I guess ;-)
 
6:07 PM
@PeeHaa I rarely go down micro opt way, but I tend to write fast & sane code... not the case with jQuery... SO is a example of good JS (jQuery) code I think (it never lagged for me)...
 
1
Q: how to use mod_rewrite with godaddy

LokeshI am using godaddy linux shared hosting and i am having some problem with mod_rewrite. I am not much familier with mod_rewrite my code is RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] RewriteRule readfile.php(.*)$ seceretfile.php?$1 [L,QSA] this cod...

 
@Mayankswami paste your .htaccess or ST(F)U
 
1 message moved from Lounge<C++>
 
Hello guys. I'm thinking about how should I create a live "match making". I have a system where there are registered players. Them, could create a "match" and could be waiting for another one to join. If the guy closes the browser for example, the match will close itself. Otherwise, if someone joins his match, it will be closed. What kind of logic would you apply here?
 
@R.MartinhoFernandes how dare you !?!?
 
6:11 PM
@webarto Is that sarcasm, or is it not welcome?
I can just bin them the next time if moving lost souls here is not desired.
 
How can you see what message it is?? :P
nvm :)
 
It has a tiny arrow on the corner.
 
@R.MartinhoFernandes s/dare/are ;)
I'd close it as Not Constructive :P
 
Well, I really have no idea. That's why I moved it here.
 
Are we a bin now :D
 
6:16 PM
@R.MartinhoFernandes , what made you think that it is even remotely related to PHP ?
 
Dunno, the tag. I really have no idea about PHP.
I thought it'd be appropriate. Like I said, I can just bin them from now on if it's not ok with you. It's just that we get a lot of tagged questions there.
 
@R.MartinhoFernandes send them to hell :)
 
is someone goes to room to ask about , then the subject is too stupid
 
6:18 PM
@R.MartinhoFernandes You do?
 
Sorry about the confusion, then.
@NikiC Often at late (UTC) hours, under the excuse that we're the only active room.
 
@R.MartinhoFernandes I think moving them here is appropriate. We'll sort them out ;)
 
Oh well, make up your minds.
 
@webarto @tereško Don't complain. This way we have more questions to cv/delv :P
 
:troll:
yesterday, by markcial
sometimes i have the weird feeling that @webarto is here only to troll noob users
 
6:20 PM
I really don't care. I'll move them anyway, I just want to know where to.
@webarto Oh. :S
 
i am already running out of close-votes each day
 
@R.MartinhoFernandes not noob users, I'm noob too, but I'm no idiot with a 'puter... and we have a lot of tiny avatar people here...
 
Goddamnit. I forgot I'm still hitting the repcap :(
 
Let's all downvote @PeeHaa so he gets below 20k
 
:)
 
6:24 PM
We have no interest in that ;)
As long as he plays nice and delvs everything we tell him to :P
 
we need more vote pets
 
:D
 
I think when I come back we will have a pet-friday.
 
I'll +1 that - if someone thinks the C++ room is the appropriate place to ask a PHP question the question is probably no worth answering. Unless they are asking a [tag:php-internals] question and they put the wrong tag on it. Which is unlikely since
> php-internals× 14
> 9 asked this year
 
@hakra What are you going to do?
 
6:26 PM
Hey, why did my tag not resolve?
 
noob
because of newline
 
muhahahah
 
@PeeHaa holidays.
 
[tag:amidointrite]
 
@hakra Nice. Where to?
 
6:27 PM
@PeeHaa The alps.
 
:jelly:
 
Cool. For how long are you going to the Apls?
 
Lake Como (Lago di Como in Italian, also known as Lario; Lach de Comm in Insubric; Latin: Larius Lacus) is a lake of glacial origin in Lombardy, Italy. It has an area of 146 km², making it the third largest lake in Italy, after Lake Garda and Lake Maggiore. At over 400 m (1320 ft) deep, it is one of the deepest lakes in Europe, and the bottom of the lake is more than below sea-level. Lake Como has been a popular retreat for aristocrats and wealthy people since Roman times, and a very popular tourist attraction with many artistic and cultural gems. It has many villas an...
two weeks.
 
@hakra bellissimo ... where are you staying? I mean, someone you know, or ho(s)tel, villa, castle...
 
@webarto In a holiday flat. I hope the kitchen is properly equiped :)
 
6:35 PM
@hakra What do you need a kitchen for in Italy? I'll let the Italians use there own and just eat the results, they are much better at cooking than I am. But then I am English...
 
@hakra probably, cucina Italiana :) do you care to share about how much money is needed for such holiday?
 
@webarto I can't tell you actually because I did not book it.
@DaveRandom :)
 
@hakra I don't know prices in EU, that's all...
 
Anyone got any bright ideas on how to get an over tired 14 month old baby to go to sleep? Is there a jQuery plugin that can help maybe?
 
6:43 PM
@DaveRandom Dip your thumb in whiskey
 
@DaveRandom You are not supposed to give RedBull to a baby. :cute:
I'm planing on getting one of those.
 
@DaveRandom At least it is a less terrible question as his previous one: stackoverflow.com/questions/12229967/…
 
Use a common CMS like wordpress and find an appropriate plugin for video content — jtheman 57 mins ago
 
user1182183
Can anyone help me get the 'value' from the actually submited image instead of clicked image_x and image_y ? stackoverflow.com/questions/12230379/… :(
 
@webarto Be prepared to get no work done at all, ever. Also be prepared to live in a pile of shit for a long time.
@PeeHaa I wish it was possible to have negative rep. Those questions really deserve it.
 
6:48 PM
OP will be banned from asking questions soon (I hope)
 
@DaveRandom I'll save some money to get us going for 2-3 years (hopefully), I can barely work as it is. Wow, you seem delighted :D
 
@DaveRandom Once you get enough bad questions (downvotes weigh heavily on that), you get banned from questions entirely. Much more effective than negative rep (those kinds of vampires don't care about rep).
 
OK enough lurking. Time to start drinking and coding. I have some projects to attend to
 
@R.MartinhoFernandes they come here crying, and asking us the same or worse questions... and then you ad up to it :) TRUE
 
@sivashanker Start reading the "How to ask" page before asking any more questions. You know the page on which you had to tick the checkbox stating you have read it
 
6:50 PM
@webarto Oh yeah, that's really bad. We get that too. :(
 
@sivashanker meet @R.MartinhoFernandes he is your guide for today :D
 
Woah, woah, what?
 
^that guy :P
 
@R.MartinhoFernandes I'm praying for /votekick /voteban
 
6:51 PM
@webarto I love him dearly but I really wish he would learn to recognise when he's tired. I also wish he'd learn that throwing food on the floor is not an acceptable way of communicating that you don't want any more of it.
 
God. What is it with people promoting the use off global everywhere and telling people this is the way ™ even when told it isn't a solution :(
 
He's also just learned how to climb stairs, which adds a whole new dimension of fun
@PeeHaa Patent it so you can sue them
 
hehe
 
@DaveRandom Yeah, I understand, sort of... not an easy situation... but you did the same or similar :)
 
@webarto I'd say maybe 500/600 per week.
 
6:54 PM
No, I was perfect. Under no circumstances have I ever misbehaved in any way.
That's my story and I'm sticking to it
 
@DaveRandom You are not perfect, you are a PHP developer.
 
@DaveRandom warm air put the sweeties to sleep.
 
@hakra Thank you, I think that is reasonable :)
 
lol
 
But don't use a blowtorch to warm up air.
 
6:55 PM
Actually I think he's gone, I gave him a piece of paper to play with and that seems to have done the trick. I wish I was entertained that easily...
 
Or put your baby in an oven.
 
@webarto It's my toy, I'll do what I like with it :-P
 
^_^
I'll need to change car before that experiment, black absorbs 2x more heat than white. Recently, here, a baby died because of A/C O_o
And finish forking college. I forking hate it.
And bullshit less.
 
you fork
 
@webarto Seriously some people are idiots when it comes to this sort of thing. I was out a few days ago and I saw some woman wearing basically nothing because it was quite warm, pushing a baby around who was wrapped up like he was about to embark on an Arctic exploration trek or something
Just don't be a bell end and you'll be fine
OMG how stupid are the people in this country in which I live? news.nationalgeographic.com/news/2004/06/…
 
7:02 PM
That's what happens when people are stuck on an island for multiple generations ;)
 
Still can't get my head around ssh2
Does anyone know how i can get the PID of a process i just started via a SSH2 command?
 
mega edit
 
You don't know the half of it. Most of the people here are now either dribbling idiots or Polish
 
/me stops typing now
@DaveRandom lol
 
(not that I have a problem with the Polish)
 
7:06 PM
@DaveRandom I see that a lot in my neighbor, treating babies like accessories (from what I've seen), but I can't judge anyone or anything... weren't British Allies?
 
@HarryBeasant On pretty much any *nix box to start a program a-synchronously from PHP and get the PID of the child process, exec('/path/to/program > /dev/null 2>&1 & echo $!');
Over ssh I recommend you do nohup /path/to/program > /dev/null 2>&1 & echo $! otherwise the process will likely die when you disconnect
@webarto We were allies with a lot of people, then we behaved very badly and pissed a lot of them off.
 
@HarryBeasant start it in a shell script, and return the PID from the script via STDOUT or something.
 
So many upvotes so little rep :(
 
@DaveRandom LOL
... so this PhalconPHP thingy is a basically no go for shared hosting?
 
7:22 PM
Is there any mistakes in my query? I don't get any errors but it's also not returning anything.
SELECT students.id AS "Student ID", students.studentname AS "Student Name" FROM students u, grading g, assignments a
 
Student ID, yuck ... where have you seen this?
 
@webarto Que?
2
Q: Interpreting data strings and inserting it into a JTable in the correct column positions in Java

AlecI'm concerned about my Java client directly connecting to the MySQL server due to all of the issues that could occur, and the security risks I believe it could pose. Such as someone being able to decompile the file and get the login details for the database. As beautiful as it would be, I'm too s...

That's where I "saw that"
 
Query is valid but makes no sense...
 
...by which he means "Make your aliases computer readable, not human readable. Column names should not be printable directly, they should simply be labelled in a way that makes sense in the application logic." - the spaces in the alias names are not required and not a good idea.
SELECT id, studentname FROM students will do.
 
@DaveRandom Ah, alright.
I'm trying to solve the never-ending mystery of how I'm supposed to echo a string like this from my database so my application can interpret it:
    String receivedFromPHP = "Student ID;Student Name;Test Assignment;Secondary Test Assignment;\n"
            + "1;Luc;Test assignment 1;Secondary Test assignment 1;\n"
            + "2;Vador;Test assignment 2;Secondary Test assignment 2;";
 
7:30 PM
You probably want to post this on codereview.stackexchange.com. Oh and brace yourself as I'm sure someone will tell you to stop using the old mysql_ functions. — j08691 Aug 19 at 15:48
:D
 
mysqli is my best friend.
 
@Alec I almost exclusively use PDO. I think the API is so much nicer. But hey if it works for you I won't judge :)
 
@Alec I note your question is tagged . Please tell me you are not referring to the framework?
+1 @PeeHaa on PDO
 
@DaveRandom Swing, as the Java GUI api.
 
@Alec good. Just checking. I saw someone writing an app using the Swing AF the other day and nearly had a heart attack. As long as you are only referring to the GUI API that's fine.
 
7:34 PM
Been trying to solve this problem I'm having for about a month now. I'm about ready to give up.
Guess I'll ask the question in the SQL chatroom, if I don't get any answers I'll just dump the project.
 
@Alec Never gonna give you up
 
@Alec OK I have looked over your general problem and I have one word for you: JSON
It seems like you've got hung up on this idea that the PHP bridge should do a whole bunch of data formatting for you, and that is the wrong way to go.
 
@DaveRandom JSON looks like echoed jibberish that doesn't make any sense to me. I don't know how I could ever work with it.
Oh wait maybe I was thinking of something else. This looks more like a markup language.
 
@Alec The thing is, it works very well for you in Java. I've never actually used the Java MySQL API but I assume it basically gives you an object for each row at the end of it all, with properties names corresponding to column names, and the appropriate values assigned to those properties
 
PhalconPHP is my new favorite FW :D
 
7:41 PM
@webarto Still that sounds to me like saying: SMallpox is my new favorite decease.
 
@DaveRandom I avoid MySQL API like a black plague because I fear of people decompiling the application and getting the database connection info.
 
Well, json is basically a standardised way of stringifying those objects, PHP encodes them at one end, you throw them into a JSON decoder at the Java end, and you magically have an array of objects. Simples :-D
 
@PeeHaa yup, I feel you bro, although this is good for some high traffic blogs... you don't need much of a functionality but you can still make happ shittens...
Although with traffic HTTP is a problem... this just affect loading processing speed which can be minimal even without C...
 
@DaveRandom Still doesn't explain how I'm supposed to connect my assignments table (essentially provides column names) & grading (actual grades on the assignments) together.
I probably shouldn't have taken this school record management system idea on yet, I only have about 4-5 months of programming experience. Hardly any in PHP, some in Java.
 
@PeeHaa and you add a ton of jQuery and it all goes away :D
 
7:44 PM
:P
 
@Alec JOIN
 
@Alec A table that provides column names for use in another query? Take a step back from this for a second, and then tell me if that sounds like a good idea to you...
 
@DaveRandom I don't see what's so wrong with it considering I'm not using the MySQL api. The teacher needs to be able to manage the assignment; if I grouped the assignment and all of the student's grades together idk how I would think that through on how to interpret it.
I'm horribly confused.
Maybe it'd be better to research programming methodology more and come back to this project when I feel more confident that I can complete it.
 
@Alec I think you are looking at this in the wrong way. Think of it as two completely separate applications that need to talk to each other - because that's what it is. You need an database API, and an application that uses the database.
Firstly work out every action that needs to be performed against the database. Every data retrieval task, every data modification task, write them all down.
Then write a PHP application that performs those tasks on demand, and returns the results - that's your database API
Then write your Java app
Thinking about it (much as I generally hate it, it might make life easier for this use case) look into WSDL/SOAP
 
The issue is, how am I supposed to know the PHP code I'm writing will be able to echo things that my Java program can understand?
And isn't SOAP .NET stuff?
 
7:51 PM
SOAP is simply an XML driven format, it is universal.
It does sound like you could do with a little more background knowledge here.
 
@DaveRandom Yes, I am a newbie.
 
Well there's no shame in that. But may I suggest, in that case, that you keep things simple. How about you forget about the security aspect for now, and implement the Java app communicating directly with MySQL, without the PHP bridge
Then, when you have that working properly, you will have a much better idea of what you want from the PHP bridge
...which I think is a big part of the problem here - you're not actually sure what you want.
 
@DaveRandom You're correct, thank you for the advice. I'll take that approach, though I'm rather nervous about it.
 
Being worried about security is a good thing, but you have to learn to crawl before you try walking
 

« first day (686 days earlier)      last day (4276 days later) »