Jump to content

Recommended Posts

Posted

Say I have a perl script www.****/cgi-bin/test.pl

 

In the script, I want to call the applet. And the applet will process a jpg and then display it. But the problem is that the applet can only read jpgs that is in the same directory as where the applet is at.

 

I tried to upload some jpgs to /cgi-bin but i just found that this wont work.

I also tried to upload the applet and jpg to /public_html and call it in the perl script by using "/applet.jar" and "/applet.class", however this doesnt work too.

 

In other words, I can only put the applet and the jpg in /cgi-bin. Any way I can make the applet work?

Posted

Have you tried calling the applet in the /public_html from the script by using ../applet.jar or ../applet.class? Or even /home/username/public_html/applet.jar?

Posted

You could create a new directory outside of the cgi-bin and chmod it the same as the cgi-bin so it can run scripts. Put your script and applet in there and give it a try.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...