php-install Digest 9 Nov 2002 01:35:56 -0000 Issue 1110
Topics (messages 9062 through 9073):
Problem
9062 by: Benedikt Bobinger
9063 by: Jim Thome
9064 by: Marco Tabini
PHP and GD problems
9065 by: AlexK
installing PHP 4.2.3 with IMAP
9066 by: Rob Millerd
problem installing php with apache on windows
9067 by: Josh
Runtime Configuration Directives
9068 by: William Cheung
Command line not installing
9069 by: Dave
iPlanet 4.1 & AIX 4.3.3 & php 4.2.x
9070 by: Robert Brose
Re: Strange error with pre2 and apache on OSX 10.2
9071 by: János
How install PHP?
9072 by: webdizajn
problem with function mail()
9073 by: Blacky-php
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 ---
Hi there!
I have a little problem with my PHP.
I'm using PHP 4 (running as CGI) on a Win 98SE computer with Apache 2.0
webserver. I additionally installed Perl and MySQL.
The PHP works fine, also together with MySQL. But there is one error: if I
hand over variables from a html-file to a php-file (like this
"xyz.htm?variable=hello") the html-file surely sends the variable, but the
php-file doesn't receive it (I get the message "variable not defined").
What is wrong? I suppose it's something with the buffer configurations, but
I can't find out how to fix this problem.
Can anyone help me with this?
Thank you in advance!
Best regards from Germany,
Benedikt Bobinger
--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/security.registerglobals.php
or
http://www.php.net/manual/de/security.registerglobals.php
>>> "Benedikt Bobinger" <[EMAIL PROTECTED]> 11/08/02 09:45AM >>>
Hi there!
I have a little problem with my PHP.
I'm using PHP 4 (running as CGI) on a Win 98SE computer with Apache 2.0
webserver. I additionally installed Perl and MySQL.
The PHP works fine, also together with MySQL. But there is one error: if I
hand over variables from a html-file to a php-file (like this
"xyz.htm?variable=hello") the html-file surely sends the variable, but the
php-file doesn't receive it (I get the message "variable not defined").
What is wrong? I suppose it's something with the buffer configurations, but
I can't find out how to fix this problem.
Can anyone help me with this?
Thank you in advance!
Best regards from Germany,
Benedikt Bobinger
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
take a look at register_globals in the manual
Marco
-------------
php|architect -- The Monthly Magazine For PHP Professionals
Come visit us on the web at http://www.phparch.com!
On Fri, 2002-11-08 at 11:45, Benedikt Bobinger wrote:
> Hi there!
>
> I have a little problem with my PHP.
> I'm using PHP 4 (running as CGI) on a Win 98SE computer with Apache 2.0
> webserver. I additionally installed Perl and MySQL.
> The PHP works fine, also together with MySQL. But there is one error: if I
> hand over variables from a html-file to a php-file (like this
> "xyz.htm?variable=hello") the html-file surely sends the variable, but the
> php-file doesn't receive it (I get the message "variable not defined").
> What is wrong? I suppose it's something with the buffer configurations, but
> I can't find out how to fix this problem.
> Can anyone help me with this?
> Thank you in advance!
>
> Best regards from Germany,
>
> Benedikt Bobinger
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello. I am very new to Linux and not very experienced at troubleshooting
the programs that run on Linux.
Here is what I have:
I am running Apache 2.0.40 with php (4.2.3) as a module on Red Hat Linux
7.3. I have compiled GD (2.0.4) and it did seem to find PNG, FeeType, and Z
libraries. I have compiled PHP with the following options:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-m
agic-quotes --enable-discard-path --enable-calendar --with-gd --with-gd-dir=
/usr/lib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-xpm-dir=/us
r/lib --with-freetype-dir=/usr/lib --with-zlib-dir=/usr/lib --enable-track-v
ars
phpinfo() displays correctly and shows that my GD support is enabled.
But when I run the test script
<?php
header ("Contenttype: image/png");
$im = @ImageCreate (50, 100)
or die ("Cannot create a new GD image.");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color);
ImagePng ($im);
?>
I get an error:
"Fatal error: Call to undefined function: imagepng() in
/var/www/html/testgd.php on line 8"
I have spent 4 days trying to figure out what's wrong, and now I am stuck.
Please help
Thanks
--- End Message ---
--- Begin Message ---
Hi,
I've been trying to install PHP 4.2.3 with IMAP and some other options and
for some reason IMAP will not install. Configure works fine, make works
fine, make install works fine, No fatal errors anywhere. but then when I
run phpinfo() there is no IMAP section. I'm trying to build on RedHat 7.3
with Apache & mySQL. Has anyone experience this, or know why it may happen?
I've pretty much copied the configure arguments from the original RPM that
was installed with RH7.3, but made some minor changes. I've also installed
the imap-2001a-10 rpm and imap-devel-2001a-10 rpm so the libc-client.a and
all header files are in the appropriate place. I'm Baffled.
Here are the details:
---------------------
./configure 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc'
'--enable-force-cgi-redirect' '--disable-debug' '--enable-dbg=shared'
'--with-dbg-profiler' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl'
'--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
'--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf'
'--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv'
'--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png'
'--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr'
'--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger'
'--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-discard-path' '--enable-track-vars' '--enable-trans-sid'
'--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared'
'--with-imap-ssl' '--with-ldap=shared' '--with-kerberos=/usr/kerberos'
'--with-mysql' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--enable-mcal' '--enable-mbstring' '--enable-mbstr-enc-trans'
'--with-apxs=/usr/sbin/apxs'
Linux example.net 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown
Apache Version: Apache/1.3.23
Loaded Modules: mod_ssl, mod_dav, mod_php4, mod_perl, mod_setenvif, mod_so,
mod_headers, mod_expires, mod_auth_db, mod_auth_anon, mod_auth, mod_access,
mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis,
mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status,
mod_negotiation, mod_mime, mod_log_referer, mod_log_agent, mod_log_config,
mod_env, mod_vhost_alias, http_core
SERVER_SOFTWARE: Apache/1.3.23 (Unix) (Red-Hat/Linux) mod_ssl/2.8.7
OpenSSL/0.9.6b DAV/1.0.3 PHP/4.2.3 mod_perl/1.26
--- End Message ---
--- Begin Message ---
Hi.
am using Windows XP, Apache 2.0.43 and PHP 4.2.3 I
did the following
1) I first installed Apache
It worked properly as I got the initial web page when
i typed
http://localhost:8080 in IE.
2) Then I unzipped the PHP zip file in a directory
C:\php4 and copied the
php4ts.dll file in C:\windows\system32
3) I then edited httpd.conf in the apache directory
and added the
following lines
ScriptAlias /php4/ "C:/php4"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php /php4/php.exe
I created a small php test file phpinfo.php
Then i started the apache server again and type
http://localhost/phpinfo.php
I got the message file cannot be displayed. Am I
missing some steps. I tried to find
installation tutorial on php.net but it was not of
much help.
Thanks for any help,
- Josh(ila)
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2
--- End Message ---
--- Begin Message ---
I am trying to use mail() function in PHP 4.2.3 CLI. The manual mentions
about setting up "Runtime Configuration Directives".
Could anyone tell me where do I set those directives and the syntax?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.
--- End Message ---
--- Begin Message ---
been having weird problem. i compile php with --enable-cli
command line interface, install seems to go fine, but the php
executable never gets installed. what's weirder is that it installs
fine on some systems, but won't on others, with no difference
in php libs or config options (for all libs, apache, and php).
anyone else seen this?
dave
--- End Message ---
--- Begin Message ---
I have tried building several versions of php (4.06, 4.2.0 and 4.2.3) to
run under iPlanet 4.1 on aix 4.3.3. I've followed the directions on
Benoit's site carefully and I'm just not getting it to work.
I used the linux tools for aix from the ibm site to build the shared lib.
gcc version 2.9-aix51-020209 (but really, it's listed as the 4.3.3
version and other stuff works)
./configure --prefix=/opt/freeware --with-nsapi=/usr2/netscape/suitespot
--disable-xml --enable-shared --enable-libgcc --with-gnu-ld --enable-debug
Was my last configure attempt... If I don't do --enable-shared it will
not produce the shared lib in 4.2.x
With the following lines added to object.conf
Init fn="load-modules" shlib="/usr2/netscape/suitespot/bin/libphp4.so"
funcs="php4_init,php4_close,php4_execute,php4_auth_trans"
Init fn=php4_init errorString="Failed to initialize PHP!"
Service fn="php4_execute" type="magnus-internal/x-httpd-php"
<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
In the correct places and in start
LD_LIBRARY_PATH=${SERVER_ROOT}/bin/${PRODUCT_NAME}/lib:/opt/freeware/lib:/usr2/n
etscape/suitespot/bin:${LD_LIBRARY_PATH};export LD_LIBRARY_PATH
It blows up on start, no error, just dies.... I traced it down to
the calling of php4_init by trial and error and the use of
./start -shell
./ns-httpd -d /usr2/netscape/suitespot/https-oldbb/config
Segmentation fault(coredump)
If I do change the line in the obj.conf file for the initialization to:
Init fn=php4_init LateInit="yes"
The server starts but just hangs with no errors when I try the
"hello.php" test page...
Is there anything anyone could suggest that I could try to get this going??
(the same sequence of steps works fine when using iPlanet on Linux)
Thanks,
Bob
--
Robert Brose
mailto:bob@;jriver.com
--- End Message ---
--- Begin Message ---
> In the console I have these messages:
>
> Syntax error on line 239 of /etc/httpd/httpd.conf:
> Cannot load /usr/libexec/httpd/libphp4.so into server: (reason unknown)
> /usr/sbin/apachectl start: httpd could not be started
>
>
> Now, the 239 line in /etc/httpd/httpd.conf is:
> LoadModule php4_module libexec/httpd/libphp4.so
Finally I did a "sudo apachectl graceful" and suddenly apache did not
complained but started up. In System Preferences -> Sharing the
Personal Web Sharing got checked, and top showed some httpd processes
running. The man page for apachectl says:
restart Restarts the Apache daemon by sending it a
SIGHUP. If the daemon is not running, it is
started. This command automatically checks
the configuration files via configtest before
initiating the restart to make sure Apache
doesn't die.
graceful Gracefully restarts the Apache daemon by send-
ing it a SIGUSR1. If the daemon is not run-
ning, it is started. This differs from a nor-
mal restart in that currently open connections
are not aborted. A side effect is that old
log files will not be closed immediately.
This means that if used in a log rotation
script, a substantial delay may be necessary
to ensure that the old log files are closed
before processing them. This command
automatically checks the configuration files
via configtest before initiating the restart
to make sure Apache doesn't die.
So looks like start-stop and restart unable to cope with the libphp4.so
created by the --with-sybase-ct option, but graceful can. It does not
seem to me like a bug in the created libphp4.so module but rather a bug
in the 1.3.26 apache.
Any good thoughts ?
János
P.S. Unfortunately this apachectl graceful is working only on my
machine which is one step above 10.2.1, but it does not work on a normal
10.2.1 machine.
--- End Message ---
--- Begin Message ---
Hi I am a new in PHP, so please give me some instruction how can I install
PHP on my PC. I use windows xp profesional and windows 98 se
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
when i try tu use function mail i see error like this
Warning: mail() is not supported in this PHP build in
/home/blacky/www/mail/send.php on line 151
I don't know why. Help please.
Configure:
./configure --prefix=/usr/local/php --with-apache=../apache
--with-mysql=/usr/local/mysql --with-gettext="/usr" --enable-ftp
--with-config-file-path=/usr/local/apache/conf --with-imap=/usr/local
--with-java=/usr/local/j2sdk1.3.0 --with-gd="/usr/local/gd" --with-zlib
--with-gd-native-tt --with-t1lib=/usr/local --with-jpeg-dir="/usr/local"
--with-png-dir="/usr" --with-zlib-dir="/usr/local" --with-ttf
--with-freetype-dir="/usr/local" --with-bz2=/usr --with-mcrypt=/usr
--with-mhash=/usr/local --with-unixODBC=/usr/local
--- End Message ---