Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Apache 2.1-1 and PHP 1.3 - no "glob" function?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
none  
View profile  
 More options Aug 6 2008, 8:47 am
Newsgroups: comp.os.vms
From: none <nobodyh...@yahoo.com>
Date: Wed, 06 Aug 2008 08:47:42 -0400
Local: Wed, Aug 6 2008 8:47 am
Subject: Apache 2.1-1 and PHP 1.3 - no "glob" function?
Greetings all,

I have been trying my hand at the PHP implementation of Apache on an
Alpha with VMS 8.3.  I find the documentation on getting things
working very lacking.

Currently I am having trouble determining what allows and disallows
certain fuctions, with the latest sticking point being the "glob()"
function.

When I try to use "glob" in a php script, I get the "Fatal Error: Call
to undefined function glob()" ...

I've been searching all around with google and this is usually solved
by going to PHP 4.3.0 - but the VMS implementation of PHP states that
it is 4.3.10, so it would seem that it should support this function.

In the end what I wanted to do was implement the free photo sharing
software called "Gallery" which is based on mysql and PHP with Apache
(at least, in my implementation).  This function is the latest hurdle
and I've reproduced the error with a simple call to:

foreach (glob("*.txt") as $filename) ...

Any pointers would be greatly appreciated.

-- jls

P.S.    I have put a "php_flag safe_mode off" in my php.ini file, just
fyi.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig A. Berry  
View profile  
 More options Aug 7 2008, 9:50 am
Newsgroups: comp.os.vms
From: "Craig A. Berry" <craigbe...@nospam.mac.com>
Date: Thu, 07 Aug 2008 08:50:52 -0500
Local: Thurs, Aug 7 2008 9:50 am
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?

> I have been trying my hand at the PHP implementation of Apache on an
> Alpha with VMS 8.3.  I find the documentation on getting things
> working very lacking.

> Currently I am having trouble determining what allows and disallows
> certain fuctions, with the latest sticking point being the "glob()"
> function.

> When I try to use "glob" in a php script, I get the "Fatal Error: Call
> to undefined function glob()" ...

Most likely the glob() in PHP depends on the glob() in the CRTL, which
didn't come along until OVMS v8.2. The PHP kit for Alpha states that it
works on OVMS Alpha v7.3-2 or later, which would typically mean it was
linked on v7.3-2 or at least against 7.3-2 run-time libraries, where
there would be no glob() function to link to. So most likely the error
message you are getting is telling you the truth, i.e., the glob()
function really is unimplemented in the PHP kit you have.

You probably won't like any of your options, but these are the ones that
come to mind. You can log a call with HP and see if they have any plans
to update their three-year-old PHP kit, you can build it yourself from
sources (which various people have reported difficulty doing), or you
can ditch PHP and use Perl, which implemented its own glob() on VMS a
decade or more before anyone saw fit to add it to the CRTL.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Linden  
View profile  
 More options Aug 7 2008, 11:11 am
Newsgroups: comp.os.vms
From: "Tom Linden" <t...@kednos.company>
Date: Thu, 07 Aug 2008 08:11:21 -0700
Local: Thurs, Aug 7 2008 11:11 am
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?
On Thu, 07 Aug 2008 06:50:52 -0700, Craig A. Berry  

<craigbe...@nospam.mac.com> wrote:
> Most likely the glob() in PHP depends on the glob() in the CRTL, which
> didn't come along until OVMS v8.2. The PHP kit for Alpha states that it
> works on OVMS Alpha v7.3-2 or later, which would typically mean it was
> linked on v7.3-2 or at least against 7.3-2 run-time libraries, where
> there would be no glob() function to link to. So most likely the error
> message you are getting is telling you the truth, i.e., the glob()
> function really is unimplemented in the PHP kit you have.
>  You probably won't like any of your options, but these are the ones that
> come to mind. You can log a call with HP and see if they have any plans
> to update their three-year-old PHP kit, you can build it yourself from
> sources (which various people have reported difficulty doing), or you
> can ditch PHP and use Perl, which implemented its own glob() on VMS a
> decade or more before anyone saw fit to add it to the CRTL.

Why can't he add glob to his version of the crtl?

--
PL/I for OpenVMS
www.kednos.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
none  
View profile  
 More options Aug 7 2008, 11:40 am
Newsgroups: comp.os.vms
From: none <nobodyh...@yahoo.com>
Date: Thu, 07 Aug 2008 11:40:55 -0400
Local: Thurs, Aug 7 2008 11:40 am
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?
On Thu, 07 Aug 2008 08:50:52 -0500, "Craig A. Berry"

3 years old?  The PHP 1.3 ECO2 kit is from April 2008.

I have no experience porting code from other platforms, so if anyone
else has worked on a VMS/PHP port, it'd be nice to see what they have
done so far.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
none  
View profile  
 More options Aug 7 2008, 11:43 am
Newsgroups: comp.os.vms
From: none <nobodyh...@yahoo.com>
Date: Thu, 07 Aug 2008 11:43:33 -0400
Local: Thurs, Aug 7 2008 11:43 am
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?
On Thu, 07 Aug 2008 08:11:21 -0700, "Tom Linden" <t...@kednos.company>
wrote:

I'm already running VMS 8.3, which *should* include the glob()
function.... so it would seem as though the HP implementation of PHP
may not have that function activated.

How active are they working on it?  The latest ECO is from April
2008.... is there any chance they'll be working on an update to
include this?

Unfortunately, I am just a hobbyist, so don't have a support contract
to contact them directly.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Vorlaender  
View profile  
 More options Aug 7 2008, 12:33 pm
Newsgroups: comp.os.vms
From: "Martin Vorlaender" <m...@pdv-systeme.de>
Date: Thu, 07 Aug 2008 18:33:36 +0200
Local: Thurs, Aug 7 2008 12:33 pm
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?

none <nobodyh...@yahoo.com> wrote:
> "Craig A. Berry" <craigbe...@nospam.mac.com> wrote:
>> You can log a call with HP and see if they have any plans
>> to update their three-year-old PHP kit, [...]

> 3 years old?  The PHP 1.3 ECO2 kit is from April 2008.

...and the release notes state that it only corrects various errors.

The original CSWS_PHP 1.3 kit was published in November 2005.

cu,
  Martin
--
One OS to rule them all       | Martin Vorlaender  |  OpenVMS rules!
One OS to find them           | work: m...@pdv-systeme.de
One OS to bring them all      |   http://vms.pdv-systeme.de/users/martinv/
And in the Darkness bind them.| home: martin.vorlaen...@t-online.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Robinson  
View profile  
 More options Aug 7 2008, 12:57 pm
Newsgroups: comp.os.vms
From: "Ken Robinson" <kenrb...@gmail.com>
Date: Thu, 7 Aug 2008 12:57:06 -0400
Local: Thurs, Aug 7 2008 12:57 pm
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?

If you look at the on line PHP manual for the glob() function
<http://www.php.net/glob> you will see a number of replacements for
the function that people have written (scroll through the user
comments). I just tried the one called safe_glob and it worked fine on
my VMS machine. OpenVMS 7.3-2 running the lastest PHP.

Ken


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arne Vajhøj  
View profile  
 More options Aug 7 2008, 9:58 pm
Newsgroups: comp.os.vms
From: Arne Vajhøj <a...@vajhoej.dk>
Date: Thu, 07 Aug 2008 21:58:14 -0400
Local: Thurs, Aug 7 2008 9:58 pm
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?

Martin Vorlaender wrote:
> none <nobodyh...@yahoo.com> wrote:
>> "Craig A. Berry" <craigbe...@nospam.mac.com> wrote:
>>> You can log a call with HP and see if they have any plans
>>> to update their three-year-old PHP kit, [...]
>> 3 years old?  The PHP 1.3 ECO2 kit is from April 2008.

> ...and the release notes state that it only corrects various errors.

> The original CSWS_PHP 1.3 kit was published in November 2005.

And it is based on PHP 4.3 which was first released in December
2002.

And the PHP team will stop developing security patches for PHP 4
tomorrow (August 8th).

A PHP 5 port for VMS is long overdue !

Arne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arne Vajhøj  
View profile  
 More options Aug 7 2008, 9:59 pm
Newsgroups: comp.os.vms
From: Arne Vajhøj <a...@vajhoej.dk>
Date: Thu, 07 Aug 2008 21:59:31 -0400
Local: Thurs, Aug 7 2008 9:59 pm
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?

Which could be because the code is intended to also run on
versions older than 8.2 !

Arne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arne Vajhøj  
View profile  
 More options Aug 7 2008, 10:01 pm
Newsgroups: comp.os.vms
From: Arne Vajhøj <a...@vajhoej.dk>
Date: Thu, 07 Aug 2008 22:01:21 -0400
Local: Thurs, Aug 7 2008 10:01 pm
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?

Tom Linden wrote:
> On Thu, 07 Aug 2008 06:50:52 -0700, Craig A. Berry
>>  You probably won't like any of your options, but these are the ones that
>> come to mind. You can log a call with HP and see if they have any plans
>> to update their three-year-old PHP kit, you can build it yourself from
>> sources (which various people have reported difficulty doing), or you
>> can ditch PHP and use Perl, which implemented its own glob() on VMS a
>> decade or more before anyone saw fit to add it to the CRTL.

> Why can't he add glob to his version of the crtl?

He would still need to rebuild PHP with glob enabled.

And "add to CRTL" ??

Arne


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
none  
View profile  
 More options Aug 8 2008, 8:41 am
Newsgroups: comp.os.vms
From: none <nobodyh...@yahoo.com>
Date: Fri, 08 Aug 2008 08:41:36 -0400
Local: Fri, Aug 8 2008 8:41 am
Subject: Re: Apache 2.1-1 and PHP 1.3 - no "glob" function?
On Thu, 07 Aug 2008 21:58:14 -0400, Arne Vajhøj <a...@vajhoej.dk>
wrote:

>A PHP 5 port for VMS is long overdue !

Yeah, I'd guess so!
I've never done any porting work.... doubt I could accomplish such a
monumental task myself.

When I look at the way that application builds are created in the UNIX
world I cringe at the thought.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »