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

2006-02-06 Thread Peter Lauri
And mysql is probably the fastest way. BUT use microtime and clock your scripts to find out witch one is faster. -Original Message- From: Paul Goepfert [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 10:45 AM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP

[PHP] XML parsing

2006-02-09 Thread Peter Lauri
Hi, When I go thru this documentation the parsing seem to be very complex. With Java this was not the case. Assume I have XML like this: $xml = 'greetingfromPeter/fromtoThe group/to/greeting'; I would like to get the value of 'from' and 'to'. My dream function would be:

Re: [PHP] XML parsing

2006-02-09 Thread Peter Lauri
I am getting killed by the strong Thai woman that is giving me massage here in Bangkok. Tnx -Original Message- From: Kim Christensen[EMAIL PROTECTED] Sent: 9/02/06 6:13:48 PM To: Peter Lauri[EMAIL PROTECTED] Cc: PHP General Usersphp-general@lists.php.net Subject: Re

[PHP] socket_read

2006-02-09 Thread Peter Lauri
use a value of 'length' that with margin is larger then the size I will receive. Is it possible to get the size of what is ready to be read from the socket? Best regards, Peter Lauri

FW: [PHP] socket_read

2006-02-09 Thread Peter Lauri
Ok, any standard value for the size to read per time? Will the total time be faster if a larger maximum size is choosed? -Original Message- From: Oli Howson [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 12:10 AM To: php-general@lists.php.net Subject: Re: [PHP] socket_read

[PHP] Complications when sending HTML email

2006-02-13 Thread Peter Lauri
Best group member, I am sending HTML email with PHP. I use the example code in the manual to try, and the email is sent. However, it is not decoded correctly in my Outlook. I checked thru webmail clients, and then it work. I thought it was my Outlook that was not correct, but I am receiving HTML

RE: [PHP] Complications when sending HTML email

2006-02-14 Thread Peter Lauri
with a simple html-example that works fine with Outlook? Best regards, Peter Lauri -Original Message- From: Weber Sites LTD [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 4:27 PM To: 'Peter Lauri'; php-general@lists.php.net Subject: RE: [PHP] Complications when sending HTML email Did

RE: [PHP] Session problems

2006-02-16 Thread Peter Lauri
What is the code that generates this? -Original Message- From: Dan Parry[EMAIL PROTECTED] Sent: 16/02/06 4:50:51 PM To: php-general@lists.php.netphp-general@lists.php.net Subject: [PHP] Session problems Hi all I've been getting an error while

[PHP] Logging visitors path and presenting this to visitors

2006-02-17 Thread Peter Lauri
Hi, I am about to create a feature that will help the visitor in his/her navigation of the page. I want to store the visitors last 10 pages that was visited so that this person easily can go back to a page he was at before, without using the BACK button. I see two solutions to this, but I am

RE: [PHP] question about foreach and associate array

2006-02-20 Thread Peter Lauri
Just do: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row.br/; echo $arg['textarea']['body'].br/; } The $row is an string, and what you are trying to do the $row['body']. And php will translate 'body' to 0 in this, I do not know why :) Try echo

[PHP] Script updating secondary server

2006-02-21 Thread Peter Lauri
of 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

[PHP] copy() not working

2004-11-16 Thread Peter Lauri
Best groupmember, I am implementing a script to upload a file to my webserver. I am using this form that I copied from a working application: echo 'form action=imageadmin.php method=POST enctype=multipart/form-data'; echo 'input type=file name=Filebrinput type=submit name=submit value=Upload

Re: [PHP] copy() not working

2004-11-16 Thread Peter Lauri
[tmp_name] = /tmp/phpugQpuz [error] = 0 [size] = 1054 ) ) - BEST OF TIMES /Peter Burhan Khalid [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED]... On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote: Best groupmember, I am implementing

[PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
a big array to do this. How do I loop thru the array without the overhead of each()? - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
Hey :) But what if the array have a unordered keystructure? What your loop do is to call the value with key $i, or am I wrong? What if the keys are strings? - Best Of Times /Peter Lauri Dirk Kredler [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] hey :) i use for this reason

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
Probably, thank you :) Pluance [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] You mean this? foreach ($arr as $key = $value) { echo \$arr[${key}] = $value; } On Wed, 17 Nov 2004 14:05:23 +0100, Peter Lauri [EMAIL PROTECTED] wrote: Hey :) But what if the array have

[PHP] Re: how to show errors in browser

2004-11-17 Thread Peter Lauri
Check the function error_reporting() or check the settings in the php.ini - Best Of Times /Peter Rayan Lahoud [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hy, i am opening php files from my browser. If there are some errors in the php file i can not see what are the errors in

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
Best groupmember, I have an multidim array that looks something like this: [40] = [1]=32, [2]=55, [total]=87 [22] = [8]=2, [7]=105, [total]=107 [142] = [2]=3, [7]=8, [total]=11 I want to sort this array according to the total and still keep the acc. with the basekey. I know I can easily do this

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
Best groupmember, I have an multidim array that looks something like this: [40] = [1]=32, [2]=55, [total]=87 [22] = [8]=2, [7]=105, [total]=107 [142] = [2]=3, [7]=8, [total]=11 I want to sort this array according to the total and still keep the acc. with the basekey. I know I can easily do this

[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
I have tried to figure it out how to use it with those, but I can not find a solution. - Best Of Times /Peter Sebastian Mendel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: Best groupmember, I have an multidim array that looks something like

[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
I have tried to figure it out how to use it with those, but I can not find a solution. - Best Of Times /Peter Sebastian Mendel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: Best groupmember, I have an multidim array that looks something like

[PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
Best groupmember, I have an webapplication that uses different languages and therefor I have set up different directorys for each language. All languages use the same classes. The problem I have is when I want to require() the classfile I can not require a file that is not in the same directory

Re: [PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
); But that doesn't work. Help :) Pluance [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] What error happen? On Thu, 18 Nov 2004 09:15:22 +0100, Peter Lauri [EMAIL PROTECTED] wrote: Best groupmember, I have an webapplication that uses different languages and therefor I have

[PHP] PHP-editor connected to FTP?

2004-11-18 Thread Peter Lauri
Best groupmember, What editor do you use when working with websites (php) connected directly to the FTP? I like Eclipse 3.0 with the PHP plugin, but it do not have the future to connect to the FTP. - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Sequrity without HTTPS?

2004-11-18 Thread Peter Lauri
variable with some hacker techniqe? I assume it is easy to listen to the USERNAME and PASSWORD in the POST-form. Someone with some tips and tricks to get a secure system without using HTTPS? -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] require() in other directories?

2004-11-18 Thread Peter Lauri
news:[EMAIL PROTECTED] On Thursday 18 November 2004 16:32, Peter Lauri wrote: I get the Failed to open stream, no such file in directory If you were in one of these folders: /fr/ /eng/ And your classfile was namned classes.php and in the directory: /classes/ And you wanted to include

[PHP] Re: Sequrity without HTTPS?

2004-11-18 Thread Peter Lauri
If you use the Autority HTTP that pops up a login window by default, is that safe against listeners? /Peter Sebastian Mendel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: Best groupmember, I am about to develop an simple admintool for a webpage. My

[PHP] Re: Sorting multidim array and keeping associations

2004-11-18 Thread Peter Lauri
The problem was more complex than I described, I instead wrote a sorting algorithm for this specific purpose. The array multi-dim array looks like this (short version). The total element is just the sum of the other. This is a point system for golftournaments. I wanted to sort them first on total

[PHP] Organisation of classes

2004-12-01 Thread Peter Lauri
to include every file as a .php class in every php that I want to use the class? -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Organisation of classes

2004-12-01 Thread Peter Lauri
. Was hoping that it would be some sort of library system that could be used for classes. Package? /Peter John Holmes [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Peter Lauri wrote: For the moment I have all my classes saved in a file called classes.php in a subdirectory /classes

[PHP] Execution time?

2004-12-01 Thread Peter Lauri
Best groupmember, How do I find the execution time for a php-script on a webserver? ms? -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
Best groupmember, I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there any date function that can assist in calculating the number of days left until 2004-12-24 when it is 2004-11-05. (the dates are just testdates) -- - Best Of Times /Peter Lauri -- PHP General Mailing

[PHP] Days remaining?

2004-12-02 Thread Peter Lauri
Best groupmember, I have the date 2004-12-24 in a string, and 2004-11-05 in a other. Is there any date function that can assist in calculating the number of days left until 2004-12-24 when it is 2004-11-05. (the dates are just testdates) -- - Best Of Times /Peter Lauri -- PHP General Mailing

[PHP] Re: Sessions: Basic Information

2004-12-02 Thread Peter Lauri
Sessions will make you life easier if you are using cookies to control a web session. http://th.php.net/manual/en/ref.session.php will give you most information regarding this, together with some examples. Play around with simple own examples and you will learn to work with sessions relativly

[PHP] Re: Need Help

2004-12-02 Thread Peter Lauri
Use ?php ? if you are implementing php. I think that you can predefine what scriptlanguage to use, and therefore ? ? can be used. /Peter Suneel [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi to all any one Could tell me any diffrence between ?php ? and ? ?. And

[PHP] Re: Stupid question

2004-12-04 Thread Peter Lauri
Do phpinfo() for that, you will find that information there. /Peter Phpu [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, If i have a php and mysql website...how many connections support mysql at one time ? Thanks -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] copy() not working

2004-12-05 Thread Peter Lauri
Solution to the problem: instead of trying to write it to /image/filename I write it to ../image/filename, that solves my problem :) /Peter Peter Lauri [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Thank you. Now I am getting somewhere, but I get this error-msg now, I do

[PHP] Re: Sessions in Frames...confused

2004-12-06 Thread Peter Lauri
Do not use frames :) It creates problems for the searchengines. /Peter Ryan A [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, Reading the different articles on phpbuilder/devshed/phpfreaks etc has left me a bit confused.. will start from the beginning so you guys(and girls)

[PHP] Re: Session variables not unsetting

2004-12-06 Thread Peter Lauri
Security? Have you called session_start(); ??? /Peter Steve [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Steve wrote: I'm having a problem with session variables. Never mind. Seems that the hosting company decided this week to switch from register_globals off to

[PHP] Re: Sessions and subdomains issues

2004-12-06 Thread Peter Lauri
I had a similar problem before. I had my admin at admin.mydomain.com, and the cookies did not transfer. I changed it to www.mydomain.com/admin instead... In my host my subdomain admin.mydomain.com is located in www.mydomain.com/admin, I assume similar structure for you? /Peter Nick Wilson

[PHP] Desparate

2004-12-07 Thread Peter Lauri
: news.opennewsserver.com I know that this is not supposed to be posted in this group, not relevant to the subject, sorry about that. But I have tried to find a solution for two weeks now. -- - Best Of Times /Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: OT Re: Desparate

2004-12-08 Thread Peter Lauri
I have looked there, did not find what I wanted :) Know of any open MySQL newsgroup? Java newsgroup? /Peter David Robley [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] On Wed, 8 Dec 2004 16:31, Peter Lauri wrote: Best groupmember, I just moved to Bangkok and have a huge

[PHP] Re: Sorting multidim array and keeping associations

2004-12-11 Thread Peter Lauri
by making the Query correct. /Peter Peter Lauri [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Best groupmember, I have an multidim array that looks something like this: [40] = [1]=32, [2]=55, [total]=87 [22] = [8]=2, [7]=105, [total]=107 [142] = [2]=3, [7]=8, [total]=11 I

[PHP] PHP vs JSP?

2004-12-11 Thread Peter Lauri
Best groupmember, Why should I choose PHP instead of JSP/Servlets when it comes to develop a high-traffic site. Assume that the infrastructure for both are set up. It only comes to efficiency (both coding and running)? What are your experience? -- - Best Of Times /Peter Lauri -- PHP General

[PHP] Re: MySQL Connection problem

2004-12-11 Thread Peter Lauri
It would be nice if you submit code that generates the error. /Peter Mike Francis [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, I have Apache 2, PHP 5 and MySQL 4.1 installed on an XP pro box. I have created a new database 'ijdb' with a single table 'joke' and have entered

RE: [PHP] First Character In A String

2007-01-21 Thread Peter Lauri
$firstchar = substr($string, 0, 1); Read www.php.net/substr 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: Christopher Deeley [mailto:[EMAIL PROTECTED] Sent: Sunday

RE: [PHP] most powerful php editor

2007-01-21 Thread Peter Lauri
for Eclipse, and that one behavied like you describe, therefore my change to SourceForge PHP Eclipse Plugin. 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: Larry Garfield

RE: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Peter Lauri
. Or better: Check if there is a method __destruct() existing and use that when cleaning up. Then it would be forward compatible with PHP 5 as well :) 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] __construct __destruct in PHP 4

2007-01-28 Thread Peter Lauri
Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Sunday, January 28, 2007 4:27 PM To: Peter Lauri Cc: 'Larry E. Ullman'; php-general@lists.php.net

RE: [PHP] HTTPS

2007-01-28 Thread Peter Lauri
http://php.net/curl 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: chetan rane [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 8:31 AM To: php-general

RE: [PHP] Need desperate help with query

2007-01-31 Thread Peter Lauri
SELECT COUNT(*) AS thecount FROM table1 LEFT JOIN tabel2 ON (table1.col1 = table2.col2) GROUP BY table1.col3 ORDER BY thecount; It might give you some hints... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon

RE: [PHP] Programacion orientada a objetos

2007-01-31 Thread Peter Lauri
Try to google for orientada a objetos en PHP con MySql :) 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: Jairo Torres [mailto:[EMAIL PROTECTED] Sent: Wednesday, January

RE: [PHP] Send Email to Mobile

2007-02-01 Thread Peter Lauri
This kind of hassle you can avoid if you use PHPMailer that you can find at http://phpmailer.sourceforge.net 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: Marcelo

RE: [PHP] Graphs

2007-02-03 Thread Peter Lauri
Gnuplot can do it for you as well... 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: Friday, February 02, 2007 12:56 PM

[PHP] OT - Regular Expression

2007-02-09 Thread Peter Lauri
trying to figure this out for a while now. Of course I am using the above syntax right now, but would like to strip it down. Maybe not for the performance, but for the beauty of it :-) If you have any comments and suggestions about this I would be happy. Best regards, Peter Lauri http

RE: [PHP] OT - Regular Expression

2007-02-09 Thread Peter Lauri
[snip] Why not use two checks? One that checks for 4 digits, the other checks for existence of 8 anywhere in the string? Cheers, Rob. [/snip] Of course that is a possibility. But I wonder if there is a way to do it with ONE expression. So there are no AND operator in Regular Expressions then I

RE: [PHP] OT - Regular Expression

2007-02-09 Thread Peter Lauri
Thanks. I will look into more of the lookahead and lookbehind operators. 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: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] plugging gmmktime value into gmdate yields incorrect date

2007-02-15 Thread Peter Lauri
And what are the time zones for those two different machines? And what is the time? :) 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: Terra Frost [mailto:[EMAIL PROTECTED

RE: [PHP] mysql_affected_rows inaccurate?

2007-02-15 Thread Peter Lauri
Sometimes you can get fooled by the result. If nothing is changed on a update the result for this function will give 0, because nothing was affected. Although you might think so just because you are doing an update. However, an update doesn't necessary mean an update :) Best regards, Peter Lauri

RE: [PHP] Quick organizational question...

2007-02-16 Thread Peter Lauri
); } } ? 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: Mike Shanley [mailto:[EMAIL PROTECTED] Sent: Saturday, February 17, 2007 5:06 AM To: php-general@lists.php.net Subject: [PHP

[PHP] Catch STDERR

2007-02-17 Thread Peter Lauri
, doesn’t make any sense to do that. Best regards, Peter Lauri   www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] LOL, preg_match still not working.

2007-02-17 Thread Peter Lauri
... I wonder why? :) 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: Vahan Yerkanian [mailto:[EMAIL PROTECTED] Sent: Saturday, February 17, 2007 7:02 PM To: php-general

RE: [PHP] Catch STDERR

2007-02-19 Thread Peter Lauri
It looks like that will be the situation. Sad that exec() don't have that feature as an option. Maybe in the future :) 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] Poblem with sesions

2007-02-19 Thread Peter Lauri
Have you tried to print_r($_SESSION) on all the pages so that you can see what the $_SESSION is containing and how it is changing? 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] Install / update php rpm packages with FC6

2007-02-20 Thread Peter Lauri
Do you really need to use an RPM package to install a PHP on FC. Why not yum install php instead... and for any extension you might want you just install that as well yum install php-gd as example. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site

RE: [PHP] Latin letter problem!

2007-02-20 Thread Peter Lauri
How are you setting the charset of the web page? Are you using header() or using html head section to set 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: Delta Storm

RE: [PHP] php forcing a post??

2007-02-20 Thread Peter Lauri
fsockopen can probably help you with that http://www.php.net/fsockopen 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: blackwater dev [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] php forcing a post??

2007-02-20 Thread Peter Lauri
Or cURL: http://php.net/curl 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: blackwater dev [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 9:45 PM To: php

RE: [PHP] Catch STDERR

2007-02-20 Thread Peter Lauri
[snip] Do you need STDERR to go out to, err, wherever it goes, *AND* get it into your PHP script? Perhaps 'tee' (man tee) would let you do that. Or do you just need STDOUT in one variable, and STDERR in another, both in PHP? I think you could do something in shell to re-bind STDOUT to some

RE: [PHP] css in mail()

2007-02-20 Thread Peter Lauri
. Best regards, 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: Sancar Saran [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 3:02 AM To: [EMAIL PROTECTED] Cc: php

RE: [PHP] Catch STDERR

2007-02-21 Thread Peter Lauri
will either use this or redirect STDERR to a file and read it from there. Best regards, 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: steve [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] DOM Element default ID attribute

2007-02-21 Thread Peter Lauri
This was not clear for me, do you mean: a peter = a id=peter 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: Eli [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22

RE: [PHP] GET doesn't work as POST

2007-02-24 Thread Peter Lauri
How are you fetching the GET and POST? With $_GET and $_POST? 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: Otto Wyss [mailto:[EMAIL PROTECTED] Sent: Saturday, February

RE: [PHP] Include file path.. please help im newby

2007-02-24 Thread Peter Lauri
the include is. Then it will first look in . /include /usr/lib/php Take a look here http://www.php.net/include to read more about the include function in PHP. 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] PHP+MySQL website cache ? Yes/No

2007-02-25 Thread Peter Lauri
MySQL has caching functions I believe. Read here: http://dev.mysql.com/doc/refman/5.0/en/query-cache.html 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: Martin Zvarík

RE: [PHP] PHP shell_exec

2007-02-27 Thread Peter Lauri
ssh2_exec would do it for you... 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: h [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 3:18 PM To: php-general

RE: [PHP] Who in this list would you...

2007-02-27 Thread Peter Lauri
[snap] [snip] He would need to work in-house. And the location is somewhere in Scandinavia. He could work as sub contractor or employed for my company. [/snip] I don't know too many list denizens who live in Scandinavia, so that severely limits your choices. [/snap] I live in Thailand but that

RE: [PHP] Eregi error

2007-02-28 Thread Peter Lauri
, otherwise it will be treated as a range. 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: Brad [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 5:09 AM To: PHP Mailing

[PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
that yet, want to get some feedback first. Best regards, Peter Lauri http://www.dwsasia.com/ www.dwsasia.com - company web site http://www.lauri.se/ www.lauri.se - personal web site http://www.carbonfree.org.uk/ www.carbonfree.org.uk - become Carbon Free

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
The thing is that the commands are executed as they should. I have tested to give full path /bin/ls and that gives the same result. BUT the exit code is -1 still. Not 0 as when running it from command line. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
a shell script that runs PHP only to run a shell script that just does 'ls', which, really, you could probably just splat into your shell script without PHP being involved... [Peter Lauri - DWS Asia] It is a much more complicated logic, so therefore I am not using a shell script. I

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
. [Peter Lauri - DWS Asia] I will take a look at that tomorrow; right now it is 1am and time for bed :) I will keep you updated on that one to inform you if your theory was working :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] dst and strtotime

2007-03-12 Thread Peter Lauri
Is your system time correct? 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: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 6:10 PM To: PHP

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Peter Lauri
Thank you! I did not know about the ucwords() functions, and it does not need the string set to lower case. Now to create a filter that returns only numbers (e.g. a1234z - 1234) and the same for non-numbers. [Peter Lauri - DWS Asia] This to replace all non-digit characters

Re: [PHP] Rewriting urls

2007-03-26 Thread Peter Lauri
On Monday 26 March 2007 19:49:48 Erik Jones wrote: Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/   as this is a php list :) Thanks. This solved it for me: http://forum.modrewrite.com/viewtopic.php?p=10796#10796 /Peter -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] changing array to a string

2007-03-27 Thread Peter Lauri
[] value=7 type=checkboxtest message /td/tr /table input type=hidden name=doit value=yes input type=submit name=submit /form [Peter Lauri - DWS Asia] Check www.php.net/implode Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
? Thanks! [Peter Lauri - DWS Asia] Hi, Assuming you are on a linux you could try: exec(find /the/path/to/the/place/where/you/should/start/searching -type f -name 515515515*.ext, $files); Then the $files will be an array with the found files matching the search. Best regards, Peter Lauri

RE: [PHP] Gnome and MIME types

2007-03-29 Thread Peter Lauri
Is php safe mode on or off? 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: Nathan Ziarek [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:30 PM To: php

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
); /Peter -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:49 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Peter, Believe it or not, but this is actually working. I'm on a Mac OS X, which is linux

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
DON'T commit suicide mate :) What if you one day move the path? ;) -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:54 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Ave, This Works

RE: [PHP] Re: finding the index name of an associative array

2007-04-01 Thread Peter Lauri
. foreach is recursive??? thanks. -- [Peter Lauri - DWS Asia] foreach is NOT recursive :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problems downloading a PDF

2007-04-04 Thread Peter Lauri
)); header('Content-disposition: attachment; filename='. basename($file) .''); readfile($full); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [Peter Lauri - DWS Asia] You are echoing stuff before sending the file

RE: [PHP] Sense last record

2007-04-09 Thread Peter Lauri
); //or equivalent in AdoDB $i=1; while(...) { if($i==$count) { //Do the stuff for the last one } else { //Do the rest of the stuff here } $i++; } Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site

RE: [PHP] redirect http to https

2007-04-09 Thread Peter Lauri
, or what ever instructionyour web server has. Um...guess I will have to check with our hosting company about this. Thanks. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [Peter Lauri - DWS Asia] You might be able to do

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
it says authenticated = yes, and you're authenticated... Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [Peter Lauri - DWS Asia] If cookies were that unsecured so you could create your own cookies that easily, then would cookies

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
Lauri - DWS Asia] Having these tools is probably not illegal. But using them illegally is illegal :) Could you send me some more info off-list about this. Knowing how to use these tools will probably help me making my sites more secure, am I not right? :) Best regards, Peter Lauri www.dwsasia.com

RE: [PHP] Copying PHP array into a Javascript array

2007-04-10 Thread Peter Lauri
Check www.php.net/json You can use the encode function there. 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: Otto Wyss [mailto:[EMAIL PROTECTED] Sent: Tuesday, April

RE: [PHP] PHP Command line script

2007-05-02 Thread Peter Lauri
Check the error from mysqli: http://fi.php.net/manual/en/function.mysqli-error.php 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: Nathaniel Hall [mailto:[EMAIL PROTECTED

<    1   2   3