RE: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Benjamin Munoz
There is a PHP class someone wrote called mime_mail that makes this easy. The resulting code using this class is something like: // create new mime_mail object instance $mail = new mime_mail; // set all data slots $mail-from= [EMAIL PROTECTED]; $mail-to = [EMAIL PROTECTED];

RE: [PHP] manipulating files with php

2001-05-09 Thread Benjamin Munoz
There are a number of ways to do this. Mine is something like this: if (has_read_perm($user_id, $file_id)) { send_file_to_browser($file_id); } else { // print error message(); } ... function has_read_perm($user_id, $file_id) { // check db table // return

RE: [PHP] Simple Questions

2001-05-08 Thread Benjamin Munoz
This is not working? echo(trtd align=\center\ bgcolor=\$bc\ style=\color: $text; font-family: $font; font-size: $fontsize\$server-server_num_players./.$server-server_max_players/td /tr); If you are trying to print out trtd align=center bgcolor=$bc style=color: $text; font-family: $font;

RE: [PHP] Commercial sites that use PHP

2001-04-10 Thread Benjamin Munoz
Yahoo uses a lot of Python. Yahoo Mail pages have extensions of .py, indicating Python. Yahoo acquired eGroups and Google this past year, both of which openly use Python to generate pages. They most likely use Python in conjunction with other scripting and compiled languages. -Ben

RE: [PHP] PHPSESSID sticks to every link after upgrate of Apache/PHP

2001-04-08 Thread Benjamin Munoz
In your php.ini, change the following line: session.use_trans_sid = 1 ; use transient sid support if enabled to session.use_trans_sid = 0 ; use transient sid support if enabled And see if that solves your problem. Also, check the change with phpinfo(), and if nothing

RE: [PHP] double byte problem

2001-04-08 Thread Benjamin Munoz
Can you send some code? -Original Message- From: Subhrajyoti Moitra [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 08, 2001 8:41 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] double byte problem hi, i am having a little problem in using php with double byte character.

RE: [PHP] Bad Practices

2001-02-13 Thread Benjamin Munoz
Three good articles by the author of PHP Developer's Cookbook. Top 21 PHP progamming mistakes By Sterling Hughes http://zend.com/zend/art/mistake.php http://zend.com/zend/art/mistake1.php http://zend.com/zend/art/mistake2.php -Ben Munoz -Original Message- From: Jeff Oien

RE: [PHP] A php-xml mailing list?

2001-02-09 Thread Benjamin Munoz
Yes, I subscribe to this PHP-XML mailing list, but it is very low volume. I'd encourage anyone considering using XML/XSL/SOAP/RSS to join this list, so that XML and SOAP can be easily used with a PHP web app environment. I've used ASP/COM when I really wanted to use PHP, but the Microsoft

RE: [PHP] 20 Million Fresh E-mail Addresses

2001-02-06 Thread Benjamin Munoz
On replying to SPAM: Most of you already know this, but replying to SPAM (even if they tell you that you can remove yourself) usually leads to more SPAM, b/c you've just given the SPAMMERS your email address confirmed. http://www.chugach.net/~techtips/spam3.htm Just a warning. -Ben

RE: [PHP] Suggest for List

2001-02-01 Thread Benjamin Munoz
April, There was a discussion like in 1999 (i remember cuz I was learning PHP then), and Richard Lynch (i think) had a good point that splitting the list would reduce the quality of the answers on the beginners list--PHP newbies answering each others questions, you see. Newbies should continue

RE: [PHP] PDF Questions

2001-01-30 Thread Benjamin Munoz
http://www.phpbuilder.com/columns/perugini20001026.php3 http://www.phpbuilder.com/columns/uwe20001116.php3 http://php.net/manual/en/ref.pdf.php -Ben -Original Message- From: Conover, Ryan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 6:31 AM To: [EMAIL PROTECTED]

RE: [PHP] How can I make PHP to work on Win98 ?

2001-01-30 Thread Benjamin Munoz
You can find some info here... http://php.net/manual/en/install-windows95-nt.php And more here... http://php.weblogs.com/easywindows First requirement is to have a web server (Xitami, Apache, Personal Webserver) on your Win98 box. Then you can run one of the installers found on one of the

RE: [PHP] Uploading images only

2001-01-30 Thread Benjamin Munoz
You can check the mime type of the uploaded file. First upload the file, as usual. Then check the mime type before copying from the temp directory to the files directory. If this is your form: form action="flm_upload.html" method="post" enctype="multipart/form-data" input type=hidden

RE: [PHP] Problem!

2001-01-29 Thread Benjamin Munoz
Stephen, If this date format is coming from a MySQL database (frequently the case), you might want to look at the date formatting functions of MySQL. http://www.mysql.com/doc/D/a/Date_and_time_functions.html. ex. select DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); One drawback is that

[PHP] Export to Spreadsheet Format

2001-01-23 Thread Benjamin Munoz
I want to run a query on a database and export the recordset to a spreadsheet, preferably Excel native. The box is on a Win32 OS, so I can instantiate a Excel COM object (similar to the PHPBuilder COM article), and use the COM methods to create an Excel file. Or, I can fopen and fput a CSV

RE: [PHP] Multiple Page Form

2001-01-23 Thread Benjamin Munoz
Make sure you are not forgetting to include $action as a hidden input, so your script can know how to process. input type=hidden name=action value=Send, for example -Ben -Original Message- From: Jeremy Bowen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 12:17 PM To:

RE: [PHP] Two things

2001-01-17 Thread Benjamin Munoz
Did you mean this? ?php $i = 0 $colors = array('#ff','#0'); ? -Ben -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 11:52 AM To: Phil Labonte Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Two things When I get a list of items

RE: [PHP] Strings??

2001-01-16 Thread Benjamin Munoz
Ade, What kind of string? What do you want to do with them? -Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Strings?? Quick Question. I have a form which has 10 fields, is

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Benjamin Munoz
Correction: Inside X.php, you have some authentication code. Maybe something simple as: ? if (!$valid) { // redirect to story.php?storynum=X } // rest of article follows ? -Ben -Original Message- From: Benjamin Munoz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 4

RE: [PHP] MySQL - How to transfer a query resault into a variable?

2001-01-16 Thread Benjamin Munoz
http://www.php.net/manual/en/function.mysql-fetch-object.php Modified example from the manual above... ?php mysql_connect ($host, $user, $password); $result = mysql_db_query ("database", "select * from table"); while ($row = mysql_fetch_object ($result)) { // save database fields into