php-install Digest 12 Apr 2003 21:46:30 -0000 Issue 1334
Topics (messages 10595 through 10600):
trouble with apache 2.0.44 and php 4.3.1 on FreeBSD and index.php
10595 by: Jeff D. Hamann
10597 by: Jeff D. Hamann
upgrade to 4.3.2RC1: php errors
10596 by: Ronald Wiplinger
Aspell-MAKE
10598 by: Gareth Slaven
Re: PHP and IIS Config.
10599 by: David Fleming
PHP install problems
10600 by: Acorn Tutors
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 ---
I've been trying to upgrade my Apache (1.3.xx to 2.0.45) and PHP (from ???
to 4.3.1) installations on my FreeBSD
4.4 machine mostly with success, but I'm running in some strange things...
I've added the following lines to my httpd.conf
LoadModule php4_module libexec/apache2/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
and
DirectoryIndex index.php index.html index.html.var
and when I attempt to go to my server after restarting using
/usr/local/sbin/apachectl restart (on the freebsd machine) and then try to
open the page from a win2k machine on the lan., I get a flash of a download
dialog, and then it goes away and the web browser doesn't stay open...
if I remove the index.php from the line
DirectoryIndex index.php index.html index.html.var
then I get a dir listing on the server...
Is there something broken? or is there a goofy config setting I should be
adding. I recall I had some trouble getting Apache1.3 working with PHP
before as well.
Thanks,
Jeff.
--- End Message ---
--- Begin Message ---
ack!
DirectoryIndex index.php index.html index.html.var
give problems, but only having
DirectoryIndex index.php
works just fine... another evening gone...
"Jeff D. Hamann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've been trying to upgrade my Apache (1.3.xx to 2.0.45) and PHP (from ???
> to 4.3.1) installations on my FreeBSD
> 4.4 machine mostly with success, but I'm running in some strange things...
>
> I've added the following lines to my httpd.conf
>
> LoadModule php4_module libexec/apache2/libphp4.so
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> and
>
> DirectoryIndex index.php index.html index.html.var
>
> and when I attempt to go to my server after restarting using
> /usr/local/sbin/apachectl restart (on the freebsd machine) and then try to
> open the page from a win2k machine on the lan., I get a flash of a
download
> dialog, and then it goes away and the web browser doesn't stay open...
>
> if I remove the index.php from the line
>
> DirectoryIndex index.php index.html index.html.var
>
> then I get a dir listing on the server...
>
> Is there something broken? or is there a goofy config setting I should be
> adding. I recall I had some trouble getting Apache1.3 working with PHP
> before as well.
>
> Thanks,
> Jeff.
>
>
>
>
--- End Message ---
--- Begin Message ---
Although in the first moment everything seemed ok, more and more errors
occurs.
I use a sample code for creating a button and get an error in line 3:
PHP Warning: implode() [<a
href="http://www.php.net/function.implode'>function.implide</a>]: Bad
arguments in ... line 3
<?php
Header("Content-type: image/png");
$string=urldecode(implode($argv," "));
$im = imagecreatefrompng("button1.png");
$orange = ImageColorAllocate($im, 240, 230, 30);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImagePng($im);
ImageDestroy($im);
?>
bye
Ronald
--
Ronald Wiplinger (CEO of ELMIT)
http://www.elmit.com +886 (0) 915 653-452
- I'm a SpamCon Foundation Member, #694, Verify it at http://www.spamcon.org
PS: Spam prevention!
Our system is protected with a spam prevention program.
If you send us an e-mail, our system will send you a confirmation
message back.
Just reply to this confirmation message please. After receiving this
confirmation message, our system will send the hold message (one) and all
future messages (after the received confirmation message) to me without
asking you again.
--- End Message ---
--- Begin Message ---
Hi there ...
I am trying to compile ASPELL with php and the following happens :
./configure --with-aspell
All goes well then I do a make and I get the following :
Making all in Zend
make[1]: Entering directory `/usr/local/src/php-4.1.2/Zend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/php-4.1.2/Zend'
Making all in main
make[1]: Entering directory `/usr/local/src/php-4.1.2/main'
make[2]: Entering directory `/usr/local/src/php-4.1.2/main'
make[2]: Nothing to be done for `all-p'.
make[2]: Leaving directory `/usr/local/src/php-4.1.2/main'
make[1]: Leaving directory `/usr/local/src/php-4.1.2/main'
Making all in ext
make[1]: Entering directory `/usr/local/src/php-4.1.2/ext'
Making all in aspell
make[2]: Entering directory `/usr/local/src/php-4.1.2/ext/aspell'
make[3]: Entering directory `/usr/local/src/php-4.1.2/ext/aspell'
gcc -I. -I/usr/local/src/php-4.1.2/ext/aspell
-I/usr/local/src/php-4.1.2/main -I/usr/local/src/php-4.1.2
-I/usr/local/src/php-4.1.2/Zend -I/usr/local/include
-I/usr/local/src/php-4.1.2/ext/mysql/libmysql
-I/usr/local/src/php-4.1.2/ext/xml/expat -I/usr/local/src/php-4.1.2/TSRM -g
-O2 -c aspell.c && touch aspell.lo
aspell.c: In function `php_aspell_close':
aspell.c:66: `aspell' undeclared (first use in this function)
aspell.c:66: (Each undeclared identifier is reported only once
aspell.c:66: for each function it appears in.)
aspell.c:66: `sc' undeclared (first use in this function)
aspell.c:66: parse error before `)'
aspell.c: In function `zif_aspell_new':
aspell.c:87: `aspell' undeclared (first use in this function)
aspell.c:87: `sc' undeclared (first use in this function)
aspell.c:88: parse error before `int'
aspell.c:103: `ind' undeclared (first use in this function)
aspell.c: In function `zif_aspell_suggest':
aspell.c:114: `aspell' undeclared (first use in this function)
aspell.c:114: `sc' undeclared (first use in this function)
aspell.c:115: parse error before `int'
aspell.c:116: `aspellSuggestions' undeclared (first use in this function)
aspell.c:116: `sug' undeclared (first use in this function)
aspell.c:117: parse error before `i'
aspell.c:126: parse error before `)'
aspell.c:138: `i' undeclared (first use in this function)
aspell.c: In function `zif_aspell_check':
aspell.c:151: `aspell' undeclared (first use in this function)
aspell.c:151: `sc' undeclared (first use in this function)
aspell.c:153: parse error before `int'
aspell.c:154: `argc' undeclared (first use in this function)
aspell.c:160: parse error before `)'
aspell.c: In function `zif_aspell_check_raw':
aspell.c:184: `aspell' undeclared (first use in this function)
aspell.c:184: `sc' undeclared (first use in this function)
aspell.c:192: parse error before `)'
make[3]: *** [aspell.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.1.2/ext/aspell'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.1.2/ext/aspell'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.1.2/ext'
make: *** [all-recursive] Error 1
Now on line 66 of the aspell.c code it says :
aspell *sc = (aspell *)rsrc->ptr;
now here is lines 62 - 70
/* {{{ php_aspell_close
*/
static void php_aspell_close(zend_rsrc_list_entry *rsrc TSRMLS_DC)
{
aspell *sc = (aspell *)rsrc->ptr;
aspell_free(sc);
}
/* }}} */
I can't seem to figure out what's wrong ... any ideas?
Regards
Gareth Slaven ([EMAIL PROTECTED])
Managing Director
ENVENT - Digital Innovation
Tel: +27 11 787-7666 / +27 83 6499944
Website: http://www.envent.co.za
__________________________________________
The Ensight Experience - Know More, Sell More!
-> Publishing
-> Profiling
-> Personalization
-> Communication
__________________________________________
This is a confidential message for the named person's use only. It may
contain confidential, proprietary or legally privileged information. If you
receive this message in error please notify the sender and immediately
delete the message. You must not, directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. All views expressed in this message are those of the
individual sender and do not necessarily reflect those of Envent Holdings
(Pty) Ltd.
--- End Message ---
--- Begin Message ---
I am a newcomer to PHP too but, Apache is a MUCH better server than IIS.
I have used it for years. For one thing it is much more secure. For
another it is highly configurable. It installs automatically, and the
walks you through the setup. It keeps a log of all transations, which
allows you to find anyone that is trying to hack your computer. It is
also free. I have turned off all IIS functions on my XP system for
security reasons, and use Apache instead.
David
Taro Kodama wrote:
> Hello all,
>
> I have the following situation.
>
> I installed PHP in my XP Pro and got the message, "Due
> to a missing OCX control on your system, the
> installation wizard is unable to configure your web
> server." I'm using a localhost. I checked many
> documents and the server configuration against the PHP
> installation instructions but it still gives me a
> blank screen (I see the source code) after all.
>
> What can I do? Any alternative? I just started
> learning PHP and can't move forward.
>
> Taro the newcomer
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Can anyone suggest how to install php on WinXP pro and make it work. Can
anyone help me with what extensions need to be used (and how I would go
about using them). All I want to do is get my browser (IE) to understand php
files. I tried the manual install of PHP and I get errors instead of
webpages. I followed the manual install in the php online help. I noticed
the PHP 4.3.1 file is much larger than the installer file. Do I need both?
Also, since I tried to manually install and it failed to work with my
browser. Can I safely remove the files by simple deletion?
Help much appreciated,
Doug
--- End Message ---