LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-06-2010, 08:10 PM   #1
comingme
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Help on Apache Request


Solved. Thanks.

Last edited by comingme; 01-08-2010 at 05:25 PM.
 
Old 01-06-2010, 09:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by comingme View Post
#!/usr/bin/perl5
use Apache ();
use Apache::Request ();
my $apr = Apache::Request->new($r);

The installation seems fine. Apache runs ok. But the above apache::request seems not working. It gives the following ERROR:
Can't locate object method "new" via package "Apache::Request" at ApacheRelated.cgi line 6.
Might be better in the "programming" forum, but based on the (very little) code you posted, you're not using the module correctly. Bad syntax, as well as not having things defined.

A quick Google search turns up examples:
http://modperlbook.org/html/13-2-Apa...ersus-CGI.html
http://www.perlmonks.com/?node=apache%3A%3Arequest
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is that possible in apache for limit one request per user? modpriest Linux - Newbie 3 10-01-2009 05:48 PM
apache bad request qwertyjjj Linux - Server 9 08-12-2009 07:03 AM
Apache : Forward request to another server tuty_richard Linux - Server 1 02-14-2009 08:38 AM
Help with PHP,Apache, and a put request? graystarr Linux - Server 1 04-04-2007 05:54 PM
Apache::Request Module gjagadish Linux - Software 0 08-13-2006 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration