php-install Digest 31 Oct 2002 18:29:16 -0000 Issue 1097
Topics (messages 8982 through 8991):
numbers
8982 by: Marcus Van Wyk
8983 by: David Phillips
LoadModule fails
8984 by: samug
Problems apache2, php 4.2.3 and typo3
8985 by: Marcel Odendahl
n00b - PHP on IIS 5 - Not Allowing File Writes Though All Permissions Seem Correct
8986 by: David Kaplowitz
8987 by: Chris Hewitt
8988 by: Stephen Edmonds
php-4.2.x + gd-2.0.4
8989 by: EG Ortego
8990 by: Rasmus Lerdorf
Re: mail()
8991 by: Tony Simopoulos
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 Guys
Anyone in list know how to strip number and round off to the nearest
meaning if
Number =
R245.614035088
it should strip it down to
R245.61
Thank in advance
Marcus
PS* i have bcmath enable in PHP
==========================================================
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 ---
--- Begin Message ---
This is off-topic for this list.
Marcus Van Wyk writes:
> Anyone in list know how to strip number and round off to the nearest
Learn how to read and search the manual. Everything is categorized and easy
to find, provided you are willing to actually look for it.
Big hint: you already said the name of the function you wanted.
--
David Phillips <[EMAIL PROTECTED]>
http://david.acz.org/
--- End Message ---
--- Begin Message ---
When launching apache.exe from the commandline, I get an errormesage:
apache: module "c:\php4build\snap\sapi\apache2filter\sapi_apache2.c" is not
comp
atible with this version of Apache (found 20020628, need 20020903).
Please contact the vendor for the correct version.
I'm using Apache 2.0.43 for windows and PHP 4.2.3 for windows.
The thing is that apache itself works allright, when I try to **load the
module
in httpd.conf, it doesn't work and the commandline gives that error.
**
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Anyone can give a hand, what to do?
--- End Message ---
--- Begin Message ---
Hi,
I wanted to install the typo3 on a linux machine with apache2 and php
4.2.3. After installing apache2 and php I installed the typo3 testsite.
Everything worked fine. In the installation tool the menu item "Image
Processing" works. But if I browsed the testsite in the frontend I
got no graphics. I looked in the source code and there were img tags with
no entries. For example there is the first page with a testlogo which is
included by an intro-template. ("fileadmin/testsite_logo.gif") But in
the source code of the page the is something like this
<img src="" ...>
This problem happens on every server where apache2 is running.
Now I tested it with an apache1 and it works.
Are there some anomalies with the apache2? I know that the combination of
apache2 and php is still experimental. But Kasper wrote at his site that
it works. I mailed him but he has no idea because he use a lamp binary.
SuSE 7.2, Apache2(compiled by myself),
PHP 4.2.3(compiled by myself)
apache2 options:
./configure --enable-mods-shared=all
php options
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/etc / --enable-safe-mode
--with-openssl=/usr/local/ssl/ --enable-magic-quotes --wit h-zlib
--with-bz2 --enable-calendar --with-gd=/usr/ --enable-gd-native-ttf --wit
h-ttf --with-jpeg-dir=/usr/ --with-png-dir=/usr/ --with-gettext
--with-mcrypt -- with-mysql=/opt/mysql/ --with-pdflib=/usr/
--with-pgsql=/usr/local/pgsql/ --enab le-shmop --enable-sockets
--enable-sysvshm --enable-ftp --with-imap=/usr/local/i map-2002.RC9/
--with-imap-ssl=/usr/local/ssl/
here you get no graphics
SuSE 7.2, Apache1(compiled by myself)
PHP 4.2.3(compiled by myself)
apache options:
./configure --enable-module=all --enable-shared=max
--enable-rule=SHARED_CORE
php options
./configure --with-apxs=/usr/sbin/apxs
--with-config-file-path=/etc/ --enable-sa fe-mode
--with-openssl=/usr/local/ssl/ --enable-magic-quotes --with-zlib --with-
bz2 --enable-calendar --with-gd=/usr/ --enable-gd-native-ttf --with-ttf
--with-j peg-dir=/usr/ --with-png-dir=/usr/ --with-gettext --with-mcrypt
--with-mysql=/op t/mysql/ --with-pdflib=/usr/
--with-pgsql=/usr/local/pgsql/--enable-shmop --ena ble-sockets
--enable-sysvshm --enable-ftp
--with-imap=/usr/local/imap-2002.RC9/--with-imap-ssl=/usr/local/ssl/ here
works everything fine.
I don't know really where the problem is with the apache2 installation.
It seems that the datas from the template will not inserted in the
frontend page.
Cu
Marcel.
--
NORDSYS-Norddeutsche Systemtechnik
Lange Strasse 1
38100 Braunschweig
Fon: ++49-531-1209200
Fax: ++49-531-1209299
[EMAIL PROTECTED]
www.nordsys.de
--- End Message ---
--- Begin Message ---
Hi,
I've installed PHP 4.2.3 on a Win2k Workstation (sp2) Box
that is running IIS5. If I run the PHPInfo script, it gives
me the proper HTML feedback about the server, which seems to
say everything's fine. I'm also successfully running
PHPMyAdmin on the box and have successfully entered SELECT
statements into the MySQL db using that.
But, if I try to run any kind of script that requires writing
to a file, (with or from a variable for instance - see
example script lines below), it seems to fail with a
"Notice: Undefined variable: YourName in
C:\inetpub\wwwroot\test4.php on line 10" error.
[Note: HPNuke on the same box is giving very similar type
output in spades, though it knew enough to populate the MySQL
db upon the first page load.]
I have read the install files and the FAQ for anything
closely resembling this, I've checked all the permissions on
every file/folder referenced, and have given full access to
the I_USER account to most or all of it. (read and exec. at
the minimum), but nothing seems to kick this sucker into
gear.
Any ideas?
*dons flame suit*
TIA
P.S. Here's the script in the HTML page (test4.html) that's
that's trying to write to "test4.php" from the above line
(this script works on a properly configured server that my
web host has):
<form action="test4.php" method=post> My name is: <br>
<input type="text" name="YourName">
<input type="submit" name="submit" value="Enter My Data!">
</form>
=====
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
--- End Message ---
--- Begin Message ---
David Kaplowitz wrote:
But, if I try to run any kind of script that requires writing
to a file, (with or from a variable for instance - see
example script lines below), it seems to fail with a
"Notice: Undefined variable: YourName in
*dons flame suit*
register_globals is off?
HTH
Chris
--- End Message ---
--- Begin Message ---
Simple answer... it is just a warning
When you first create a variable, you normally assign it a value. EG:
$MyVariable = "value";
However, you can (and quite often want to) not assign a value to the
variable before you use it. This is espically true in forms where the values
are sent by the user!
if ( ! empty( $MyVariable ) ) {
print "My Variable has the value of $MyVariable";
}
else {
print "My Variable is empty!";
}
would give you a notice warning 'Notice: Undefined variable: MyVariable in
blah blah blah on line 1. To remove this annoying feature, you will need to
edit the error reporting level in the php.ini file. Look in your php.ini
file for 'Error handling and logging'
Stephen
[php.ini - what you are looking for]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often
result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to
an
; empty string)
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
error_reporting = E_ALL & ~E_NOTICE
----- Original Message -----
From: "David Kaplowitz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 3:11 PM
Subject: [PHP-INST] n00b - PHP on IIS 5 - Not Allowing File Writes Though
All Permissions Seem Correct
> Hi,
>
> I've installed PHP 4.2.3 on a Win2k Workstation (sp2) Box
> that is running IIS5. If I run the PHPInfo script, it gives
> me the proper HTML feedback about the server, which seems to
> say everything's fine. I'm also successfully running
> PHPMyAdmin on the box and have successfully entered SELECT
> statements into the MySQL db using that.
>
> But, if I try to run any kind of script that requires writing
> to a file, (with or from a variable for instance - see
> example script lines below), it seems to fail with a
> "Notice: Undefined variable: YourName in
> C:\inetpub\wwwroot\test4.php on line 10" error.
>
> [Note: HPNuke on the same box is giving very similar type
> output in spades, though it knew enough to populate the MySQL
> db upon the first page load.]
>
> I have read the install files and the FAQ for anything
> closely resembling this, I've checked all the permissions on
> every file/folder referenced, and have given full access to
> the I_USER account to most or all of it. (read and exec. at
> the minimum), but nothing seems to kick this sucker into
> gear.
>
> Any ideas?
>
> *dons flame suit*
>
> TIA
>
> P.S. Here's the script in the HTML page (test4.html) that's
> that's trying to write to "test4.php" from the above line
> (this script works on a properly configured server that my
> web host has):
>
> <form action="test4.php" method=post> My name is: <br>
> <input type="text" name="YourName">
> <input type="submit" name="submit" value="Enter My Data!">
> </form>
>
> =====
>
>
> __________________________________________________
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
gcc -I. -I/usr/local/src/php-4.2.3/ext/gd -I/usr/local/src/php-4.2.3/main
-I/usr/local/src/php-4.2.3 -I/usr/local/src/apache_1.3.27//src/include
-I/usr/local/src/apache_1.3.27//src/os/unix -I/usr/local/src/php-4.2.3/Zend
-I/usr/local/include/freetype2/freetype -I/tmp/epache/gd-2.0.4/
-I/usr/local/mysql/include/mysql -I/usr/local/src/php-4.2.3/ext/xml/expat
-I/usr/local/src/php-4.2.3/TSRM -g -O2 -c gd.c && touch gd.lo
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1209: structure has no member named `free'
make[1]: *** [gd.lo] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.3/ext/gd'
make: *** [all-recursive] Error 1
Please Help!
Eric.
--- End Message ---
--- Begin Message ---
Yes, we know. You'll either need to hack those instances to refer to
->gd_free instead of ->free or wait for 4.3.
-Rasmus
On Thu, 31 Oct 2002, EG Ortego wrote:
> gcc -I. -I/usr/local/src/php-4.2.3/ext/gd -I/usr/local/src/php-4.2.3/main
>-I/usr/local/src/php-4.2.3 -I/usr/local/src/apache_1.3.27//src/include
>-I/usr/local/src/apache_1.3.27//src/os/unix -I/usr/local/src/php-4.2.3/Zend
>-I/usr/local/include/freetype2/freetype -I/tmp/epache/gd-2.0.4/
>-I/usr/local/mysql/include/mysql -I/usr/local/src/php-4.2.3/ext/xml/expat
>-I/usr/local/src/php-4.2.3/TSRM -g -O2 -c gd.c && touch gd.lo
> In file included from gd.c:83:
> gd_ctx.c: In function `_php_image_output_ctx':
> gd_ctx.c:70: structure has no member named `free'
> gd_ctx.c:98: structure has no member named `free'
> gd.c: In function `_php_image_type':
> gd.c:1014: structure has no member named `free'
> gd.c:1017: structure has no member named `free'
> gd.c: In function `_php_image_create_from':
> gd.c:1209: structure has no member named `free'
> make[1]: *** [gd.lo] Error 1
> make[1]: Leaving directory `/usr/local/src/php-4.2.3/ext/gd'
> make: *** [all-recursive] Error 1
>
> Please Help!
> Eric.
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Actually, its the latest version of PHP, on the latest version of REDHAT
linux. There doesn't even seem to be a configure option for getting mail to
work, and its not clear at all why the mail is not working.
tonys.
"Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message
news:3DC0A56C.5050908@;ohgaki.net...
> I guess you are using older PHP.
> You have to rebuild PHP with sendmail compatible command
> installed or get newer PHP (which is better)
>
> --
> Yasuo Ohgaki
>
> Tony Simopoulos wrote:
> > folks,
> >
> > ./configure did not specify any fancy directives for installing mail()
> > support. in fact configure went out and my sendmail program all on its
own.
> > however, when invoking the function i get the following error:
> >
> > Warning: mail() is not supported in this PHP build in problems.inc on
line
> > 80
> >
> > the mail section of the php.ini file are the default. furthermore a
quick
> > test of sendmail [EMAIL PROTECTED] worked as expected.
> >
> > any ideas??
> >
> > tonys.
> >
> >
>
--- End Message ---