php-install Digest 24 Oct 2002 23:44:27 -0000 Issue 1085
Topics (messages 8904 through 8910):
Re: Apache 2.0.43/PHP 4.2.3/Win XP Pro
8904 by: Stuart
PHP / Net-SNMP problem.
8905 by: Per Mattsson
too complicated for the time I have
8906 by: php user
8907 by: Rasmus Lerdorf
php/apache installation
8908 by: Adam
configure example
8909 by: php user
Re: Application Error
8910 by: William Cheung
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 Wednesday, Oct 23, 2002, at 15:27 Europe/London, Billy Kendall wrote:
LoadModule php4_module c:/php/sapi/php4apache.dll
The error you give below is not caused by this, but you should be using
php4apache2.dll since you are using Apache2.
but I am receiving the following errors when trying to restart Apache:
Cannot load C:/php/sapi/php4apache.dll into server: The specified
module
could not be found.
I assume you've verified that this file does exist. Did you copy
php4ts.dll to your path (or modify your path to include it's location)?
I'm guessing this is the module it cannot find. Of course, I could be
wrong.
--
Stuart
--- End Message ---
--- Begin Message ---
I am trying to get snmp in to PHP, but the make does not like
to go through net-snmp code correctly.
I get
make[3]: Entering directory `/PCDISK/Linux/PHP/php-4.2.3/ext/snmp'
/bin/sh /PCDISK/Linux/PHP/php-4.2.3/libtool --silent --mode=compile
gcc -I. -I/PCDISK/Linux/PHP/php-4.2.3/ext/snmp
-I/PCDISK/Linux/PHP/php-4.2.3/main -I/PCDISK/Linux/PHP/php-4.2.3
-I/usr/include/apache -I/PCDISK/Linux/PHP/php-4.2.3/Zend
-I/PCDISK/Linux/MySQL/mysql-3.23.52-pc-linux-gnu-i686/include
-I/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp
-I/PCDISK/Linux/PHP/php-4.2.3/ext/xml/expat -DLINUX=22 -DEAPI -DEAPI_MM
-DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/run/httpd.mm
-I/PCDISK/Linux/PHP/php-4.2.3/TSRM -g -O2 -prefer-pic -c snmp.c
In file included from snmp.c:62:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/asn1.h:7:2: #error
"Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from snmp.c:63:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/snmp_api.h:7:2:
#error "Please update your headers or configure using
--enable-ucd-snmp-compatibility"
In file included from snmp.c:64:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/snmp_client.h:7:2:
#error "Please update your headers or configure using
--enable-ucd-snmp-compatibility"
In file included from snmp.c:65:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/snmp_impl.h:7:2:
#error "Please update your headers or configure using
--enable-ucd-snmp-compatibility"
In file included from snmp.c:66:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/snmp.h:7:2: #error
"Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from snmp.c:67:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/parse.h:7:2: #error
"Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from snmp.c:68:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/mib.h:7:2: #error
"Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from snmp.c:69:
/PCDISK/Linux/Net-SNMP/net-snmp-5.0.6/include/ucd-snmp/version.h:9:2:
#error "Please update your headers or configure using
--enable-ucd-snmp-compatibility"
make[3]: *** [snmp.lo] Error 1
make[3]: Leaving directory `/PCDISK/Linux/PHP/php-4.2.3/ext/snmp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/PCDISK/Linux/PHP/php-4.2.3/ext/snmp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/PCDISK/Linux/PHP/php-4.2.3/ext'
make: *** [all-recursive] Error 1
and i have the header files in the location specified.
What do i do wrong ??
Regards.
Per
--- End Message ---
--- Begin Message ---
Hi, I am having a difficult time compiling php-4.2.3 DSO with Apache 2 on a
RedHat 8.0. I need the following "with's" gettext, xml, mysql, ldap, mcrypt,
imap,and ftp. Can anybody give me a reason why I couldn't use rpm's to
accomplish this tasked? And if I can does anyone know what rpm's I would need? I
thank you very much for your input.
-Eric
--- End Message ---
--- Begin Message ---
I would strongly suggest using Apache 1.3.x and the associated existing
php rpms that are out there. Apache2+PHP is not a stable combination at
this point.
-Rasmus
On Thu, 24 Oct 2002, php user wrote:
> Hi, I am having a difficult time compiling php-4.2.3 DSO with Apache 2 on a
> RedHat 8.0. I need the following "with's" gettext, xml, mysql, ldap, mcrypt,
> imap,and ftp. Can anybody give me a reason why I couldn't use rpm's to
> accomplish this tasked? And if I can does anyone know what rpm's I would need? I
> thank you very much for your input.
> -Eric
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi,
i'm new to PHP, and i'm trying to install it on my computer, not as a server though.
I am using Win98.
I have installed Apache, and it seems to have installed properly, as when i point the
browser at http://localhost/ it comes up with the apache page. However, when i try and
run a script
(phpinfo.php, containing "<? phpinfo() ?>" located in "apache group/apache/htdocs") it
comes up with a 404 error - page not found. I have checked the installation, as
recommended at
http://hotwired.lycos.com/webmonkey/00/44/index4a_page10.html?tw=programming and can
find no errors, i just copied and pasted from there.
Any ideas, anyone???
Adam.
--- End Message ---
--- Begin Message ---
Hi, I have succesfully installed an apache 1.3.23-14 rpm and would now like to
configure php 4.2.3 on a RedHat-8.0 system with the following "with's" gettext,
xml, mysql, ldap, mcrypt, imap,and ftp. All of the software I just described
was installed from the RedHat installation and I do not know where the libraries
exist. Is there anyone who has done the same configure that I may see where you
set your paths to? I especially have trouble with imap.
Thank You,
Eric
--- End Message ---
--- Begin Message ---
The following is part of my script and I checked the data file. All rows
got inserted.
<?php
print "Connecting to Oracle...\r\n";
ob_flush();
$conn = ocilogon("abc","12345","Oracle8") or die("Cannot connect to
Oracle!\r\n");
print "Connected!\r\n";
ob_flush();
print "Loading glacct table...\r\n";
ob_flush();
$fp = fopen(".\GLAccount.csv","r");
while ($data = fgetcsv($fp,100,",")) { //Loop through each data row.
$SQLString = "INSERT INTO glacct
(gla_company_cd,gla_division_cd,gla_acct) VALUES
('company','division','$data[0]')";
$SQLStmt = ociparse($conn,$SQLString);
$SQLReturn = ociexecute($SQLStmt);
If ($SQLReturn) {
ocicommit($conn);
} Else {
ocirollback($conn);
}
}
fclose($fp);
ocilogoff($conn);
?>
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--- End Message ---