php-general Digest 30 Dec 2006 01:20:29 -0000 Issue 4541

Topics (messages 246278 through 246290):

Re: 403 Forbidden
        246278 by: Roman Neuhauser
        246288 by: Jim Lucas
        246289 by: Jim Lucas

Re: Payflow and Php5 on FreeBSD
        246279 by: Dave
        246283 by: Roman Neuhauser

Re: Chocked
        246280 by: tedd
        246281 by: Skip Evans
        246287 by: Jim Lucas

Project php-mobile
        246282 by: Fernando chucre
        246284 by: Fernando chucre

Only allow one vhost to use exec() ?
        246285 by: MIKE YRABEDRA
        246286 by: Aras

mime with php4.4.4 does not work anymore
        246290 by: Roger Thomas

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530:
>     When I try to run any php script on apache I get a error
>     "Authorization required 403 Forbidden". I don't get this error on
>     IIS. I am using Windows XP professional please help. I am using
>     Apache 2.2.1

That's a problem with your apache configuration, unrelated to PHP.
The Apache manual is at http://httpd.apache.org/docs/2.2/

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--- End Message ---
--- Begin Message ---
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530:
    When I try to run any php script on apache I get a error
    "Authorization required 403 Forbidden". I don't get this error on
    IIS. I am using Windows XP professional please help. I am using
    Apache 2.2.1

That's a problem with your apache configuration, unrelated to PHP.
The Apache manual is at http://httpd.apache.org/docs/2.2/

correct/incorrect

there could be a line like this in his php code somewhere.

header('WWW-Authenticate: Basic realm="Someplace"');
header('HTTP/1.0 401 Unauthorized');

and if something correct is not entered, they will recieve the 403 Error

So, it could be a PHP thing, but it IS more then likely an Apache issue

Jim

--- End Message ---
--- Begin Message ---
Jim Lucas wrote:
Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2006-12-29 12:17:12 +0530:
    When I try to run any php script on apache I get a error
    "Authorization required 403 Forbidden". I don't get this error on
    IIS. I am using Windows XP professional please help. I am using
    Apache 2.2.1

That's a problem with your apache configuration, unrelated to PHP.
The Apache manual is at http://httpd.apache.org/docs/2.2/

correct/incorrect

there could be a line like this in his php code somewhere.

header('WWW-Authenticate: Basic realm="Someplace"');
header('HTTP/1.0 401 Unauthorized');

and if something correct is not entered, they will recieve the 403 Error

So, it could be a PHP thing, but it IS more then likely an Apache issue

Jim

spoke too soon.  Never mind

--- End Message ---
--- Begin Message ---
Hello,
Thanks for your reply. Some additional information, I have not noticed a php5-pfpro extensions port, i did see one for php4, but i was informed that going back to php4 is not an option, programmers here use php5 specific functions. Judging from googling i'm sure i'm making this harder than it needs to be, but i have two requirements: one is to avoid or minimize downtime, and two is to not utilize both ports and source-compiled software, which in my opinion makes future maintence harder especially if i'm not going to be doing it. I can think of two options, i'd appreciate comments, suggestions, and ideas. Option 1 is to uninstall all php5.x ports on the box and do a source-install of php5. I'm really not happy about this option, but i'll use it if something easier doesn't come along. Option2 is to compile php5 from source on another box, get the pfpro.so shared object from that box, copy it in to the php5 extensions area on the original box, and load it via extensions.ini. Another idea is i've read on php.net that payflow is now a pecl extension, which i interpret to mean i could just download and drop it in, but i have not been able to find the file although this one would probably be easiest.
Thanks.
Dave.


# pkg_info
apache-2.1.9_5      Version 2.1 of Apache web server with prefork MPM.
apache-ant-1.6.5_2 Java- and XML-based build tool, conceptually similar to mak autoconf-2.59_2 Automatically configure source code on many Un*x platforms
cclient-2004g,1     Mark Crispin's C-client mail access routines
curl-7.15.3 Non-interactive tool to get files from FTP, GOPHER, HTTP(S) cvsup-16.1h_2 General network file distribution system optimized for CVS
diablo-jdk-1.5.0.07.01_1 Java Development Kit 1.5.0_07.01
expat-2.0.0_1       XML 1.0 parser written in C
ezm3-1.2 Easier, more portable Modula-3 distribution for building CV
fontconfig-2.3.2_3,1 An XML-based font configuration API for X Windows
freetype2-2.1.10_3  A free and portable TrueType font rendering engine
gettext-0.14.5_2    GNU gettext package
gmake-3.80_2        GNU version of 'make' utility
help2man-1.36.3 Automatically generating simple manual pages from program o
imake-6.9.0         Imake and other utilities from X.Org
javavmwrapper-2.3   Wrapper script for various Java Virtual Machines
jpeg-6b_4           IJG's jpeg compression utilities
libdrm-2.0_1 Userspace interface to kernel Direct Rendering Module servi
libiconv-1.9.2_2    A character set conversion library
libltdl-1.5.22      System independent dlopen wrapper
libmcrypt-2.5.7_2   Multi-cipher cryptographic library (used in PHP)
libtool-1.5.22_2    Generic shared library support script
libxml2-2.6.23_1    XML parser library for GNOME
linux_base-8-8.0_14 Base set of packages needed in Linux mode (for i386/amd64)
m4-1.4.4            GNU m4
mysql-client-4.1.18_1 Multithreaded SQL database (client)
mysql-server-4.1.18_2 Multithreaded SQL database (server)
p5-gettext-1.05_1   Message handling functions
pecl-PDO-1.0.3      PHP Data Objects Interface
perl-5.8.8          Practical Extraction and Report Language
pfpro-3.0.8_2       SDK for VeriSign's PayFlow Pro
php5-5.2.0          PHP Scripting Language (Apache Module and CLI)
php5-bcmath-5.1.2_1 The bcmath shared extension for php
php5-bz2-5.1.2_1    The bz2 shared extension for php
php5-calendar-5.1.2_1 The calendar shared extension for php
php5-ctype-5.1.2_1  The ctype shared extension for php
php5-curl-5.1.2_1   The curl shared extension for php
php5-dom-5.1.2_1    The dom shared extension for php
php5-gd-5.2.0       The gd shared extension for php
php5-iconv-5.1.2_1  The iconv shared extension for php
php5-imap-5.1.2_1   The imap shared extension for php
php5-mcrypt-5.1.2_1 The mcrypt shared extension for php
php5-mysql-5.1.2_1  The mysql shared extension for php
php5-pcre-5.1.2_1   The pcre shared extension for php
php5-posix-5.1.2_1  The posix shared extension for php
php5-session-5.1.2_1 The session shared extension for php
php5-simplexml-5.1.2_1 The simplexml shared extension for php
php5-sqlite-5.1.2_1 The sqlite shared extension for php
php5-tokenizer-5.1.2_1 The tokenizer shared extension for php
php5-xml-5.1.2_1    The xml shared extension for php
php5-xmlreader-5.1.2_1 The xmlreader shared extension for php
php5-xmlwriter-5.1.2_1 The xmlwriter shared extension for php
php5-zlib-5.1.2_1   The zlib shared extension for php
pkgconfig-0.20 A utility to retrieve information about installed libraries
png-1.2.12_1        Library for manipulating PNG images
python-2.4.2        An interpreted object-oriented programming language
rdate-1.1 Sets the clock of the local host to the time of another hos
rsync-2.6.8_2       A network file distribution/synchronization utility
t1lib-5.1.0_1,1     A Type 1 Rasterizer Library for UNIX/X11
wget-1.10.2         Retrieve files from the Net via HTTP and FTP
wildfire-3.1.1_1    Wildfire is an enterprise instant messaging (EIM) server
xorg-libraries-6.9.0 X11 libraries and headers from X.Org

----- Original Message ----- From: "Roman Neuhauser" <[EMAIL PROTECTED]>
To: "Dave" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Wednesday, December 20, 2006 7:46 AM
Subject: Re: [PHP] Payflow and Php5 on FreeBSD


# [EMAIL PROTECTED] / 2006-12-19 18:33:07 -0500:
I'm trying to get payflow working with php5 as a loadable extension. My
configure line has:

'--with-pfpro=shared,/usr/local'

and php5 installed fine via FreeBSD ports. I then installed Payflow pro
also via FreeBSd ports. I'm getting an error with payflow_init which tells
me payflow and php are not talking.

What ports exactly have you installed for this? The only Payflow related
port I can see is a Perl module Business::OnlinePayment.

Let us know exact port origins (/usr/ports/$category/$portname), pkg
names and options used.  You'll find the information in /var/db/pkg and
/var/db/ports.

--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-12-29 07:20:58 -0500:
>    Thanks for your reply. Some additional information, I have not noticed a 
> php5-pfpro extensions port, i did see one for php4, but i was informed that 
> going back to php4 is not an option, programmers here use php5 specific 
> functions.
> Judging from googling i'm sure i'm making this harder than it needs to be, 
> but i have two requirements: one is to avoid or minimize downtime, and two 
> is to not utilize both ports and source-compiled software, which in my 
> opinion makes future maintence harder especially if i'm not going to be 
> doing it.
>    I can think of two options, i'd appreciate comments, suggestions, and 
> ideas. Option 1 is to uninstall all php5.x ports on the box and do a 
> source-install of php5. I'm really not happy about this option, but i'll 
> use it if something easier doesn't come along. Option2 is to compile php5 
> from source on another box, get the pfpro.so shared object from that box, 
> copy it in to the php5 extensions area on the original box, and load it via 
> extensions.ini.

Both your options are inferior to the hypothetical case where there was
a php5-pfpro port in the official FreeBSD ports collection: you'd just
put your pfpro SDK into $DISTDIR, cd $PORTSDIR/devel/php5-pfpro,
sudo make install. Write the port and submit it to the FreeBSD GNATS.
They might reject the submission on basis of it being too much of a
niche software, but having the port will greatly improve the
administrators' experience maintaining the installation.

I'm suggesting that you bite the bullet while it still hasn't grown
the size of a cannon ball.

See Porter's Handbook [1] for instructions; you can use one of the
existing PECL ports as a template.  I can help you through the process
off-list.

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/

>    Another idea is i've read on php.net that payflow is now a pecl 
> extension, which i interpret to mean i could just download and drop it in, 
> but i have not been able to find the file although this one would probably 
> be easiest.

I don't believe you'll have much luck with binary downloads, building
the extension requires the Payflow Pro SDK, and AIUI one needs to be
registered with Verisign to have access to that. [2]

[2] http://cz.php.net/manual/en/ref.pfpro.php

Finding the library compiled by someone else might be easiest for the
moment, but quick money will only burn your ass.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--- End Message ---
--- Begin Message ---
At 5:22 PM -0800 12/28/06, Paul Novitski wrote:
At 12/28/2006 03:51 PM, Skip Evans wrote:
"chocked" ?

"chocking" ???


RTFM:
http://php.net/chocked


Warm regards,
Paul


Now (along with Skip), I'm really confused.

First, Peter said he was "chocked" and I didn't know what to do -- should I call 911, or maybe he was stuck on a hill and couldn't roll down it, or what?

Now, Paul says to RTFM and provides a link that doesn't provide anything while others converse with Peter as if they know WTF he's talking about.

The new year approachth -- is this a sign of things to come? Has there been another seal broken?

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
tedd wrote:
At 5:22 PM -0800 12/28/06, Paul Novitski wrote:

At 12/28/2006 03:51 PM, Skip Evans wrote:

"chocked" ?

"chocking" ???



RTFM:
http://php.net/chocked


This link said that the function "chocked" could not be found.

Is it anything like being "stoked" about something back in the 80s? Is this like... a reference to ... like Valley Girl?

I'm sooooo sheeerrr...



Warm regards,
Paul



Now (along with Skip), I'm really confused.

First, Peter said he was "chocked" and I didn't know what to do -- should I call 911, or maybe he was stuck on a hill and couldn't roll down it, or what?

Now, Paul says to RTFM and provides a link that doesn't provide anything while others converse with Peter as if they know WTF he's talking about.

The new year approachth -- is this a sign of things to come? Has there been another seal broken?

tedd


--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240

--- End Message ---
--- Begin Message ---
Peter Lauri wrote:
I was chocked when I got my additional dedicated server from my server
provider. I assumed everyting would have been the same as I ordered the
server with same package name etc. The chocking part was that the server had
PHP5 and not PHP4.

Ok, it is not a hard piece of work to get it working, but one thing stunned
me :-)

Assuming that I have the following structure:

/index.php

/classes/first.class.php

/classes/second.class.php

Index.php:

include_once("classes/first.class.php");

first.class.php

include_once("second.class.php");

This worked fine, but this time I get an "open dir" error. Is this something
that is new to PHP5 for this, or do I just need to config the server to
accept this "sloppy" including of files?

Best regards,

Peter Lauri

 <http://www.dwsasia.com/> www.dwsasia.com - company web site

 <http://www.lauri.se/> www.lauri.se - personal web site

 <http://www.carbonfree.org.uk/> www.carbonfree.org.uk - become Carbon Free


More the likely it is a difference in the include_path setting which can be found in the php.ini file. This can also override this setting in the VirtualHosts block and .htaccess file. Check these locations for any additional include_path changes in the old system. sometimes you will see things like

include_path = '/path/to/htdocs:.:/var/www/html'

or other variations of this

Jim Lucas

--- End Message ---
--- Begin Message ---
Hello,

I am a PHP-Developer, and for a long time I wait for um php binary for PDA's
(mobiles devices). But this time not hapen. So I and my friend Lauro Salmito
(C develeper) making the PHP-Mobile Project. (this still not created). We
want create a small binary, Mobile Edition.

Basically we make a binary with the fallowing features:

  - Language Reference <http://www.php.net/manual/en/langref.php>;
  - Function Reference <http://www.php.net/manual/en/funcref.php>
     - V. Array Functions<http://www.php.net/manual/en/ref.array.php>
     - XII. Class/Object
Functions<http://www.php.net/manual/en/ref.classobj.php>
     - XXII. Date and Time
Functions<http://www.php.net/manual/en/ref.datetime.php>
     - XXIX. Directory Functions<http://www.php.net/manual/en/ref.dir.php>
     - XL. Filesystem
Functions<http://www.php.net/manual/en/ref.filesystem.php>
     - XLVI. FTP Functions <http://www.php.net/manual/en/ref.ftp.php>
     - XCV. MySQL Functions<http://www.php.net/manual/en/ref.mysql.php>
     - XCVII. MySQL Improved
Extension<http://www.php.net/manual/en/ref.mysqli.php>
     - CXXIII. PostgreSQL Functions<http://www.php.net/manual/en/ref.pgsql.php>
     - CXXVI. Program Execution
Functions<http://www.php.net/manual/en/ref.exec.php>
     - CXLVIII. SOAP Functions<http://www.php.net/manual/en/ref.soap.php>
     - CL. Standard PHP Library (SPL)
Functions<http://www.php.net/manual/en/ref.spl.php>
     - CLI. SQLite Functions<http://www.php.net/manual/en/ref.sqlite.php>
     - CLVI. String Functions<http://www.php.net/manual/en/ref.strings.php>
  - Graphical library
     - For this we don't have Idea, probably we get an exists in PDA
     world, or if necessary we will make it.

For make binary and libraries we will uses the Palm_OS_Developer_Suite_1_2,
this is a suite developer based in Eclipse.

We accept any help.

We will notice when we register the project.

Thanks

--
Fernando Chure
PSL/CE - Brasil

--- End Message ---
--- Begin Message ---
Hello,

I am a PHP-Developer, and for a long time I wait for um php binary for PDA's
(mobiles devices). But this time not hapen. So I and my friend Lauro Salmito
(C develeper) making the PHP-Mobile Project. (this still not created). We
want create a small binary, Mobile Edition.

Basically we make a binary with the fallowing features:

  - Language Reference <http://www.php.net/manual/en/langref.php>;
  - Function Reference <http://www.php.net/manual/en/funcref.php>
     - V. Array Functions<http://www.php.net/manual/en/ref.array.php>
     - XII. Class/Object
Functions<http://www.php.net/manual/en/ref.classobj.php>
     - XXII. Date and Time
Functions<http://www.php.net/manual/en/ref.datetime.php>
     - XXIX. Directory Functions<http://www.php.net/manual/en/ref.dir.php>
     - XL. Filesystem
Functions<http://www.php.net/manual/en/ref.filesystem.php>
     - XLVI. FTP Functions <http://www.php.net/manual/en/ref.ftp.php>
     - XCV. MySQL Functions<http://www.php.net/manual/en/ref.mysql.php>
     - XCVII. MySQL Improved
Extension<http://www.php.net/manual/en/ref.mysqli.php>
     - CXXIII. PostgreSQL Functions<http://www.php.net/manual/en/ref.pgsql.php>
     - CXXVI. Program Execution
Functions<http://www.php.net/manual/en/ref.exec.php>
     - CXLVIII. SOAP Functions<http://www.php.net/manual/en/ref.soap.php>
     - CL. Standard PHP Library (SPL)
Functions<http://www.php.net/manual/en/ref.spl.php>
     - CLI. SQLite Functions<http://www.php.net/manual/en/ref.sqlite.php>
     - CLVI. String Functions<http://www.php.net/manual/en/ref.strings.php>
  - Graphical library
     - For this we don't have Idea, probably we get an exists in PDA
     world, or if necessary we will make it.

For make binary and libraries we will uses the Palm_OS_Developer_Suite_1_2,
this is a suite developer based in Eclipse.

We accept any help.

We will notice when we register the project.

Thanks

--
Fernando Chure
PSL/CE - Brasil

--- End Message ---
--- Begin Message ---
I want to be able to use the exec() function on my site, but do not want to
allow all the other users that same ability.

IS there a safe and secure way to limit the use of that function to a single
virtualhost...maybe even a single page or directory?



-- 
Mike  B^)>

--- End Message ---
--- Begin Message ---
Enable safe mode ON, and specify that specific directory in safe mode exec
dir in php.ini.
Alternatively, those settings can be set within Apache configuration
(httpd.conf) per any Vhost directive.

<Virtualhost ....>
...
..
..
php_admin_flag safe_mode 1
...
</Virtualhost>

Aras Koktas
[EMAIL PROTECTED]
Business Excellence Development
Phi.dot Internet Systems


-----Original Message-----
From: MIKE YRABEDRA [mailto:[EMAIL PROTECTED]
Sent: Friday, December 29, 2006 4:53 PM
To: [email protected]
Subject: [PHP] Only allow one vhost to use exec() ?



I want to be able to use the exec() function on my site, but do not want to
allow all the other users that same ability.

IS there a safe and secure way to limit the use of that function to a single
virtualhost...maybe even a single page or directory?



--
Mike  B^)>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I have been serving my community with Invision Power Board (IPB) v1.3.1 Final. 
Things are working well with PHP 4.3.8 and Apache 1.3.29.

Yesterday I just upgraded to PHP4.4.4 and I have problems with Excel and Word 
attachments with IPB. Whenever I click on those attachments, I will get all 
sorts of funny characters all over my browser screen. However, image 
attachments are correctly displayed inline.

I added --with-mime-magic=/usr/local/apache/conf/magic to configure but nothing 
change. If I were to roll back to PHP 4.3.8, IPB works perfectly.

What have I missed. Please advise. TIA.

--
roger


---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------

--- End Message ---

Reply via email to