Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
$_SESSION is one of the superglobal arrays in PHP, and you need square brackets to access the elements of an array (unless, of course, you've declared a function called Session). To output a value to the page, you need to echo it, and it will need a semicolon at the end of the statement.
Hmm... You said the page was completely blank, no source code? I've got an idea that that sort of problem may be caused by server timeouts (trying to remember something I was reading a couple of weeks back). I've had a go myself (on Apache running on Localhost) and am not getting any errors for missing parameter/wrong class name (or even uncomiled Java Source code), but I am still getting a grey box on't page.
Have you had a look at the web server logs, to see if there are any revealing error messages? For the missing class file, I have this in access.log:
... and this in error.log: [Fri Apr 10 23:28:09 2009] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/flibble.class
There was no error logged for the missing parameter.
I must admit, in my first post I jumped on the first thing I noticed, and assumed you were trying to access session variables via PHP. Yes, I know what assume makes .
Oh, and I should have asked, you asked about permissions - what are the permissions on the various files?
Hi, and thanks (I keep saying that - this forum really helps me), ok, here's the scoop so far.
I looked in the log '/var/log/httpd/error_log) and found I had a syntax error in my PHP code, so, the PHP engine "eeeps" out and shows a blank 'stare'...
I corrected that and did get a grey (failed) applet - but that seems to be due to the fact that I did'nt set the Session Var yet. The log mentions something like "Undefined Index" - so that's already a big Quantum Leap ahead 4 me!
Life would be easier if I had some sort of console, especially @ client-side, so I could "vent" messages using the System.out.println() directive...the jconsole is cool enough, but it shows statistics only - unless I've missed the clue here
Ok, so far, I know where to "tickle" the ol' girl... :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.