Re: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread tedd
At 11:38 AM -0400 5/24/10, tedd wrote: At 10:46 AM -0400 5/24/10, Alice Wei wrote: Hi,I have a snippet as in the following: Select the type of your starting point of interest: id="start_menu"> onclick="alert(document.form1.start)"/> Apartment If I tried to p

Re: [PHP] Remove blank lines from a file

2010-05-24 Thread tedd
At 2:39 PM -0400 5/24/10, Robert Cummings wrote: -snip- It highlighting the conceptual differences between different people in the production chain and how the client pretty mich didn't get what he wanted :) Cheers, Rob. Rob: Any guy called "pretty mich" probably doesn't get what he wants a

Re: [PHP] editing a file

2010-05-24 Thread shiplu
You can use shell commands. Like sed, replace etc .. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) -- PHP General Mailing List (http:/

Re: [PHP] editing a file

2010-05-24 Thread Ryan Sun
yea, file_get_contents and file_put_contents are the easiest, but play with caution when dealing with large files, 'cause it loads the whole file into memory, fopen() fread() fwrite() can be used for large files. On Mon, May 24, 2010 at 5:56 PM, Rene Veerman wrote: > On Mon, May 24, 2010 at 11:16

Re: [PHP] editing a file

2010-05-24 Thread Andres Gonzalez
thank you Rene, that is the start I needed. -Andres Rene Veerman wrote: On Mon, May 24, 2010 at 11:16 PM, Andres Gonzalez wrote: I have a large C source file that is generated by a separate source-generating program. When the generated src file is compiled, it produces tons of warnings. I

Re: [PHP] editing a file

2010-05-24 Thread Rene Veerman
On Mon, May 24, 2010 at 11:16 PM, Andres Gonzalez wrote: > I have a large C source file that is generated by a separate > source-generating program. When the generated src file is compiled, it > produces tons of warnings. I want to edit the generated src file and delete > the offending lines. > >

[PHP] editing a file

2010-05-24 Thread Andres Gonzalez
I have a large C source file that is generated by a separate source-generating program. When the generated src file is compiled, it produces tons of warnings. I want to edit the generated src file and delete the offending lines. What is the easiest way using a PHP script to read in a file, sea

Re: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread Kevin Kinsey
loki wrote: Hello, PHP is installed in c:\program files\php the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ in the PHP script, we try to launch the command @exec(...) with a executable located in c:\program files\ourexecutable\ it's not work :( but if we move the PHP script f

RE: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread Bob McConnell
From: loki > On 5/24/2010 11:31 PM, Bob McConnell wrote: >> From: loki >> >>> PHP is installed in c:\program files\php >>> the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ >>> in the PHP script, we try to launch the command @exec(...) with a >>> executable located in c:\program fil

Re: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread loki
On 5/24/2010 11:31 PM, Bob McConnell wrote: From: loki PHP is installed in c:\program files\php the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ in the PHP script, we try to launch the command @exec(...) with a executable located in c:\program files\ourexecutable\ it's not work

Re: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread loki
the script is vbulletin function fetch_im_exec($command, $args, $needoutput = false, $dieongs = true) { if (!function_exists('exec')) { $this->error = array(fetch_error('php_error_exec_disabled')); return

RE: [PHP] exec in different directory where PHP is Installed

2010-05-24 Thread Bob McConnell
From: loki > PHP is installed in c:\program files\php > the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ > in the PHP script, we try to launch the command @exec(...) with a > executable located in c:\program files\ourexecutable\ > > it's not work :( > > but if we move the PHP sc

Re: [PHP] Remove blank lines from a file

2010-05-24 Thread Robert Cummings
tedd wrote: At 2:48 PM -0400 5/23/10, Robert Cummings wrote: tedd wrote: At 1:02 PM -0400 5/22/10, Robert Cummings wrote: tedd wrote: If that is all (i.e., removing double linefeeds), then this will do it: $text_array = array(); $text_array = explode("\n\n", $input_text); $output_text = impl

[PHP] exec in different directory where PHP is Installed

2010-05-24 Thread loki
Hello, PHP is installed in c:\program files\php the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ in the PHP script, we try to launch the command @exec(...) with a executable located in c:\program files\ourexecutable\ it's not work :( but if we move the PHP script from \\xxx.xx

Re: [PHP] Remove blank lines from a file

2010-05-24 Thread tedd
At 2:48 PM -0400 5/23/10, Robert Cummings wrote: tedd wrote: At 1:02 PM -0400 5/22/10, Robert Cummings wrote: tedd wrote: If that is all (i.e., removing double linefeeds), then this will do it: $text_array = array(); $text_array = explode("\n\n", $input_text); $output_text = implode("\n",$tex

Re: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread tedd
At 10:46 AM -0400 5/24/10, Alice Wei wrote: Hi,I have a snippet as in the following: Select the type of your starting point of interest: onclick="alert(document.form1.start)"/> Apartment If I tried to put this at the top of a file where I save as PHP with

[PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread Alice Wei
Hi,I have a snippet as in the following: Select the type of your starting point of interest: Apartment If I tried to put this at the top of a file where I save

Re: [PHP] CERRAR NAVEGADOR y VENTANA CON PHP

2010-05-24 Thread Daniel Brown
2010/5/24 MSc. Carlos Pollan Estrada : > Hola colega. > Necesito saber cómo cerra una ventana y cómo cerrar el navegador > utilizando PHP No es posible con PHP. Esta es un trabajo por JavaScript. En el futuro, utilizad la lista por PHP de espanol: php-general...@lists.php.net -- dani

[PHP] CERRAR NAVEGADOR y VENTANA CON PHP

2010-05-24 Thread MSc. Carlos Pollan Estrada
Hola colega. Necesito saber cómo cerra una ventana y cómo cerrar el navegador utilizando PHP Gracias de antemano Salu2 cpollan

[PHP] Re: Zend_Soap_Client --HOw to pass what function to call from wsdl

2010-05-24 Thread shahrzad khorrami
ok friends, solved ;) $funName = 'getAssetHostsList'; $results = $this->_helper->results($funName); $result = $client->$funName(); Thanks shahrzad

[PHP] Zend_Soap_Client --HOw to pass what function to call from wsdl

2010-05-24 Thread shahrzad khorrami
hi all, Is it possible to define (pass a argument 'function name') that we can change the function to call from soap? for example here we can pass getList and then = $client->geList() must call... it means pass what function to call from wsdl... $this->_helper->results('this func must call fro

Re: [PHP] simplexml_load_file problem

2010-05-24 Thread shahrzad khorrami
by using of ' simplexml_load_string' instead of file, I solved my problem :) thanks

[PHP] simplexml_load_file problem

2010-05-24 Thread shahrzad khorrami
hi all, $results is a xml format string, I want to get this string as a real xml file $nodes = simplexml_load_file($results); but $nodes is empty array... how can I do that? nodes must be an object contains xml Thanks, Shahrzad Khorrami