PDA

View Full Version : Newbie Help


DAL
06-11-03, 07:36 PM
Hi Fellow programmers of the perl realm. I have heard many references to perl communities being the most popular and most friendly communities on the programming net. I have tried everwhere to find you lot and in here theres a hell of alot more people in php group than in here I think it was 200 and somthing to the perl forum which I think was 3 at the time!

anyway any of you (3) lot know how to make a form in perl. I dont mean make a perl request a form via HTML I mean a form done entirley buy perl for perl. My ISP has taken away the post method for html so I need a way around this. Get method doesnt hold enough content for what I need it for. Ive tried other places including netfrims and so far my perl doesnt work at all on there (I think I need to buy a hosting package)

anyway I have an ISP that I pay an extra £4 on top of what I pay for broadband and I get perl and many more languages/scripts supported but I think for security reasons they wont allow post and I just get an error saying post method NOT allowed. :(

Im starting to think that im not goin to get very far with perl at all. How far have any of you people got with it before running into the same sort of problems Im having?

Pearl
06-11-03, 08:22 PM
I have not personally had this happen, so I really can't give you any advice (wish I could)... It seems strange that your host would allow you to execute a script but not allow the post method (which isn't the only security hole a script can have). If you're not sure about their post policies, you should ask anyway.. it could be possible that their server is misconfigured, or you have somehow added your script where it is not supposed to be, or set the permissions wrong. It's always better to double double check everything. Do you have any .htaccess privileges? if so.. also check your main .htaccess file for any instances to cgi.

If all else doesn't add up, and a solution is not found.. perhaps a new host would be best. There are many cheap ones available these days :)

Best of Luck.

DAL
06-12-03, 05:28 PM
Thanks Guru Programmer. I have taken your advice and they say there shouldnt be a problem with the post method, they say it probably the way Im using it. Well Im goin to have to go back to html school and re-sit :)

!!! HotCGIScripts !!!
06-14-03, 07:33 PM
As I understand you found that your problem is not in ISP :).
So I recomend you use CGI module to parse your requests if you do not.

I am in perl programming 3 years and see same kind of problem first :) if it is in ISP :)

DAL
06-17-03, 07:03 PM
I guess its eaiser to blame others before you blame your own code :)

now that I have the HTML form sorted, I have the values write to a text file. I have been working on a username and password check script and now that I have that nearly done the next stage it to start with a secure login area (doesnt need to be to secure to start with, Ill add the security options later when I have the basic workings in hand) problem is I dont know where to start. My ISP runs on a lunix (Apache server). I created a folder that had the settings 750 and the index file inside the same except I can still access the folder and the index file still loads up. With this I think Im a bit clueless as to how to make a login area where by only registered members have access. The problem with this is searching for this only brings up website that have scripts for login's. It doesnt describe how it all works. Anyone get time to explain it a little or at least point me in the right direction. I have very little experience of Lunix but Im fairly confident in a window and programming concepts. Maybe not on cgi but Im getting there. Thanks in advance to anyone who can offer ANY help. Much appreciated.


James

Pearl
06-18-03, 02:16 AM
If you're trying to restrict access for an entire directory, .htaccess maybe easier to deal with. You can still write a script to handle your members, however logging in is done through your server.

There are some user management scripts readily available for you to look at.
- http://www.hotscripts.com/Perl/Scripts_and_Programs/User_Management/index.html

Some examples and tutorials:
- http://httpd.apache.org/docs/howto/htaccess.html
- http://www.bignosebird.com/apache/a10.shtml
- http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=apache+.htaccess

By the way... glad to hear you got your posting problems sorted out :)

DAL
06-18-03, 12:03 PM
Thanks Guru

Im really excited about perl since the other languages I have learnt have been restricted in some way, were as perl seems to give me the freedom I yern for (plus it has some really cool features)

Just wish I knew about it earlier since Ive heard it's being replaced by php which Ill probably get into at a later date and if perl hits a wall with anything. Since you have learnt perl Guru have you needed any other languages to accomplish the things you have wanted to do?

Anyway thanks again
Ill check them links out.

Skeleton Man
06-21-03, 10:38 PM
Where did you hear that perl is going to be replaced by PHP ? I can assure you perl is still live and kicking, and widely used.

PHP is just another alternative like half a dozen other languages. You're unlikely to hit a wall with perl.. (well maybe Larry Wall).

Perl can do just about anything.... :)

DAL
06-24-03, 09:49 AM
Thats good to hear! Really I spent years learning dos C++ then found that everything had been replaced by visual C++ which would take more years to learn how to use that since it has a whole new bible to keywords to learn and a new syntax. Im pleased that you think perl will continue to grow and not be suddenly replaced by somthing else leaving me and you in the mud! Cheers for that confirmation!

Fahim Ferdous
06-27-03, 11:02 AM
Originally posted by Skeleton Man
Where did you hear that perl is going to be replaced by PHP ? I can assure you perl is still live and kicking, and widely used.

PHP is just another alternative like half a dozen other languages. You're unlikely to hit a wall with perl.. (well maybe Larry Wall).

Perl can do just about anything.... :)

Perl does everything... PHP was made for Web Development. That is why people choose PHP over Perl for websites. Perl has to run through the CGI interface which slows it down. Perl isn't slow. Infact, it's natively faster than PHP.

DAL
06-27-03, 01:07 PM
More good news ! Cheers :)