php-install Digest 7 Jan 2003 01:30:26 -0000 Issue 1189

Topics (messages 9568 through 9590):

Re: newbie question blank page
        9568 by: Jason Reid
        9577 by: - Edwin

PHP_SELF
        9569 by: Eugene Wolff
        9570 by: Jeffrey_N_Dyke.Keane.com

New Problem
        9571 by: Eugene Wolff
        9573 by: Steen Rabol
        9574 by: - Edwin
        9575 by: Jeffrey_N_Dyke.Keane.com

help how to execute exec
        9572 by: zafar rizvi

Apache PHP under Linux
        9576 by: Marcp

help needed: Call to undefined function: mssql_connect()
        9578 by: paula.nervesane.net
        9579 by: - Edwin
        9581 by: - Edwin

Problem - Apache & PHP
        9580 by: Reetu Singh
        9586 by: Chris Hewitt

Creating an extra library
        9582 by: Tom Vandeplas
        9583 by: - Edwin
        9584 by: Tom Vandeplas
        9587 by: - Edwin

'Server API' is different than expected...
        9585 by: Dick Griffin

Redhat 8 > PHP
        9588 by: Matt Babineau

Apache & PHP
        9589 by: Reetu Singh

Compile php 4.3.0 under Mac OS X 10.2 (darwin) with libmcrypt
        9590 by: Nicolas Ross

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 ---
Check the source of hte page in the browser. do u see php code? if no, then
something else is wrong. if yes, then check:

1. did u add the loadmodule line into httpd.conf?
2. did u restart apache?

If you didnt do either one, or both, do them and try again.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

----- Original Message -----
From: "Marcus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 1:36 AM
Subject: [PHP-INST] newbie question blank page


Hi there Just manage to install RedHat 8 on a server and as soon as I load a
php script to in the page is blank.

I have added
AddType application/x-httpd .php
in the httpd.conf file but this still doesn't work

Any help would be appreciated

Regards
Marcus


==========================================================
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 ---
Hello,

"Marcus" <[EMAIL PROTECTED]> wrote: 
> Hi there Just manage to install RedHat 8 on a server and as soon as I 
> load a php script to in the page is blank.

Blank? No nothing? No errors? How about the (generated) source code? 
(View -> Source in your browser)

Use something simple for checking. Like:

<?php

  phpinfo();

?>

and see what happens...

> I have added 
> AddType application/x-httpd .php 
> in the httpd.conf file but this still doesn't work

I don't think you really need this. When I installed RH8, all I had to 
do was to start Apache and voila! I could run and see the result of 
phpinfo() I mentioned above.

- E

...[snip]...

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/

--- End Message ---
--- Begin Message ---
Hi,
 
I am very new to php.  I have installed and done some simple scripts for
eg. Display 'Hello World', read entries from a database but when I try
and put something into a database I get problems.  I use $PHP_SELF in
the script but when I open it I get the following error:-
 
            Notice: Undefined variable: PHP_SELF in
c:\inetpub\wwwroot\phptest5.php on line 9
 
I think it might have to do something with my installation.  I am
running the cgi version.
 
Thanks,
 
Eugene
--- End Message ---
--- Begin Message ---
if you are using a version of php later then 4.1, try $_SERVER['PHP_SELF'].

hth
jeff


                                                                                       
                             
                    "Eugene Wolff"                                                     
                             
                    <[EMAIL PROTECTED]       To:     <[EMAIL PROTECTED]>           
                             
                    o.za>                cc:                                           
                             
                                         Subject:     [PHP-INST] PHP_SELF              
                             
                    01/06/2003                                                         
                             
                    07:48 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




Hi,

I am very new to php.  I have installed and done some simple scripts for
eg. Display 'Hello World', read entries from a database but when I try
and put something into a database I get problems.  I use $PHP_SELF in
the script but when I open it I get the following error:-

          Notice: Undefined variable: PHP_SELF in
c:\inetpub\wwwroot\phptest5.php on line 9

I think it might have to do something with my installation.  I am
running the cgi version.

Thanks,

Eugene




--- End Message ---
--- Begin Message ---
Hi,
 
I have the following script.  When I open it says: 
 
Notice: Undefined variable: submit in c:\inetpub\wwwroot\phpTest9.php on
line 4
Although the input boxes all show fine.  Obviously it does not do the
first part of the code because ($submit) is not equal to true.
 
<html>
<body>
<?php
if ($submit){
  //Process form
  $db = mysql_connect("eugene","root");
  mysql_select_db("mydetailsonline",$db);
  $sql="insert into employees
(first_name,last_name,cell_phone,home_phone) values
('$first_name','$last_name','$address','$position')";
  $result=mysql_query($sql);
  echo "Thank you! information entered.\n";
}else{
  //display form
  ?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']?>">
First name:<input type="Text" name="first_name"><br>
Last name:<input type="Text" name="last_name"><br>
CellPhone:<input type="Text" name="Cell_phone"><br>
Home phone:<input type="Text" name="home_phone"><br>
<input type="Submit" name="submit" value="Enter information">
</form>
<?php
} //end if
?>
</body>
</html>
 
Thanks again
 
Eugene
--- End Message ---
--- Begin Message ---
Hi

Well...

If you look at your script, you'll see that you are trying to test on $submit, the 
'problem' is that you have not defined $submit, not as a local var and not as a var 
from eg a URL, in other words: You are trying to test on something that you have not 
yet defined - IMHO 'sloppy' code. 

You can however remove the error message by using the error_reporting() or change 
error_reporting in the php.ini, but the best solution is to either test if the var 
isset or define and assign it before using it !

eg:

if(isset($submit) && $submit === true)
{
....
}

Best
Steen


"Eugene Wolff" <[EMAIL PROTECTED]> wrote:
> Hi,
>  
> I have the following script.  When I open it says: 
>  
> Notice: Undefined variable: submit in
> c:\inetpub\wwwroot\phpTest9.php on
> line 4
> Although the input boxes all show fine.  Obviously it does
> not do the
> first part of the code because ($submit) is not equal to
> true.
>  
> <html>
> <body>
> <?php
> if ($submit){
>   //Process form
>   $db = mysql_connect("eugene","root");
>   mysql_select_db("mydetailsonline",$db);
>   $sql="insert into employees
> (first_name,last_name,cell_phone,home_phone) values
> ('$first_name','$last_name','$address','$position')";
>   $result=mysql_query($sql);
>   echo "Thank you! information entered.\n";
> }else{
>   //display form
>   ?>
> <form method="post" action="<?php echo
> $_SERVER['PHP_SELF']?>">
> First name:<input type="Text" name="first_name"><br>
> Last name:<input type="Text" name="last_name"><br>
> CellPhone:<input type="Text" name="Cell_phone"><br>
> Home phone:<input type="Text" name="home_phone"><br>
> <input type="Submit" name="submit" value="Enter
> information">
> </form>
> <?php
> } //end if
> ?>
> </body>
> </html>
>  
> Thanks again
>  
> Eugene

--- End Message ---
--- Begin Message ---
Hello,

"Eugene Wolff" <[EMAIL PROTECTED]> wrote: 
> Hi,
>  
> I have the following script.  When I open it says: 
>  
> Notice: Undefined variable: submit in c:\inetpub\wwwroot\phpTest9.php 
> on line 4 Although the input boxes all show fine.  Obviously it does 
> not do the first part of the code because ($submit) is not equal to 
> true.  
> <html>
> <body>
> <?php
> if ($submit){

Try

  if ($_POST['submit']){

instead.

I think the problem is about "register_globals"--discussed a lot in PHP-
GENERAL.

Check the manual for more info:

  http://www.php.net/manual/en/language.variables.predefined.php#
language.variables.superglobals

or, just check the archives:

  http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=register_
globals&q=b

HTH,

- E

...[snip]...

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/

--- End Message ---
--- Begin Message ---
the real problem though, based on your previous post is that you are not
using the correct varaible.  It should be $_POST['submit'];  and yes, you
should test for it, using isset or somthing similar like

check out the section of the manual on register_globals.  yours is set to
off.

if ($_POST['submit] == 'Enter information') {
     some stuff
}

hth
jeff


                                                                                       
                             
                    "Steen Rabol"                                                      
                             
                    <[EMAIL PROTECTED]       To:     "Eugene Wolff" <[EMAIL PROTECTED]>    
                             
                    ele.dk>              cc:     [EMAIL PROTECTED]             
                             
                                         Subject:     Re: [PHP-INST] New Problem       
                             
                    01/06/2003                                                         
                             
                    09:17 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




Hi

Well...

If you look at your script, you'll see that you are trying to test on
$submit, the 'problem' is that you have not defined $submit, not as a local
var and not as a var from eg a URL, in other words: You are trying to test
on something that you have not yet defined - IMHO 'sloppy' code.

You can however remove the error message by using the error_reporting() or
change error_reporting in the php.ini, but the best solution is to either
test if the var isset or define and assign it before using it !

eg:

if(isset($submit) && $submit === true)
{
....
}

Best
Steen


"Eugene Wolff" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the following script.  When I open it says:
>
> Notice: Undefined variable: submit in
> c:\inetpub\wwwroot\phpTest9.php on
> line 4
> Although the input boxes all show fine.  Obviously it does
> not do the
> first part of the code because ($submit) is not equal to
> true.
>
> <html>
> <body>
> <?php
> if ($submit){
>   //Process form
>   $db = mysql_connect("eugene","root");
>   mysql_select_db("mydetailsonline",$db);
>   $sql="insert into employees
> (first_name,last_name,cell_phone,home_phone) values
> ('$first_name','$last_name','$address','$position')";
>   $result=mysql_query($sql);
>   echo "Thank you! information entered.\n";
> }else{
>   //display form
>   ?>
> <form method="post" action="<?php echo
> $_SERVER['PHP_SELF']?>">
> First name:<input type="Text" name="first_name"><br>
> Last name:<input type="Text" name="last_name"><br>
> CellPhone:<input type="Text" name="Cell_phone"><br>
> Home phone:<input type="Text" name="home_phone"><br>
> <input type="Submit" name="submit" value="Enter
> information">
> </form>
> <?php
> } //end if
> ?>
> </body>
> </html>
>
> Thanks again
>
> Eugene


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--- End Message ---
--- Begin Message ---
hi ppl
 i am using apache on redhat linux.
i am making a script of change password in qmail.
for that reason i am using system and exec command to execute that command
/home/vpopmail/bin/vadduser and vpasswd
and that files has 755 permission with vpopmail user and vchkpw Group.
when i use exec function ,it give me illegal user name
system("/home/vpopmail/bin/vpasswd $SESSION_USER_NAME $new_pass")
so how i do it....
if i want to use linux sudo command then i use it ,
any body have idea.

thanks
zafar


--- End Message ---
--- Begin Message --- Hi.
I've installed Apache 1.3.27 and PHP 4.3.0 on RedHat Linux 8.0.
These are the steps I've done.

Apache:
# ./configure –enable-module=so
# make
# make install
# httpd -l to verify the presence of http_core.c e mod_so.c
in /usr/local/apache/conf/httpd.conf:
1.modify DocumentRoot
2.modiffy User e Group
3.modify ServerName
PHP:
#./configure –with-apxs
#make
#make install
I verify in /usr/local/apache/conf/httpd.conf the presence of:
LoadModule php4_module libexec/libphp4.so
I add AddType application/x-httpd-php .php in httpd.conf
I copy the original php.ini-dist in /usr/local/lib/php.ini

I restart httpd.
After that, when I open a HTML page containing a minimal PHP script, I can see any output at all.
I've tried:
<? echo 'Hello world'; ?>
<script language="PHP">
echo 'Hello world';
</script>.
<? print 'Hello world'; ?>
<script language="PHP">
print('Hello world');
</script>.

Command line PHP interpreter works fine.
#lsof tells me that httpd is using libphp4.so.

I can't undestand where is my mistake.
Thanks for any help or idea.
Marco.

--- End Message ---
--- Begin Message ---
Hi there,

Hope someone can help me with this.
I need to connect to a MS SQL database but my attemps fail once and again. 
This is the error message I get when try to connect:

Fatal error: Call to undefined function: mssql_connect() in 
/var/www/htdocs/DB_conn.php on line 8

The script is very simple:

<?php

$hostname = "10.0.0.206:1433"; 
$username = "sa"; 
$password = ""; 
$dbName = "dbname_here"; 

$idLink = mssql_connect($hostname,$username,$password) or die("DATABASE 
FAILED TO RESPOND."); 
mssql_select_db($dbName) or die("Table unavailable"); 

?>

Now, this is the info I can provide:

1) PHP version 4.3.0-dev

2) phpinfo shows:
 './configure' 
'--prefix=/usr/local' 
'--enable-module=so' 
'--with-mod_charset' 
'--enable-sockets' 
'--enable-memory-limit' 
'--with-sybase=/usr/local/freetds' 

3) Of course, freetds is located at /usr/local/freetds and works properly. 
It was tested using tsql -H -p -U and it's ok.

4) I also tried adding #!/usr/local/bin/php to try it as a shell scripting 
thing and it WORKS! Which is very confusing.

5) php.ini shows:

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Valid range 0 - 2147483647. Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647. Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch. 0 = all records in one batch.
;mssql.batchsize = 0

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. Default = 25
;mssql.max_procs = 25

I have no idea what the problem is; any help will be much appreciated.

-Paula
 


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


--- End Message ---
--- Begin Message ---
Hello,

I don't use MSSQL so I could be wrong. Anyway, let me try ;)

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: 
> Hi there,
> 
> Hope someone can help me with this.
> I need to connect to a MS SQL database but my attemps fail once and 
> again. 
> This is the error message I get when try to connect:
> 
> Fatal error: Call to undefined function: mssql_connect() in 
> /var/www/htdocs/DB_conn.php on line 8
> 
> The script is very simple:
> 
> <?php
> 
> $hostname = "10.0.0.206:1433"; 
> $username = "sa"; 
> $password = ""; 
> $dbName = "dbname_here"; 
> 
> $idLink = mssql_connect($hostname,$username,$password) or die("
> DATABASE 
> FAILED TO RESPOND."); 
> mssql_select_db($dbName) or die("Table unavailable"); 
> 
> ?>
> 
> Now, this is the info I can provide:
> 
> 1) PHP version 4.3.0-dev
> 
> 2) phpinfo shows:
>  './configure' 
> '--prefix=/usr/local' 
> '--enable-module=so' 
> '--with-mod_charset' 
> '--enable-sockets' 
> '--enable-memory-limit' 
> '--with-sybase=/usr/local/freetds' 

Perhaps, because you don't have --with-mssql=/path/ here?

<from_the_manual>
  Installation
  
  The MSSQL extension is enabled by adding extension=php_mssql.dll to 
php.ini.

  To get these functions to work, you have to compile PHP with --with-
mssql=[DIR], where DIR is the FreeTDS install prefix.
</from_the_manual>

> 3) Of course, freetds is located at /usr/local/freetds and works 
properly. 
> It was tested using tsql -H -p -U and it's ok.
> 
> 4) I also tried adding #!/usr/local/bin/php to try it as a shell 
scripting 
> thing and it WORKS! Which is very confusing.

Well, you can actually have two *different* versions of php so it's 
possible that they were compiled in different ways...

- E

...[snip]...

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/

--- End Message ---
--- Begin Message ---
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: 
> Yeah, I'm sure I have two different versions compiled, the one working 
> as a module is the one that fails. Regarding hp_mssql.dll, isn't that 
> necessary only for Windows? I'm running everything on a Linux server.

Yes, that one is only for Windows...

> I'll try the with-mssql thing.

This should be it :)

- E

...[snip]...

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/

--- End Message ---
--- Begin Message ---
Dear All,

I have a problem with running PHP in modular form as I want to store the global 
PHP_AUTH_USER which i can not use in the cgi version. When i run .php3 files it just 
displays the php files  as such. And also I am unable to run the cgi files on the 
apache. Can any one help me. 

regards,

RS



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
Reetu Singh wrote:

I have a problem with running PHP in modular form as I want to store the global PHP_AUTH_USER which i can not use in the cgi version. When i run .php3 files it just displays the php files as such. And also I am unable to run the cgi files on the apache. Can any one help me.
Look in /etc/httpd/conf/httpd.conf for the AddType line for php. It probably only has ".php" at the end. If you want files ending in ".php3" to also be sent to php you will have to add that extension onto the end of that line. Don't forget to restart Apache.

HTH
Chris

--- End Message ---
--- Begin Message ---
Hi all,

this question may have been asked a couple of times already, unfortunately I
can't find the answer.

I have a complete PHP-webserver system up and running, based on a standard
redhat PHP distribution. The only thing that is missing are the XSLT
funtions. I managed to build php on a different system with xslt enabled,
but then again it lacks all the nice standard features that come with the
redhat distribution.

The thing I would like to do is to build "xslt.so" so I can add it to the
existing setup. I know it should be possible since this is the way RedHat
distributes additional libraries. Unfortunately it's not clear to me how to
build these "so" files or how to add them to a setup.

Any help on this would be greatly appreciated.




--- End Message ---
--- Begin Message ---
Hello,

"Tom Vandeplas" <[EMAIL PROTECTED]> wrote: 
> Hi all,
> 
> this question may have been asked a couple of times already, 
> unfortunately I can't find the answer.
> 
> I have a complete PHP-webserver system up and running, based on a 
> standard redhat PHP distribution. The only thing that is missing are 
> the XSLT funtions. I managed to build php on a different system with 
> xslt enabled, but then again it lacks all the nice standard features 
> that come with the redhat distribution.

Well, how did you build it on the "other" system? You can just do the 
same on your redhat server.

If you want "all the nice standard features", perhaps you can do 
something like this:

First, check phpinfo() on both servers--esp. the part how each was 
configure. Then, install php using a *combined* setting for ./configure 
--

It could work...

...[snip]...

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/

--- End Message ---
--- Begin Message ---
Hi,

the reason I believe I can't do a configure on the "real" server is because
I don't have all the source files (or object files) for the options
currently installed. So I did a new build with a minimum configuration
(basically only xslt) of a different server. I expected to get xslt.so in
the modules directory, but it's wasn't anywhere in the build tree. Is it
maybe an option to build shared libs? (I thought it was the default).

My next step would have been to copy over this xslt.so file the the other
server and add it in php.ini.


"- Edwin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> "Tom Vandeplas" <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > this question may have been asked a couple of times already,
> > unfortunately I can't find the answer.
> >
> > I have a complete PHP-webserver system up and running, based on a
> > standard redhat PHP distribution. The only thing that is missing are
> > the XSLT funtions. I managed to build php on a different system with
> > xslt enabled, but then again it lacks all the nice standard features
> > that come with the redhat distribution.
>
> Well, how did you build it on the "other" system? You can just do the
> same on your redhat server.
>
> If you want "all the nice standard features", perhaps you can do
> something like this:
>
> First, check phpinfo() on both servers--esp. the part how each was
> configure. Then, install php using a *combined* setting for ./configure
> --
>
> It could work...
>
> ...[snip]...
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/
>


--- End Message ---
--- Begin Message ---
"Tom Vandeplas" <[EMAIL PROTECTED]> wrote: 
> Hi,
> 
> the reason I believe I can't do a configure on the "real" server is 
> because I don't have all the source files (or object files) for the 
> options currently installed.

If you mean the "real server" is the Redhat server then you should have 
all that you need after you install Sablotron.

In other words, install Sablotron and expat on the RH server if you 
haven't done yet. Check phpinfo() and see see how the php that came with 
RH was configured. Then use the same ./configure command *plus*

  --enable-xslt  --with-xslt-sablot

and whatever else the manual (under php.net/xslt) says you need...

> So I did a new build with a minimum 
> configuration (basically only xslt) of a different server. I expected 
> to get xslt.so in the modules directory, but it's wasn't anywhere in 
> the build tree. Is it maybe an option to build shared libs? (I thought 
> it was the default).
> 
> My next step would have been to copy over this xslt.so file the the 
> other server and add it in php.ini.

Well, of course, you can try this... We also learn a lot from "trial and 
error" :)

- E

...[snip]...

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/

--- End Message ---
--- Begin Message ---
Hi Folks,

I'm new on this list, (just joining today) so I need a little help with the
basics.  First off, is there a way that I can review the questions already
asked during the past few days to see if my problem has been addressed
already?

Second, I've installed the Windows Binary PHP Version 4.1.0 and when I
checked the info file using the script :
<? php phpinfo(): ?>

everything came back great except that I was expecting to see the 'Server
API' read ISAPI, and it is in fact 'CGI'.

Can someone tell me how this affects my ability to write PHP to use html
forms for inserting data into MYSQL tables, if it does?  And if it does, how
do I adjust it?

All help gratefully accepted.

Thanks


Dick Griffin



--- End Message ---
--- Begin Message ---
I'm trying to get PHP running on RH8- the Apache server is running and
it is the newest version available from up2date, does anyone have a url
of a good install helper on this?
 
-Matt
--- End Message ---
--- Begin Message ---
Dear All,

I want to use $PHP_AUTH_USER and $PHP_AUTH_PW as global variables so that I can do 
HTTP authentification. Could any one help me to set this and also let me know how I 
should go about it. What r the steps I should take to activate this.

regards,

RS



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
I did compile php 4.1.x and 4.2.x successfully with this configure line
(with the libtool of 4.0.6 and a few tweeks, but it compiled well). But now,
with 4.3.0, I can't even configure...

Here's my configure line :

./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql
--with-fbsql
--with-xml
--enable-ftp
--with-zlib --with-zlib-dir=../zlib
--with-png --with-png-dir=../libpng-1.2.0
--with-jpeg --with-jpeg-dir=../jpeg-6b
--with-gd
--enable-track-vars --enable-trans-id

I tried with the built-in gd, and it compiled and work without a hitch, even
without using the libtool of 4.0.6 or any other tweeks I had done in the
past. I got a couple of warnings at the end, but it compiled well.

But if I add

--with-mcrypt

to the configure line, I get :

checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... no
checking for init_mcrypt in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version
you have installed.

config.log :
(...)
char init_mcrypt();

int main() {
init_mcrypt()
; return 0; }


libmcript-2.5.5 is installed in /usr/local and I tried
with --with-mcrypt=/usr/local or --with-mcrypt=../libmcrypt-2.5.5, and
nothing would do...

Any hints ?

Nicolas Ross


--- End Message ---

Reply via email to