RE: [PHP] xml v php question

2006-07-25 Thread Jim Moseby
On Tue, July 25, 2006 3:15 pm, Kevin Waterson said: This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: The correct answer is (b). (PHP 6 won't even have short tags, so get used to not having them.) ummm, I think it was decided to stay in php6. I could be

[PHP] xml v php question

2006-07-24 Thread tedd
Hi gang: Why does starting my php script with -- ?xml version=1.0 encoding=utf-8? -- stop it from running? I would like to use php in a page, but the page has to begin with a xml declaration to generate a quirksmode for IE6 and under while permitting IE7 to be left in standards mode.

Re: [PHP] xml v php question

2006-07-24 Thread Larry Garfield
Disable short tags. If short tags are enabled, the PHP parser sees the ? and switches into PHP mode. It then starts parsing the xml and sees that it's not proper PHP, and freaks out. You can: a) Use PHP to print out the XML declaration as a string: ?php print '?xml version=1.0

[PHP] Question about constructors and destructors

2006-06-28 Thread Mathieu Dumoulin
I posted a bit earlier and did some other tests and now i have a VERY simple question... check the following code : === class test { public function __construct(){ echo 'Buildingbr'; } public function __destruct(){

Re: [PHP] Question about constructors and destructors

2006-06-28 Thread Brad Bonkoski
I get: (on Linux, PHP 5.1.4) php cls_t.php Will buildbrBuildingbrFinished buildingbrUnsetingbrDestroyingbrUnset completebr Mathieu Dumoulin wrote: I posted a bit earlier and did some other tests and now i have a VERY simple question... check the following code :

Re: [PHP] Question regarding OS

2006-06-27 Thread Jochem Maas
Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? yes. php_uname() read about it here http://php.net/manual/en/function.php-uname.php and then read 10 pages either side just for fun :-) Thank you. M. -- PHP General Mailing

Re: [PHP] Question regarding OS

2006-06-27 Thread Ligaya Turmelle
Jochem Maas wrote: Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? yes. php_uname() read about it here http://php.net/manual/en/function.php-uname.php and then read 10 pages either side just for fun :-) Thank you. M. Ha -

[PHP] Question regarding OS

2006-06-26 Thread Mayank Maheshwary
Hi, Is there a function that can detect the OS on which the script is running? Thank you. M.

Re: [PHP] Question regarding OS

2006-06-26 Thread Ligaya Turmelle
Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? Thank you. M. The OS of the server maybe $_SERVER['SERVER_SOFTWARE'] - *shrug* The OS of the client is not available - server side - remember. -- life is a game... so have fun. -- PHP

Re: [PHP] Question regarding OS

2006-06-26 Thread tedd
At 11:46 AM +1000 6/27/06, Ligaya Turmelle wrote: Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? Thank you. M. The OS of the server maybe $_SERVER['SERVER_SOFTWARE'] - *shrug* The OS of the client is not available - server side -

[PHP] question on getting PDO to output final assembled query from prepared statements?

2006-06-07 Thread Rick Harding
I am working on some code that I am moving to use PDO in order to play with it a bit. I used to use ADODB, but want to try out the performance of using PDO and just skipping some of the portability of the db code. The one thing I find myself missing is the ADODB debug and sql values where

[PHP] question on getting PDO to output final assembled query from the prepared statements

2006-06-07 Thread Rick Harding
I am working on some code that I am moving to use PDO in order to play with it a bit. I used to use ADODB, but want to try out the performance of using PDO and just skipping some of the portability of the db code. The one thing I find myself missing is the ADODB debug and sql values where

Re: [PHP] Question about set_time_out and shell_exec

2006-05-29 Thread Richard Lynch
On Wed, May 24, 2006 11:26 am, Suhas wrote: I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60);

[PHP] Question about set_time_out and shell_exec

2006-05-24 Thread Suhas
Hi, I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60); @mail($to,$sub,$msg); I run File1.php thr' browser

Re: [PHP] Question about set_time_out and shell_exec

2006-05-24 Thread Rabin Vincent
On 5/24/06, Suhas [EMAIL PROTECTED] wrote: Hi, I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60);

[PHP] Question about templates

2006-05-16 Thread Charlene Wroblewski
I have been using template.inc for templates. It works very well so that I can just work on coding and a designer can make the page look good. But I noticed that there are several versions (some of which don't seem to work), and its no longer in the phplib. Is there some reason not to use

Re: [PHP] Question about templates

2006-05-16 Thread Kevin Waterson
This one time, at band camp, Charlene Wroblewski [EMAIL PROTECTED] wrote: looked at Smarty and it doesn't seem to be as useful the way I'm using templates. I'm not surprised, 1000 lines of code to do hello world Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch.

Re: [PHP] Question about templates

2006-05-16 Thread Brian Anderson
Sure if all you are writing is a hello world page, but if you are writing out an application that is more complex, wouldn't the savings and managability be beneficial enough to justify? ... code reusability ... Don't ya think? Why is it easier to do something like this: echo 'table'; echo

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-11 Thread Robin Vickery
On 11/05/06, Jochem Maas [EMAIL PROTECTED] wrote: Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2

[PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Ginger Cheng
Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2) final_file It works perfectly well if I just

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Joe Henry
On Wednesday 10 May 2006 4:02 pm, Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2)

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Jochem Maas
Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2) final_file It works perfectly

[PHP] Question regarding apc

2006-05-02 Thread Dave Goodchild
Hi all. I have heard that functions like apc_define_constants and apc_load-constants are useful in speeding up mass definition of constants but could someone tell me how many constants you would have to have before this became appropriate. I am writing an app that loads a number of constants into

Re: [PHP] Question regarding apc

2006-05-02 Thread Jochem Maas
Dave Goodchild wrote: Hi all. I have heard that functions like apc_define_constants and apc_load-constants are useful in speeding up mass definition of constants but could someone tell me how many constants you would have to have before this became appropriate. I am writing an app that loads a

Re: [PHP] Question regarding apc

2006-05-02 Thread Jochem Maas
Dave Goodchild wrote: Oooo you have so much power..must be amazing to be so knowlgeable...oh my god, are you really considering witholding that information from me...what on earth am I goimng to dohow can I cope...uh...uh... oh shit! I worked it out myself. No need to wade

[PHP] Question for PHP Arrays

2006-04-28 Thread Saul Rennison
Hi, I'm making a PHP Installer that is customizable by using plugins, I haven't used PHP for a while and which I have forgotten some things about PHP *eek*.. Anyway, I want to know how to add things to an array. Like this: $foobar = array() $foobar['rar']['miaw'] Would that output come out

Re: [PHP] Question for PHP Arrays

2006-04-28 Thread Richard Davey
On 27 Apr 2006, at 20:51, Saul Rennison wrote: Anyway, I want to know how to add things to an array. Like this: $foobar = array() $foobar['rar']['miaw'] Would that output come out (for the array) as: array( 'rar' = 'miaw' ) No, it would create a multi-dimensional array that contains

Re: [PHP] Question for PHP Arrays

2006-04-28 Thread Jochem Maas
Saul Rennison wrote: Hi, I'm making a PHP Installer that is customizable by using plugins, I haven't used PHP for a while and which I have forgotten some things about PHP *eek*.. $hiddenKnowledge = unforgetPHP(); Anyway, I want to know how to add things to an array. Like this: $foobar =

Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-09 Thread Richard Lynch
That is incorrect. There *IS* a setting for another magic_quotes_runtime, which will do addslashes to all data coming FROM the database. That's a particularly silly setting UNLESS your entire application consists of taking date out of one database and shoving it into another database -- which

[PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread jonathan
I have a server where magic_quotes_gpc is set to On. It's my understanding that this should add slashes to something like Joe's so that it's Joe\'s but when I look in the db, it is in there as Joe's. This doesn't seem like it should be the anticipated behavior. Is there another setting in

Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread Richard Lynch
On Sat, April 8, 2006 7:49 pm, jonathan wrote: I have a server where magic_quotes_gpc is set to On. It's my understanding that this should add slashes to something like Joe's so that it's Joe\'s but when I look in the db, it is in there as Joe's. This doesn't seem like it should be the

Re: [PHP] question about foreach and associate array

2006-02-21 Thread Jochem Maas
jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; $row contains the _string_ 'Hello'. the thing is you can use array-like notation to get at the individual chars of a

Re: [PHP] question about foreach and associate array

2006-02-21 Thread Richard Lynch
On Mon, February 20, 2006 8:57 pm, jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; echo $arg['textarea']['body'].br/; } I would expect both of them

Re: [PHP] question about foreach and associate array

2006-02-20 Thread Chris
jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; echo $arg['textarea']['body'].br/; } I would expect both of them to output Hello but only the second does.

RE: [PHP] question about foreach and associate array

2006-02-20 Thread Peter Lauri
['body']. $row[1]. $row[1]. $row[2]. $row[3]. $row[4]; It will probably echo Hello for you :) /Peter -Original Message- From: jonathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 9:58 AM To: php-general@lists.php.net Subject: [PHP] question about foreach and associate array

[PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me) function my_func( $param, $line =

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread David Grant
Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Thank you very much David Andrei David Grant wrote: Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 6:20 am, Andrei wrote: For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me)

[PHP] Question about Thumbnailing, Watermarking, and Modifying images/video/flash dynamicly

2006-01-22 Thread Jon Grimes
I'm currently working on a media based site that serves up user submitted videos/images/flash games/etc. The owner wants an easy way to generate thumbnails for the content so that we don't have to depend on the user to submit one. We would also like to attach a small intro clip to the video

Re: [PHP] question about compositing objects

2006-01-13 Thread Richard Lynch
On Thu, January 12, 2006 4:13 pm, jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the $map object like this: $loc=new Loc();

Re: [PHP] question about compositing objects

2006-01-12 Thread Tim Boring
Hi, Jonathan! On Thu, 2006-01-12 at 14:13 -0800, jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the

Re: [PHP] question about compositing objects

2006-01-12 Thread comex
$map=new Map(); $this-map = new Map(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about compositing objects

2006-01-12 Thread Aaron Koning
$map is not a member variable of the Loc class in your code... Instead do this: class Loc { // Defines a member variable var $map; // Constructor function Loc() { $this-map = new Map(); // Create map object and save to Loc object $this-map-setKey(); } } $loc = new Loc();

Re: [PHP] Question generateing xml on v4.3

2006-01-09 Thread Ted Zeng
Does this (PHP 4 = 4.2.1, PECL) Mean it is installed for version higher than 4.2.1? Ted zeng On 1/9/06 7:41 AM, Jochem Maas [EMAIL PROTECTED] wrote: Ted Zeng wrote: Hi, I use OS X tiger which has a PHP v4.3.12 installed. any reason to be using an old version of php? I would like

Re: [PHP] Question generateing xml on v4.3

2006-01-09 Thread Ted Zeng
From the http://pecl.php.net/package/domxml page: NOTE: if you're running PHP 4.x, the domxml is already part of the distribution. It seems to me the Extension should be installed already. On 1/9/06 7:41 AM, Jochem Maas [EMAIL PROTECTED] wrote: Ted Zeng wrote: Hi, I use OS X tiger which

[PHP] Question generateing xml on v4.3

2006-01-08 Thread Ted Zeng
Hi, I use OS X tiger which has a PHP v4.3.12 installed. I would like to be able to generate xml files. But when I copied a php script from a tutorial and tried it, Php complaints that domxml_new_doc is undefined function How could that be? Ted zeng -- PHP General Mailing List

[PHP] Question about Request.php

2005-12-01 Thread Danilo Azevedo
Hi, my name is Danilo, i am from Brazil I need your assistence with a code made by your self, if you are not too busy :P I am using PHP/XML with your request.php file, but i cant get some attributes from a Tag, everything is working fine, but it :( The Tag name is RUA and have some attributes that

Re: [PHP] Question about Request.php

2005-12-01 Thread jonathan
do a: print_r($_REQUEST) on the php page. if nothing, things aren't configured correctly or you aren't passing in variables correctly. On Dec 1, 2005, at 12:15 PM, Danilo Azevedo wrote: Hi, my name is Danilo, i am from Brazil I need your assistence with a code made by your self, if you

[PHP] question

2005-11-27 Thread cheeto borje
Hello, I wanna ask you about : 1. When you say server, does it mean my CPU? 2. Do i have to buy a seperate server besides my computer CPU? 3. Can i use the software to multiple web-domain that i will create and launch online? 4. How will i be able store those data

Re: [PHP] question

2005-11-27 Thread Stephen Leaf
On Sunday 27 November 2005 12:34, cheeto borje wrote: Hello, I wanna ask you about : 1. When you say server, does it mean my CPU? By CPU I assume you mean your computer and not the Central Processing Unit. being a CPU is the small chip inside your computer attached into the motherboard

Re: [PHP] question

2005-11-27 Thread adriano ghezzi
server and client are logical definitions, in the environment here normally discussed these are meanings server : a pc (cpu) where a web server is running (usually apache) and php is parsing pages served to the client client: is a pc (cpu), normally remote, who is asking for a page to the server

Re: [PHP] Question about session

2005-11-14 Thread Richard Lynch
On Fri, November 11, 2005 7:09 pm, Bagus Nugroho wrote: I have session code which written WindowsXP and It wotk properly as expected, but when I'm used in Windows 2K, it got error as; Notice: Undefined index: loginMessage in C:\CentralData\forms\mainForm.php on line 65 I'am used Apache 2.0

[PHP] Question about session

2005-11-11 Thread Bagus Nugroho
I have session code which written WindowsXP and It wotk properly as expected, but when I'm used in Windows 2K, it got error as; Notice: Undefined index: loginMessage in C:\CentralData\forms\mainForm.php on line 65 I'am used Apache 2.0 and PHP 5.0.4. Is php.ini setting on W2K different with XP

Re: [PHP] Question about session

2005-11-11 Thread Esteamedpw
There's no code. You need to put your code in the Email so we can see it...

RE: [PHP] Question about session

2005-11-11 Thread Bagus Nugroho
poblem was solved by add session_register function before $_SESSION[blablabla]; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sat 12-Nov-2005 09:50 To: Bagus Nugroho; php-general@lists.php.net Subject: Re: [PHP] Question about session There's

Re: Fwd: [PHP] question regarding Reflection

2005-11-03 Thread Jochem Maas
Manish Marathe wrote: On 11/2/05, Jochem Maas [EMAIL PROTECTED] wrote: Manish Marathe wrote: Sorry for spamming but I didn't mean to reply you privately :( I did it myself by accident 2 minutes ago :-) no probs. Thanks I am sorry if I have hurted anyone's feelings here but by

Fwd: [PHP] question regarding Reflection

2005-11-02 Thread Manish Marathe
Sorry for spamming but I didn't mean to reply you privately :( On 11/1/05, Jochem Maas [EMAIL PROTECTED] wrote: Manish Marathe wrote: Hello All, I am developing a unit test generator for PHP. The generated tests would be PHPUnit2 compatible and I will be using the Reflection API to

Re: Fwd: [PHP] question regarding Reflection

2005-11-02 Thread Jochem Maas
Manish Marathe wrote: Sorry for spamming but I didn't mean to reply you privately :( I did it myself by accident 2 minutes ago :-) no probs. ... Well, its not me who is going to run the unit tests but it the user who is going to. As I said I am developing an automatic unit test

Re: Fwd: [PHP] question regarding Reflection

2005-11-02 Thread Manish Marathe
On 11/2/05, Jochem Maas [EMAIL PROTECTED] wrote: Manish Marathe wrote: Sorry for spamming but I didn't mean to reply you privately :( I did it myself by accident 2 minutes ago :-) no probs. Thanks I am sorry if I have hurted anyone's feelings here but by foolish simply au contraire. I

[PHP] question regarding Reflection

2005-11-01 Thread Manish Marathe
Hello All, I am developing a unit test generator for PHP. The generated tests would be PHPUnit2 compatible and I will be using the Reflection API to generate the tests. The tests would be generated only for classes and written on PHP 5.0.3 compatible. My question is to use the Reflection API, I

[PHP] question regarding Reflection

2005-11-01 Thread Manish Marathe
I am developing a unit test generator for PHP. The generated tests would be PHPUnit2 compatible and I will be using the Reflection API to generate the tests. The tests would be generated only for classes and written on PHP 5.0.3 compatible. My question is to use the Reflection API, I need to

Re: [PHP] question regarding Reflection

2005-11-01 Thread Jochem Maas
Manish Marathe wrote: Hello All, I am developing a unit test generator for PHP. The generated tests would be PHPUnit2 compatible and I will be using the Reflection API to generate the tests. The tests would be generated only for classes and written on PHP 5.0.3 compatible. My question is to

[PHP] Question about including files and server load

2005-10-14 Thread Jay Paulson
I just started working with a new company and they handed me some of their php code for me to look over. I noticed that they have a TON of include files being called into their scripts. For example, instead of having one file called functions.php and then having all their functions in that one

Re: [PHP] Question about including files and server load

2005-10-14 Thread Richard Davey
Hi Jay, Friday, October 14, 2005, 2:21:57 PM, you wrote: I was wondering isn't this putting a bigger load on a server by including so many files for each function? Also, I was wondering what everyone's opinion was on this approach in terms of maintenance. Do you think it's better practice to

Re: [PHP] Question about including files and server load

2005-10-14 Thread Edward Vermillion
Richard Davey wrote: Hi Jay, Friday, October 14, 2005, 2:21:57 PM, you wrote: I was wondering isn't this putting a bigger load on a server by including so many files for each function? Also, I was wondering what everyone's opinion was on this approach in terms of maintenance. Do you think

[PHP] Question

2005-10-07 Thread Sven Simons
I've installed PHP using the windows installer I try to open then php pages containing the following script : ?php echo Current IP Address: ; $ipx = getenv(HTTP_CLIENT_IP) ? getenv(HTTP_CLIENT_IP) : 0; $ipx = !$ipx getenv(HTTP_X_FORWARDED_FOR) ? getenv(HTTP_X_FORWARDED_FOR) : 0 ; $ipx =

Re: [PHP] Question

2005-10-07 Thread Michael Crute
On 10/7/05, Sven Simons [EMAIL PROTECTED] wrote: I've installed PHP using the windows installer I try to open then php pages containing the following script : ?php echo Current IP Address: ; $ipx = getenv(HTTP_CLIENT_IP) ? getenv(HTTP_CLIENT_IP) : 0; $ipx = !$ipx

Re: [PHP] Question

2005-10-07 Thread Richard Lynch
On Fri, October 7, 2005 6:54 am, Sven Simons wrote: When manually installing PHP it always gives me the status UNKNOWN. Definitely check $_SERVER instead of GetEnv to see if it gives you what you want. The only strange thing is that the phpinfo says that the ini file is located in C:\Winnt

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-30 Thread Stut
xfedex wrote: I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with onkeyup) the value of the input is parsed

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-30 Thread Jochem Maas
xfedex wrote: Hi, I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with onkeyup) the value of the input is

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-30 Thread xfedex
On 9/30/05, Jochem Maas [EMAIL PROTECTED] wrote: I'm guessing that trhe onclick and onsumbit handlers you set are hanging on a 'submit' type input? .. if so the form is submitting - in whcih case the AJAX request will arrive back at your page - and the page won't be there (so to speak). try

[PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-29 Thread xfedex
Hi, I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with onkeyup) the value of the input is parsed by another

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-29 Thread Robert Cummings
On Thu, 2005-09-29 at 22:46, xfedex wrote: Hi, I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-29 Thread xfedex
On 9/29/05, Robert Cummings [EMAIL PROTECTED] wrote: Aside from using ajax to clean the toilet once in a while I'm not really into it. But I do wrangle out some javascript from time to time :) Why are you using onsubmit? Wouldn't onclick work better? Cheers, Rob. Hi Robert, I also try

[PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread Iggep
Hey all! I sat down and started learning PHP today and ran into a bit of a spot. Hoped someone here could lead me in the right direction. I created a simple test form called form.php. I thought I had this strait in my mind when I created it, but obviously it didn't work. All I want to do

Re: [PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread James Kaufman
On Wed, Sep 07, 2005 at 06:47:28PM -0400, Iggep wrote: Hey all! I sat down and started learning PHP today and ran into a bit of a spot. Hoped someone here could lead me in the right direction. I created a simple test form called form.php. I thought I had this strait in my mind when I

RE: [PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread bruce
@lists.php.net Subject: [PHP] Learning PHP - question about hidden form fields Hey all! I sat down and started learning PHP today and ran into a bit of a spot. Hoped someone here could lead me in the right direction. I created a simple test form called form.php. I thought I had this strait in my mind

Re: [PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread Iggep
Wanted to thank the handful of you who wrote me with some hints. I really appreciate the guidance. :) The test form is working like a champ. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] question on order of variables passed to a function

2005-08-23 Thread Vidyut Luther
I'm writing a error handler for my scripts, so I went to : http:// us3.php.net/manual/en/function.set-error-handler.php I noticed something in the example 1 given there. ?php myErrorHandler($errno, $errstr, $errfile, $errline) { switch ($errno) { case E_USER_ERROR: . } ? and then:

Re: [PHP] question on order of variables passed to a function

2005-08-23 Thread Jasper Bryant-Greene
Vidyut Luther wrote: ?php myErrorHandler($errno, $errstr, $errfile, $errline) { switch ($errno) { case E_USER_ERROR: . } ? and then: ?php trigger_error(log(x) for x = 0 is undefined, you used: scale = $scale, E_USER_ERROR); ? So, wouldn't this make $errno in the myErrorHandler be

[PHP] Question about Windows Installation

2005-08-19 Thread JM
after you make changes restart iis. btw apache works fine in this scenario too. if the extensions still dont work then look for the dll's make sure they are even installed for php/webserver to use On 8/19/05, JM [EMAIL PROTECTED] wrote: You are talking about a few issues. 1. turn on /

[PHP] Question about exec() call an CLI php script from Apache CGI/filter module PHP

2005-07-28 Thread Liang ZHONG
I call red.php through apache http request, and red.php make exec('./s.php') call, then I got bunch of s.php processes, and system locked me out any task due to no more processes available. Why this would happen? marvin:~/liang.ns2user.info/php less red.php ?php ignore_user_abort(true);

RE: [PHP] Question about exec() call an CLI php script from Apache CGI/filter module PHP

2005-07-28 Thread Liang ZHONG
I forgot to mention that calling from shell directly s.php runs correctly. ~ marvin:~/liang.ns2user.info/php ./s.php This is a PHP-CLI Script!!0123456789 ~ The php configuration of this site is: http://liang.ns2user.info/php/info.php Thank you

[PHP] Question on exec() to call a php script from a php script

2005-07-27 Thread Liang ZHONG
If my php is configured as ( http://liang.ns2user.info/php/info-train06.htm) an apache 2.0 filter module. The php is invoked by apache on request of http client. Can I do an exec() to call another php script to run in the background? If yes, how? Highly appreciate if somebody helps. Thank

[PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
Hi guys. I'm having some trouble here regarding a project. I have a table with projects, wich can be recursive (ie. sub-projects) and it is related to itself. By making the following query -8-- SELECT * FROM projects LEFT JOIN projects proj_parent ON

RE: [PHP] MySQL + PHP question

2005-07-26 Thread Shaw, Chris - Accenture
want to find out its parent (2), or do you want to find out all its parents including grandparents (2) and (1)? What do you need to know? C. -Original Message- From: André Medeiros [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 12:18 To: php-general@lists.php.net Subject: [PHP] MySQL + PHP

RE: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
sollution (wich neither will make me very happy, but that's life). Thanks for your prompt reply :) C. -Original Message- From: André Medeiros [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 12:18 To: php-general@lists.php.net Subject: [PHP] MySQL + PHP question

Re: [PHP] MySQL + PHP question

2005-07-26 Thread Mark Rees
- From: André Medeiros [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 12:18 To: php-general@lists.php.net Subject: [PHP] MySQL + PHP question Hi guys. I'm having some trouble here regarding a project. I have a table with projects, wich can be recursive (ie. sub-projects) and it is related to itself

RE: [PHP] MySQL + PHP question

2005-07-26 Thread Shaw, Chris - Accenture
, but this query should work on MSSQL and Oracle. HTH. C. -Original Message- From: André Medeiros [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 12:53 To: Shaw, Chris - Accenture Cc: php-general@lists.php.net Subject: RE: [PHP] MySQL + PHP question

Re: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
One thing I didn't quite explain myself well... I'm building this to register objects on a permission system. The SQL weight is heavy as it is, and I want to save queries as much as possible. Making two queries to extract information about a project and it's parent is not something I'd want to

RE: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
You're missing the point here. I know how to get the parent project's info. I know recursiveness. I _JUST_ don't know how to get the current and parent project's info in just ONE QUERY (since I'm trying to save them because the sql weight is getting pretty heavy). -- PHP General Mailing List

Re: [PHP] MySQL + PHP question

2005-07-26 Thread Mark Rees
André Medeiros [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One thing I didn't quite explain myself well... I'm building this to register objects on a permission system. The SQL weight is heavy as it is, and I want to save queries as much as possible. Making two queries to

Re: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
On Tue, 2005-07-26 at 13:39 +0100, Mark Rees wrote: André Medeiros [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One thing I didn't quite explain myself well... I'm building this to register objects on a permission system. The SQL weight is heavy as it is, and I want to save

RE: [PHP] MySQL + PHP question

2005-07-26 Thread Shaw, Chris - Accenture
. -Original Message- From: Mark Rees [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 13:39 To: php-general@lists.php.net Subject: Re: [PHP] MySQL + PHP question * This e-mail has been received by the Revenue Internet e-mail service

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Liang ZHONG
Thank you Richard, I think I'd better explain a little about the project and then you or somebody else might give some good suggestion upon the restrictions of the project. The project is to implement a digital library protocol, called oai_pmh

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Rasmus Lerdorf
Read this chapter of the manual: http://www.php.net/manual/en/features.connection-handling.php Liang ZHONG wrote: I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: ?php

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 5:32 am, Liang ZHONG said: It sounds interesting. But since I am pretty new to PHP, I have some questions, naive maybe, about what you wrote. #!/bin/sh\n/path/to/script/Send.php 12 \n What does the Send.php look like? I do not have idea how a shell interprets an php

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Liang ZHONG
I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: ?php do_A(); header(Location: .$result_of_do_A); do_B(); ? Since it takes do_B() quite a while to finish, so I want the

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Robert Cummings
http://ca.php.net/manual/en/function.register-shutdown-function.php Cheers, Rob. On Thu, 2005-07-21 at 23:40, Liang ZHONG wrote: I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the

<    3   4   5   6   7   8   9   10   11   12   >