php-install Digest 28 Oct 2002 08:02:05 -0000 Issue 1091

Topics (messages 8933 through 8937):

Re: php/gd problem
        8933 by: John Coder

Re: PHP install problem, engine not parsing php files
        8934 by: M. Ben Nicolas

Re: Apache2 and PHP 4.2.3
        8935 by: Ken Robinson

Printing
        8936 by: Christian Stockhammer

function help
        8937 by: Marcus Van Wyk

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 ---
On Sun, 2002-10-27 at 15:00, Richard Pijnenburg wrote:
> Dear List,
>  
> I've installed GD with libpng, jpeg, freetype(2) and zlib
> So now I wanted to install php.
>  
> But now I'm getting the following error:
>  
> checking for gdImageString16 in -lgd... no
> checking for gdImagePaletteCopy in -lgd... no
> checking for gdImageCreateFromPng in -lgd... no
> checking for gdImageCreateFromGif in -lgd... no
> checking for gdImageGif in -lgd... no
> checking for gdImageWBMP in -lgd... no
> checking for gdImageCreateFromJpeg in -lgd... no
> checking for gdImageCreateFromXpm in -lgd... no
> checking for gdImageCreateFromGd2 in -lgd... no
> checking for gdImageCreateTrueColor in -lgd... no
> checking for gdImageSetTile in -lgd... no
> checking for gdImageSetBrush in -lgd... no
> checking for gdImageStringTTF in -lgd... no
> checking for gdImageStringFT in -lgd... no
> checking for gdImageStringFTEx in -lgd... no
> checking for gdImageColorClosestHWB in -lgd... no
> checking for gdImageColorResolve in -lgd... no
> checking for gdImageGifCtx in -lgd... no
>  
> I know for sure that the php config is right because it can find
> everything it should need.
>  
> Any one got any idea ??
check out Rawsmus page on gd install do you have libgda and libgdx.so ?
that's usually the prob
if you are trying to do the /php_install_directory/ext/gd you need to do
some work arounds. such as can be found at his page if you want i can
send you his page but I don't have the URL any more I just saved the
page.

John Coder


--- End Message ---
--- Begin Message ---
Thanks Adam,

That makes sense but shouldn't I see mod_php when I do an httpd -l after
following the 'Static' install instructions from the INSTALL file?  I also
don't see anything about php when I do a /usr/local/apache/bin/httpd -V
under the 'Server compiled with' section.  I was only looking to execute php
from the command line because I was trying to see if it installed properly.
Is it not possible to get php working with apache and be able to execute php
from the command line?  I've followed the 'Static' Install directions
without errors and have inserted the AddType line into my apache config file
(httpd.conf) and I'm still getting the download dialog box when I make a
request from a browser for a page with a .php extension.  HTML files are
properly processed by apache and if I make up a file extension i.e.-
'phpinfo.hot' and request that from a browser apache sends the contents to
the browser (php code available via view source).  Does it matter if the
AddType line is in my main httpd.conf file of the virtual host file?  Is
there a specific dir you need to put the php files in for apache to parse.
My php.ini had nothing specified for the doc_root directive by default.  I
tried setting it, still no success.  Is there anyway to check which
directories apache will properly parse php files from after installation?

-----Original Message-----
From: Adam Voigt [mailto:adam@;cryptocomm.com]
Sent: Wednesday, October 23, 2002 5:24 AM
To: M. Ben Nicolas
Cc: John Coder; [EMAIL PROTECTED]
Subject: RE: [PHP-INST] PHP install problem, engine not parsing php
files


If your trying to compile the PHP binary instead of building it
into PHP, you need to drop the --with-apache line and add something
like:

--prefix=/usr/local/php

Which will create an actual php executable in that directory, but
this will not make it work with Apache.

Adam Voigt
[EMAIL PROTECTED]

On Wed, 2002-10-23 at 02:04, M. Ben Nicolas wrote:
> I am trying to do the install using the 'Static' method
>
> What I really don't understand is why after the attempted configure, make,
> and make install nothing shows up in /usr/bin/php
> and I can't use php from the command line it's like nothing gets
installed,
> I wipe config.status too before I try to re-install
>
> -----Original Message-----
> From: John Coder [mailto:jcoder@;insightbb.com]
> Sent: Tuesday, October 22, 2002 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] PHP install problem, engine not parsing php
> files
>
>
> On Mon, 2002-10-21 at 22:45, M. Ben Nicolas wrote:
> > I have attempted to compile and install PHP using the 'Static' method
> > described in the INSTALL file that comes  with php
> >
> > php configured with:
> >
>
./configure --with-mysql --with-pgsql --with-apache=/usr/local/apache/apache
> > _1.3.22/
> >
> > php.ini was copied to:
> > /usr/local/lib/php.ini
> >
> > I have un-commented in my httpd.conf file:
> > AddType application/x-httpd-php .php
> >
> > apache installed in
> > /usr/local/apache
> >
> > apache configured with
> >
>
./configure --prefix=/usr/local/apache/ --activate-module=src/modules/php4/l
> > ibphp4.a
> >
> > Apache was already installed and working with mod perl, I just went into
> > /usr/local/apache/apache_1.3.22  stopped the web server and ran the line
> > above
> > (and then make & make install of course)
> >
> > how can I check to make sure the libphp4 module was activated properly
and
> > that apache is using it?
> > I see nothing about a php module when I do a httpd -l, it gives me this
> > Compiled-in modules:
> >   http_core.c
> >   .
> >   .
> >   .
> >   mod_perl.c
> > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
> > do I need to install mod_php?  It doesn't say anything about doing this
in
> > the INSTALL file?

My problem is that every time I try to make a request for a php page from a
browser, the 'Download Dialog' box  appears in explorer and the browser
automatically downloads the php file without the server processing the php
code??...
>
> if I remeber correctly you need apache with mod.so also configured if
> you ar doing it as a dynamic library. siince the response to you doing
> httpd -l doesn't say anything about it being there that is probably the
> culprit.
>
> John Coder
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
At 10:54 PM 10/24/2002 -0400, you wrote:
Hi. I just installed Apache2 and PHP last night...however, I can't get them
to work with each other...all I get is the following error message:

Apache.exe: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is
not compatible with this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.
I got the same message on my WinXP Home laptop the other night. With a little bit of searching in google, I found the following reference:

<http://www.phpbuilder.com/board/showthread.php?s=6e2e0c6160901bb6c7ce57f8bc7345db&threadid=10212445>

Hope it solves your problem

--- End Message ---
--- Begin Message ---
Hello List!
 
Does anyone know how to prevent printing in php? I don't want people to
print out database queries! Is there any way to do this?
 
Thanks a lot!!!!
 
Christian 
 
--- End Message ---
--- Begin Message ---
Hi there Please assist me with the following.

I'm try to create a function so that is does the following.
if ($Row[s_dial1]=="0"){
print ("<select size=1 name=s_dial1>
<option value=0 selected>0</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
print ("</select>");
}

if ($Row[s_dial1]=="1"){
print ("<select size=1 name=s_dial1>
<option value=0>0</option>
<option value=1 selected>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
print ("</select>");
}

This in turn does the following

If the Db field $Row[s_dial1] = 0
the drop down will display 0

if the Db fild $Row[s_dail1]=1
the drop down will display 1 etc......

Now instead of printing all these if statements is there a shorter function
that i can use or that you can help me develope

Thank in advance
Marcus





==========================================================
This message contains information intended for the perusal, and/or use (if
so stated), by the stated addressee(s) only. The information is
confidential and privileged. If you are not an intended recipient, do not
peruse, use, disseminate, distribute, copy or in any manner rely upon the
information contained in this message (directly or indirectly). The sender
and/or the entity represented by the sender shall not be held accountable
in the event that this prohibition is disregarded. If you receive this
message in error, notify the sender immediately by e-mail, fax or telephone
representations contained in this message, whether express or implied, are
those of the sender only, unless that sender expressly states them to be
the views or representations of an entity or person, who shall be named by
the sender and who the sender shall state to represent. No liability shall
otherwise attach to any other entity or person.
==========================================================

--- End Message ---

Reply via email to