php-install Digest 27 Mar 2002 12:17:25 -0000 Issue 764
Topics (messages 6480 through 6483):
Re: problem compiling with mcrypt support
6480 by: Lucas Spiegel
Re: php executable
6481 by: Sam Minnee
"php -f" can work!but not with apache
6482 by: gxlzlu
Undefined variable
6483 by: Ross Horne
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 ---
> >>ld.so.conf (in /etc on my box) contains a list of dirs that ld
>(gnu dynamic linker) checks for shared objects/libraries, ELF, etc.
>You won't have any control of that if you're >>virtual-hosting. Try
>doing:
> >>LD_LIBRARY_PATH=/home/path/to/mcrypt/lib:$LD_LIBRARY_PATH
> >>export $LD_LIBRARY_PATH
>
> >>which only affects your environment. That might do the trick.
>
> >When I do that (I assume when I'm in the php-4.1.2 dir, and
>assuming I don't need to do anything beforehand) it gives me an
>error: "bash: export: `/home/path/to/mcrypt/lib:': not a >valid
>identifier"
>
>whoops - that should have been:
>
>export $LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/to/mcrypt/lib
>
>sorry 'bout that. Of course, that's just the syntax there. i'm still
>not sure that that's what'll solve it ...
>
>/b
I dunno, I still get the same "not a valid identifier" error. Is this
by chance the kind of thing that messes up if you do it over and
over? (cuz it seems to be adding on the the string every time --
:/home/to/mcrypt/lib:/home/to/mcrypt/lib:/home/to/mcrypt/lib...)
Lucas
--
Fruition Design Collective
http://fruitiondesign.com
Against Patriarchy Conference (Eugene)
http://fruitiondesign.com/againstpatriarchy
Deal With It. (anti-sexist men's zine)
http://fruitiondesign.com/dealwithit
the Insurgent ("news" paper)
http://theinsurgent.org
--- End Message ---
--- Begin Message ---
I find it's safest to not run "make install" after make, rather to manually
copy the binary into /usr/bin/ or whereever you want it. That way it
doesn't mess w/ any config files.
----- Original Message -----
From: "Dr CHEUNG Ngai Tseung" <[EMAIL PROTECTED]>
To: "Robert Abbate" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 2:29 PM
Subject: [PHP-INST] RE: php executable
> I'm not sure if this is the "proper" way to do it, but I separately built
a
> version of php-standalone by
>
> ./configure --with-config-file=/etc --prefix=/usr/local --other
> options
>
> but without apxs.
>
> This builds an executable in [prefix]/bin
>
> -----Original Message-----
> From: Robert Abbate [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 25 March 2002 15:37
> To: [EMAIL PROTECTED]
> Subject: php executable
>
>
> hello. I used to have PHP installed by RPM and it had the ability to run
php
> from the command line like this:
>
> [momma@ mysite.com]# php -q /home/mysite/test.php
>
> now that I've removed the RPM and configured and installed PHP from the
> source code distribution, I don't have that ability anymore. Is there any
> way to do this?
>
> Thanks
> Robert
>
>
>
>
--- End Message ---
--- Begin Message ---
I have built my extention for php4. There is not any error during compiling.
PHP4 can work when I use "php -f test.php". So I try to install it to my
Redhat7.2 system with apache.All my operation is followed:
(after compile the php4)
./killall httpd
./configure --enable-mymodule --with-apax=/usr/sbin/apxs --with-config-file-
path=/etc
./make
./make install
cp php.ini-dist /etc/php.ini
(start apache again)
The test.php file likes this:
<?php
echo my_func()
?>
the func "my_func" only return "hello world". but when I access it by
IE(another pc),I got "fatel error: undefined func....."
And I use "phpinfo()" to test. I found the new version has been installed
but not support my module. And the configure section show it has "enable" my
module. Why????
Thanx!
--- End Message ---
--- Begin Message ---
Ok i have installed apache running on a win xp box, I then installed php
4.1.2. edited the httpd.conf file in apache and restared server. this error
pops up when i restart "[warn] module mod_php4.c is already added, skipping"
now i presume this wont cause any problems (correct me if i'm wrong) so I
write out a little php script one below will be sufficient:
when I run this script I get these errors and code printed out onto the
browser:
Warning: Undefined variable: testing in c:\program files\apache
group\apache\htdocs\test\1.php on line 8
Warning: Undefined variable: testing in c:\program files\apache
group\apache\htdocs\test\1.php on line 9
NULL
integer
string
double
boolean
<html>
<head>
<title>Listing 4.1 testing the type of a variable</title>
</head>
</body>
<?php
$testing; //declare without assigning
print gettype(" $testing "); // Null
print("<br>");
$testing = 5;
print gettype(" $testing "); // Integer
print("<br>");
$testing = "five";
print gettype("$testing"); // String
print("<br>");
$testing = 5.0;
print gettype("$testing"); // double
print("<br>");
$tesing = true;
print gettype("$testing"); // Boolean
print("<br>");
?>
</body>
</html>
Now i'm lost any ideas, cause as far as i know the server and php have been
configured correctly and this script should work, well it does but I just
get these errors and dont get the errors on a server.
Regards
Ross Horne
[EMAIL PROTECTED]
--- End Message ---