Re: [Ovillo] [OT] agregar enlace

2011-12-12 Por tema Fabricio Holguin

Saludos, me dijerón que este grupo es para CSS 

La primera y última vez que hice una pregunta de PHP, me mandarón que 
escribiera aquí: "PHP - Programación" 


Thanks, 
Fabricio
http://hlgns.net/
http://hlgn.net/
 
Remote Support
http://hlgn.showmypc.com/ 
 





> Date: Mon, 12 Dec 2011 15:49:17 +0100
> From: m...@palaueb.com
> To: ovillo@lists.ovillo.org
> Subject: Re: [Ovillo] [OT] agregar enlace
> 
> porque tienes que poner un ? en lugar de una almoadilla #.
> 
> saludos
> Marc
> 
> 
> 
> Al 12/12/11 15:19, En/na ramirex ha escrit:
> > Saludos...
> >
> > tengo en mi navegador por ejemplo...
> >
> > http://ejemplo.com?login=usuario=&admin=loquesea
> >
> > y desde esta pagina pongo un enlace
> >
> > http://ejemplo.com?login=usuario=&admin=loquesea&aumto=estoesloquequieroaumentar
> >
> > la forma que estoy haciendo es en php
> >
> > Farmacias
> > me genera el link pero me adiciona también el #, como hago para que no
> >   me aparezca el #..
> >
> > gracias por los aportes...
> >
> > pd. abstenerse las personas que digan que esto no pertenece a la
> > lista, por ello tiene el titulo de off topic
> 
> ___
> Lista de distribución Ovillo
> Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
> Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
> http://lists.ovillo.org/mailman/listinfo/ovillo
  
___
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
http://lists.ovillo.org/mailman/listinfo/ovillo


Re: [Ovillo] Closing a file (PHP)

2011-12-05 Por tema Fabricio Holguin

Gracias Jairo, bien agradecido... 

Thanks, 
Fabricio
http://hlgns.net/
http://hlgn.net/
 
Remote Support
http://hlgn.showmypc.com/ 
 





> From: jairo.oc...@gmail.com
> Date: Mon, 5 Dec 2011 12:16:53 +0100
> To: ovillo@lists.ovillo.org
> Subject: Re: [Ovillo] Closing a file (PHP)
> 
> Escribe a "PHP - Programación" ,
> 
> 
> --
> 
> Jairo Ochoa
> 
> Dropbox: Almacenamiento gratis / Free online backup
> https://www.dropbox.com/referrals/NTg2Njc1MTg5
> 
> 
> 
> El 5 de diciembre de 2011 03:10, MIguel Flores Franco  > escribió:
> 
> > Pero en esta lista no se tratan temas de programación PHP
> >
> > Miguel
> >
> >
> > -Mensaje original-----
> > De: ovillo-boun...@lists.ovillo.org [mailto:
> > ovillo-boun...@lists.ovillo.org]
> > En nombre de Fabricio Holguin
> > Enviado el: domingo, 04 de diciembre de 2011 01:20 p.m.
> > Para: ovillo@lists.ovillo.org
> > Asunto: Re: [Ovillo] Closing a file (PHP)
> >
> >
> >
> >
> >
> >
> > Hola Miguel,
> >
> > Cuando corro la página en el servidor el resultado es un error
> >
> > Parse error: syntax error, unexpected T_NS_SEPARATOR in
> > c:\apache2.2\htdocs\robauto\processorder.php on line 76
> >
> > en el código la linea 76 viene siendo ."\t. $address."\n";
> > me habla de syntax error ¿acaso escribí algo de más o me falta algo?
> >
> > Gracias,
> >
> > Fabricio
> > http://hlgns.net/
> > http://hlgn.net/
> >
> > Remote Support
> > http://hlgn.showmypc.com/
> >
> >
> >
> >
> >
> >
> > > From: mikerfra...@gmail.com
> > > To: ovillo@lists.ovillo.org
> > > Date: Sat, 3 Dec 2011 02:24:46 -0500
> > > Subject: Re: [Ovillo] Closing a file (PHP)
> > >
> > > Hola!
> > > y ¿que es lo que deseas, una crítica o qué?
> > > no indicas que ayuda requieres, especifica mejor-
> > >
> > > Miguel
> > >
> > > Miguel Flores Franco
> > > Graphic Design & Standard based Web Design
> > > http://pe.linkedin.com/in/mikersson
> > > http://www.pixelperu.net
> > > Phone +51 991 592 446 (Perú) • +48 28141587 (Denmark)
> > >
> > >
> > > -Mensaje original-
> > > De: ovillo-boun...@lists.ovillo.org
> > > [mailto:ovillo-boun...@lists.ovillo.org]
> > > En nombre de Fabricio Holguin
> > > Enviado el: viernes, 02 de diciembre de 2011 06:29 p.m.
> > > Para: ovillo@lists.ovillo.org
> > > Asunto: [Ovillo] Closing a file (PHP)
> > >
> > >
> > >
> > >
> > >
> > >
> > > Saludos,
> > >
> > >
> > >
> > > Por este medio quisiera extender un saludo a todos y desear si me
> > > pueden ayudar con un ejemplo que he trabajado por algunas semanas y no
> > > me da el resultado deseado.  Talves alguien tenga un poco mas de
> > conocimiento.
> > >  La compañia es un taller de autos.  Gracias por antemano.
> > >
> > >
> > >
> > > El código es el siguiente:
> > >
> > >
> > >
> > >
> > >
> > > 
> > >
> > >
> > >
> > > 
> > >
> > >
> > >
> > > Roberto's Auto Parts - Order Results
> > >
> > >
> > >
> > > 
> > >
> > >
> > >
> > > 
> > >
> > >
> > >
> > > Roberto's Auto Parts
> > >
> > >
> > >
> > > Order Results
> > >
> > >
> > >
> > >  > >
> > >
> > >
> > > echo "Order processed at ".date('H:i, jS F Y')."";
> > >
> > >
> > >
> > > echo "Your order is as follows: ";
> > >
> > >
> > >
> > > $totalqty = 0;
> > >
> > > $totalqty = $tireqty + $oilqty + $sparkqty;
> > >
> > >
> > >
> > > echo "Items ordered: ".$totalqty."";
> > >
> > >
> > >
> > > if ($totalqty == 0) {
> > >
> > >
> > >
> > >echo "You did not order anything on the previous page!";
> > >
> > >
> > >
> > > } else {
> > >
> > >
> > >
> > > if ($tireqty > 0) {
> > >
> > >echo $tireqty." tires";
> >

Re: [Ovillo] Closing a file (PHP)

2011-12-04 Por tema Fabricio Holguin

AHA!!! Encontré el problema en el código consiste en que me falta una (") en la 
nueva línea... en este caso seria ."\t". $address."\n";

Thanks, 
Fabricio
http://hlgns.net/
http://hlgn.net/
 
Remote Support
http://hlgn.showmypc.com/ 
 





> From: fabric...@hlgns.net
> To: ovillo@lists.ovillo.org
> Date: Sun, 4 Dec 2011 18:20:15 +
> Subject: Re: [Ovillo] Closing a file (PHP)
> 
> 
> 
> 
> 
> 
> Hola Miguel,
> 
> Cuando corro la página en el servidor el resultado es un error
> 
> Parse error: syntax error, unexpected T_NS_SEPARATOR in 
> c:\apache2.2\htdocs\robauto\processorder.php on line 76
> 
> en el código la linea 76 viene siendo ."\t. $address."\n"; me 
> habla de syntax error ¿acaso escribí algo de más o me falta algo?
> 
> Gracias, 
> 
> Fabricio
> http://hlgns.net/
> http://hlgn.net/
>  
> Remote Support
> http://hlgn.showmypc.com/ 
>  
> 
> 
> 
> 
> 
> > From: mikerfra...@gmail.com
> > To: ovillo@lists.ovillo.org
> > Date: Sat, 3 Dec 2011 02:24:46 -0500
> > Subject: Re: [Ovillo] Closing a file (PHP)
> > 
> > Hola!
> > y ¿que es lo que deseas, una crítica o qué?
> > no indicas que ayuda requieres, especifica mejor-
> > 
> > Miguel
> > 
> > Miguel Flores Franco
> > Graphic Design & Standard based Web Design
> > http://pe.linkedin.com/in/mikersson
> > http://www.pixelperu.net
> > Phone +51 991 592 446 (Perú) • +48 28141587 (Denmark)
> > 
> > 
> > -Mensaje original-
> > De: ovillo-boun...@lists.ovillo.org [mailto:ovillo-boun...@lists.ovillo.org]
> > En nombre de Fabricio Holguin
> > Enviado el: viernes, 02 de diciembre de 2011 06:29 p.m.
> > Para: ovillo@lists.ovillo.org
> > Asunto: [Ovillo] Closing a file (PHP)
> > 
> > 
> > 
> > 
> > 
> > 
> > Saludos,
> > 
> > 
> > 
> > Por este medio quisiera extender un saludo a todos y desear si me pueden
> > ayudar con un ejemplo que he trabajado por algunas semanas y no me da el
> > resultado deseado.  Talves alguien tenga un poco mas de conocimiento.
> >  La compañia es un taller de autos.  Gracias por antemano.
> > 
> > 
> > 
> > El código es el siguiente:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Roberto's Auto Parts - Order Results
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Roberto's Auto Parts
> > 
> > 
> > 
> > Order Results
> > 
> > 
> > 
> >  > 
> > 
> > 
> > echo "Order processed at ".date('H:i, jS F Y').""; 
> > 
> > 
> > 
> > echo "Your order is as follows: ";
> > 
> > 
> > 
> > $totalqty = 0;
> > 
> > $totalqty = $tireqty + $oilqty + $sparkqty; 
> > 
> > 
> > 
> > echo "Items ordered: ".$totalqty.""; 
> > 
> > 
> > 
> > if ($totalqty == 0) {
> > 
> > 
> > 
> >echo "You did not order anything on the previous page!";
> > 
> > 
> > 
> > } else {
> > 
> > 
> > 
> > if ($tireqty > 0) {
> > 
> >echo $tireqty." tires";
> > 
> > }
> > 
> > 
> > 
> > if ($oilqty > 0) {
> > 
> >echo $oilqty." bottles of oil";
> > 
> > }
> > 
> > 
> > 
> > if ($sparkqty > 0) {
> > 
> >echo $sparkqty." spark plugs";
> > 
> > }
> > 
> > 
> > 
> > }
> > 
> > 
> > 
> > 
> > 
> > $totalamount = 0.00;  
> > 
> > 
> > 
> > define('TIREPRICE', 100);
> > 
> > define('OILPRICE', 10);
> > 
> > define('SPARKPRICE', 4);
> > 
> > 
> > 
> > $totalamount = $tireqty * TIREPRICE 
> > 
> >  + $oilqty * OILPRICE 
> > 
> >  + $sparkqty * SPARKPRICE;  
> > 
> > 
> > 
> > $totalamount=number_format($totalamount, 2, '.', '');
> > 
> > 
> > 
> > echo "Total of order is $".$totalamount."";
> > 
> > echo "Address to ship to is ".$address."";
> > 
> > 
> > 
> > $outputstring = $date."\t".$tireqty." tires \t".$oilqty.&qu

Re: [Ovillo] Closing a file (PHP)

2011-12-04 Por tema Fabricio Holguin





Hola Miguel,

Cuando corro la página en el servidor el resultado es un error

Parse error: syntax error, unexpected T_NS_SEPARATOR in 
c:\apache2.2\htdocs\robauto\processorder.php on line 76

en el código la linea 76 viene siendo ."\t. $address."\n"; me 
habla de syntax error ¿acaso escribí algo de más o me falta algo?

Gracias, 

Fabricio
http://hlgns.net/
http://hlgn.net/
 
Remote Support
http://hlgn.showmypc.com/ 
 





> From: mikerfra...@gmail.com
> To: ovillo@lists.ovillo.org
> Date: Sat, 3 Dec 2011 02:24:46 -0500
> Subject: Re: [Ovillo] Closing a file (PHP)
> 
> Hola!
> y ¿que es lo que deseas, una crítica o qué?
> no indicas que ayuda requieres, especifica mejor-
> 
> Miguel
> 
> Miguel Flores Franco
> Graphic Design & Standard based Web Design
> http://pe.linkedin.com/in/mikersson
> http://www.pixelperu.net
> Phone +51 991 592 446 (Perú) • +48 28141587 (Denmark)
> 
> 
> -Mensaje original-
> De: ovillo-boun...@lists.ovillo.org [mailto:ovillo-boun...@lists.ovillo.org]
> En nombre de Fabricio Holguin
> Enviado el: viernes, 02 de diciembre de 2011 06:29 p.m.
> Para: ovillo@lists.ovillo.org
> Asunto: [Ovillo] Closing a file (PHP)
> 
> 
> 
> 
> 
> 
> Saludos,
> 
> 
> 
> Por este medio quisiera extender un saludo a todos y desear si me pueden
> ayudar con un ejemplo que he trabajado por algunas semanas y no me da el
> resultado deseado.  Talves alguien tenga un poco mas de conocimiento.
>  La compañia es un taller de autos.  Gracias por antemano.
> 
> 
> 
> El código es el siguiente:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Roberto's Auto Parts - Order Results
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Roberto's Auto Parts
> 
> 
> 
> Order Results
> 
> 
> 
>  
> 
> 
> echo "Order processed at ".date('H:i, jS F Y').""; 
> 
> 
> 
> echo "Your order is as follows: ";
> 
> 
> 
> $totalqty = 0;
> 
> $totalqty = $tireqty + $oilqty + $sparkqty; 
> 
> 
> 
> echo "Items ordered: ".$totalqty.""; 
> 
> 
> 
> if ($totalqty == 0) {
> 
> 
> 
>echo "You did not order anything on the previous page!";
> 
> 
> 
> } else {
> 
> 
> 
> if ($tireqty > 0) {
> 
>echo $tireqty." tires";
> 
> }
> 
> 
> 
> if ($oilqty > 0) {
> 
>echo $oilqty." bottles of oil";
> 
> }
> 
> 
> 
> if ($sparkqty > 0) {
> 
>echo $sparkqty." spark plugs";
> 
> }
> 
> 
> 
> }
> 
> 
> 
> 
> 
> $totalamount = 0.00;  
> 
> 
> 
> define('TIREPRICE', 100);
> 
> define('OILPRICE', 10);
> 
> define('SPARKPRICE', 4);
> 
> 
> 
> $totalamount = $tireqty * TIREPRICE 
> 
>  + $oilqty * OILPRICE 
> 
>  + $sparkqty * SPARKPRICE;  
> 
> 
> 
> $totalamount=number_format($totalamount, 2, '.', '');
> 
> 
> 
> echo "Total of order is $".$totalamount."";
> 
> echo "Address to ship to is ".$address."";
> 
> 
> 
> $outputstring = $date."\t".$tireqty." tires \t".$oilqty." oil\t"
> 
> .$sparkqty." spark plugs\t\$".$totalamount
> 
> ."\t. $address."\n"; (posible error talves!)
> 
> 
> 
> //open file for appending
> 
> @ $fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'ab');
> 
> 
> 
> flock($fp, LOCK_EX);
> 
> 
> 
> if (!$fp) {
> 
> echo " Your order could not be processed at this time.
> 
>  Please try again later. __ Information
> from ESET Smart Security, version of virus signature database 6679
> (20111202) __The message was checked by ESET Smart
> Security.http://www.eset.com";>http://www.eset.com
> __ Information from ESET Smart Security, version of virus
> signature database 6679 (20111202) __The message was checked
> by ESET Smart Security. HREF="http://www.eset.com";>http://www.eset.com ";
> 
> exit;
> 
> }
> 
> 
> 
> fwrite($fp, $outputstring, strlen($outputstring));
> 
> flock($fp, LOCK_UN);
> 
> fclose($fp);
> 
> 
> 
> echo "Order written.";  
> 
> 
> 
> ?>
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks, 
> Fabricio
> http://hlgns.net/
> http://hlgn.net/
>  
> Remote Support
> http://hlgn.showmypc.com/ 
>  
> 
> 
> 
> 
> 
> ___
> Lista de distribución Ovillo
> Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
> Puedes modificar tus datos o desuscribirte en la siguiente dirección:
> http://lists.ovillo.org/mailman/listinfo/ovillo
> 
> ___
> Lista de distribución Ovillo
> Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
> Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
> http://lists.ovillo.org/mailman/listinfo/ovillo

  
___
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
http://lists.ovillo.org/mailman/listinfo/ovillo


[Ovillo] Closing a file (PHP)

2011-12-02 Por tema Fabricio Holguin





Saludos,



Por este medio quisiera extender un saludo a todos y desear si me pueden
 ayudar con un ejemplo que he trabajado por algunas semanas y no me da 
el resultado deseado.  Talves alguien tenga un poco mas de conocimiento.
 La compañia es un taller de autos.  Gracias por antemano.



El código es el siguiente:













Roberto's Auto Parts - Order Results











Roberto's Auto Parts



Order Results



Order processed at ".date('H:i, jS F Y').""; 



echo "Your order is as follows: ";



$totalqty = 0;

$totalqty = $tireqty + $oilqty + $sparkqty; 



echo "Items ordered: ".$totalqty.""; 



if ($totalqty == 0) {



   echo "You did not order anything on the previous page!";



} else {



if ($tireqty > 0) {

   echo $tireqty." tires";

}



if ($oilqty > 0) {

   echo $oilqty." bottles of oil";

}



if ($sparkqty > 0) {

   echo $sparkqty." spark plugs";

}



}





$totalamount = 0.00;  



define('TIREPRICE', 100);

define('OILPRICE', 10);

define('SPARKPRICE', 4);



$totalamount = $tireqty * TIREPRICE 

 + $oilqty * OILPRICE 

 + $sparkqty * SPARKPRICE;  



$totalamount=number_format($totalamount, 2, '.', '');



echo "Total of order is $".$totalamount."";

echo "Address to ship to is ".$address."";



$outputstring = $date."\t".$tireqty." tires \t".$oilqty." oil\t"

.$sparkqty." spark plugs\t\$".$totalamount

."\t. $address."\n"; (posible error talves!)



//open file for appending

@ $fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt", 'ab');



flock($fp, LOCK_EX);



if (!$fp) {

echo " Your order could not be processed at this time.

 Please try again later.";

exit;

}



fwrite($fp, $outputstring, strlen($outputstring));

flock($fp, LOCK_UN);

fclose($fp);



echo "Order written.";  



?>








Thanks, 
Fabricio
http://hlgns.net/
http://hlgn.net/
 
Remote Support
http://hlgn.showmypc.com/ 
 




  
___
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
http://lists.ovillo.org/mailman/listinfo/ovillo