creating a hidden dependency on PHP in Java.
1
Name:
Anonymous
2009-06-04 3:06
Is there a way to create a hidden(to browser) dependency on PHP in Java.
I was thinking something with encrypted key generation. Like a Password that is used to generate a hash on a time stamp that PHP could also do so they can have the same key every 10 seconds or so.
or is there something else super easy.
2
Name:
Anonymous
2009-06-04 3:08
You mean like shitting and pissing at the same time?
It's harder than it sounds you know.
3
Name:
Anonymous
2009-06-04 3:18
asdf's
4
Name:
Anonymous
2009-06-04 3:27
This thread has been closed and replaced with the following thread :
Subject : Compiling Java code with a PHP compiler
Name :
Email :
It doesn't work.
5
Name:
Anonymous
2009-06-04 8:48
>>4
System.out.print("DONGS"); is valid PHP.
6
Name:
Anonymous
2009-06-04 9:15
>>5
System.out.print("DONGS"); is valid C.
#include <stdio.h>
#include <stdarg.h>
struct stream {
int (*print)(const char *format,...);
};
struct {
struct stream out;
} System;
void System_init() {
System.out.print = printf;
}
int main() {
System_init();
System.out.print("DONGS");
return 0;
}
7
Name:
Anonymous
2009-06-04 9:21
>>6
$ cat >dongs.c
System.out.println("DONGS");
$ gcc dongs.c
dongs.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
On the other hand:
$ php -r 'System.out.print("DONGS");'
DONGS
8
Name:
Anonymous
2009-06-04 9:23
9
Name:
Anonymous
2009-06-04 9:38
>>8
That
>>4 is wrong and
>>6 is
misleading .
10
Name:
Anonymous
2009-06-04 10:08
>>9
you can write Java in any language
11
Name:
Anonymous
2009-06-04 10:11
>>10
is it because its
TOTTALLY AWESOME
12
Name:
Anonymous
2009-06-04 10:27
>>5,7
Is that even relevant to the conversation, or is it just your way of saying ``I read
Xarn 's blog''?
13
Name:
Anonymous
2009-06-04 13:00
>>7
$ cat >dongs.java
System.out.println("DONGS");
$ javac dongs.java
dongs.java:1: 'class' or 'interface' expected
System.out.println("DONGS");
^
1 error
14
Name:
2010-10-26 3:01