[PHP] readfile() problem

2006-10-12 Thread Peter Lauri
-stream); header(Content-Disposition: attachment; filename=$Row[filename]); header(Content-Transfer-Encoding: binary); $filesize = filesize($filelocation); header(Content-Length: $filesize); readfile($filelocation); Best regards, Peter Lauri www.lauri.se - personal website www.dwsasia.com

RE: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-12 Thread Peter Lauri
Thanks for your answer. I better think about this one more time, read some more about it, and then execute :) I will let you know if it flops... -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 11:24 PM To: Peter Lauri Cc: php-general

[PHP] Internet Explorer - and File Download dialog box

2006-10-12 Thread Peter Lauri
Hi, Is there any way to set so that the IE File Download dialog box can understand UTF-8? I have some Thai named files that just end up like nonsense :-) /Peter www.lauri.se http://www.lauri.se/ - personal website www.dwsasia.com http://www.dwsasia.com/ - company website

RE: [PHP] readfile() problem

2006-10-12 Thread Peter Lauri
Hi, It did help, but not perfectly. Sometimes I have to refresh a few times before it will be pushed. Best regards, Peter -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 12:52 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re

RE: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-12 Thread Peter Lauri
Thanks, that was very clear :) -Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 6:32 AM To: Richard Lynch Cc: Peter Lauri; php-general@lists.php.net Subject: Re: [PHP] PHP Mailer and SMTP = SPAM? # [EMAIL PROTECTED] / 2006-10-12 11:23:52

RE: [PHP] readfile() problem

2006-10-13 Thread Peter Lauri
Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 4:59 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: RE: [PHP] readfile() problem On Thu, October 12, 2006 3:26 pm, Peter Lauri wrote: It did help, but not perfectly. Sometimes I have to refresh a few times before

RE: [PHP] readfile() problem

2006-10-13 Thread Peter Lauri
You are correct. I might love you :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 2:27 PM To: Peter Lauri Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] readfile() problem On Fri, 2006-10-13 at 13:28 +0700, Peter

RE: [PHP] GD, and GD JPEG

2006-11-26 Thread Peter Lauri
I don't know what environment you are on, because I have been absent from this list a long while. If you are on a Linux distribution you might be able to do this via the command line: yum install php-gd.i386 service httpd restart That might install GD and then restart the web server. /Peter

RE: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Peter Lauri
Except the check for \n and \r? I mean any class that you think is good doing this? Is PHP Mailer doing any check of its variables? /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 11:10 PM To: php-general@lists.php.net Subject

[PHP] preg_match to preg_replace

2006-12-11 Thread Peter Lauri
= $matches[1]; if(count($m1)1) { $m2[0] = b$m2[0]/b; $thestr = implode( , $m2); } elseif(count($m1)==1) { $thestr = $m2[0]; } else $thestr = ; echo $thestr; echo /pre; ? Best regards, Peter Lauri www.dwsasia.com - company website www.lauri.se - personal website -- PHP

RE: [PHP] Cookies page refresh

2006-12-12 Thread Peter Lauri
Hi, I think it says somewhere in the documentation that the cookie values will not be available until next request/response... /Peter -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 5:28 PM To: php-general@lists.php.net Subject: [PHP]

RE: [PHP] calling a function in the same page

2006-12-25 Thread Peter Lauri
Hi, Are you trying to use PHP as a client scripting language? What you are doing cannot be done with plain PHP, you have to invoke JavaScript or similar to make a HTTP request and then parse it. Search Google for AJAX and you could get it working using that. Prototype is a easy to use JS

RE: [PHP] calling a function in the same page

2006-12-26 Thread Peter Lauri
whatever you want with the //$_POST['mysql'] variable and output the results //the you want to be shown in the div with id resultsdiv } -- Best regards, Peter Lauri -Original Message- From: Aras [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 26, 2006 11:50 AM

RE: [PHP] pattern containing single quote in IF statement

2006-12-26 Thread Peter Lauri
Quote: here is the code: if($_GET['query']==new) { filter($query);} elseif($_GET['query']==some'u'all) { filter($query);} elseif($_GET['query']==all'u'ppl) { filter($query);} Did you forget about around the strings? /Peter www.dwsasia.com - company web site www.lauri.se

RE: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

2006-12-27 Thread Peter Lauri
Hi, imagecopyresampled might help you... I use that and it works without problems. /Peter -Original Message- From: Steven Macintyre [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 10:17 AM To: php-general@lists.php.net Subject: [PHP] GD 2.0.28 + PHP 4.4.2 + pixelation :(

RE: [PHP] PDFlib problem

2006-12-27 Thread Peter Lauri
Try this one: http://pecl.php.net/bugs/bug.php?id=9491edit=1 /Peter www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Rosen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 2:58 PM To:

RE: [PHP] Re: PDFlib problem

2006-12-27 Thread Peter Lauri
http://www.pdflib.com/download/pdflib-family/pdflib-6/ Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Rosen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 4

RE: [PHP] Simple PDF manipulation

2006-12-27 Thread Peter Lauri
FPDF might do the same thing, won't it? Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 11

[PHP] Chocked

2006-12-28 Thread Peter Lauri
, but this time I get an open dir error. Is this something that is new to PHP5 for this, or do I just need to config the server to accept this sloppy including of files? Best regards, Peter Lauri http://www.dwsasia.com/ www.dwsasia.com - company web site http://www.lauri.se/ www.lauri.se - personal

RE: [PHP] Re: Chocked

2006-12-29 Thread Peter Lauri
Hi, I got it working before the post, but I was just curious if there were any change from php4 to php5 as I have been using that method for a while now. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

RE: [PHP] help with \n\r in strings

2006-12-29 Thread Peter Lauri
Try: $string_as_array = explode(\n, $string); echo pre; print_r($string_as_array); echo /pre; The array that you get will contain segments of the string that is separated with \n. Let me know if that helps. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se

RE: [PHP] Javascript detection

2007-01-01 Thread Peter Lauri
I do have javascript enabled, but it does not detect it... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Monday, January 01, 2007

RE: [PHP] Please help me

2007-01-02 Thread Peter Lauri
I also use PHPmailer to send emails. However it is good to do it the 'hard' way once to learn about mailing headers etc. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From

RE: [PHP] How to read cookies set by php?

2007-01-02 Thread Peter Lauri
just: echo pre; print_r($_COOKIE); echo /pre; Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 02, 2007 4:17 PM

RE: [PHP] Concerning SSL

2007-01-02 Thread Peter Lauri
Make the src ABSOULUTE and it will work. When you are using relative links as you are right now the web server will look in the https://www.mywebsite.com/images Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become

RE: [PHP] Pushing a file to the browser

2007-01-03 Thread Peter Lauri
file_get_contents($path.$filelocation); You could also use fread() or similar if the file is larger. Let me know if it helped. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message

RE: [PHP] File reading code2

2007-01-06 Thread Peter Lauri
, because in the end we will not do this kind of things if it already is in the manual. http://th.php.net/manual/en/function.file-get-contents.php http://th.php.net/file Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become

RE: [PHP] Re: Search script problem

2007-01-06 Thread Peter Lauri
get matches there your code should be fine. $Result = mysql_query($Query); ... ... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Wikus Moller [mailto:[EMAIL PROTECTED

RE: [PHP] Domain Search

2007-01-09 Thread Peter Lauri
Most domain wholesale sites have it. www.onlinenic.com has it, I am sure that godaddy.com has it as well. Joker.com has it. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From

RE: [PHP] most powerful php editor

2007-01-21 Thread Peter Lauri
I would put my vote on Eclipse. It has great support for cvs and also for general coding autofilling etc. The downside is that it is resource demanding... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

RE: [PHP] $_POST to function?

2006-02-24 Thread Peter Lauri
Is the function actually returning anything? Aren't you just echoing the content of the $_POST? -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General (E-mail) Subject: [PHP] $_POST to function? I am not sure why this is

RE: [PHP] $_POST to function?

2006-02-24 Thread Peter Lauri
Do: function global_template( $cmd, $args, $num, $message ) { ob_start(); echo pre; print_r( $args ); echo /pre; ob_end_flush(); return ob_get_contents(); } -Original Message- From: Jason Gerfen [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 10:27 PM To: PHP General

[PHP] Where to put my class files

2006-02-27 Thread Peter Lauri
is good enoght, because then I would not have that problem. I have tried: $class_path='../../http/classes/'; But it does not work. Help me; I will kill myself soon... :) Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Where to put my class files

2006-02-27 Thread Peter Lauri
with. What I am doing wrong? /Peter -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 1:45 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Where to put my class files Peter Lauri wrote: Best group member, I want to run the backend

RE: [PHP] to check idle time of users

2006-03-15 Thread Peter Lauri
else might see this in a deeper way then you seem to do. You just reference to you knowledge, without being able to reference to others depth of knowledge. Miles, sit down and read your reply again, and you might learn something you too. Best regards, Peter Lauri PS! This post might not belong

[PHP] PEAR::SOAP on Windows not working

2006-03-20 Thread Peter Lauri
to open stream: No such file or directory in C:\Documents and Settings\Peter Lauri\My Documents\DWS Asia\webserver\xl\SOAP\WSDL.php on line 27 Fatal error: main(): Failed opening required 'HTTP/Request.php' (include_path='.;C:\php4\PEAR\pear') in C:\Documents and Settings\Peter Lauri\My Documents\DWS

[PHP] NuSOAP - HTTPS

2006-03-21 Thread Peter Lauri
www.openssl.org just makes me more confused. Any suggestions for someone who have very little php admin skills? Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTPS with NuSOAP

2006-03-21 Thread Peter Lauri
regards, Peter Lauri

[PHP] Atrributes and NuSOAP

2006-03-22 Thread Peter Lauri
not do that with NuSOAP, but I am a newbie so I have no clue. Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parents constructor

2006-03-23 Thread Peter Lauri
Hi, I have a class B that extends class A. I want to call constructor of A correctly, how to do that. This is how I tried: Class B extends A { Function B($Bvariable) { Parent::A($Bvariable); } } Class A { Function A($Avariable) {

RE: [PHP] HTTPS with NuSOAP

2006-03-23 Thread Peter Lauri
[snip] 'account'='theaccountnumber', 'role internalId=theinternalid'='')); Does that work to set the attribute? [/snip] You are correct, that does NOT work. I found out to use soapval instead. Thank you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] HTTPS with NuSOAP

2006-03-24 Thread Peter Lauri
[snip] soapclient('https://webservices.netsuite.com/wsdl/v1_3_1/netsuite.wsdl'); The 's' in 'https' should be all that nuSOAP would need to know that it should use SSL, if nuSOAP can do that. [/snip] Correct. NuSOAP do detect automatically, and if CURL is configured it will work. [snip]

[PHP] Creation and transfer of object thru session

2006-03-25 Thread Peter Lauri
regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Oject passed via session error

2006-03-25 Thread Peter Lauri
Hi, I do this: ?php session_start(); require_once('classes/ns_cart.class.php'); if(!isset($_SESSION['ns_cart'])) $_SESSION['ns_cart'] = new NScart(); ? The output will be the following with print_r of the $_SESSION: Array ( [ns_cart] = nscart Object (

[PHP] Execute script and redirect

2006-04-20 Thread Peter Lauri
Best groupmember, I have a form that is being filled out. This is the process: 1. Fill out form and click submit 2. Script validates data 3. Data is being sent to external source via Web Service 4. A file is being downloaded (redirects to files location) The problem

RE: [PHP] Execute script and redirect

2006-04-20 Thread Peter Lauri
jobs DS! -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, April 20, 2006 2:57 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Execute script and redirect On Thu, April 20, 2006 2:23 am, Peter Lauri wrote: 1.Fill out form and click

[PHP] Linebreak

2006-04-20 Thread Peter Lauri
I feel stupid. In many examples I have seen similar to: echo 'pWhatever./p\n'; echo 'pAn other whatever./p\n'; But my PHP outputs the \n instead of a new line in the source. I am stupid?

[PHP] Form to page force download

2006-04-21 Thread Peter Lauri
Best group member, I have this process: 1. Fill out a form on a web page 2. Lands on a thank you page and force a download of a pdf Right now I solve this by outputting the thank you page and then using a javascript to redirect to the download.php that consist of the following:

[PHP] UML for PHP

2006-04-21 Thread Peter Lauri
Hi, Anyone who know about a UML editor that can generate PHP code? /Peter

RE: [PHP] Re: Form to page force download

2006-04-21 Thread Peter Lauri
it the download does not start within a few seconds, please click here. /Peter -Original Message- From: Rafael [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 9:22 PM To: php-general@lists.php.net Subject: [PHP] Re: Form to page force download Peter Lauri wrote: [···] 1. Fill out a form

[PHP] Files and permission

2006-04-26 Thread Peter Lauri
of the web file system (outside of httpdocs) so that they can not get the file thru the web browser? Or should I save the docs in a database instead and control the access thru that? Is there anyone with comments? Is it anyone with experience about this? Best regards, Peter Lauri

RE: [PHP] Filesystem or database

2006-05-01 Thread Peter Lauri
This is what databases are made for, so my suggestion is to use the database. And when you say: please note that this would be thousands of logins, is that per second or minute or hour or day? /Peter -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006

[PHP] Mail and hotmail

2006-05-04 Thread Peter Lauri
subject', 'Some text', 'From: Peter Lauri [EMAIL PROTECTED]'); This email does not arrive to the Hotmail inbox. If I send to a regular email, like Google Email (gmail) or a regular POP3 it arrives without problems. Anyone who has experienced this problem with sending emails to Hotmail? And how do

RE: [PHP] Mail and hotmail

2006-05-04 Thread Peter Lauri
, 2006 5:43 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Mail and hotmail On Thu, 2006-05-04 at 17:37 +0700, Peter Lauri wrote: mail('[EMAIL PROTECTED]', 'A nice subject', 'Some text', 'From: Peter Lauri [EMAIL PROTECTED]'); This email does not arrive to the Hotmail inbox

RE: [PHP][Solved] Mail and hotmail

2006-05-04 Thread Peter Lauri
Sending email to hotmail using mail(); you need to set your mail headers for the mail to be assumed valid, namely: X-Sender From Date Subject Delivered-to MIME-Version Reply-To Content-type X-Priority Importance Return-Path X-Mailer HTH Angelo -- PHP General Mailing List

RE: [PHP] Mail and hotmail

2006-05-04 Thread Peter Lauri
The only one I do not know what to set it to is Importance. What values are possible there? Is it the same as for X-priority? Regards, Peter -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:53 PM To: Peter Lauri Cc: php-general

RE: [PHP] Mail and hotmail

2006-05-04 Thread Peter Lauri
('sendmail_from'); I tried with and without the ini_set. Best regards, Peter Lauri -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:53 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Mail and hotmail Peter Lauri

RE: [PHP] Mail and hotmail

2006-05-05 Thread Peter Lauri
] MIME-Version: 1.0 Reply-To: DWS Asia [EMAIL PROTECTED] Content-type: text/html; charset=utf-8 X-Priority: 3 Importance: 3 Return-Path: DWS Asia [EMAIL PROTECTED] X-Mailer: PHP v4.3.11 Best regards, Peter Lauri -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Friday

RE: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Peter Lauri
Have you created a connection to the Server with the correct permissions? -Original Message- From: Mark Sargent [mailto:[EMAIL PROTECTED] Sent: Saturday, May 27, 2006 5:03 PM To: PHP List Subject: [PHP] Fatal error: Call to undefined function mysql_create_db() Hi All, I get the

[PHP] Blacklisted using mail()

2006-05-29 Thread Peter Lauri
Hi, I have been having problems that I am being classed as spam server if I use the mail() function to send out mail to people who are using my system (notifications etc). How can I avoid this? Anyone with experience? Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net

RE: [PHP] how include works?

2006-05-30 Thread Peter Lauri
Arno wrote: I understand the difference well enough, but I've never really understood the reason for having both. Is it to help find errors in sloppy coding, or is there a case where including a file more than once is desirable (and won't cause an error)? Arno -- There

RE: [PHP] Removing an aspect of a variable...

2006-06-06 Thread Peter Lauri
But that will just give you .0. If you have 192.168.100.232 it will return 32. You have to check where the . is and then take the substring from that. Use strpos or similar for that (I do not know if that can check backwards) -Original Message- From: Rob W. [mailto:[EMAIL PROTECTED]

RE: [PHP] how to compare value between 2 arrays

2006-06-07 Thread Peter Lauri
Weetat, Can you be clearer, and then I might be able to help. Do you just want to perform updates towards the database? What is the status field? /Peter -Original Message- From: weetat [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 2:36 PM To: php-general@lists.php.net

[PHP] file from database work local, but not on server

2006-06-07 Thread Peter Lauri
instead of what I state as file name. Is this a server issue? I run Linux server with Plesk. Is there anyone with the same problems? Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file from database work local, but not on server

2006-06-08 Thread Peter Lauri
, while others did not work at all. Is there anyone with reference of a small example of binary storage and retrieval from database? I have performed working solutions for images before, but this should support any file extensions (with exceptions of course). Best regards, Peter Lauri

RE: [PHP] file from database work local, but not on server

2006-06-08 Thread Peter Lauri
Hi Tedd, Thank you for your answer. I have it working for images already, the problem comes to Excel, PDF's etc. I will do some more testing using your sample, thanks. /Peter -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 9:29 PM To: Peter Lauri

RE: [PHP] Short writage of clauses

2006-06-12 Thread Peter Lauri
Switch($a) { Case 1: Dowhatyouwant(); Case 2: Dowhatyouwant(); Default: Dowhatyouwant(); } -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 5:12 PM To: php-general@lists.php.net

[PHP] Setting headers for file download

2006-06-13 Thread Peter Lauri
not find it. Anyone with experience of this? Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
How can I send UTF-8 mails with the mail() function. Right now I am doing: mail('[EMAIL PROTECTED]', 'Subject', 'Message', From: The Sender [EMAIL PROTECTED] \n . Content-Type: text/plain; charset=utf-8 \n . Content-Transfer-Encoding: 7bit\n\n) The message is being sent, but the UTF-8 specific

RE: [PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
[mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 9:34 PM To: php-general@lists.php.net Subject: [PHP] Re: Sending UTF-8 mail with mail() Peter Lauri schrieb: How can I send UTF-8 mails with the mail() function. Right now I am doing: mail('[EMAIL PROTECTED]', 'Subject', 'Message', From

RE: [PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
: Tuesday, June 13, 2006 11:00 PM To: Peter Lauri; 'Barry'; php-general@lists.php.net Subject: RE: [PHP] Re: Sending UTF-8 mail with mail() At 5:25 PM +0700 6/13/06, Peter Lauri wrote: That worked better. Now I at least am getting something that looks like the same it looks in MySQL database table

RE: [PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
What do you mean with the display fonts? Do you mean the text that is inserted in the form? -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 12:55 AM To: Peter Lauri; 'tedd'; 'Barry'; php-general@lists.php.net Subject: RE: [PHP] Re: Sending UTF-8

[PHP] RE: Sending UTF-8 mail with mail()

2006-06-13 Thread Peter Lauri
Yes, that class I am aware of. However, I only want to send text/plain messages, not MIME messages. -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 4:36 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: Sending UTF-8 mail

RE: [PHP] Setting headers for file download

2006-06-13 Thread Peter Lauri
Hi, when I do that I do not get any download frame showing up. Can that be solved? -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 4:58 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Setting headers for file download

RE: [PHP] Re: Setting headers for file download

2006-06-13 Thread Peter Lauri
; filename='. basename($file_name) .''); header(Content-Length: $file_len); readfile($file_name); Peter Lauri wrote: Best group member, This is how I try to push files to download using headers: header(Content-type: $file_type); header(Content-Disposition: attachment; filename=$filename

RE: [PHP] Re: Setting headers for file download

2006-06-14 Thread Peter Lauri
in WHY the server is not sending the correct headers? This is becoming more and more irritating :) Best regards, Peter Lauri -Original Message- From: Rafael [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 6:28 AM To: php-general@lists.php.net Subject: [PHP] Re: Setting headers

RE: [PHP] Re: Setting headers for file download

2006-06-14 Thread Peter Lauri
headers for file download Peter Lauri schrieb: Best group member, This is how I try to push files to download using headers: header(Content-type: $file_type); header(Content-Disposition: attachment; filename=$filename); print $file; It works fine in FireFox, but not that good in IE. I

[PHP] Get rid of line breaks

2006-06-18 Thread Peter Lauri
Best group member, I have a variable $content that is taken from a database. It contains line breaks and the $content will be posted with line breaks. I need to use this to insert this into a JavaScript function: $output = 'writeRichText(\'rte1\', \''.$content.'\', 400, 200, true,

RE: [PHP] Re: mysql ORDER BY problem

2006-06-18 Thread Peter Lauri
Just do: SELECT * FROM thetable ORDER BY yourfieldyouwanttoorder If you want it in reverse order you add DESC in the end. /Peter -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 5:51 AM To: php-general@lists.php.net Subject: Re: [PHP] Re:

RE: [PHP] Only see class member variables, not parent class member variables

2006-06-26 Thread Peter Lauri
Thanks. I will ignore it, it is not a big deal in my Development. Was more curious if where was an easy way :) I am using PHP4 -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, June 26, 2006 3:50 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Peter Lauri
Probably nobody, as PHP is a Server Side Scripting Language. -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 7:16 PM To: php-general@lists.php.net Subject: [PHP] Controlling a scanner with PHP Hi, I have been asked to look at extending one

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Peter Lauri
Maybe JavaScript can do it for you? -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 8:01 PM To: Peter Lauri Subject: RE: [PHP] Controlling a scanner with PHP Peter, I take it you have spoken to everyone on the list then? I know that PHP

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Peter Lauri
- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 8:11 PM To: Peter Lauri Cc: 'George Pitcher'; php-general@lists.php.net Subject: Re: [PHP] Controlling a scanner with PHP Peter Lauri wrote: Probably nobody, as PHP is a Server Side Scripting Language. If there's one thing I hate

[PHP] Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
Is it possible to some how find out all cookies on a specific computer and their name and value? I assume not :) /Peter

[PHP] RE: Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: Find out cookies on a computer? Peter Lauri wrote: Is it possible to some how find out all cookies on a specific computer and their name and value? I assume not :) /Peter No, because you don't OWN them, therefore you have

RE: [PHP] Re: Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
snip The global array $_COOKIE should hold any cookie which is available to you /snip Yes, but that is just for the ones available for me. Like Google, they set a cookie if you click on one of their adwords ads and then use them in the tracking of the customer conversion. Cookies like this are

RE: [PHP] RE: Find out cookies on a computer?

2006-06-29 Thread Peter Lauri
Thank you, great reading :) -Original Message- From: Richard Collyer [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 5:01 AM To: php-general@lists.php.net Subject: Re: [PHP] RE: Find out cookies on a computer? Peter Lauri wrote: Is the question dumb? Why you answer

RE: [PHP] design?

2006-06-30 Thread Peter Lauri
How about answer extends question? -Original Message- From: David Tulloh [mailto:[EMAIL PROTECTED] Sent: Friday, June 30, 2006 9:36 AM To: Sjef Cc: php-general@lists.php.net Subject: Re: [PHP] design? Sjef wrote: Hi there, I am starting a new, very small project. A simple question

[PHP] GD to database directly

2006-07-10 Thread Peter Lauri
regards, Peter Lauri

RE: [PHP] GD to database directly

2006-07-10 Thread Peter Lauri
[snip] 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). [/snip] Is that really the case? Is this not depending on the application? :) My application will never grow, and I can easily just change the file

[PHP] Speed

2006-01-10 Thread Peter Lauri
Best group member, Assume that I save data about an object and it has 10.000 observations of the object stored in a MySQL database. I want calculate the average value of a column, is it faster done by using PHP on the result array or using the MySQL function to do that? /Peter

[PHP] private, public, protected in 4.3.11

2006-01-11 Thread Peter Lauri
message: Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in C:\Documents and Settings\Peter Lauri\My Documents\DWS Asia\webserver\ework\classes\page.class.php on line 8 If I change to var $myID; it works. What is wrong? /Peter

[PHP] Retrieve output from HTML or PHP file

2006-01-29 Thread Peter Lauri
Best group member, I have a php script running and need to save the output from an HTML-file or PHP-file. What I want to do: $the_output = thenicefunction('file.html'); Any suggestions? /Peter

RE: [PHP] Retrieve output from HTML or PHP file

2006-01-29 Thread Peter Lauri
content Hello World HTML content -- The file_get_contents('file.html') will give me -- HTLM content ?php echo 'Hello World'; ? HTML content -- Or am I not correct? Best regards, Peter Lauri -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday

[PHP] Submitting form without JavaScript

2006-02-05 Thread Peter Lauri
the page is loaded? My dream is to have a function (or class) that would be used this way: $url=url_to_submit_post_variables_to; $ps = new SubmitPost($url); $ps-addPostVar($name, $value); $ps-submitPost(); Anyone with ideas about this? Best regards, Peter Lauri -- PHP General Mailing List (http

RE: [PHP] Submitting form without JavaScript

2006-02-05 Thread Peter Lauri
But if I do not have LIBCURL? -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 2:13 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Submitting form without JavaScript Hi Peter, Curl can do it. http://www.php.net/curl Peter

RE: [PHP] Submitting form without JavaScript

2006-02-05 Thread Peter Lauri
, 2006 2:55 PM Cc: php-general@lists.php.net Subject: Re: [PHP] Submitting form without JavaScript Peter Lauri wrote: Best mailing list member, I have an external payment gateway provider (similar to PayPal) and need to send POST variables to them to initiate the Payment Process

RE: [PHP] Results In Variable

2006-02-06 Thread Peter Lauri
Put it in an array? -Original Message- From: Pastor Steve [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 8:14 PM To: PHP eMail List Subject: [PHP] Results In Variable Greetings, I am attempting to put the results of a ³while² loop into a variable. Example: $result =

RE: [PHP] Is this the most effient to do with php an mysql?

2006-02-06 Thread Peter Lauri
I do not know if it is more efficient, but you can do this: $year = date(Y); $Query = sprintf(SELECT y_id, year FROM Year WHERE year = %s ORDER BY year DESC;, $year); $Result = mysql_query($Query); May I ask you what you are using this table for? /Peter -Original Message- From: Paul

RE: [PHP] Is this the most effient to do with php an mysql?

2006-02-06 Thread Peter Lauri
PROTECTED] Sent: Tuesday, February 07, 2006 10:45 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Is this the most effient to do with php an mysql? I am using this table to find out what year the person purchased their equipment On 2/6/06, Peter Lauri [EMAIL PROTECTED] wrote: I do

<    1   2   3   >