[PHP] Email with attachment

2010-05-15 Thread Php Developer
Hi, I found a good function at php.net that sends email with atachment, but unfortunately i still cannot figure out how to send a body of the email too. Here is the code: function sendEmailWithAttachement($to, $subject, $message, $file) { if (strtoupper(substr(PHP_OS,0,3)=='WIN')) {

[PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi, Do you know if there is a way to generate a formated Excel report. I want some rows to be of different colors than the others. Thank you __ Get the name you've always wanted @ymail.com or @rocketmail.com! Go to

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi Tommy, The code in the link is traightforward. The problem is you need to install ADOdb. I'm wondering if there is a way to do it from scratch. Thanks - Original Message From: Tommy Pham tommy...@gmail.com To: Php Developer pdevelo...@rocketmail.com; php-general@lists.php.net

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi, somebody knows if it is possible to open excel content in a new window? what i want is basically initialize the headers and instead of echo $content i want it to open in a new window. is that possible? - Original Message From: Tommy Pham tommy...@gmail.com To: Php Developer

[PHP] array or list of objects of different types

2010-04-02 Thread Php Developer
Hi all, I want to be able to have an array of elements of different types. As an example: the first element is a boolean, the second is an integer, and the thirs is a string. In php there is no typing, i'm just wondering if there is a way to have that, it would be a lot better than having an

[PHP] Change displayed file name to download

2010-03-14 Thread Php Developer
Hi, I'm using the following code: $fp = fopen($filename, 'r+'); $content = fread($fp, filesize($filename)); fclose($fp); header(Content-type: application/msword); header(Content-Disposition: attachment; filename=$filename); echo $content; exit; ___

[PHP] Re: confirm subscribe to php-general@lists.php.net

2010-02-14 Thread Developer Team - MDS Lab

[PHP] Are IP addresses reliable?

2007-06-16 Thread PHP Developer
I wanna know that is there a way to forge someone's IP address? for example, I have a client with an static ip address, and she is a superuser. Can i rely on her IP address? or somebody else can forge her IP? I don't want her to enter a username and a password.. Cheers, Daniel

[PHP] People's misbehavior on the list

2007-05-18 Thread PHP Developer
some people don't remove the Re: prefix when answering to the questions It opens a new topic on the list and that's not appropriate . Thank ya - Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.

[PHP] Imp

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam.

[PHP] Important Design Patterns

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam.

[PHP] Important Design Patterns

2007-03-25 Thread PHP Developer
hello all, As we know, there are a lot of php design patterns(more than 20). I want to know that which patterns are important and necessary for ZCE exam. PHP5 Study Guide only covers Singleton,Factory,Registry,MVC and ActiveRecord. But i still feel that more patterns are necessary for the exam.

Re: [PHP] execute php script with crontab

2004-01-19 Thread Developer
Could I add a question regarding the cron command? If you automatically run a php script through the cron command is timeout taken under account or does it run through the command line which is faster (and timeout is not taken under account?) Thanks all Mario - Original Message - From:

[PHP] Unix Authentication

2002-02-23 Thread developer
For one of my php applications I want to check user's UNIX[Linux] account. If his / her username password pair matches with that of /etc/passwd or samba or NIS then only the user will be allowed to access the contents. How to achieve this ? TIA Shekhar ___ V I I

Re: [PHP] automatic page view

2001-06-20 Thread Developer
I would set your database up like so. tablecompany idcompany otherstuff tableusernamepass compidusernamepassword Make the ID in the tablecompany auto_increment then test the tableusernamepass compid against it when the user properly logs in. Exampe of the

Re: [PHP] INSERT problem with MySQL/PHP

2001-06-18 Thread Developer
Try the following, INSERT INTO questions(user_id,objective,question,question_type) VALUES('$uawr_idx', '$objective', '$question', '$question_type') Define the rows you want to insert into. Hope this helps! Regards, Ray - Original Message - From: Todd A. Jacobs [EMAIL PROTECTED] To: