Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 28th, 2008, 12:13 PM   #1
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 327
Rep Power: 3 kruptof is on a distinguished road
use syntax error

After finally getting the PHP:ession Module installed, I tried to write a test script to see if the installation worked:

#!/usr/local/bin/perl
print "content-type: text/html\n\n";
use PHP::Session;

However this dies with the error:
Quote:
syntax error at test.pl line 3, near "use PHP:"
Execution of test.pl aborted due to compilation errors
Can anybody please tell me what's wrong with that small piece of code?
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote
Old Jan 29th, 2008, 7:50 PM   #2
TheAberrant
Newbie
 
Join Date: Jan 2008
Posts: 9
Rep Power: 0 TheAberrant is on a distinguished road
Re: use syntax error

Kruptof,

If I were to guess, I'd think that the module didn't install correctly. You may want to try running 'perl -V' and check the @INC to make sure the directory you placed the PHP Modules is defined in there. I referenced http://world.std.com/~swmcd/steven/p...mechanics.html

Hope that helps. If not, hopefully it provides more diagnostic info for more experienced users.
TheAberrant is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataAdapter syntax error kruptof C# 1 Aug 24th, 2007 5:30 PM
syntax error in Mysql... ktsirig PHP 1 Feb 3rd, 2007 1:30 PM
Header file internal errors kruptof Coder's Corner Lounge 2 Jan 14th, 2007 1:12 PM
C# corruption!!! Kilo C++ 32 May 21st, 2006 8:44 PM
Masm rsnd Assembly 4 May 20th, 2006 9:05 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:38 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC