Re: [PHP] Exceptions

2007-08-09 Thread Peter Pan
is a great idea, but not realistic given the amount of times this function is called. Thank you for your help! I'll update the list with my findings. -ec From: Nathan Nobbe [EMAIL PROTECTED] To: Peter Pan [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] Exceptions Date: Thu, 9

RE: [PHP] Removing a row from an Array

2007-06-04 Thread Peter Lauri
Using array_pop wouldn't do it, as it just removes the last element. You could use unset() for the rows you don't want to keep. 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] exec dont work for svn

2007-05-29 Thread Peter Lauri
Hi, In many apps the messages comes as STDERR, so try: exec(svn update 21, $out); 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: Manolet Gmail [mailto:[EMAIL PROTECTED

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

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] 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
Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, but every cracker is 99% illegal right? But that means i can't give you these tools to proof it, but it is possible. Tijnema [Peter

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] 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] 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] 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] 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] 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] 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

[PHP] Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes 20-30 seconds

RE: [PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes

[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] 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

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] 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] 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] 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] 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
/notices during the script. Actually I want to show the whole process if it fails so 21 for exit code not equal to 0. I'll probably end up writing a patch for exec now :) /Peter www.dwsasia.com www.lauri.se www.carbon-free.org.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe

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

[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] 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

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

[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
assume. /^([0-9]{4}[0-9]{0,3}8[0-9]{0,3})$/ That would be nice :) But now there are no AND operator :*( /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] 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

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] 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] __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
:) This is just to simulate something that is missing in PHP 4 and that I as a standard am working with. To close down database connections etc are not the purpose at this stage for me as PHP will take care of these resources by it self. Ok, back to Sunday afternoon programming :) Best regards, Peter

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] 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] 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] 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] 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] 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] 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] 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] 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

[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] 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

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

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] calling a function in the same page

2006-12-25 Thread Peter Lauri
library that you can do AJAX requests with and then do what you want with by DOM. /Peter -Original Message- From: Jahangir [mailto:[EMAIL PROTECTED] Sent: Sunday, December 24, 2006 5:34 PM To: php-general@lists.php.net Subject: [PHP] calling a function in the same page I am trying to call

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

[PHP] preg_match to preg_replace

2006-12-11 Thread Peter Lauri
Hi guys, I have a sample string [hp-ex][log]peter[hall o] that I need to process. I need to remove the [] and separate the sections with a space. If there are more then one [] part the first part should be bold (add b/b around it). I have a solution that is working very well, but am thinking

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

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] readfile() problem

2006-10-13 Thread Peter Lauri
Hi, I am trying to do this, but now I cannot set values with ini_set. I do the following and it outputs could not set. I have also tried 0, 0, but that doesn't help. if(ini_set(output_buffering, off)) echo could set; else echo could NOT set; /Peter -Original Message- From: Richard

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

[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] PHP Mailer and SMTP = SPAM?

2006-10-11 Thread Peter Lauri
. 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. [/snip] Best regards, Peter Lauri www.lauri.se - personal website www.dwsasia.com - company

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

[PHP] PHP Mailer and SMTP = SPAM?

2006-10-10 Thread Peter Lauri
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

[PHP] $_SERVER['HTTP_REFERER']

2006-10-08 Thread Peter Lauri
. I assume some of the links are not from a traditional a/a 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

[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
I haven't even read all replies, but the first one caught my love :-) /Peter www.lauri.se http://www.lauri.se/ - personal web site www.dwsasia.com http://www.dwsasia.com/ - company web site _ From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Thursday, October 05, 2006 5

[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:

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] 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
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 am having a site all

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

<    1   2   3   4   5   6   7   8   9   10   >