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 :( H

RE: [PHP] PDFlib problem

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

RE: [PHP] Re: PDFlib problem

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

RE: [PHP] Simple PDF manipulation

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

[PHP] Chocked

2006-12-28 Thread Peter Lauri
orked fine, 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

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 ""; print_r($string_as_array); echo ""; 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

RE: [PHP] Javascript detection

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

RE: [PHP] Please help me

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

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

2007-01-02 Thread Peter Lauri
just: echo ""; print_r($_COOKIE); echo ""; 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

RE: [PHP] Concerning SSL

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

RE: [PHP] Pushing a file to the browser

2007-01-03 Thread Peter Lauri
;); $filesize = filesize($path.$filelocation); header("Content-Length: $filesize"); echo 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

RE: [PHP] File reading code2

2007-01-06 Thread Peter Lauri
does not exist in this directory"; You should learn how to read the manual, 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

RE: [PHP] Re: Search script problem

2007-01-06 Thread Peter Lauri
orrect. If you 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 [mai

RE: [PHP] Domain Search

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

RE: [PHP] most powerful php editor

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

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

RE: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Peter Lauri
n executes that one. 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 - bec

RE: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Peter Lauri
n programming :) 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: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Sunday, January 28, 2007 4:27 PM To: Peter Lauri Cc: 'Larry E.

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:

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
essions? I have been 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 r

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 a

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

RE: [PHP] Quick organizational question...

2007-02-16 Thread Peter Lauri
alhost"); Or you can have a txt config file config.cfg ROOTDIR /wherever/your/webroot/is CLASSDIR [ROOTDIR]/classes And then you just have to read and parse that with a general define script :) Something like this (don't have the code here, so I try it anyways). Best regards, Peter Laur

[PHP] Catch STDERR

2007-02-17 Thread Peter Lauri
read that file? Hrm, 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-

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

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 ot

RE: [PHP] css in mail()

2007-02-20 Thread Peter Lauri
well. 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

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]

RE: [PHP] DOM Element default ID attribute

2007-02-21 Thread Peter Lauri
This was not clear for me, do you mean: => 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, 2007 12:42 AM

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
ript that is calling 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

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 di

RE: [PHP] Eregi error

2007-02-28 Thread Peter Lauri
class, 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 Ma

[PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
sthru() will do it, but I haven't tested 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

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

2007-03-01 Thread Peter Lauri
at too, if you see what I mean... > > I am hoping that your real script is a bit more complicated, as you > currently have 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 wi

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

2007-03-01 Thread Peter Lauri
> > I'm not promising this is how it actually works; this is just a theory. > [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

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

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

RE: [PHP] Looking for a good Ajax Mailing List

2007-03-13 Thread Peter Lauri
Not pure Ajax, but it is Javascipt: [EMAIL PROTECTED] 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: bruce [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 1

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
> type="checkbox">test message > value="4" type="checkbox">test message > value="5" type="checkbox">test message > value="6" type="checkbox">test message > value="7" type="checkbox&q

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
al chars. What I need is something that can pull up > all > 515515515*.ext > > Can I do this in PHP? > > 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

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

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
quot;$1", $file); /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

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 >

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

2007-04-01 Thread Peter Lauri
ver, that array_keys is not recursive. > > 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
> die("Invalid filename."); > >$path = '/var/www/'; >$full = $path . $file; > >header('Content-type: application/pdf'); >header("Content-Length: " . filesize($full)); >header('Content-disposition: attachment; filena

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

RE: [PHP] redirect http to https

2007-04-09 Thread Peter Lauri
write instruction of apache, 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.

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
s you're not only storing if the user has > authenticated, also storing a username? > > And if that's not the case, then you could authenticate by creating a > cookie where it says authenticated = yes, and you're authenticated... > > Tijnema > > -- > PHP Gene

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
ssible. > > Tijnema [Peter 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

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

[PHP] Getting PHP CLI on machine without compiling or changing the other part of the system

2007-09-23 Thread Peter Lauri
compiling it on their machine and changing their environment. So is there any nice solution with php pre compiled and that the files are just in a tar ball or similar, so that the php cli can be used? Best regards, Peter Lauri <http://www.dwsasia.com/> www.dwsasia.com - compa

RE: [PHP] str_replace oddity

2007-09-23 Thread Peter Lauri
No, turn Magic Quotes 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 23, 2007 3:1

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Your array that you get from the file() will contain the -Original Message- > From: magoo [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 23, 2007 3:52 PM > To: php-general@lists.php.net > Subject: [PHP] file() ignores PHP tags > > Hi NG! > > I wanna output several kinds of ascii fil

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Oh, and by the way, remember that the array that file() returns also will contain the newline. Add the flag FILE_IGNORE_NEW_LINES if you don't want them. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon

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:

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 2>&1", $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: Manol

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

RE: [PHP] Controlling a scanner with PHP

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

RE: [PHP] Controlling a scanner with PHP

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

RE: [PHP] Controlling a scanner with PHP

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

[PHP] Find out cookies on a computer?

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

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

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

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

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

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

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

RE: [PHP] design?

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

[PHP] GD to database directly

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

RE: [PHP] GD to database directly

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

[PHP] Setting cookie on one domain for an other domain

2006-07-20 Thread Peter Lauri
s set and then return. Question is: Can I not set a cookie at domain1.com to work at domain2.com? Best regards, Peter Lauri

RE: [PHP] jpg to pdf using fpdf

2006-07-26 Thread Peter Lauri
Correct me if I am wrong, but do fpdf allow jpg? I think you must convert to PNG or GIF and then use that image. -Original Message- From: nicolas figaro [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 8:24 PM To: PHP List Subject: [PHP] jpg to pdf using fpdf Hi, I'd like to

RE: [PHP] jpg to pdf using fpdf

2006-07-26 Thread Peter Lauri
So then it was the opposite of what I had in memory :) -Original Message- From: nicolas figaro [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 8:30 PM To: 'PHP List' Subject: Re: [PHP] jpg to pdf using fpdf Peter Lauri a écrit : > Correct me if I am wrong, but do f

RE: [PHP] jpg to pdf using fpdf

2006-07-26 Thread Peter Lauri
This is code how it works for me: $pdf =& new FPDF('p','pt','a4'); $pdf->AddPage(); $pdf->Image("pdf/profilechart.png",145,$pdf->GetY()); $pdf->Output("pdf/temp/thepdf.pdf",'F'); Add the $pdf->AddPage(); and it might work :) -Original Message- From: nicolas figaro [mailto:[EMAIL PROTECT

RE: [PHP] jpg to pdf using fpdf

2006-07-26 Thread Peter Lauri
figaro [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 8:44 PM To: PHP List Subject: Re: [PHP] jpg to pdf using fpdf Peter Lauri a écrit : > This is code how it works for me: > > $pdf =& new FPDF('p','pt','a4'); > $pdf->AddPage(); &g

RE: [PHP] Books: PHP and WAP

2006-07-26 Thread Peter Lauri
http://www.w3schools.com/wap/default.asp That is a good start... -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 10:54 PM To: PHP List Subject: [PHP] Books: PHP and WAP Hi all, I need some recommendations for books: are there any good b

RE: [PHP] fpdf

2006-07-26 Thread Peter Lauri
Yes you can... $pdf->Output("thelocation/filename.pdf", "F"); Just make sure that thelocation has permission to write for the web server. /Peter -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Thursday, July 27, 2006 7:05 AM To: php-general@lists.php

RE: [PHP] sorting in array

2006-07-30 Thread Peter Lauri
function cmpcountry($a, $b) { $country1 = $a['country']; $country2 = $b['country']; if($country1=='') return 1; else return ($country1 < $country2) ? -1 : 1; } -Original Message- From: weetat [mailto:[EMAIL PROTECTED] Sent: Monday, July

RE: [PHP] sorting in array

2006-07-31 Thread Peter Lauri
And this for DESCending function cmpcountry($a, $b) { $country1 = $a['country']; $country2 = $b['country']; if($country1=='' OR $country2=='') { if($country1==$country2) return 0; elseif($country1=='') return

RE: [PHP] sorting in array

2006-07-31 Thread Peter Lauri
Sorry, I just woke up and just posted an reply without thinking, use this: function cmpcountry($a, $b) { $country1 = $a['country']; $country2 = $b['country']; if($country1=='' OR $country2=='') { if($country1==$country2) return 0;

[PHP] All active variables?

2006-08-01 Thread Peter Lauri
Hi, Is it possible to print out all variables that are active within a script without doing it manually? This is what I would like to do: $a = 12; $b = 'Peter'; $c = 'Lauri'; echo ''; print_r( get_all_variables() ); echo ''; Best regards, Peter L

RE: [PHP] All active variables?

2006-08-01 Thread Peter Lauri
Great stuff, I probably just searched the wrong words. -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 6:22 PM To: Peter Lauri Cc: php-general@lists.php.net Subject: Re: [PHP] All active variables? Peter Lauri wrote: > Is it possible to print

[PHP] SQL injection

2006-08-02 Thread Peter Lauri
I was just doing it to check if they were protected, and I informed them about my process etc. I only deleted my record, no one else's. In Sweden it might have been called "computer break-in", but I am not sure. Anyone with experience of a similar thing? Best regards, Peter Lauri

RE: [PHP] SQL injection

2006-08-02 Thread Peter Lauri
quot;hiding for something you did not do". One at the forum sent me an message off the list and said: "You got bigger balls than me. :-)", what did he mean with that? I did not know that the php list also shows the web cam at the same time. "I better watch out"... Best regard

  1   2   3   4   >