Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Peter Ford
Richard Lynch wrote: > On Thu, December 6, 2007 2:44 am, Rolf_ wrote: >> I have a problem working with shmop_open() in a Solaris environment. >> The >> following cli-script works fine, except shmod_open returns a warning >> 'unable >> to attach or create shared memory segment': >> >> > $sem = "/tmp

Re: [PHP] 5.2.5 failed 7 tests

2007-12-03 Thread Peter Smit
On Dec 3, 2007 12:18 AM, Bill <[EMAIL PROTECTED]> wrote: > Do failed tests mean I absolutely should NOT install. Or is it normal to > have a few fails? Try two different versions, all have some failure. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.

Re: [PHP] Curl doesn't handle memory stream

2007-11-29 Thread Peter Smit
On Nov 29, 2007 5:18 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Nov 29, 2007 7:56 AM, Peter Smit <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Nov 27, 2007 11:43 PM, Peter Smit <[EMAIL PROTECTED]> wrote: > > > Hello, > >

Re: [PHP] Curl doesn't handle memory stream

2007-11-29 Thread Peter Smit
On Nov 27, 2007 11:43 PM, Peter Smit <[EMAIL PROTECTED]> wrote: > Hello, > > I've got quite a strange problem with the curl library. > > The following code does output Content||\Content instead of > Content|example.orgoutput|\Content > > $c = curl_init("h

[PHP] Curl doesn't handle memory stream

2007-11-27 Thread Peter Smit
;;); $file = "/tmp/phptest".rand().""; touch($file); $st = fopen($file, "r+"); curl_setopt($c, CURLOPT_FILE, $st); if(!curl_exec($c)) die ("error: ".curl_error($c)); rewind($st); echo "Content|".htmlspecialchars(stream_get_contents($st))."|/Conten

Re: [PHP] overloading members. aghhh!!!

2007-11-20 Thread Peter Ford
Jochem Maas wrote: > Kiketom wrote: >> Hi all. >> Yesterday i have looking for the overloading members >> >> Member overloading >> void __set ( string name, mixed value ) >> mixed __get ( string name ) >> >> As an example i put this code: >> >> class foo >> { >> private $ID; >> private $Nam

Re: [PHP] [NEWBIE GUIDE] For the benefit of new members

2007-11-16 Thread Peter Ford
> > I was all ready to jump on Point #6 to disagree until I read the > next paragraph, updating that with the correct information. PHP can > find out the OS of the system on which the browser is running. > Strictly speaking, PHP can only find out what the browser tells it - that includes th

Re: [PHP] PHP ide?

2007-11-13 Thread Peter Ford
Lester Caine wrote: > Peter Ford wrote: >> I've tried to use Eclipse PDT, and it's just generally horrible - the >> All-in-one >> has no Subversion support and no SSH support for deploying to the server >> properly. The debugging support worked well on the wind

Re: [PHP] PHP ide?

2007-11-12 Thread Peter Ford
I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one has no Subversion support and no SSH support for deploying to the server properly. The debugging support worked well on the windows version, but I couldn't get it to work from Linux (with the same web server...) And th

[PHP] Re: PHP ide?

2007-11-08 Thread Peter Ford
Hulf wrote: > Just wondering if anyone uses an IDE and if so what ones? > > Ta, > > H. Quanta+, with KDESVN for version management... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Benchmarking check to see if array key is set

2007-11-08 Thread Peter Ford
Ford, Mike wrote: > On 06 November 2007 12:57, Christoph Boget wrote: > >> Consider the following test code: > > [...snip...] > >> Running that I found that >> >> if( isset( $myArray[$key] )) >> >> is faster than >> >> if( array key exists( $key, $myArray )) >> >> is faster than >> >> if( $myAr

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-22 Thread Peter Ford
You could try using exec to set up an "AT" job with a short delay which will then run 'net apache restart' - I'm not a total windows guru so I can't give you the exact recipe... Something like exec('AT 12:00 "net apache restart"'); Check the documentation on the AT command... One possible extra

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

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

2007-08-09 Thread Peter Pan
ogging suggestion 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

[PHP] Exceptions

2007-08-09 Thread Peter Pan
Peeps, I'm having an issue where throwing Exceptions are displaying a blank page even though the Exception is being caught in a try...catch statement. This is happening on our production server where warnings, errors, exceptions, etc. are not to be displayed to the user. The assumption is th

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

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] 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] 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] "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] 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] 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] 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] 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] 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
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] 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] 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.p

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

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

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

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

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] 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] 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] 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] 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] 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] 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] 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-20 Thread Peter Lauri
pt and there is an exit code different from 0 I want to show a log of error/notices during the script. Actually I want to show the whole process if it fails so 2>&1 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 ww

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

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

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

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

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

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

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

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

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

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

2006-12-25 Thread Peter Lauri
to use JS 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

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 around it). I have a solution that is working very well, but am thi

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

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

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