Hello, I am new to cgi/perl but have placed all of my scripts on my site myself and did ok. I've even fixed several errors myself. This one I'm having major troubles with. The script is WebAdverts. Anyway, I'm receiving these errors The first is when I call up my admin page to start the program. The second is what shows in my error log... BTW, my path is correct. Please, please help? ======================================== The first access will ask for a password once the script is able to get into the data directory (this is the problem however) THE ERROR:File Permission Error!

The most likely cause of the problem is a permissions error in your adverts directory (/www/htdocs/personality-creations.com/cgi-bin/bannerads/data/). Make sure that the directory exists and that it is set world-writable. --------------------------------------------------------------------------------

I've tried the script with and without the forward slash at the end and get the same message. I tried to chmod the data directory 755 and 777 and and still come up with the same error. What am I doing wrong? It says to chmod it a+w, I'm not too sure what that means in numbers, but I figured it should work regardless ( I could be wrong) with 777. ============================================ Also, when the script was called- it calls the display cgi.... the error listed is what I found in my error log: Can't locate /www/htdocs/personality-creations.com/cgi-bin/bannerads/ads_display.pl in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl line 21. [Fri Jan 28 13:36:29 2000] [error] [client 216.70.80.137] Premature end of script headers: /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl Can't locate /www/htdocs/personality-creations.com/cgi-bin/bannerads/ads_display.pl in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl line 21. [Fri Jan 28 14:45:27 2000] [error] [client 216.70.80.137] Premature end of script headers: /www/htdocs/personality-creations/cgi-bin/bannerads/ads.pl ============================================== I really have to get this resolved, it's driving me crazy :-( My sincer thanks to anyone who can help me! Jackie

Thank you Brian :-) You were a big help! You told me some things that I needed to know. I have most of the program running but I'm still having some other problems. The writer of the program is not very helpful, as a matter of fact he's sarcastic and basically tells you to find it out yourself in his docs.txt. I tried that but his documentation shows the same behaviour as he does unfortunately. Would you believe he doesn't even mention that in the program that there are two other scripts that need to be configured as well? He concentrated only on three of them. My Hosts programmer saw this and is now helping me with it. He says there were some problems with the script it's self and he fixed the errors... but still has more to repair. This was a blessing in a way though, it just made me want to learn the language all the more! I now have the Whole book set from O'Reiley on learning Perl. I even bought the CD Bookself :-) I love your website as well and expect to spend much time here! Just as soon as I fill my site up a little more I intend to take a break in order to learn CGI/Perl along with some CSS.

Again, thank you you're very nice and helpful and it is greatly appreciated :-) Jackie

Oh, I meant to ask: So what does a+w mean? The w would be write correct? What does a mean. I see it all the time, why don't they just give you the numbers? Thank you so much for the chmod number explaination now I understand them :-D Jackie

Thank you Jasmine :-) I keep notes on everything I learn and your information has been added to them. Brian and you have been very nice and helpful! I also LOVE your tutorials! I'm reading them now :-) Jackiexc