I need to call a
servlet in my php script.
-----------------------
$tmpFileLines = file("http://www.mysite.com/servlet/servletName"); This line works but is inconvenient (major delays, bandwith issues). How do I rewrite it to use a relative call?
-----------------------
None of these work:
$tmpFileLines = file("servlet/servletName");
$tmpFileLines = file("/servlet/servletName");
$tmpFileLines = file("../servlet/servletName");
-----------------------
I have tried PHP forums but noone is able to help.