php-install Digest 1 Aug 2002 07:22:39 -0000 Issue 957

Topics (messages 7965 through 7967):

Apache WebServer version 2.0.39 on Windows 2000 and PHP 4.2.2
        7965 by: Fernando Ręgo Rodrigues

Installation woes
        7966 by: Gary.Every.ingramentertainment.com

help with a simple php script!
        7967 by: danielm

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,

I am running Apache WebServer version 2.0.39 on Windows 2000.

I have install PHP 4.2.2 as a server module for Apache.
I have been using the install.txt that came with php-4.2.2-Win32.zip
that refers to   Apache 1.3.x.

After stoping the Apache I did this...

The lines that I have inclued on httpd.conf were :

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php

and copy PHP.ini to WINNT folder. Also copy php4ts.dll to
winnt/system32.

In the PHP instalation I have copied all php_*.* from the extensions
directory to c:\php\sapi, also made a change to PHP.ini
extension_dir=c:\php\sapi

On starting the Apache web server I receive this msg :

"The request operation has failed".
Since this version are very recent is there any changes on the
httpd.conf that I don't know about ?

Thanks, FRR, Portugal.



--- End Message ---
--- Begin Message ---
I've installed apache and added the AddType lines to accept .php

AddType application/x-httpd-php4 .php

When I try the LoadModule
LoadModule php4_module libexec/libphp4.so
I get an error. 
Cannot open shared object file libphp4.so
 
I've followed the instructions at 
http://www.php.net/manual/en/install.apache.php to the letter, but there is
no libphp4.so anywhere on my system.

I'm using Apache 2.0.39 and php 4.2.1 on RedHat 7.3
 

Any help would be greatly appreciated.
I'm not currently on the list, so please cc to my e-mail address
Thanks!
Gary

--- End Message ---
--- Begin Message ---
Hi I wonder if someone can help me. I don't know what is wrong with my
php files but they don't seem to pass variables using the post method.

here is the source of the file with the entry form:
:::::::::::::::::::::::::::::::::::::::::::::::::::

<html>
<head>
  <title> New member entry screen </title>
</head>
<body>
<center>New member entry screen</center>
<form action="insert_user.php" method="post">
<input type=text name=name maxlength=13 size=13>
<input type=text name=surname maxlength=13 size=13> 
<input type=text name=email maxlength=13 size=13> 
<input type=text name=section maxlength=13 size=13>
<input type=submit value="Register">
</form>  
</body>
</html>


and here is the source of insert_user.php:
::::::::::::::::::::::::::::::::::::::::::

<hmtl>
<head>
<title>Add user to Library Database</title>
</head>

<body>                                                                                 
                               
<center>Add user to Library
Database</center>                                                                      
                                                                                       
                       
<? 
if (!$name || !$surname || !$email ||
!$section)                                                                       
{                 
 echo "You have not completed all the fields.<br>" 
 ."Please go back and try again.";
 exit; 
 }
                                                                                       
                                                                                       
                                                        
@ $db = mysql_pconnect ("localhost", "root", "pass"); 
 if (!$db) {
echo "Sorry, could not connect to database";
exit;
}

mysql_select_db ("library");
$query ="insert into user values
('".NULL."','".$name."','".$surname."','".$email."','".$section."')";
$result = mysql_query($query);
if ($result)
echo mysql_affected_rows(). "Inserted into database"; 
?>
</body>
</html>


It all works except for the fact that no data is being passed... when I
remove the check for the variables the database is updated with null
fields...

I hope you can help, thanks for your time,
Daniel.
--- End Message ---

Reply via email to