[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: 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
>
> 
> 
> Creación de una Base de Datos
> 
> 
>  Creando Base de Datos
>
>   $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 (" Base de Datos  size=\"5\">$nueva_base Creada Satisfactoriamente!!");
>  $db_list = mysql_list_dbs($connection);
>  $indice=0;
>
>  while($row = mysql_fetch_array($db_list)){
>  $bases[$indice]=$row[0];
>  $indice++;
>  }
>
>  mysql_close($connection);
>
>  echo " Las Bases de Datos Disponibles son:
> ";
>  for($aux = 0; $aux < $indice; $aux++) {
>  echo " $bases[$aux]";
>  }
>  }else{
>  print ("Ërror Creando la Base de Datos: ". mysql_error());
>  }
> ?>
>
>  Volver a  href="http://localhost/administrador.htm";>Administrador de Bases de
> Datos
>  Volver a http://localhost/nueva_base.htm";>Crear
> un Base de Datos
>
> 
> 
>
>
>
>



-- 
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: 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] Re: Is "gd" present?

2003-06-04 Thread Esteban Fernandez


"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.



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:
>
> >
> >
> >"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:
>
> 
>
> "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... :)



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... :)
>
>  $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 , 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 .
> There is no other way ? not possible to use only an open php tag ( a clode php tag (?>)  ?
>
> Christian,
>
>
> switch($constant_lastupdate[$i][3]){
>case '1' :?>
>  border="0">
>  break;
>case '2' :?>
> 
>  break;
>case '3' :?>
>  border="0">
>  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: header(); Issue

2003-06-19 Thread Esteban Fernandez
Try

header("Location: ".$Relative."/outstanding.php?pdd=1&pddid=".$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=1&pddid=$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: 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: 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