php-general Digest 24 May 2010 09:20:55 -0000 Issue 6761
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 Cummings 305471 by: Nathan Rixham 305472 by: Robert Cummings 305473 by: Nathan Rixham 305476 by: Robert Cummings Re: Multiple Login in a single PC should not be possible 305462 by: Karl DeSaulniers 305464 by: Nathan Rixham 305468 by: Karl DeSaulniers 305469 by: Karl DeSaulniers 305474 by: Karl DeSaulniers 305475 by: Karl DeSaulniers php-gene...@lists.php.net Buy real VIAGRA! 305470 by: php-general.lists.php.net simplexml_load_file problem 305477 by: shahrzad khorrami 305478 by: shahrzad khorrami Administrivia: To subscribe to the digest, e-mail: php-general-digest-subscr...@lists.php.net To unsubscribe from the digest, e-mail: php-general-digest-unsubscr...@lists.php.net To post to the list, e-mail: php-gene...@lists.php.net -- ---BeginMessage--- Nathan Rixham wrote: Nathan Rixham wrote: 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,$text_array); Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system: ?php $data = preg_replace( #[\r\n]+#, PHP_EOL, $input ); ? Cheers, Rob. Rob: It's not broken according to my given, which was If that is all (i.e., removing double linefeeds), then this will do it: My code does exactly what was stated. Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :) I did not catch there were more than two linefeeds in the OP's problem. Doing more was something I did not address. Also, the solution you provided works better this way: :-) $input = preg_replace( #[\r\n]+[[:space:]]+[\r\n]+#, \n, $input ); $input = preg_replace( #[\r\n]+#, PHP_EOL, $input ); $input = trim( $input ); preg_replace( /(\s)\s+/im, '\\1', $input ); :) ahh just read the rest of this thread.. icnase it gets a bit pedantic then here's a horizontal white space only one: preg_replace( /(\h)\h+/im, '\\1', $input ); and vertical only: preg_replace( /(\v)\v+/im, '\\1', $input ); (spot a pattern?) Hi Nathan, You may want to start testing your solutions. None have worked yet. Not even close :) Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. ---End Message--- ---BeginMessage--- Robert Cummings wrote: Nathan Rixham wrote: Nathan Rixham wrote: 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,$text_array); Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system: ?php $data = preg_replace( #[\r\n]+#, PHP_EOL, $input ); ? Cheers, Rob. Rob: It's not broken according to my given, which was If that is all (i.e., removing double linefeeds), then this will do it: My code does exactly what was stated. Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :) I did not catch there were more than two linefeeds in the OP's problem. Doing more was something I did not address. Also, the solution you provided works better this way: :-) $input = preg_replace( #[\r\n]+[[:space:]]+[\r\n]+#, \n, $input ); $input = preg_replace( #[\r\n]+#, PHP_EOL, $input );
[PHP] simplexml_load_file problem
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
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
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 wsdl') class Zend_Controller_Action_Helper_Results extends Zend_Controller_Action_Helper_Abstract { $client = new Zend_Soap_Client('http://192.168.200.18/neuron.wsdl', $options); $result = $client-*getUsers*(); Regards, Shahrzad Khorrami
[PHP] Re: Zend_Soap_Client --HOw to pass what function to call from wsdl
ok friends, solved ;) $funName = 'getAssetHostsList'; $results = $this-_helper-results($funName); $result = $client-$funName(); Thanks shahrzad
[PHP] CERRAR NAVEGADOR y VENTANA CON PHP
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/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-general...@lists.php.net -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ We now offer SAME-DAY SETUP on a new line of servers! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dynamic Menus in a PHP Form Issue
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 onclick=alert(document.form1.start)/ Apartment /span /form/div/li/ulIf I tried to put this at the top of a file where I save as PHP with other PHP execution statements, looks like the form does not do anything, and yet when I save the page as in HTML with out the other PHP execution, it works. I am trying to create a page where I have dynamic drop down menu lists so users can egenerate dynamic content based on their preference. Is it possible that I can save the entire file as a PHP and still keep the functionality, including generating dynamic menus, writing the proper entries to the database and printing out the proper output? Thanks for your help. Alice _ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
Re: [PHP] Dynamic Menus in a PHP Form Issue
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 onclick=alert(document.form1.start)/ Apartment /span /form/div/li/ulIf I tried to put this at the top of a file where I save as PHP with other PHP execution statements, looks like the form does not do anything, and yet when I save the page as in HTML with out the other PHP execution, it works. I am trying to create a page where I have dynamic drop down menu lists so users can egenerate dynamic content based on their preference. Is it possible that I can save the entire file as a PHP and still keep the functionality, including generating dynamic menus, writing the proper entries to the database and printing out the proper output? Thanks for your help. Alice Alice: I'm not sure as to what it is that you are asking, but php runs on the server and is done by time anyone looks at a select control. If you want a dynamic select, then there are two basic types: 1) dynamically generated on the server based upon what the user indicted via a previous submit; 2) dynamically generated on the client-side based upon what the user indicted via a javascript trigger. Now, please describe which type you want? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Remove blank lines from a file
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,$text_array); Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system: ?php $data = preg_replace( #[\r\n]+#, PHP_EOL, $input ); ? Cheers, Rob. Rob: It's not broken according to my given, which was If that is all (i.e., removing double linefeeds), then this will do it: My code does exactly what was stated. Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :) Rob: Okay, so I didn't correctly identify and understand the problem from the client (the list), but my solution worked for the problem I understood. Whereas: Doh, what's funny is I fixed it in my test script but had already pasted into my email and forgot to update that *lol*. Good catch! You correctly identified and understood the problem, but failed to provide a working solution to the client (the list). It's a good thing that we both have clients who understand we're not prefect. :-) Let's just agree that we both can identify, understand, and solve such minor problems. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exec in different directory where PHP is Installed
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.xxx.xxx.xxx\scriptdir\ to c:\scriptdir\ then it's work !! everything work good EXCEPT the @EXEC command ... Safe mode in PHP is OFF ... Thanks by advance for you help stephane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Remove blank lines from a file
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 = implode(\n,$text_array); Sorry tedd, this is broken. It doesn't solve problems with runs of greater than 2 newlines which is even in the example :) I would use the following instead which is also line break agnostic with final output in the style for your system: ?php $data = preg_replace( #[\r\n]+#, PHP_EOL, $input ); ? Cheers, Rob. Rob: It's not broken according to my given, which was If that is all (i.e., removing double linefeeds), then this will do it: My code does exactly what was stated. Actually, his comment didn't say double line feeds... his comment said I want THIS to look like THAT. And THIS had a triple line feed and THAT completely normalized it to a single line feed. I realize you misunderstood the problem, but where I work, clients don't think a solution based on incorrect presumptions is a valid solution for a clearly defined problem :) Rob: Okay, so I didn't correctly identify and understand the problem from the client (the list), but my solution worked for the problem I understood. Whereas: Doh, what's funny is I fixed it in my test script but had already pasted into my email and forgot to update that *lol*. Good catch! You correctly identified and understood the problem, but failed to provide a working solution to the client (the list). It's a good thing that we both have clients who understand we're not prefect. :-) Let's just agree that we both can identify, understand, and solve such minor problems. If you had been a real client I would have tested before shipping :) My problem would have been caught immediately, yours could have been silently wreaking havoc my altering data. I'd rather a completely broken solution than a half working solution that presents itself at a later time :| The only reason I bothered to bring it up though, is because these miscommunications between client and developer (and any number of in betweens was the focus of a memorable cartoon that our professor presented to all of us in a second year programming course (Prgramming in the Large with C++). 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. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] exec in different directory where PHP is Installed
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 from \\xxx.xxx.xxx.xxx\scriptdir\ to c:\scriptdir\ then it's work !! everything work good EXCEPT the @EXEC command ... Is 'C:\Program Files\PHP' in your PATH? You may need to add that manually. Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exec in different directory where PHP is Installed
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 false; } $imcommands = array( 'identify' = $this-identifypath, 'convert' = $this-convertpath, ); $input = $imcommands[$command] . ' ' . $args . ' 21'; if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' AND PHP_VERSION '5.3.0') { $input = '' . $input . ''; } $exec = @exec($input, $output, $this-returnvalue); when i put the script in \\xxx.xxx.xxx.xxx\scriptdir\ the result is empty when i put the script everywhere in the c: then the result is good ! in both case $input is the same and point to c:\program files\im\identify.exe i use php 5.2.8 on windows thanks by advance stephane On 5/24/2010 11:11 PM, Kevin Kinsey wrote: 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 from \\xxx.xxx.xxx.xxx\scriptdir\ to c:\scriptdir\ then it's work !! everything work good EXCEPT the @EXEC command ... Safe mode in PHP is OFF ... Hello, Can you show us the script? The first thing I'd do is call is_file(\\xxx.xxx.xxx.xxx\scriptdir\foo.php) ... are you doing that? Kevin Kinsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exec in different directory where PHP is Installed
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 :( but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\ to c:\scriptdir\ then it's work !! everything work good EXCEPT the @EXEC command ... Is 'C:\Program Files\PHP' in your PATH? You may need to add that manually. Bob McConnell no ? but why i would need to add C:\Program Files\PHP in my path ? why it's explain that it's work when the php script are located in any directory under c: and not under \\xxx.xxx.xxx.xxx\scriptdir\ ?? thanks by advance stephane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] exec in different directory where PHP is Installed
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 files\ourexecutable\ it's not work :( but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\ to c:\scriptdir\ then it's work !! everything work good EXCEPT the @EXEC command ... Is 'C:\Program Files\PHP' in your PATH? You may need to add that manually. no ? but why i would need to add C:\Program Files\PHP in my path ? why it's explain that it's work when the php script are located in any directory under c: and not under \\xxx.xxx.xxx.xxx\scriptdir\ ?? What is the exact error message you get when it doesn't work? Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exec in different directory where PHP is Installed
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 from \\xxx.xxx.xxx.xxx\scriptdir\ to c:\scriptdir\ then it's work !! everything work good EXCEPT the @EXEC command ... Safe mode in PHP is OFF ... Hello, Can you show us the script? The first thing I'd do is call is_file(\\xxx.xxx.xxx.xxx\scriptdir\foo.php) ... are you doing that? Kevin Kinsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] editing a file
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, search for a particular signature, and delete a couple of lines? Seems like this would be very easy in PHP. Thanks, -Andres -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] editing a file
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 offending lines. What is the easiest way using a PHP script to read in a file, search for a particular signature, and delete a couple of lines? Seems like this would be very easy in PHP. file_get_contents() to get the file into a $string. preg_match_all(,,$matches) to get to what you need, str_replace() to replace $matches with your chosen replacements and there you are :) file_put_contents() to save the results.. Thanks, -Andres -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - Greetings from Rene7705, My free open source webcomponents: http://code.google.com/u/rene7705/ http://mediabeez.ws/downloads (and demos) http://www.facebook.com/rene7705 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] editing a file
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 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, search for a particular signature, and delete a couple of lines? Seems like this would be very easy in PHP. file_get_contents() to get the file into a $string. preg_match_all(,,$matches) to get to what you need, str_replace() to replace $matches with your chosen replacements and there you are :) file_put_contents() to save the results.. Thanks, -Andres -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] editing a file
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 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 offending lines. What is the easiest way using a PHP script to read in a file, search for a particular signature, and delete a couple of lines? Seems like this would be very easy in PHP. file_get_contents() to get the file into a $string. preg_match_all(,,$matches) to get to what you need, str_replace() to replace $matches with your chosen replacements and there you are :) file_put_contents() to save the results.. Thanks, -Andres -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - Greetings from Rene7705, My free open source webcomponents: http://code.google.com/u/rene7705/ http://mediabeez.ws/downloads (and demos) http://www.facebook.com/rene7705 - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] editing a file
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://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Remove blank lines from a file
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 anyway. :-) The point is -- we all make mistakes. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dynamic Menus in a PHP Form Issue
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 value=Apartment name=start onclick=alert(document.form1.start)/ Apartment /span /form/div/li/ulIf I tried to put this at the top of a file where I save as PHP with other PHP execution statements, looks like the form does not do anything, and yet when I save the page as in HTML with out the other PHP execution, it works. I am trying to create a page where I have dynamic drop down menu lists so users can egenerate dynamic content based on their preference. Is it possible that I can save the entire file as a PHP and still keep the functionality, including generating dynamic menus, writing the proper entries to the database and printing out the proper output? Thanks for your help. Alice Alice: I'm not sure as to what it is that you are asking, but php runs on the server and is done by time anyone looks at a select control. If you want a dynamic select, then there are two basic types: 1) dynamically generated on the server based upon what the user indicted via a previous submit; 2) dynamically generated on the client-side based upon what the user indicted via a javascript trigger. Now, please describe which type you want? Cheers, tedd -- Re the above, I meant indicated and not indicted -- sorry. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php