php-install Digest 27 Jun 2003 12:34:19 -0000 Issue 1439
Topics (messages 11159 through 11162):
upgrade php
11159 by: lavila.2be-web.com
Calling PHP from Java using CGI...
11160 by: Rodrigo Reyes
11161 by: Rodrigo Reyes
php 4.3.1+Apache 1.3.2
11162 by: Jose Manuel
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 have linux rh with apache+mysql+php the version of php is 4.2.3. Iīve
tried to upgrade to php 4.3.2 so I can use gd but I installed everything
ok but I run phpinfo() and it still has the older version, and I would like
to know how I can get to work the new version
Thank you.
Lino Avila
--- End Message ---
--- Begin Message ---
Hi all
Has anyone been able to call php from a servlet (JAVA) using CGI
interface? I am trying to do that here, and everything seems to work without
problems, except that no data returns from the execution of my scripts. Any
idea what could be happening? Is there information on how to configure the
CGI variables in order to be able to call PHP? Thanx in advance...
Rodrigo
--- End Message ---
--- Begin Message ---
Hi all
Has anyone been able to call php from a servlet (JAVA) using CGI
interface? I am trying to do that here, and everything seems to work without
problems, except that no data returns from the execution of my scripts. Any
idea what could be happening? Is there information on how to configure the
CGI variables in order to be able to call PHP? Thanx in advance...
Rodrigo
--- End Message ---
--- Begin Message ---
I have installed PHP 4.3.1 with Apache 1.3.23.
PHP was compiled with
#./configure --with-mysql --with-apxs
#make
#make install
I have tested the file info.php and show the configuration of PHP correctly
but when i try to test a web page, not function.
The page info.php function correctly and show the php configuration.
I created a page that show a form for validate a user over MySql. This page
have two fields and one button for validate. The php code validate the user.
I used sessions. When the user click the button donīt occur anything. Why?
I intented to activate log errors but the file don't show anything.
The connection to MySQL function correctly ( test page ). And the
instruction session_start() return no errors ( test page).
The code is :
<?
include("conectar.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CLIENTES</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../estilo/web.css" rel="stylesheet" type="text/css">
</head>
<body>
<?
if (!isset($validar)) {
?>
<form action="clientes.php" method="post" name="form" id="form">
<table>
<tr>
<td width="124"><p>CÓDIGO:</p></td>
<td width="160"><input name="miusuario" type="text" id="miusuario"
maxlength="10"></td>
</tr>
<tr>
<td><p>CONTRASEÑA: </p></td>
<td><input name="miclave" type="password" id="miclave"
maxlength="10"></td>
<td width="60"><input name="validar" type="submit" id="validar"
value="Validar"></td>
</tr>
</table>
</form>
<? }else {
print 'else';
$con=conectarse();
session_start();
if (!isset($miusuario)) {
$miusuario = $_SESSION['cliente'];
$miclave = $_SESSION['clave'];
}
$info="select * from clientes where codigo='$miusuario'";
$cur=mysql_query($info);
if (!$cur){
Error_handler("Error en consulta de usuarios", $con);
}
$filas = mysql_num_rows($cur);
# Comprobamos que el cursor tiene filas, si no encuentra denegamos el
acceso.
if ($filas == 0) {
?>
<table>
<tr>
<td><p>Acceso Denegado!</p></td>
</tr>
</table>
<?
}
else {
# Comprobamos que la contraseņa es la misma que la que tiene en la base de
datos.
while($row= mysql_fetch_array($cur)) {
$clave = $row["contrasenya"];
$codigo = $row["codigo"];
$razon = $row["razon"];
}
if ($clave == $miclave) {
# Creo la sesion del cliente.
session_start();
$_SESSION['pedido'] = new pedido;
$_SESSION['cliente'] = $codigo;
$_SESSION['razon'] = $razon;
$_SESSION['clave'] = $clave;
if (!$_SESSION['pedido']){
$_SESSION['pedido'] = new pedido;
}
?>
<p class="titulos"> </p>
<table>
<tr>
<td><p>Bienvenido Cliente: <? print "$razon" ?></p></td>
</tr>
</table>
<p>Para navegar por la web mientras realiza compras, rogamos no use los
controles
de navegador, use la navegación propia de la web. Gracias.</p>
<p><a href="cfamilia.php">Catálogo de productos por
familias</a></p>
<!-- Hasta aqui sera el catalogo de productos -->
<?
}
else{
?>
<table>
<tr>
<td><p>Clave Incorrecta!</p></td>
</tr>
</table>
<?
}
}
mysql_free_result($cur);
mysql_close($con);
}
?>
<p><a href="../index.htm">INDICE</a></p>
<p><a href="../index.htm">VOLVER</a></p>
</body>
</html>
Ejemplo
Any ideas.
--- End Message ---