[PHP] linux console on the PHP

2009-04-13 Thread Alejandro Esteban Galvez
Hi people. If you known any method for grant access to one user to the console 
of linux, using the php, can you tell me that please? I going to try explain 
me! I need one interface PHP, and the interface must show me one linux console 
and take me the control of this console.

Excuse me, for my english, I speak little english.

Bye



---
Alejandro Esteban Galvez
Administrador de Red IPICHMC Rimed,
Radio-Aficionado CL2AEG
Linux User #472120 - http://i18n.counter.li.org/
Correo: alejan...@infomed.sld.cu
Correo y Jabber: alejan...@ipichmc.rimed.cu
www.ipichmc.rimed.cu
---





---
Red Telematica de Salud - Cuba

  CNICM - Infomed




[PHP] Sobre Login PHP

2009-04-11 Thread Alejandro Esteban Galvez

Saludos colegas, los otros dias, estuve escribiendo acerca de esto, y bueno ya 
tengo una parte ahora necesito que cuando se cierre el navegador, se cierre la 
sesion de login tambien.  Saludos


---
Alejandro Esteban Galvez
Administrador de Red IPICHMC Rimed,
Radio-Aficionado CL2AEG
Linux User #472120 - http://i18n.counter.li.org/
Correo: alejan...@infomed.sld.cu
Correo y Jabber: alejan...@ipichmc.rimed.cu
www.ipichmc.rimed.cu
---





---
Red Telematica de Salud - Cuba

  CNICM - Infomed




[PHP] About Login on PHP

2009-04-08 Thread Alejandro Esteban Galvez
Hi!, I am making a system in php for linux. This system take a control of my 
LDAP server, and login for the LDAP server too. How I can do that the login 
expires past two minutes, when the user part of the system, and when the user 
close your Internet Explorer???

Bye


---
Alejandro Esteban Galvez
Administrador de Red IPICHMC Rimed,
Radio-Aficionado CL2AEG
Linux User #472120 - http://i18n.counter.li.org/
Correo: alejan...@infomed.sld.cu
Correo y Jabber: alejan...@ipichmc.rimed.cu
www.ipichmc.rimed.cu
---





---
Red Telematica de Salud - Cuba

  CNICM - Infomed




[PHP] PHP and Send Mail

2009-04-08 Thread Alejandro Esteban Galvez
Hi!, I am making a web system and i need known how send a mail using PHP 

Bye



---
Alejandro Esteban Galvez
Administrador de Red IPICHMC Rimed,
Radio-Aficionado CL2AEG
Linux User #472120 - http://i18n.counter.li.org/
Correo: alejan...@infomed.sld.cu
Correo y Jabber: alejan...@ipichmc.rimed.cu
www.ipichmc.rimed.cu
---





---
Red Telematica de Salud - Cuba

  CNICM - Infomed




Re: [PHP] problems with sessions variables and virtual domains in apache

2007-01-19 Thread esteban
The don't want to pass the session variable across domains.  The problem is
in the main domain, i don't know what happens, the session variable lost the
value or is distroyed.

Chris [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
esteban wrote:
 I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session
 variables to validate users, each page have something like this:

 if($_SESSION[validated]==0){
   header(Location: index.php);
   exit;
  }

 This worked fine when i had only one domain, but when i began to use
virtual
 domains, sometimes, not always, the session variable lost the value or the
 session variable is distroyed, i don't know what really happens.  I add
this
 lines to httpd.conf for each domain and the main domain is first:

 VirtualHost *:80
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot C:/Program Files/Apache Group/Apache2/htdocs/domain
 ServerName www.domain.com
 ErrorLog logs/domain.com-error_log
 CustomLog logs/domain.com-access_log common
 php_admin_value upload_tmp_dir C:/Program Files/Apache
 Group/Apache2/htdocs/domain/tmp
 php_admin_value session.save_path C:/Program Files/Apache
 Group/Apache2/htdocs/domain/session
 /VirtualHost

 At the beginning i didn't use the two last lines with php_admin_value, i
add
 the lines for trying to solve the problem but it doesn't work.

 I have an application made with phpmaker and SquierreMail v.1.4.7 too, and
i
 have the same problem in both. In both case sometimes, when i want to go
to
 other page, the server ask me for the username and the password, it is not
 always.

If you are going across domains (page 1 is on domain 'a' and page 2 is
on domain 'b'), you need to explicitly pass the session across in the
query string.

Even them I'm not sure it will work for security reasons.

-- 
Postgresql  php tutorials
http://www.designmagick.com/

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



[PHP] problems with sessions variables and virtual domains in apache

2007-01-18 Thread esteban
I have a windows 2000 server with apache 2.0 and php 5.1.2. I use session
variables to validate users, each page have something like this:

if($_SESSION[validated]==0){
  header(Location: index.php);
  exit;
 }

This worked fine when i had only one domain, but when i began to use virtual
domains, sometimes, not always, the session variable lost the value or the
session variable is distroyed, i don't know what really happens.  I add this
lines to httpd.conf for each domain and the main domain is first:

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot C:/Program Files/Apache Group/Apache2/htdocs/domain
ServerName www.domain.com
ErrorLog logs/domain.com-error_log
CustomLog logs/domain.com-access_log common
php_admin_value upload_tmp_dir C:/Program Files/Apache
Group/Apache2/htdocs/domain/tmp
php_admin_value session.save_path C:/Program Files/Apache
Group/Apache2/htdocs/domain/session
/VirtualHost

At the beginning i didn't use the two last lines with php_admin_value, i add
the lines for trying to solve the problem but it doesn't work.

I have an application made with phpmaker and SquierreMail v.1.4.7 too, and i
have the same problem in both. In both case sometimes, when i want to go to
other page, the server ask me for the username and the password, it is not
always.

Please help me

Thanks.

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



Re: [PHP] Data modelling software

2003-10-20 Thread Adrian Esteban Madrid
http://www.fabforce.net/dbdesigner4/

Hardik Doshi wrote:

Hi Group,

Can anyone tell me which data modelling software is
good for the mysql database?
Thanks 

Hardik

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
 



--
-
Adrian Esteban Madrid
HyperXMedia, Developer

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


[PHP] Recomended Shopping Carts

2003-10-09 Thread Adrian Esteban Madrid
I need to setup a shopping cart (SP) for a client and time/budget calls 
for a premade SP. I've checked hotscripts.com and google and it seems to 
me that there are as many SP in PHP as CMS or Frameworks in PHP, in 
other words, too many to review. I've heard complaints about osCommerce 
as being nice but too hard to modify to your needs. Are there any 
recomendations on SP that you actually use in medium to large projects 
and you were happily surprised?

Thanks in advance,

--
-
Adrian Esteban Madrid
HyperXMedia, Developer

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


[PHP] Re: POST Method - Solved

2003-08-14 Thread Esteban Fernandez
OK, it's Solved.

Esteban Fernandez [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Hi there

 Someone know how to capture the vars and values from the POST method, such
 like a Matts' FormMail, i want to do somethink like that, and i need know
 how to do it.

 Thanks in advanced

 Regards,
 Esteban.





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



[PHP] Re: POST Method

2003-08-14 Thread Esteban Fernandez
Thanks MDG!
:)


Esteban Fernandez [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Hi there

 Someone know how to capture the vars and values from the POST method, such
 like a Matts' FormMail, i want to do somethink like that, and i need know
 how to do it.

 Thanks in advanced

 Regards,
 Esteban.





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



[PHP] POST Method

2003-08-14 Thread Esteban Fernandez
Hi there

Someone know how to capture the vars and values from the POST method, such
like a Matts' FormMail, i want to do somethink like that, and i need know
how to do it.

Thanks in advanced

Regards,
Esteban.



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



[PHP] Re: MSWord attachment with mail()

2003-06-24 Thread Esteban Fernandez
All the email attachment are encoded in base64.

Alberto Brea [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Dear list,
 What header must I use to send a MSWord attachment with mail()?
 I have looked it up in the manual and on php.net but cannot find it.
 Thanks anyone,
 Alberto Brea
 http://estudiobrea.com




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



[PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread Esteban Fernandez
Put the code in a Form tag, modified thevalues, and put a submit button in
the Form, so, in the php page you get it the values by name, you can
modified with 'update' mysql sentence.


Matt Hedges [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Please take a look at http://hedges.org/code/wine.php  - You'll see what I
 can't figure out how to do.


 thanks,
 Matt






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



[PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread Esteban Fernandez
Hum,, i don't see the database conecction :P. It's necesary modified the
fileds on the fly ?, one by one it's more easy to do...





Esteban Fernandez [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Put the code in a Form tag, modified thevalues, and put a submit button in
 the Form, so, in the php page you get it the values by name, you can
 modified with 'update' mysql sentence.


 Matt Hedges [EMAIL PROTECTED] escribió en el mensaje
 news:[EMAIL PROTECTED]
  Please take a look at http://hedges.org/code/wine.php  - You'll see what
I
  can't figure out how to do.
 
 
  thanks,
  Matt
 
 
 





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



[PHP] Re: header(); Issue

2003-06-19 Thread Esteban Fernandez
Try

header(Location: .$Relative./outstanding.php?pdd=1pddid=.$poid.);

EF.


Spyproductions Support Team [EMAIL PROTECTED] escribió en el
mensaje news:[EMAIL PROTECTED]

 I have this in a script:

 header(Location: $Relative/outstanding.php?pdd=1pddid=$poid);

 It works fine elsewhere in the script without the variables.  Does anyone
 know if php 4.06 has issues with this?  Or am I making a boneheaded
mistake
 here?

 $Relative is from an include, and outputs fine.  :)

 Thanks!

 :)

 -Mike





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



[PHP] Re: access a static variable of a class

2003-06-09 Thread Esteban Fernández
Do you try with the global sentence ?

.
.
.

   global $conf;
   $var = 'foo';
 
   echo $var::$conf ; 
   ?


EF.


On Mon, 09 Jun 2003 18:34:33 -0200
[EMAIL PROTECTED] (Aberindei) wrote:

   Hello,
 
   One line to say this is my first post here, I thought about posting in
   php-general, but ZE2 is in development, so...
 
   I want to access a static variable of a class, but I CANNOT use 
 directly the class name, so class name is in a variable.
 
   To be clear:
 
   ?PHP
 
   class foo {
   static $conf = 'configuration variable';
   }
 
   $var = 'foo';
 
   echo $var::$conf ;
 
   ?
 
   this produces a parsing error...
 
   How could I do ?
 
   Thanks
 

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



[PHP] Re: MySQL Problem

2003-06-06 Thread Esteban Fernandez
What's up

Supposing that the filename of the you code is create_table.php.
Try tipping in the URL: create_table.php?nueva_base=prueba

EF.
---

Que tal

Suponiendo que el archivo del codigo se llama create_table.php.
Prueba poniendo el la URL: create_table.php?nueva_base=prueba

EF.



Felipe R. [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Hi everyone,

 first, sorry to all if my english is so poor.
 second, i have the follow question: when i create a existing MySQL DBase,
 what happend??

 how can i avoid this problem??

 i attached my create_table code. Thanks for all

 html
 head
 titleCreación de una Base de Datos/title
 /head
 body
 h2 Creando Base de Datos/h2

 ?php
  $connection = mysql_connect(localhost,ferios,ferios) or die (No se
 puede conectar a MySQL);
  if (!$connection) {
  die (No se puede conectar a MySQL);
  }

  if (mysql_create_db($nueva_base)) {
  print (nbspnbspnbspnbsp Base de Datos font color=\red\
 size=\5\$nueva_base/font Creada Satisfactoriamente!!BRBR);
  $db_list = mysql_list_dbs($connection);
  $indice=0;

  while($row = mysql_fetch_array($db_list)){
  $bases[$indice]=$row[0];
  $indice++;
  }

  mysql_close($connection);

  echo nbspnbspnbspnbspB Las Bases de Datos Disponibles son:
 /BBR;
  for($aux = 0; $aux  $indice; $aux++) {
  echo nbspnbspnbspnbspnbspnbspnbspnbsp $bases[$aux]BR;
  }
  }else{
  print (Ërror Creando la Base de Datos: . mysql_error());
  }
 ?

 font size=3 pVolver a a
 href=http://localhost/administrador.htm;Administrador de Bases de
 Datos/a/font
 font size=3 pVolver a a
href=http://localhost/nueva_base.htm;Crear
 un Base de Datos/a/font

 /body
 /html







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



[PHP] Re: Approved

2003-06-06 Thread Esteban Fernandez
No file attached..

[EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Please see the attached file.



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



[PHP] Re: Is gd present?

2003-06-05 Thread Esteban Fernandez
?php phpinfo(); ?

Todd Cary [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Is there a way to check within an application if the gd library has
 been installed?

 Todd
 -- 







 Is there a way to check within an application if the gd library has been
installed?

 Todd

 -- 




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



Re: [PHP] Re: Is gd present?

2003-06-05 Thread Esteban Fernandez
I don't understand you, but i think u need some app to tell you, if GD is
installed or not ?, if is that what u need, then put this code.

?php
ob_start();
phpinfo(8);
$phpinfo=ob_get_contents();
ob_end_clean();
$phpinfo=strip_tags($phpinfo);
if (stristr($phpinfo,gd version)) {
echo GD installed;
} else {
echo GD NOT installed;
}
?

Regards,
EF.

Todd Cary [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Wouldn't I then have to scan the results?  I use phpinfo() to checks the
 client's installation, but I would like to do it within the app.

 Todd

 Esteban Fernandez wrote:

 ?php phpinfo(); ?
 
 Todd Cary [EMAIL PROTECTED] escribió en el mensaje
 news:[EMAIL PROTECTED]
 
 
 Is there a way to check within an application if the gd library has
 been installed?
 
 Todd
 -- 
 
 
 
 
 

---
-
 
 
 
 
 
 Is there a way to check within an application if the gd library has
been
 
 
 installed?
 
 
 Todd
 
 -- 
 
 
 
 
 
 
 
 

 -- 








 Wouldn't I then have to scan the results?  I use phpinfo() to checks the
client's installation, but I would like to do it within the app.

 Todd

 Esteban Fernandez wrote:

 ?php phpinfo(); ?

 Todd Cary [EMAIL PROTECTED] escribió en el mensaje
 news:[EMAIL PROTECTED]
   Is there a way to check within an application if the gd library has
 been installed?

 Todd
 -- 



 --
--
 


   Is there a way to check within an application if the gd library has
been
 installed?
   Todd

 -- 






 -- 





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



Re: [PHP] Is gd present?

2003-06-05 Thread Esteban Fernandez
Also works... :)

?php
$array = get_loaded_extensions();
for ($i=0;$i=count($array);$i++) {
if (gd == $array[$i])  $installed = true;
else $installed = false;
}
if ($installed = true) echo yeah... GD installed;
else echo shit.. GD not installed.;
?

Regards.
EF.


Cpt John W. Holmes [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
  Is there a way to check within an application if the gd library has
  been installed?

 Maybe get_loaded_extensions() 

 ---John Holmes...



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



Re: [PHP] Best method to detect Apache, IIS, or CLI?

2003-06-05 Thread Esteban Fernandez
That are Apache Variables, in IIS the variables are diferent. So i don't
believe that answer the question.

Chris Hayes [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 dunno what's best, test on each server what values you can find in
$_SERVER
 (PHP=4.10),

 maybe
 $_SERVER[SERVER_SIGNATURE]
 or
 $_SERVER[SERVER_SOFTWARE]


 At 17:07 4-6-03, you wrote:
 Hi,
 what is the best method to detect if a php script is started
 into Apache, IIS or in a CLI script?
 
 I've found several issues, but I am not sure to be right.
 
 * CLI:
 
 - PHP_SELF='-'
 - var $argv, $argc exist
 - constant STDIN, STDOUT, STDERR exist
 
 * http server:
 
 - PHP_SELF != '-' for ever
 - $argv, $argc not found (in my apache install)
 - constant STDIN, STDOUT, STDERR not exist, but they can be defined by
 someone else
 
 * But I don't know between Apache and IIS.
 
 Thanks
 Jean-Pierre




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



Re: [PHP] Is gd present?

2003-06-05 Thread Esteban Fernandez
Everyday i learn some new :)

Svein Larsen [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
$gd_loaded = (extension_loaded('gd'))?1:0;

Then you can use if ($gd_loaded) later in your code.

- Svein

 -Original Message-
 From: Esteban Fernandez [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 04, 2003 17:09
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Is gd present?


 Also works... :)

 ?php
 $array = get_loaded_extensions();
 for ($i=0;$i=count($array);$i++) {
 if (gd == $array[$i])  $installed = true;
 else $installed = false;
 }
 if ($installed = true) echo yeah... GD installed;
 else echo shit.. GD not installed.;
 ?

 Regards.
 EF.


 Cpt John W. Holmes [EMAIL PROTECTED] escribió en
 el mensaje news:[EMAIL PROTECTED]
   Is there a way to check within an application if the gd library
   has been installed?
 
  Maybe get_loaded_extensions() 
 
  ---John Holmes...



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





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



[PHP] Re: multi-part upload fails in some php environments but not others

2003-06-05 Thread Esteban Fernandez
What is the error, Time Out ?, File too big?, or what ?... It will be help
to us know it, to help you.


Kendal [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 I authored an audio player/recorder that saves the audio data to a PHP
 server instead of to the local drive.

 See: http://www.freedomaudio.com/examples/recorder102/

 Unfortunately the method does not work in some PHP environments. I am
 confident that the applet's audio upload functions reliably, since the
 method is reliable on some PHP servers like that at freedomaudio.com.
 However, in other PHP environments the audio data always gets lost
 somewhere between the applet's POST and PHP's storing the file on the
server.

 I believe the problem arises somewhere within the following snippet of
script:

 if(is_uploaded_file($file)) {
 $success = move_uploaded_file($file,$audioFileDirectory.$fileID..ogg);
 }

 This script is part of the freedomrecorder.php file that is included
within
 the downloadable example here:
 http://www.freedomaudio.com/examples/recorder102/freedomrecorder.zip

 The PHP environment at freedomaudio.com can be seen here:
 http://www.freedomaudio.com/phpinfo.php

 I don't have enough in-depth knowledge of PHP to know how to resolve this.
 I would truely appreciate it if anyone could enlighten me as to how to fix
 this problem! I would be happy to answer any questions and help with any
 debugging that may be necessary.

 TIA,
 Kendal




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



[PHP] Re: HTML and PHP

2003-06-05 Thread Esteban Fernandez
If you want separate the code for the design, maybe u want use Smarty. The
other is put all in just on ?php ?, and use the echo or printf sentences.

EF.


Christian Ista [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 Hello,

 Look the code below. Is it an obligation to multiply the number of ?php
?.
 There is no other way ? not possible to use only an open php tag (?php)
and
 a clode php tag (?)  ?

 Christian,


 ?php
switch($constant_lastupdate[$i][3]){
case '1' :?
 img src=design/logo_windows.gif alt= width=12 height=10
 border=0
 ?php
 break;
case '2' :?
 img src=design/logo_mac.gif alt= width=10 height=10
border=0
 ?php
 break;
case '3' :?
 img src=design/logo_linux.gif alt= width=9 height=11
 border=0
 ?php
 break;
}
   ?





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



[PHP] Re: Calling HTML pages

2003-06-05 Thread Esteban Fernandez
header(Locarion:: http://www.somedomain.com/some_web_page.html;);

EF.

Daniel J. Rychlik [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
I was looking for a function that will take you to a html page.  For
instance.

I have a function that checks for !empty values in $_POST;  What I would
like to do is if the field is empty then

go back to the form.  I have a function

function display_error ($err) {

echo $err;  # I need to redirect or automatically go to the previous
page.

}

Is their a PHP function already written that does this ?

TIA
Daniel



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



[PHP] Re: Calling HTML pages

2003-06-05 Thread Esteban Fernandez
It's Location

EF.

Esteban Fernandez [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 header(Locarion:: http://www.somedomain.com/some_web_page.html;);

 EF.

 Daniel J. Rychlik [EMAIL PROTECTED] escribió en el mensaje
 news:[EMAIL PROTECTED]
 I was looking for a function that will take you to a html page.  For
 instance.

 I have a function that checks for !empty values in $_POST;  What I would
 like to do is if the field is empty then

 go back to the form.  I have a function

 function display_error ($err) {

 echo $err;  # I need to redirect or automatically go to the previous
 page.

 }

 Is their a PHP function already written that does this ?

 TIA
 Daniel





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



[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Esteban Fernández
When you recivied that error ?, in a form ?, if is in a Form just put in the
top of .php files this code

$HTTP_GET_VARS[variable2];
$HTTP_GET_VARS[variable3];

Of course if you send with other method (post) change the GET for POST

$HTTP_POS_VARS[variable2];
$HTTP_POS_VARS[variable3];

Regards.

Esteban.



ØYstein HåLand [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 None of my old scripts worx nowadays and the most common error message is
 'undefined variable'. What is the best/simplest way to work around this
 situation?
 if !isset($myvar) {
 do this
 blah blah
 }
 ?





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



[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Esteban Fernandez
Then i don't understand you problem.

ØYstein HåLand [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 I'm not sure what you mean. To give ONE example:
 Earlier I could use this code on top of every page:
 if  ($printout != yeah) { include(header.php); }
 This code gives an error today. The variable $printout is set if the
visitor
 choose to click on the 'print_page_image', otherwise the variable has no
 value.

 Esteban FernáNdez [EMAIL PROTECTED] skrev i meddelandet
 news:[EMAIL PROTECTED]
  When you recivied that error ?, in a form ?, if is in a Form just put in
 the
  top of .php files this code
 
  $HTTP_GET_VARS[variable2];
  $HTTP_GET_VARS[variable3];
 
  Of course if you send with other method (post) change the GET for POST
 
  $HTTP_POS_VARS[variable2];
  $HTTP_POS_VARS[variable3];
 
  Regards.
 
  Esteban.
 
 
 
  ØYstein HåLand [EMAIL PROTECTED] escribió en el mensaje
  news:[EMAIL PROTECTED]
   None of my old scripts worx nowadays and the most common error message
 is
   'undefined variable'. What is the best/simplest way to work around
this
   situation?
   if !isset($myvar) {
   do this
   blah blah
   }
   ?
  
  
 
 





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



[PHP] Re: php and mcrypt on windows

2003-06-04 Thread Esteban Fernandez
Just uncomment the extension php_mcrypt.dll from the php.ini file and
restart the server.


Gilberto Garcia Jr. [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
How I can use php and mcrypt on windows? I mean. What I have to do to turn
php able to use mcrypt function on windows.

Thanks



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



[PHP] sql: unable to save result set

2003-04-03 Thread Johannes Esteban Kalunka
Hi!
since upgrading my mysql server from 3.23.xx to 4.0.12 the following
error appears on all my php pages (that make use mysql, of course): php
version used : 4.1.2
 
Warning: MySQL: Unable to save result set in ...
 
does anybody know why? 
 
thanks in advance for any hints!
 
Johannes E Kalunka




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