[PHP] SQL injection - Again

2006-08-03 Thread Peter Lauri
Hi, Is there anyone in this group that has a simple script to check for SQL injection attacks? In the theory I was thinking about to check $_POST and $_GET if they contain specific "substrings" that could be used in an attempt. Maybe to loop thru all set values and see if they contain "DELE

RE: [PHP] PayPal's PHP SDK on Windows

2006-08-05 Thread Peter Lauri
Hi, Try www.php.net/curl /Peter -Original Message- From: s2j1j1b0 [mailto:[EMAIL PROTECTED] Sent: Saturday, August 05, 2006 1:51 PM To: php-general@lists.php.net Subject: [PHP] PayPal's PHP SDK on Windows I'm trying to get PayPal's PHP SDK running on Windows. After running install.p

RE: [PHP] saving and retrieving an array from a database

2006-08-07 Thread Peter Lauri
http://se2.php.net/serialize /Peter -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 7:19 PM To: php-general@lists.php.net Subject: [PHP] saving and retrieving an array from a database Hi, I have an array of values. I want to save them with php to a

RE: [PHP] php and printing

2006-08-07 Thread Peter Lauri
You can generate a PDF with fpdf and then print that. -Original Message- From: Jef Sullivan [mailto:[EMAIL PROTECTED] Sent: Monday, August 07, 2006 8:50 PM To: php-general@lists.php.net Subject: [PHP] php and printing Greetings to everyone, I have been able to program the capability

RE: [PHP] php/ajax..

2006-08-07 Thread Peter Lauri
Robert, have you studied Neuron Networks? -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 2:16 AM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] php/ajax.. On Mon, 2006-08-07 at 12:11 -0700, bruce wrote: > hi.. >

[PHP] Mixing sprintf and mysql_real_escape_string

2006-08-07 Thread Peter Lauri
Hi, I get strange output if I combine sprintf and mysql_real_escape_string. If I do this the resulting into the database is \' not ' as I want. mysql_query(sprintf("INSERT INTO table (value1, value2) VALUES (1, '%s')", mysql_real_escape_string(" ' "))); Should this be like this? Do the sprintf a

RE: [PHP] Mixing sprintf and mysql_real_escape_string

2006-08-07 Thread Peter Lauri
essage----- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 5:54 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Mixing sprintf and mysql_real_escape_string On Mon, August 7, 2006 12:35 pm, Peter Lauri wrote: > I get strange output if I combine sprin

RE: [PHP] Mixing sprintf and mysql_real_escape_string

2006-08-07 Thread Peter Lauri
[snip]My guess: magic_quotes_gpc is enabled where you're running the script. Therefore slashes are already present in the data from the form post.[/snip] Should I turn it off? Adding slashes and mysql_real_escape_string is not exactly the same thing, correct? /Peter -- PHP General Mailing List

RE: [PHP] sending a variable variables to a function

2006-08-08 Thread Peter Lauri
The function needs to be declared without "variable variable" Du like this instead: function my_function($module) { // do something with $module } And then you call the function with the variable variable: my_function($$module_no); /Peter -Original Message- From: Ross [mailto:

[PHP] preg_match

2006-08-09 Thread Peter Lauri
Hi, How do I add so that it checks for a comma , in this preg_match. I think the documentation is not that good for the pref_match: preg_match('/^[a-z0-9-_\'() +]*$/i', $s); /Peter

RE: [PHP] preg_match

2006-08-10 Thread Peter Lauri
--Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 6:06 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] preg_match Peter Lauri wrote: > Hi, > > > > How do I add so that it checks for a comma , in thi

RE: [PHP] SETCOOKIE

2006-08-12 Thread Peter Lauri
When you just use time() you tell the cookie to just live until now, so it dies directly. You have to add some seconds to determine how long the cookie will live. /Peter -Original Message- From: BBC [mailto:[EMAIL PROTECTED] Sent: Saturday, August 12, 2006 7:48 PM To: PHP Subject: [PHP]

RE: [PHP] SETCOOKIE

2006-08-13 Thread Peter Lauri
[snip] On Sat, August 12, 2006 8:00 am, Peter Lauri wrote: > When you just use time() you tell the cookie to just live until now, > so it > dies directly. You have to add some seconds to determine how long the > cookie > will live. Unfortunately, no... The above solution rel

[PHP] Need PHP developer in Thailand

2006-08-14 Thread Peter Lauri
e is maybe a PHP developer from another country that is interested to come to Bangkok for a year, not that great pay, but living standard are great. Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] script to check if form is submitted from the same page?

2006-08-14 Thread Peter Lauri
And I assume that this should be reused to minimize the time spent on this by creating a form class or function, correct? I have been thinking about this too, and it makes a lot sense to do like this. /Peter -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday

RE: [PHP] Espanol en esto lista

2006-08-16 Thread Peter Lauri
I have no clue what he is saying, but I believe he is asking if there is any list in Spanish he can join. But I might be wrong :) -Original Message- From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 5:20 PM To: Rory Browne Cc: php-general@lists.php.net Subjec

RE: [PHP] Espanol en esto lista

2006-08-16 Thread Peter Lauri
rom: Mario de Frutos [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 6:11 PM To: php-general@lists.php.net Subject: Re: [PHP] Espanol en esto lista Hi everyone! I'm spanish and i don't have any problem to answer his questions. Cheers Peter Lauri escribió: > I have no clue

RE: [PHP] Re: Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Peter Lauri
Some might suggest using JavaScript and storing the hint and solution with that. However, then it is easy for the student to cheat. You could use AJAX for this to load the info from the server upon request and put it into an "alert" or into a div with a specific id using innerHTML (JS). /Peter

RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Peter Lauri
Now I get interested, what is KISS? :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, August 19, 2006 12:14 PM To: Peter Lauri Cc: 'Ryan A'; 'php php' Subject: RE: [PHP] Dhtml/javasript layer tips or software (0.T) On Sat, 2006-

RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Peter Lauri
Robert, Isn't it to easy to cheat if you do like this? Just view the source and you have the answers. But, this is maybe not for examination, maybe just for learning. If it is examination, AJAX would be better, so that they can not find out the solution by just looking at the source. /Peter ---

RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-19 Thread Peter Lauri
I am a KISSER! :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, August 19, 2006 1:26 PM To: Peter Lauri Cc: 'Ryan A'; 'php php' Subject: RE: [PHP] Dhtml/javasript layer tips or software (0.T) On Sat, 2006-08-19 at 12:32 +070

RE: [PHP] OT alternate website authentication methods

2006-08-19 Thread Peter Lauri
1. Why not a scanner that scans your fingerprint and use that as authentication method? Then you do not need any username or password, you are who you are :) 2. Ten multiple choice questions where you have to preset the system with 5 of your dreams that only you know about, and then you have to be

RE: [PHP] syntax error help

2006-08-20 Thread Peter Lauri
Check the version of MySQL, I think sub queries came in version 4.1 and you are using that. So you probably have a version>=4.1 at localhost, and <4.1 at your server. /Peter -Original Message- From: Bigmark [mailto:[EMAIL PROTECTED] Sent: Sunday, August 20, 2006 5:19 PM To: php-general@

RE: [PHP] Shopping cart

2006-08-20 Thread Peter Lauri
Agreed... -Original Message- From: Skip Evans [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 8:25 AM To: Gerry D Cc: Larry Garfield; php-general@lists.php.net Subject: Re: [PHP] Shopping cart Granted, the shopping cart/credit card processing modules I've been required to write

[PHP] Overriding core functions

2006-08-22 Thread Peter Lauri
Hi, I want to add some functionality when calling the mysql_query(): function mysql_query($Query) { //do stuff before mysql_query($Query); //do things after } This would just be for one project where I want to record all Queries and the result of

RE: [PHP] Overriding core functions

2006-08-22 Thread Peter Lauri
Yes, of course I can do that. But I was just lazy and wanted to reuse the function mysql_query that I am already using. -Original Message- From: Paul Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 7:48 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP

RE: [PHP] Overriding core functions

2006-08-22 Thread Peter Lauri
7:27 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Overriding core functions Peter Lauri wrote: > Hi, > > > > I want to add some functionality when calling the mysql_query(): > > > function my_query($Query) { //do stuff before

[PHP] usort within a class

2006-08-23 Thread Peter Lauri
usort($array, "$this->myCompareFunction"); } } function myCompareFunction($a, $b) { //return rajraj depending on $a and $b values } Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] usort within a class

2006-08-23 Thread Peter Lauri
Working perfect, thanks :) I did RTFM but I did miss that :) -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 3:46 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] usort within a class On Thu, 2006-08-24 at 03:13 +0700

RE: [PHP] upload image

2006-08-24 Thread Peter Lauri
Maybe this will help you: $name = mysql_escape_string($_POST['doc_filename'][$key]); $author = mysql_escape_string($_POST['doc_filename_author'][$key]); $filename = mysql_escape_string($value); $filetype = mysql_escape_string($_FILES['doc_attach']['type'][$key]); $filesize = mysql_escape_string($_

RE: [PHP] functions classes

2006-08-25 Thread Peter Lauri
It should not be to big of a problem if you can set your mind into thinking about functions and objects instead of a step by step script. Then just cut it in pieces and your are done :) -Original Message- From: Bigmark [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 4:40 PM To: ph

[PHP] Email with pregmatch

2006-08-27 Thread Peter Lauri
Hi, I am trying to check if an email is an email or not, so I used this that I found on the internet: preg_match("/^([a-zA-Z0-9])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/", $_POST['email']); BUT, it returns false with the email [EMAIL PROTECTED] And ok for [EMAIL PROTECTED] What is the error here

RE: [PHP] Email with pregmatch

2006-08-27 Thread Peter Lauri
#x27;/^[a-z0-9\.-]+$/', $email_components[1]) ) return TRUE; // If we get here then it didn't pass return FALSE; } /Peter From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Sunday, August 27

RE: [PHP] Problems with UTF

2006-08-28 Thread Peter Lauri
Hi, Have you set header('Content-Type: text/html; charset=utf-8'); in your php script that you call via AJAX? Best regards, Peter PS! I assumed you were not sending any variables with the AJAX request? If so, you would need to do an utf-8 encoding of the variables and then a base64 encoding

RE: [PHP] replace single and double quotes

2006-08-29 Thread Peter Lauri
Assumning $act_id is integer: $act_extra = mysql_real_escape_string($_POST[editextra]); $act_extra_fr = mysql_real_escape_string($_POST[editextrafr]) $act_id = $_POST[editid]; $sql = sprint("UPDATE activities SET act_extra='%s', act_extra_fr='%s' WHERE act_id=%d", $act_extra, $act_extra_fr, $act_

RE: [PHP] replace single and double quotes

2006-08-29 Thread Peter Lauri
It might be bad database design yes, however, it all depends on what he is trying to do. I do it your way Jochem (normalizing the database), but in some cases the budget to do that might not be big enough. If the client gives you a task and an budget, normalizing the database might be a "waste" of

RE: [PHP] send a file or stream

2006-08-29 Thread Peter Lauri
Do you mean the following: 1. A user sends a request to your server to get a compressed file 2. You compress the file on the server 3. You want to send back to compressed file to the server It is number 3 you asking for? In that case: /Peter -Original Message- From: Rafael Mora [mai

RE: [PHP] send a file or stream

2006-08-29 Thread Peter Lauri
Should do it then. if you know the path to the file :) _ From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 10:10 AM To: Peter Lauri Subject: Re: [PHP] send a file or stream 1. A user sends a request to your server to get a compressed file 2. You

RE: [PHP] send a file or stream

2006-08-29 Thread Peter Lauri
octet-stream. /Peter _ From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 10:25 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] send a file or stream I test it and gave me this: xœ ÉÈ,V¢D…'Ôâ=®(??/§C0/¿D!1O!3· ¿¨$1¯D¡¸¤(3/]

RE: [PHP] send a file or stream

2006-08-29 Thread Peter Lauri
ginal Message- From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 11:01 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] send a file or stream Ok it works, but it returns me the same .php file, not the one I am creating On 8/29/06, Peter Lauri

[PHP] BMP and GDlib

2006-08-30 Thread Peter Lauri
Hi group, I have noticed that GD-lib does not support BMP images. In the user comment on the manual page there is a note that one can use bmp2png function to convert that (http://cetus.sakura.ne.jp/softlab/b2p-home/) This is not applicable for me when I do not want to run any outside scripts.

[PHP] Not using cached version

2006-08-30 Thread Peter Lauri
Hi, I have some images stored in a database (only file name and other relevant information, rest stored in file system). I use the following html to access them: At some pages I have the same image, so that tag will be seen on multiple places on the same page. So what I am curious is why all

RE: [PHP] Not using cached version

2006-08-30 Thread Peter Lauri
Thanks. I went for the version where I use the path to the file instead :) /Peter -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 5:02 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Not using cached version Peter Lauri wrote

[PHP] substr and UTF-8

2006-08-30 Thread Peter Lauri
string works fine, but the last character does mostly "break". How can I determine the start and end of a character. I hope the problem is clear enough, is it? :) Best regards, Peter Lauri www.lauri.se - personal web site www.dwsasia.com - company web site -- PHP General Mailing

RE: [PHP] what's all the about then?

2006-08-30 Thread Peter Lauri
Do this. 1. Create a script called hello.php with the following content: 2. Enter http://yoururl/hello.php?string=Hello 3. The page will say "Hello" The content after the ? will be treated as GET variables in the http request to the server. You can use this to change behavior of a script depe

RE: [PHP] substr and UTF-8

2006-08-30 Thread Peter Lauri
[snip] Actually this is false. I don't know what I was thinking. The high bit will be set in all bytes of a UTF-8 byte sequence. If it's not it's an ASCII character. The bytes are actually layed out as follows [1]: U- ___ U-007F: 0xxx U-0080 ___ U-07FF: 110x

RE: [PHP] send a file or stream

2006-08-30 Thread Peter Lauri
() { fwrite($da, "$somevar1:$somevar2"); } fclose($da); readfile(); thanks On 8/30/06, Peter Lauri <[EMAIL PROTECTED]> wrote: > > Try this: > > header("Pragma: public"); > header("Expires: 0"); // set expiration time > header(&quo

RE: [PHP] send a file or stream

2006-08-30 Thread Peter Lauri
readfile(); -Original Message- From: Rafael Mora [mailto:[EMAIL PROTECTED] Sent: Thursday, August 31, 2006 1:25 AM To: Peter Lauri Cc: php-general Subject: Re: [PHP] send a file or stream I can download it, but when I see the file I downloaded has 0 bytes, and I have readfile("stations.

RE: [PHP] php generated javascript

2006-08-30 Thread Peter Lauri
Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the source code of the page that has been generated in the browser, and if that one looks as it should, it is probably your javascript that is not doing what it should :) And if t

[PHP] Extream OT

2006-08-31 Thread Peter Lauri
HI, This is very Off Topic, but I have no clue where to go to find out this information fast enough. I have a client that just changed their mind and want me to host their web services. However, they have their current hosting setup on a Windows NT server. Now the question comes: How the he

[PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
Hi, This is really odd. I use this code to retrive value from a database table. When the field is empty, it cracks the HTML code some how, the PHP script seam to not break. function getInfo() { $html = ""; $html.= "Name".$this->getName()."";

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
Just figured out that it seams to happen when the request is done via AJAX. But it does not make any sense to me that there should be any difference. /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 1:53 PM To: php-general

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
[snip] Can you send an example of the broken HTML? What are the symptoms of the html being broken. Finally, in what way are you using AJAX. This looks like html output - so is it really AJAH? My first guess is that something about the context at the browser end makes - an empty table elemen

RE: [PHP] Crazy behavior...

2006-09-03 Thread Peter Lauri
: Peter Lauri Cc: php-general@lists.php.net Subject: RE: [PHP] Crazy behavior... Peter, When it arrives at the browser, via ajax, I am guessing that you then put it into the page view .innerHTML or some other method. I suspect your problem revolves around asking the browser to do stuff it should

[PHP] Is this unsecure?

2006-09-05 Thread Peter Lauri
ers that are used to generate the $authstring? Maybe someone have experience with this? Or just a comment? Best regards, Peter Lauri www.lauri.se <http://www.lauri.se/> - personal web site www.dwsasia.com <http://www.dwsasia.com/> - company web site

RE: [PHP] Is this unsecure?

2006-09-05 Thread Peter Lauri
Isn't that just to send a username and password with the request? Or is the username and password protected somehow in that process? -Original Message- From: Paul Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 4:08 PM To: Peter Lauri Cc: php-general@lists.ph

RE: [PHP] Re: Is this unsecure?

2006-09-05 Thread Peter Lauri
[snip] This seems the easiest for me: - Determine IP address of Server A. - At Server B: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mirror url

2006-09-12 Thread Peter Lauri
before, and I am curious of how difficult it would be to create a dynamic system for this. When the affiliate signs up they can choose their subfolder and the system will automatically create necessary files and copy them. Am I clear of what I want to accomplish? Best regards, Peter Lauri

RE: [PHP] Mirror url

2006-09-12 Thread Peter Lauri
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:11 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] Mirror url Peter Lauri wrote: > My client wants an affiliate system developed. I already have an affiliate > syste

RE: [PHP] mail() help

2006-09-12 Thread Peter Lauri
What are you doing on this line: $headers .= 'From: MyADTV @yahoo.co.in>' . "\r\n"; Should it not be: $headers .= 'From: MyADTV <[EMAIL PROTECTED]>' . "\r\n"; ? /Peter www.lauri.se - personal web site www.dwsasia.com - company web site -Original Message- From: suresh kumar [mailto:

[PHP] Affiliate system

2006-09-12 Thread Peter Lauri
end a=1234 onto every url that they pass, but that would not be a "beautiful" solution. Maybe I can also create a SESSION that stores the affiliate information so that it at least get registered if the purchase is completed within the session? What do you think is the best way? Best r

RE: [PHP] Affiliate system

2006-09-13 Thread Peter Lauri
problem by saving information in 2 places (in cookies and in database). So when saving data once I saved in the cookie then into database. When I wanted to read the information I first check if cookie exist and if it doesn't I read from database. Andy Peter Lauri wrote: > Hi guys, &

RE: [PHP] PHP and mySQL dates

2006-09-13 Thread Peter Lauri
[snip] Hi all. I am building an online events registry and have mapped out all the dates between Oct 1 2006 and Dec 31 2030, stored in the database as timestamps incremented by 86400 to give daily slots. [/snip] I do not really understand the purpose of mapping all dates between Oct 1 2006 and De

RE: [PHP] PHP and mySQL dates

2006-09-13 Thread Peter Lauri
No problem, now I will go and make my girlfriend happy :) -Original Message- From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 6:27 PM To: Peter Lauri Cc: PHP General Subject: Re: [PHP] PHP and mySQL dates Thanks. I have been so up close and personal

[PHP] preg_replace (again)

2006-09-19 Thread Peter Lauri
Hi group, I know I am a little bit stupid when it comes to actually figuring out how to use the preg_match and preg_replace. This is what I am facing: A string like this: This is some _color:pink_ colored text _color_ that I want to transfer Should convert to: This is some colored text

RE: [PHP] preg_replace (again) [solved]

2006-09-19 Thread Peter Lauri
Just to share my solution: preg_replace('/_color:(.*?)_(.*?)_color_/i', '$2', $html); /Peter -Original Message----- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 9:42 AM To: 'PHP General' Subject: [PHP] preg_replace (again

RE: [PHP] preg_replace (again) [solved]

2006-09-20 Thread Peter Lauri
private system, so I do not worry so much :) /Peter -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 2:13 PM To: Peter Lauri Cc: 'PHP General' Subject: RE: [PHP] preg_replace (again) [solved] On Wed, 2006-09-20 at 11:45 +0

[PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
and then convert it to windows-874 and then send it to the SMS gateway? Best regards, Peter Lauri www.lauri.se <http://www.lauri.se/> - personal web site www.dwsasia.com <http://www.dwsasia.com/> - company web site

RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
7 Was one of my attempts... Anyone with a hint of how to work out this problem? /Peter -Original Message----- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 5:10 PM To: 'PHP General' Subject: [PHP] Convert UTF-8 to windows-874? Hi group, I

RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
Hi, I was on the right track. However, the mbstring does not seam to support windows-874 (ISO-8859-11). What is the next step I could take? One not the good is to convert the whole system to Windows-874 and use that, but that is not so fun. Please help me :) Best regards, Peter Lauri

RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
Iconv did it for me, a great thanks!!! /Peter -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 11:12 PM To: Peter Lauri Cc: 'PHP General' Subject: RE: [PHP] Convert UTF-8 to windows-874? I think that the iconv function/packag

RE: [PHP] Rapid application development

2006-09-29 Thread Peter Lauri
Why don't you reuse the basic code from your old projects? Then you don't need to worry about this :) (OOP) -Original Message- From: Ahmad Al-Twaijiry [mailto:[EMAIL PROTECTED] Sent: Saturday, September 30, 2006 12:45 PM To: PHP Subject: [PHP] Rapid application development Hi Everyone,

[PHP] WebMail client

2006-10-02 Thread Peter Lauri
Hi, Do you have any suggestion on WebMail clients written in PHP that is good and easy to install? Horde IMP and SquirrelMail is two that I found. Are there any AJAX supporting client? /Peter

RE: [PHP] a function for retuned vatiable

2006-10-02 Thread Peter Lauri
Not actually sure what you want, but this might do it :) $j = 0; While($Row = mysql_fetch_array($Result)) { $email[$j] = $Row['email']; ... ... $j++; } -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: Monday, October 02, 2006 7:09 PM To: php-

[PHP] Template system

2006-10-05 Thread Peter Lauri
to build more complicated pages structures. Best regards, Peter Lauri www.lauri.se <http://www.lauri.se/> - personal web site www.dwsasia.com <http://www.dwsasia.com/> - company web site

RE: [PHP] Template system

2006-10-05 Thread Peter Lauri
rsday, October 05, 2006 5:59 PM To: Peter Lauri Cc: PHP Subject: Re: [PHP] Template system Smarty? smarty.php.net -- http://www.web-buddha.co.uk

[PHP] $_SERVER['HTTP_REFERER']

2006-10-08 Thread Peter Lauri
them have. I assume some of the links are not from a traditional link. Is there any other way to do this? Best regards, Peter Lauri www.lauri.se <http://www.lauri.se/> - personal web site www.dwsasia.com <http://www.dwsasia.com/> - company web site

RE: [PHP] Seperate HTML from PHP

2006-10-10 Thread Peter Lauri
Have you tried Smarty (smarty.php.net)? -Original Message- From: Sancar Saran [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 3:43 PM To: php-general@lists.php.net Subject: [PHP] Seperate HTML from PHP Hi there, following words are my ideas about that HTML PHP parting. I hope y

[PHP] PHP Mailer and SMTP = SPAM?

2006-10-10 Thread Peter Lauri
good to go? We are not talking about millions of emails per day here, maybe a few thousands. What are the risks of ending up being a spam marked ip? Best regards, Peter Lauri www.lauri.se <http://www.lauri.se/> - personal web site www.dwsasia.com <http://www.dwsasia.com/> - company web site

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

2006-10-11 Thread Peter Lauri
spam. certain things will increase that probability. your point "2." is mostly irrelevant. an smtp server simply needs to be configured so it is not an open relay. that is generally the default configuration (of any MTA that's worth using), and is achievable without smtp auth. [/s

[PHP] readfile() problem

2006-10-12 Thread Peter Lauri
der("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=$Row[filename]"); header("Content-Transfer-Encoding: binary"); $filesize = filesize($filelocation); header("Content-Length: $filesize"); readfile($file

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 - personal website 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-12 Thread Peter Lauri
ot;could NOT set"; /Peter -Original Message- From: Richard 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 di

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
$m1 = $matches[0]; $m2 = $matches[1]; if(count($m1)>1) { $m2[0] = "$m2[0]"; $thestr = implode(" ", $m2); } elseif(count($m1)==1) { $thestr = $m2[0]; } else $thestr = ""; echo $thestr; echo ""; ?> Best regards, Peter Lauri w

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 libra

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

2006-12-26 Thread Peter Lauri
ST['mysql'])) { //do 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]

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.s

[PHP] Script updating secondary server

2006-02-21 Thread Peter Lauri
this great language. Best regards, Peter Lauri Managing Director DWS Asia Mobile: +66 (0) 4 703 4033 Office: +66 (0) 2 974 3384 Fax: +66 (0) 2 974 2038 [EMAIL PROTECTED] www.dwsasia.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 ""; print_r( $args ); echo ""; 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 (E-m

[PHP] Where to put my class files

2006-02-27 Thread Peter Lauri
do not think my $class_path 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
eal domain name 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,

RE: [PHP] to check idle time of users

2006-03-15 Thread Peter Lauri
ake", just ignore it, someone 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! T

<    1   2   3   4   >