[PHP] $this = new Class();

2009-04-30 Thread Olivier Lalonde
ould be to have a parameter that enables/disables chaining. $dorm->getBook('id', true); // chain (you now have to add ->load() at the end of the chain) $dorm->getBook('id', false); // dont chain, this returns a Book instance The point of all this is to keep the most friendly interface ! Cheers, Olivier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] scheduled task in php

2009-04-02 Thread Michel OLIVIER
hi, with a cron and wget? 2009/4/2 Andrew Williams : > All, > > Please how can you run a timed php script file via window scheduled task. or > how can u execute a php script on a a time interval for instance every > 4minutes > > -- > Best Wishes > Andrew Williams > -- PHP General Mailing List (h

Re: [PHP] non static function called as static one

2009-03-11 Thread Olivier Doucet
now. Although, that's not the highlighted problem. > > [...] > > the pragmatic solution is to not call non-static functions using > static syntax. Well, this is the answer I didn't want :) Thank you for your feedback ! Olivier

[PHP] non static function called as static one

2009-03-11 Thread Olivier Doucet
r an error if a non static function is called as a static one 3/ Create two functions with the same name, one static and the other one not. Unfortunately, this can't be done (yet ?). What do you think ? What's your point of view on this ? I want your feedbacks before opening a bug ticket, as it is not strictly a "bug"... Olivier

[PHP] Use of callback on a stream

2008-03-28 Thread Olivier Dupuis
it), but the callback never gets called, does anyone know what I forgot ? Thanks, Olivier array("pipe", "r"), // stdin 1 => array("pipe", "w"), // stdout 2 => array("pipe", "w") // stderr

[PHP] Use of callback on a stream

2008-03-28 Thread Olivier Dupuis
it, but the callback never gets called, does anyone know what I forgot ? Thanks, Olivier array("pipe", "r"), // // stdin 1 => array("pipe", "w"), // stdout 2 => array("pipe", "w") // stderr

[PHP] (macOSX,camino) problem : access denied to a file setup.php

2007-08-08 Thread olivier SAINT-EVE
Hello, a file named setup.php is in the root folder of my hard disk, and I wanted to open it from camino, with the address: "http://localhost/setup.php";. But I have an error 403:"access forbidden". Does someone know how to solve this problem? I specify I have installed PHP5 with macports. l

[PHP] Backend selection (ADOdb lib)

2006-03-02 Thread Olivier Cant
Hi list, I'm writing some code at the moment, and I'm trying to make it as detached as possible from the database used behind. So I already found ADOdb abstraction layer, which I find conienient. But still the fact is that I need to connect to and select a database at the begining of somes

[PHP] setlocale() : missing named constant in french doc

2005-12-09 Thread Olivier BERAUD
earch why doesn't that go ! Could you add "LC_MESSAGES" constant in the french documentation of setlocale function ? Thanks Olivier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php, expect and screen

2005-10-24 Thread Olivier Cant
Actually I have to run it interactively, I can get this to work with perl and the expect module (which creates a terminal and provides two handle to read from it and to write to it) I am just wondering if there is some similar moddule in PHP? Le 18-oct.-05 à 19:19, Ben a écrit : Olivier

[PHP] php, expect and screen

2005-10-18 Thread Olivier Cant
Hi list, I'm wondering if any one has any experience at connecting to a screen session under linux with a PHP script, and reading the pty output (and maybe writing somme stuff as well) I have an interactive program runing under screen which give me some status info, and I may also issue c

Re: [PHP] Arrays

2005-07-12 Thread olivier
tion about that? Olivier Ps: documentation for unset : http://www.php.net/manual/en/function.unset.php Le Mardi 12 Juillet 2005 13:34, [EMAIL PROTECTED] a écrit : > Hi, > > How can i destroy an array? > I mean i have a loop and for each new value in the loop i want to destroy > the array. S

Re: [PHP] variable object creating

2005-06-22 Thread olivier
ssName)) { // for php4 call_user_func_array(array(($className), "Register"), $construct_params); } else { die("Hack off mate."); } var_dump($obj); Love phpsec too ;-) Hope this finaly help! Olivier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable object creating

2005-06-22 Thread olivier
-- Message transmis -- Subject: Re: [PHP] variable object creating Date: Mercredi 22 Juin 2005 14:19 From: olivier <[EMAIL PROTECTED]> To: php-general@lists.php.net Sorry for typo error, just need my cup of cofee... Here is a good post for: http://fr.php.net/man

Re: [PHP] variable object creating

2005-06-22 Thread olivier
)) { // for php4 call_user_func_array(array(($className), "Register"), $construct_params); } else { die("Hack off mate."); } var_dump($obj); ###### Love phpsec too ;-) Hope this finaly help! Olivier Le Mercredi 22 Juin 2005 11:38, Jochem Maas

Re: [PHP] variable object creating

2005-06-22 Thread olivier
s eval("$retrun = new $className($param)"); var_dump($return); } Hope this help! Olivier Le Mercredi 22 Juin 2005 05:33, Eli a écrit : > Hi, > > I want to create an object in a form that I get the class name and its > parameters, and I need to create that object..

RE: [PHP] Re: post & redirect

2005-04-20 Thread Olivier GOEGEL
hello, I created little script in PHP 5 in which I entered the following line the "hidden" input helped me to keep the rep_source variable with the same value in the next page than in the new page. I'm not a specialist but it has been working well until today. O

[PHP] Page cannot be displayed

2003-10-01 Thread Olivier Simah
4028: Acquired the start mutex. [Tue Sep 30 20:05:58 2003] [notice] Child 4028: Starting 250 worker threads. [Tue Sep 30 20:05:58 2003] [debug] child.c(695): Child 4028: Worker thread 0 starting. [Tue Sep 30 20:05:58 2003] [debug] child.c(695): Child 4028: Worker thread 1 starting. HELP Thanks Ol

Re: [PHP] Page cannot be displayed

2003-10-01 Thread Olivier Simah
anks "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Olivier Simah wrote: > > > Hi, > > I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under > > Windows XP. > > When I try to see a HTML pages, everything is o

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Olivier Simah
Yes this is done, PHP is installed as a module of Apache Olivier "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok b

Re: [PHP] Page cannot be displayed

2003-09-30 Thread Olivier Simah
The problem is that I do not have the log right now, I send you an answer tonight Thanks "Martin Clarke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, Sep 30, 2003 at 11:56:23AM +0200, Olivier Simah wrote: > > Hi, > > I have just install

[PHP] Page cannot be displayed

2003-09-30 Thread Olivier Simah
Hi, I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok but when it comes to PHP pages nothing works I have this message with IE : "The page cannot be displayed" with Opera 7, Mozilla : nothing HELP Than

[PHP] multi languages pages - string 2 hexa ????

2003-09-11 Thread olivier
simple method in PHP to translater something like this "Ïðàâèëà" to something like this Правила ? Is it the right solution? Is there other solution? Does anybody have exerience about this? Thanks for your help. Cheers. Olivier. -- PHP General Mailing List (http://www.php.net/) To u

[PHP] Exec submits prog 2 times !!!

2003-08-29 Thread Olivier Lepretre
Hi all, I need to execute a command that will remotely exec another one on another server. Here is the code (really simple) : print "Launching ssh"; flush(); $pgm = "ssh -fnl oracle diamond \"/home/oracle/myprog.sh &\" >/dev/null 2>/dev/null"; exec ($pgm, $output, $res); The ssh ... goes well w

[PHP] exec problem in php (2 times execution)

2003-06-27 Thread Lepretre Olivier
Hi all, I have a php code that tries to execute an "rexec" function for a "at" command. For this I coded it in this way : $str = exec ("rexec -l usr1 -p usr1 myserver at now + 2minutes -f input file"; the rexec function in itself is running fine in shell mode but whene I try to execute it throu

[PHP] Re: [PHP-WIN] Create Thumbnails from image

2002-09-22 Thread Olivier Hubert
y use ImageCopyResampled which uses interpolation to resize the image, thus creating a thumbnail of much better quality. HTH Olivier PS: to get the image's height and width, use ImagesY and ImagesX respectively, once you have opened/created the image. At 18:09 2002-09-22 +0300, Kjell Ha

TR: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Olivier Masudi
-Message d'origine- De : Olivier Masudi [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 20 décembre 2001 09:24 À : Thomas Edison Jr. Objet : RE: [PHP] How to backup records in mySQL DB? I think thirs you have to install phpMYAdmin in your server you can find it here : http://phpwizar

RE: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Olivier Masudi
Personnaly i use this method with phpMyAdmin. I make a dump of each table Structure and data.copy and paste it into a txt file. You can also use de csv format. Hope you don't hae a lot of table :=) I know it's very simple but it work. -Message d'origine- De : Thomas Edison Jr. [mailto

[PHP] session destroy ??

2001-12-19 Thread Olivier Masudi
In my online store i use session. I use a script to check that a user dont make 2 order during the same session using the back button for that i put his sessionid in the db and check it before processing the order. My probleme is how can i give a new session_id to the person when he goes back to

[PHP] HELP XML XML XML HELP

2001-12-06 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

[PHP] TR: HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[PHP] HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] best way to handle a form with 60 fields !!!

2001-12-02 Thread Masudi Olivier
What is the best way to handle a form with 60 fields ? Is it a maximum number of var that i can regisister in a session ? is it possible to configure this number in php.ini ? I dont'host my web site I use a hoste company where my site is hosted on an linux/apache server with php4. Is it a good i

[PHP] HELP URGENT VARS !!!

2001-11-30 Thread Olivier Masudi
$name1=a; $name2=b; I want to do this for($i=0;$i<$nbname;$i++) echo "\$name$i"; output : a b where "\$name$i"= $name1 , $name2 , $name3 .. I try to print tha value of the vars $name1,. not the string $name1, Is it possible REM : The vars $name1, com fr

[PHP] php 4 installation error

2001-08-28 Thread Olivier VIGAND
-recursive] Error 1 thanks Olivier VIGAND TEXA Services Le Naurouze - hall b Rue CARMIN - bp 304 31313 LABEGE Cedex Tél : 05.62.48.40.23 Fax : 05.62.48.40.11 e-mail : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] PHP on Digital Unix

2001-03-23 Thread Olivier, Dave
Folks, I am in the process of trying to install PHP 4.0.4pl1 on my Digital Unix 5.1 machine. I follow the instructions from php.net and in the install instructions. I can do everything right but, after I run the ./configure --with-mysql --with-apache=../apachex --enable-track-vars, I run the ma

[PHP] problem with pack function

2001-02-15 Thread Olivier ZILLER
Hello, I need to generate the value '0A 00 00 00' with the pack function. How to do this? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROT

[PHP] effect of --enable-trans-sid

2001-01-17 Thread Olivier Guieu
correct and if not, if it has been corrected in 4.0.4 pl1 ? (I could not find anything relevant in the BUG DB). Thanx in advance, Olivier __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP