[PHP] Check if directory has changed

2003-01-25 Thread Carlos Fernando Scheidecker Antunes
I would like to write a function to check if the contents of a directory, its files, have been changed. The idea is to check the directory every 2 minutes and take some actions if some files were updated or new files added. Does anyone has any ideas? I was considering listing the files (name,

[PHP] Listing files and their details on a text file

2002-11-18 Thread Carlos Fernando Scheidecker Antunes
Hello all, I need to do something that you might be able to advise me. I would like to list all the contents (files) of a directory in a text file. Each line/record must have the file name, date and size. Does anyone know how to do it? Thank you, C.F.Scheidecker Antunes. -- PHP General

[PHP] Bcc with the mail command

2002-07-31 Thread Carlos Fernando Scheidecker Antunes
Hello all, Just a question about PHP mail comand. Usually I have something like this: if (mail($to,$Subject,$Body,$MailHeaders)) { return 1; } else { return 0; } Is there any way to use a BCC instead of to? I would like that the message sent did not have the address of the person it

[PHP] How to encode e-mail attachments, work with MIME

2002-05-19 Thread Carlos Fernando Scheidecker Antunes
Hello all, I'm trying to write an script to fetch e-mail and save whatever attachments there are. Are there any articles or anywhere I can read about it? Thanks, Carlos Fernando Scheidecker Antunes Linux User #207984

[PHP] Problem with array

2002-04-30 Thread Carlos Fernando Scheidecker Antunes
Hello All, I've got a form that creates checkboxes based on the number of rows on a table. The user has to check some of the boxes and then click submit. The boxes are named RG1, RG2, RG3, If there are 4 checkboxes and the user selects them all or selects the first, second and fourth,

[PHP] Script to fetch email and save attachments

2002-04-30 Thread Carlos Fernando Scheidecker Antunes
you in advance, Carlos Fernando Scheidecker Antunes.

[PHP] Help on dealing with arrays of HTTP_POST vars

2002-04-15 Thread Carlos Fernando Scheidecker Antunes
you for your help, Carlos Fernando Scheidecker Antunes. Linux User #207984 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to send a file to the user's browser?

2002-03-18 Thread Carlos Fernando Scheidecker Antunes
Fernando Scheidecker Antunes Linux User #207984

[PHP] More on: how to send a file to the user's browser?

2002-03-18 Thread Carlos Fernando Scheidecker Antunes
Hi Mark, It does not work. What it does is to echo the thing to the screen. How can I force the browser to download it with its original file name? - Original Message - From: Mark Heintz PHP Mailing Lists [EMAIL PROTECTED] To: Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED] Cc

[PHP] shell_exec()

2002-03-15 Thread Carlos Fernando Scheidecker Antunes
Hello all, Does anyone know if shell_exec waits to have whatever it was passed to be executed before returning to the script? I am asking that because I need to write a script to compact files to a zip and then have it e-mailed to a predefined address. The files it will compact might have a

[PHP] How to run a PHP script on the UNIX command line

2002-01-07 Thread Carlos Fernando Scheidecker Antunes
it in PHP. Can anyone help me with that? Thank you, Carlos Fernando Scheidecker Antunes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] How to clear a populated array

2002-01-04 Thread Carlos Fernando Scheidecker Antunes
Hello All, I have a populated array that stores user input errors. I have been browsing the manual and some books and I couldn't find one thing. I've got an array $Erros[] and I would like to be able to clear it entirely. Is there any builtin function that acomplishes that? Thank you in

Re: [PHP] How to clear a populated array

2002-01-04 Thread Carlos Fernando Scheidecker Antunes
() work for you? Hope I understood your problem... Bogdan Carlos Fernando Scheidecker Antunes wrote: Hello All, I have a populated array that stores user input errors. I have been browsing the manual and some books and I couldn't find one thing. I've got an array $Erros[] and I would like

[PHP] Date aritmetic

2002-01-02 Thread Carlos Fernando Scheidecker Antunes
Hello all, I would like to know if anyone could help me with the following issue: I have 6 variables, two holds a day, others the month and the last ones the year. They are entered through drop-down-menus where the user selects day, month and year for each date. I would like to know the

[PHP] How to convert integers representations of a date to a date format variable

2001-12-30 Thread Carlos Fernando Scheidecker Antunes
Hello All, I would like to convert integers like the day, month and year to a date representation to store it in a session variable. There's a form where the user posts day, month and year. So then I run checkdate($month,$day,$year) and make sure the date is valid. So, let's say I have 12

[PHP] How to copy a substring of a string

2001-12-29 Thread Carlos Fernando Scheidecker Antunes
Hello All, I've been searching on the online documentation and I'm pretty sure I've done it before but I don't recall how. The problem is. I have a string with 17 characteres and I want to copy from the fourth character 6 characteres. Under Pascal I usually do copy(string,4,6). That means,

[PHP] Help on JavaScript Windows with PHP

2001-12-28 Thread Carlos Fernando Scheidecker Antunes
].\n); print(br\n); print(a href=\JavaScript:oldWin('teste_popup.php4?oper=1')\Close e Update/a\n); print(br\n); print(/body\n); print(/html\n); ? Could anyone help me out to adapt it to any browser? Thank you very much and merry christmas, Carlos Fernando Scheidecker Antunes. Salt Lake City, Utah

[PHP] Part II: Help on JavaScript Windows with PHP

2001-12-28 Thread Carlos Fernando Scheidecker Antunes
Carlos Fernando Scheidecker Antunes wrote: Hello all! I've wrote to scripts that use Javascript too. The idea is to have a parent window teste_popup.php4 and a child window pop.php4. When a link is clicked on the parent window, the child window will open. After the user enters

[PHP] More on Help on JavaScript Windows with PHP

2001-12-28 Thread Carlos Fernando Scheidecker Antunes
it without the resize and maximize buttons. Do you know how to create a java popup window without the close icon? If it is possible the problem is solved since the only way a user could close it is by clicking on the link. Thank you, Carlos Fernando Scheidecker Antunes. - Original Message

[PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
].\n); print(br\n); print(a href=\JavaScript:oldWin('teste_popup.php4?oper=1')\Close e Update/a\n); print(br\n); print(/body\n); print(/html\n); ? Could anyone help me out to adapt it to any browser? Thank you very much and merry christmas, Carlos Fernando Scheidecker Antunes. Salt Lake City, Utah

Re: [PHP] Multiple JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
It still the same thing. It child does not close on Nestcape and Konqueror and when it closes on IE now it refreshes teh parent window twice. - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Carlos Fernando Scheidecker Antunes' [EMAIL PROTECTED]; PHP-GENERAL [EMAIL

[PHP] JavaScript Windows with PHP

2001-12-20 Thread Carlos Fernando Scheidecker Antunes
].\n); print(br\n); print(a href=\JavaScript:oldWin('teste_popup.php4?oper=1')\Close e Update/a\n); print(br\n); print(/body\n); print(/html\n); ? Could anyone help me out to adapt it to any browser? Thank you very much and merry christmas, Carlos Fernando Scheidecker Antunes. Salt Lake City, Utah

[PHP] Help on dealing with arrays of HTTP_POST vars

2001-12-19 Thread Carlos Fernando Scheidecker Antunes
you for your help, Carlos Fernando Scheidecker Antunes. Linux User #207984 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] How to determine a valid Date

2001-10-28 Thread Carlos Fernando Scheidecker Antunes
Hello all, Is there any built-in function to determine a valid date? If there's not I will have to translate one that I've wrote with DrScheme to PHP. I just want to save time :) thanks again, Carlos Fernando. Linux User #207984

[PHP] Running a script with Crontab

2001-09-30 Thread Carlos Fernando Scheidecker Antunes
Hello All, I wrote an script to do database maintenance and I forgot how to run a script on the command line without opening it with a web browser. My idea is to add a crontab daily entry to run this script. Can anyone enlight me on this thank you very much, C.F. Scheidecker Antunes.

[PHP] PHP versus ZOPE

2001-09-15 Thread Carlos Fernando Scheidecker Antunes
are appreciated. Thanks. Carlos Fernando Scheidecker Antunes. Linux User #207984

[PHP] Help on e-mail attachments retrieval adn ZIP uncompression.

2001-09-03 Thread Carlos Fernando Scheidecker Antunes
Hello Everybody, I have a software writen in Delphi which I am migrating to Kylix but I would like to do it in PHP instead. What the software does is to access an e-mail address and retrieve the messages saving the files ending with .zip to a local directory. After that, it decompresses the

[PHP] Multiple JavaScript Windows

2001-08-27 Thread Carlos Fernando Scheidecker Antunes
Hello All, I need to have multiple JavaScripts windows with my database PHP script. The idea is to have a main Page and links to pop-up JavaScript Windows to enter information on the database. Once these windows are closed the main PHP page need to be automaticaly updated. The Database is a

[PHP] Multiple JavaScript Windows

2001-06-22 Thread Carlos Fernando Scheidecker Antunes
Hello All, I need to have multiple JavaScripts windows with my database PHP script. The idea is to have a main Page and links to pop-up JavaScript Windows to enter information on the database. Once these windows are closed the main PHP page need to be automaticaly updated. The Database is

Re: [PHP] How to loop the HTTP_POST_VARS array?

2001-05-21 Thread Carlos Fernando Scheidecker Antunes
- From: Maxim Maletsky [EMAIL PROTECTED] To: 'Carlos Fernando Scheidecker Antunes' [EMAIL PROTECTED]; PHP-GENERAL [EMAIL PROTECTED] Sent: Monday, May 21, 2001 1:00 AM Subject: RE: [PHP] How to loop the HTTP_POST_VARS array? no, you are trying to get an $HTTP_POST_VAR[integer

[PHP] function to complete strings with white spaces on the left

2001-05-20 Thread Carlos Fernando Scheidecker Antunes
Hello All, I need to output a string that must always be 17 characters even if the inside value is not. Supose a have the HELLO word that is a 5 character string and I need to output HELLO which is 17 characters. How can I accomplish this in PHP4 ? Has anyone ever did it?

[PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Carlos Fernando Scheidecker Antunes
Hello all, I'm trying to loop the $HTTP_POST_VARS variable like an array like this : $index = count($HTTP_POST_VARS); for($i=0; i $index; i++) { $itens = $HTTP_POST_VARS[$i]; } But it is not working. Can anoyone tell me how to do it? Thanks, Carlos Fernando.

[PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Carlos Fernando Scheidecker Antunes
Oops. I've got a typo : $itens[] Here's the correct code : Hello all, I'm trying to loop the $HTTP_POST_VARS variable like an array like this : $index = count($HTTP_POST_VARS); for($i=0; i $index; i++) { $itens[] = $HTTP_POST_VARS[$i]; } But it is not working. Can anoyone tell me how

[PHP] how to have a print button on a PHP generated page

2001-05-18 Thread Carlos Fernando Scheidecker Antunes
Hello All! I have a page that was generated by PHP4 and is the result of a query. I would like to enable a button to have the page printed. Does anyone knows how to do it with either PHP or javascript? Thanks, C.F.

[PHP] how to format a date variable

2001-05-17 Thread Carlos Fernando Scheidecker Antunes
Hello All, If I issue the comand date(d./.m./.Y. .H.:.i.:.s) I get the Today's date and time formated accordingly. I can do the same with MySQL by using an internal function on the SQL select statement. I've got a variable that is a MySQL native Date field but it was not and cannot be

[PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Carlos Fernando Scheidecker Antunes
Hello all! I would like to know if anyone has or know any PHP code to verify if a form entered e-mail address is valid? I would like that things like 4$%^%$@@.com.br could not be sent. I only has to verify the syntax of it, the existance I believe should be harder to verify but if it is