I have a PHP script that will be doing an @fopen file open command to a Java servlet, sending content via a query string.
Problem is that it appears the Java servlet does not receive anything via its doGet() method and does no action.
Has anyone here successfully ever sent anything via PHP to a Java servlet? Tell me what you are supposed to do, I thought it was this simple:
$fileID = @fopen("$SERVLET_SELF/ppowell.ChatServlet?message=" . urlencode($message) . '&nickname=' . urlencode($_COOKIE['val_chat']), 'r');
I checked using both echo and print_r() to verify that $message and $nickname are both populated. I perform this very similar action in another PHP script and the servlet receives with no problem.
I could use some help from someone well versed in both PHP and Java Servlets.
Thanx
Phil