Re: [PHP] Programacion orientada a objetos

2007-01-31 Thread Juan Pablo Herrera

HI Jairo!
This is a list only in english. Please, check other list in spanish.

Esta es una lista en inglés. Por favor, verificá otras listas en español.

JP

On 1/31/07, Jairo Torres <[EMAIL PROTECTED]> wrote:

Señores buenas tardes.

Tienen un buen ejemplo o manual para programación orientada a objetos en PHP 
con MySql.

Muchas gracias.



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



Re: [PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> Juan Pablo Herrera wrote:
> > Thanks Jasper,
> > well, i need make a explode of results of the ping. The idea is check
> > a host and when the host don´ t response send a email.
> > I don't explode the result of the ping.
> 
> If it was me, I'd try opening a socket connection to the host instead,
> and check to see if you can connect or not. Whether or not that is
> suitable to your application I don't know...
> 
> Jasper
> 

Hi!
I did following script:



It's very simple, but i think that is working. I will add other options.

JP

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



Re: [PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> Juan Pablo Herrera wrote:
> > Hi all!
> > I have following script:
> > $comando = system('ping 168.192.0.1', $nn);
> > echo $nn;
> > Well, i need that only show the first ten lines of the ping and kill
> > the process.
> > How can i make it?
> 
> If I understand your question correctly...
> 
> $comando = system('ping -c 10 168.192.0.1', $nn);
> 
> Jasper
>

Thanks Jasper,
well, i need make a explode of results of the ping. The idea is check
a host and when the host don´ t response send a email.
I don't explode the result of the ping.

Thanks.,
JP

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



[PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
Hi all!
I have following script:
$comando = system('ping 168.192.0.1', $nn);
echo $nn;
Well, i need that only show the first ten lines of the ping and kill
the process.
How can i make it?

Regards,
JP

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



[PHP] Exec don't work

2005-05-10 Thread Juan Pablo Herrera
Hi!
I using php version 4.3.10. I have a script that used the exec
function. Well it script only work from shell, but not work form web
browser.
My php.ini:
safe_mode   Off Off
safe_mode_exec_dir  no valueno value
Have somebody experience in this problem?
Regards,
JP

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



[PHP] Test Send

2005-03-25 Thread Juan Pablo Herrera
I can't send email. Right?

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



[PHP] PHP4 and PHP5 in virtual Host

2005-03-25 Thread Juan Pablo Herrera
Hi!
I have apache, php4 and php5 on my server.
I use virtual host in this server. The virtual host have or not PHP4 using:
php_admin_flag engine off/on in apache2.conf
How can i use PHP5 or PHP4 or both?
PHP4 is running as module and PHP5 is running as cgi.

Regards,
JP

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



[PHP] PHP4 and PHP5 in virtual Host

2005-03-24 Thread Juan Pablo Herrera
Hi!
I have apache, php4 and php5 on my server.
I use virtual host in this server. The virtual host have or not PHP4 using:
php_admin_flag engine off/on in apache2.conf
How can i use PHP5 or PHP4 or both?
PHP4 is running as module and PHP5 is running as cgi.

Regards,
JP

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



Re: [PHP] Fatal error

2004-10-16 Thread Juan Pablo Herrera
In your script use set_time_limit(0), and look
http://ar2.php.net/manual/en/function.set-time-limit.php for understand
the function.
Regards,
JP

> Dear members,I get an error,What does mean my error? :
> Fatal error: Maximum execution time of 30 seconds
> exceeded in /var/www/html/votting/vote_implement.php
> on line 8
>
> =
> -DIGITAL  SIGNATURE---
> ///Mohsen Pahlevanzadeh
> Network administrator  & programmer
>  My home phone is: +98213810146
> My email address is
>  m_pahlevanzadeh at yahoo dot com
> My website is: http://webnegar.net
> 
>

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



[PHP] intenger

2004-10-14 Thread Juan Pablo Herrera
Please, i need output a intenger, what function can i use for this?.
Print?, echo?

Thank you.
JP

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



[PHP] Memory Usage

2004-10-04 Thread Juan Pablo Herrera
Hi!
I need management the use of the memory when a php script is execute. How
can i do it?.I know mysql_free_result for free all memory associated with the result,
is it all?.
Regards,
JP

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



Re: [PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
sorry, my cuestion is about the construction of the job file with php.
I send parameters via POST: day, hours, minute, sentence for execuite with
cron. This is cached for a php file that make the job file. Well, my
problem is make this php file.I think to use file() for this, but maybe somebody think 
other idea.

Regards,
JP

> Jay Blanchard wrote:
>> [snip]
>> I need make a cron file, for example a .job file:
>> #mi  hodimeseq  jobcomment 45
>>  11**  0-5 php -q /home/test/test.php  # Make backup
>> How can make it?.
>> [/snip]
>>
>> Type crontab -e and the cron file will be openedunless you're on a
>> Windows machine
> in both cases, this is the wrong list to ask this.
>

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



[PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
Hi!
I need make a cron file, for example a .job file:
#mi  hodimeseq  jobcomment
45   11**  0-5 php -q /home/test/test.php  # Make backup
How can make it?.

Regards.
JP

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



Re: [PHP] Using '

2004-09-22 Thread Juan Pablo Herrera
Hi!
I solved using adslashes in $html and replace ' with ".

Thanks!!
Regards!

JP



> Just remember to make sure that the closing EOD; is flush with the left
> margin an that there are NO spaces and NO other characters to the left
> of it or PHP will give you a PARSE error
>
>
> On Wed, 22 Sep 2004 11:56:54 -0400, François Moreau
> <[EMAIL PROTECTED]> wrote:
>> Hi Juan,
>>You might consider using the Heredoc syntax, as presented here :
>> http://www.php.net/manual/en/
>> language.types.string.php#language.types.string.syntax.heredoc
>>
>> Your code snippet would look like this and do exactly what you had
>> intended :
>>
>> $html = <<>    
>>YOUR HTML
>>
>> EOD;
>>
>> François
>>
>> Le 04-09-22, à 11:55, Juan Pablo Herrera a écrit :
>>
>>
>>
>> > Hi!
>> > i have:
>> > $html = '
>> >  
>> >MY HTML
>> >  
>> >  ';
>> > Inside of my html i used ', this produced a parse error, how can i
>> > solved
>> > it?.
>> > Regards,
>> > JP
>> >
>> >
>> >
>> > --
>> > 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 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] Using '

2004-09-22 Thread Juan Pablo Herrera
Hi!
i have:
$html = '
 
   MY HTML
 
 ';
Inside of my html i used ', this produced a parse error, how can i solved
it?.
Regards,
JP



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



[PHP] ZIP

2004-09-14 Thread Juan Pablo Herrera
HI!
I need catch many files in my server and make a zip file. In pear i not
see nothing. I think use exec for contruction a zip file. Any idea?
Regards,
JP

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



Re: [PHP] Re: Load data and Insert

2004-08-11 Thread Juan Pablo Herrera
> "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> "Juan Pablo Herrera" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> > Hi!
>> > i need do two querys in one.
>> > First query is a load data and the second query is insert into. My
>> > idea is to concatenate with "and", but i'not know.
>> > Is it possible?
>> >
>> > Regards,
>> > Juan
>>
>> Please specify a bit more clearly *what* data you want to load *from
> where*
>> and insert into *what*. Then we may be able to help you.
>>
>> Regards, Torsten Roehr
>
> If you refer to MySQL you can use the INSERT ... SELECT syntax to do
> this in one query. See here:
> http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html
>
> Regards, Torsten Roehr
>

It's OK, but i need concatenate "load data" with "insert".
I have a file *.cvs that used three fields (a,b,c), my database have four
fields(a,b,c,d). The "insert" have the data for last field.
Regards,
Juan

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



[PHP] Load data and Insert

2004-08-11 Thread Juan Pablo Herrera
Hi!
i need do two querys in one.
First query is a load data and the second query is insert into.
My idea is to concatenate with "and", but i'not know.
Is it possible?

Regards,
Juan

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



[PHP] Function Mail

2004-08-07 Thread Juan Pablo Herrera
Hi everybody,
I have a cuestion about the features on function mail. I think that it
send the email one to one address. Is it ok?.
Regards,
Juan Pablo

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



Re: [PHP] sending attachments

2004-07-07 Thread Juan Pablo Herrera
Hi!
I'm testing HTML Mime Mail Class, it's really complete. Features:
- text
- text + attached
- html
- html + attached
- html + Embeds

Who has experience with this class?

Regards,
Juan


> This class
> http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=614 it's
> good., but i can't embed Image in message body, i used function
> embed_image.Who have experience in this class?.
>
> Regards,
> Juan
>
>
>> Hi!
>> The class it ok.
>> How can I put a GIF in Base64 in the message body?
>>
>> Regards,
>> Juan
>>
>>> - Original Message -
>>> From: "Curlys" <[EMAIL PROTECTED]>
>>> To: "PHP" <[EMAIL PROTECTED]>
>>> Sent: Wednesday, July 07, 2004 1:04 PM
>>> Subject: [PHP] sending attachments
>>>
>>>
 can some body help me to send an email attachment ( a log file )
 from php
>>> ?
 Actaually i need a real guide plz
>>>
>>> I used this e-mail class some time ago:
>>>
>>> http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=614
>>>
>>>
>>> regards,
>>> Ewout
>>>
>>> --
>>> 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 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



Re: [PHP] sending attachments

2004-07-07 Thread Juan Pablo Herrera
Thix class http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=614
it's good., but i can't embed Image in message body, i used function
embed_image.Who have experience in this class?.

Regards,
Juan


> Hi!
> The class it ok.
> How can I put a GIF in Base64 in the message body?
>
> Regards,
> Juan
>
>> - Original Message -
>> From: "Curlys" <[EMAIL PROTECTED]>
>> To: "PHP" <[EMAIL PROTECTED]>
>> Sent: Wednesday, July 07, 2004 1:04 PM
>> Subject: [PHP] sending attachments
>>
>>
>>> can some body help me to send an email attachment ( a log file ) from
>>> php
>> ?
>>> Actaually i need a real guide plz
>>
>> I used this e-mail class some time ago:
>>
>> http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=614
>>
>>
>> regards,
>> Ewout
>>
>> --
>> 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sending attachments

2004-07-07 Thread Juan Pablo Herrera
Hi!
The class it ok.
How can I put a GIF in Base64 in the message body?

Regards,
Juan

> - Original Message -
> From: "Curlys" <[EMAIL PROTECTED]>
> To: "PHP" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 07, 2004 1:04 PM
> Subject: [PHP] sending attachments
>
>
>> can some body help me to send an email attachment ( a log file ) from
>> php
> ?
>> Actaually i need a real guide plz
>
> I used this e-mail class some time ago:
>
> http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=614
>
>
> regards,
> Ewout
>
> --
> 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



RE: [PHP] CHAT

2004-06-29 Thread Juan Pablo Herrera
> Juan Pablo Herrera wrote:
>> Hi!
>> I need a chat program in php with GNU License. What's experience whith
>> chat program in PHP? regards, Juan Pablo
>
> G-O-O-G-L-E:
>
> Search:  php chat program gnu
>
> http://www.google.ca/search?q=php+chat+program+gnu&ie=UTF-8&hl=en&meta


Thank you,
but i am not answer "Where".
Experience?

Regards,

Juan Pablo

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



[PHP] CHAT

2004-06-29 Thread Juan Pablo Herrera
Hi!
I need a chat program in php with GNU License. What's experience whith
chat program in PHP?
regards,
Juan Pablo

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



Re: [PHP] Re: MHTML in email

2004-06-24 Thread Juan Pablo Herrera
Thank you Manuel,
Tomorrow i work on this class. My idea is make a app that send newsletters
with html + image included. It app shows "tracert" when the email is open.Know you 
some app that make this?.

Regards,
Juan


> Hello,
>
> On 06/24/2004 01:59 PM, Juan Pablo Herrera wrote:
>> Thank you,
>> really i need incluided in email body a image (jpg or gif), too see
>> html. The MHTML file is a idea, but i think that not function with
>> dinamic content.How can i do this?
>
> Yes, this class can do exactly that using multipart/relative parts. The
>  HTML message example that comes with the class demonstrates clearly
> how  to compose multipart/related in multipart/alternative messages. It
> shows  how to send an HTML message using images in the body HTML and
> also as a  background.
>
>
>>>>I need to attach a file extension .mhtml in function mail, but i too
>>>>need view the content from the body of e-mail.That is everything!
>>>
>>>MHTML messages are just HTML messages with alternative plain text
>>>version in the same body.
>>>
>>>You may want to take a look at this class that lets you compose MHTML
>>>messages easily:
>>>
>>>http://www.phpclasses.org/mimemessage
>
> --
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer generator
> http://www.meta-language.net/metastorage.html
>
> --
> 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



Re: [PHP] Re: MHTML in email

2004-06-24 Thread Juan Pablo Herrera
Thank you,
really i need incluided in email body a image (jpg or gif), too see html.
The MHTML file is a idea, but i think that not function with dinamic
content.How can i do this?
Thank you!

Juan

> Hello,
>
> On 06/23/2004 06:15 PM, Juan Pablo Herrera wrote:
>> I need to attach a file extension .mhtml in function mail, but i too
>> need view the content from the body of e-mail.That is everything!
>
> MHTML messages are just HTML messages with alternative plain text
> version in the same body.
>
> You may want to take a look at this class that lets you compose MHTML
> messages easily:
>
> http://www.phpclasses.org/mimemessage
>
>
> --
>
> Regards,
> Manuel Lemos
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> PHP Reviews - Reviews of PHP books and other products
> http://www.phpclasses.org/reviews/
>
> Metastorage - Data object relational mapping layer generator
> http://www.meta-language.net/metastorage.html
>
> --
> 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] MHTML in email

2004-06-23 Thread Juan Pablo Herrera
Hi!
I need to attach a file extension .mhtml in function mail, but i too need
view the content from the body of e-mail.That is everything!

Regards,
Juan

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



[PHP] Image Map

2004-06-14 Thread Juan Pablo Herrera
Hi!
How can i make an image map with image function php?
My idea is make a similar concept to
http://www.infobae.com/ediciondigital/paginas.php
Thank you!

Juan

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



Re: [PHP] Function Date

2004-06-14 Thread Juan Pablo Herrera
Yes!
That's right!
Thank you

Juan

> Hello Juan,
>
> Monday, June 14, 2004, 6:04:56 PM, you wrote:
>
> JPH> I am using date("j M Y"), the format date is 14 Jun 2004, but i
> need this JPH> format 14 JUN 2004. The unique difference is Jun -> JUN.
> How can i change JPH> this?.
>
> $date = strtoupper(date('j M Y'));
>
> :)
>
> Best regards,
>
> Richard Davey
> --
> http://www.launchcode.co.uk - PHP Development Services
> "I am not young enough to know everything." - Oscar Wilde

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



[PHP] Function Date

2004-06-14 Thread Juan Pablo Herrera
Hi!
I am using date("j M Y"), the format date is 14 Jun 2004, but i need this
format 14 JUN 2004. The unique difference is Jun -> JUN. How can i change
this?.
Thank You,
Juan



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



[PHP] Load Data

2004-06-10 Thread Juan Pablo Herrera
Hello!
I need a problem with mysql "Load Data". PHP say: "Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES)", but my user and password is
correct.The sql query is:
$query_string2 = "LOAD DATA INFILE
'/usr/local/psa/home/vhosts/allaria.com.ar/httpdocs/XLS/precios' REPLACE
INTO TABLE precio FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES
TERMINATED BY '\n'";
I used a vhost, what's a problem?

Regards.
Juan Pablo

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



Re: [PHP] Load Data infile

2004-05-13 Thread Juan Pablo Herrera
> [snip]
> I need do load data infile in mysql:
> $query_string2 = "LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO
> TABLE
> `test` FIELDS TERMINATED BY ',' ENCLOSED BY '\"' ESCAPED BY '\\' LINES
> TERMINATED BY '\n'";$query_db_string2 = mysql_query($query_string2);
> But not realize nothing with execution the script.
> [/snip]
>
> have you checked mysql_error() ?

yes,
You have an error in your SQL syntax near ''' at line 2
but i change '\"' and not work.

Thank you,

Juan Pablo

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



[PHP] Load Data infile

2004-05-13 Thread Juan Pablo Herrera
Hi!
I need do load data infile in mysql:
$query_string2 = "LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO TABLE
`test` FIELDS TERMINATED BY ',' ENCLOSED BY '\"' ESCAPED BY '\\' LINES
TERMINATED BY '\n'";$query_db_string2 = mysql_query($query_string2);
But not realize nothing with execution the script.

Thank you!
Regards!

Juan Pablo

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



[PHP] Socket

2004-05-06 Thread Juan Pablo Herrera
Hi!
Please, i need a tutorial about socket. I read php.net but the examples is
lost.
Regards,
Juan Pablo

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