php-general Digest 24 May 2010 09:20:55 -0000 Issue 6761

2010-05-24 Thread php-general-digest-help
php-general Digest 24 May 2010 09:20:55 - Issue 6761 Topics (messages 305461 through 305478): Re: Remove blank lines from a file 305461 by: Robert Cummings 305463 by: Nathan Rixham 305465 by: Robert Cummings 305466 by: Nathan Rixham 305467 by: Robert

[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

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

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

Re: [PHP] CERRAR NAVEGADOR y VENTANA CON PHP

2010-05-24 Thread Daniel Brown
2010/5/24 MSc. Carlos Pollan Estrada cpol...@ahm.granma.inf.cu: 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] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread Alice Wei
Hi,I have a snippet as in the following: ul liSelect the type of your starting point of interest:br/ div id=start_menuform action= name=form1 method=post spaninput type=radio value=Apartment name=start

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: ul liSelect the type of your starting point of interest:br/ div id=start_menuform action= name=form1 method=post spaninput type=radio value=Apartment name=start

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 =

[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

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 =

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 script

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

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

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

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

Re: [PHP] editing a file

2010-05-24 Thread Rene Veerman
On Mon, May 24, 2010 at 11:16 PM, Andres Gonzalez and...@packetstorm.com 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

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 and...@packetstorm.com 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

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 rene7...@gmail.com wrote: On Mon, May

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

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

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: ul liSelect the type of your starting point of interest:br/ div id=start_menuform action= name=form1 method=post spaninput type=radio