Re: [PHP] Re: 9970318527584
On 21 February 2011 07:46, Gary php-gene...@garydjones.name wrote: Richard Quadling wrote: nada. Please stop posting my bank account balance! OK. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Streaming to a file.
Hi. Is there a way to use streams such that I can have my source stream as bzip2 . decompress : / / data . bz2 (had to add spaces as I think this is causing a bounce on the lists for php) and my output stream as data, without having to read from one and write to the other in a loop? Essentially push the data from one place to another. Whilst I accept buffering will happen in this, it seems boring to have to do it myself. Richard -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Sun, Feb 20, 2011 at 18:51, tolga kacmazto...@gmail.com wrote: i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. Nor do mailing list rules or Internet etiquette guidelines, apparently. You know, the ones that say, don't hijack someone else's thread, start your own, yada yada -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On 2/20/2011 3:47 PM, tedd wrote: At 2:03 PM -0500 2/18/11, Pete Woodhead wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Pete: Welcome to the gang. Minor points: 1. It's not code writing, it's coding. 2. You are not a code writer, but rather a coder. You can also be called a computer programmer or a programer for short -- not to mention some of the other names we are often called. :-) Cheers, tedd Hi Tod, Thanks for the welcome and the jargon corrections. So far the other help I've received is to show me, the new guy where the clean up broom and shovel are! We'll if you'll excuse me I've got some sweeping to do. :) Regards, Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On 2/20/2011 6:41 PM, Richard Quadling wrote: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. Â I'm new to the list and to PHP. Â To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. Hi Richard, Thanks for the welcome, the advice and the link. I was not aware of PHP | Architect. Truth be told I'm still at the PHP for Dummies level. Regards, Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] About mobile apps
On Mon, Feb 21, 2011 at 06:01, Webforlaget.dk i...@web-forlaget.dk wrote: Is there any problem with submitting data on webside-form from af mobile device or is it a demand to develop a application for the device in order to keep data safe. what is the benefits u get from an application comparring to the device-internet-browser. This has zero to do with PHP, Rolf. Check Google for security implications and cost-vs-benefit of developing an app versus using the device's embedded browser. -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to list and to PHP
On Mon, Feb 21, 2011 at 9:37 AM, Pete Woodhead pete.woodhea...@gmail.com wrote: On 2/20/2011 6:41 PM, Richard Quadling wrote: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. Â I'm new to the list and to PHP. Â To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Assume that all the data you get from the user is out to get you. It probably isn't. Most of the time. But when it does, it'll be your fault. Unless you've left the company by then. Also, poka-yoke is a great concept to learn about (thanks to a great article in php|Architect all the way back when). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://www.phparch.com/magazine/2006-2/february/ in case anyone was wondering. Hi Richard, Thanks for the welcome, the advice and the link. I was not aware of PHP | Architect. Truth be told I'm still at the PHP for Dummies level. Regards, Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Consider Head First Object Oriented Analysis and Design http://www.amazon.com/Head-First-Object-Oriented-Analysis-Design/dp/0596008678 -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Solr Extension - Changing the wt-Parameter from xml to json
Hi I'm using the Solr extension (http://php.net/manual/en/book.solr.php) to create a search site for a company. I am trying figure out a way of changing the wt-parameter from xml to json. I have searched already but with no success so far. Further information to help with my question: - http://wiki.apache.org/solr/CoreQueryParameters#wt - Example 5 on http://www.php.net/manual/en/solr.examples.php shows the wt-parameter set to xml. Thanks in advance! tj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Jquery
On Mon, Feb 21, 2011 at 7:56 AM, Ellis Antaya ellis.ant...@gmail.comwrote: Hi, first, like everyone else before me told already, you forgot to load jquery in your page. Example : script type=text/javascript src= http://code.jquery.com/jquery-1.5.min.js /script Also, i would change your script to remove the first function that was wrapping everything. $(document).ready is enough. Actually, he can remove the $(document).ready function and leave the outer function function, as this is a shorthand for the ready call: http://api.jquery.com/ready/ http://api.jquery.com/ready/Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com
Re: [PHP] Submitting data to MySQL database using HTML/PHP form
Thanks! -- I'll definitely look into Netbeans. (The IDE that I was using didn't seem to recognize syntax errors.) On Mon, Feb 21, 2011 at 4:13 AM, Pete Ford p...@justcroft.com wrote: Nazish, Find yourself an editor or development environment that does source code highlighting - this sort of error will be very obvious in such a program. I'm not going to recommend one - that's a sure way to start an argument - but I use Netbeans. Cheers Pete -- Peter Ford, Developer phone: 01580 89 fax: 01580 893399 Justcroft International Ltd. www.justcroft.com Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom Registered in England and Wales: 2297906 Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysql_num_rows()
Can someone tell me why this is not working? I do not get an error message, the results are called and echo'd to screen, the count does not work, I get a 0 for a result... $result = mysql_query(SELECT * FROM `counties` WHERE name = 'checked') or die(mysql_error()); if ( isset($_POST['submit']) ) { for($i=1; $i=$_POST['counties']; $i++) { if ( isset($_POST[county$i] ) ) { echo You have chosen . $_POST[county$i]. br/; } } } $county_total=mysql_num_rows($result); while($row = mysql_fetch_array($result)) {$i++; echo $row['name']; } $county_total=mysql_num_rows($result); echo $county_total; echo 'You Have ' . $county_total . ' Counties '; ? -- Gary __ Information from ESET Smart Security, version of virus signature database 5894 (20110221) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql_num_rows()
I tried your script locally. Its working for me. On Tue, Feb 22, 2011 at 11:10 AM, Gary gp...@paulgdesigns.com wrote: Can someone tell me why this is not working? I do not get an error message, the results are called and echo'd to screen, the count does not work, I get a 0 for a result... $result = mysql_query(SELECT * FROM `counties` WHERE name = 'checked') or die(mysql_error()); if ( isset($_POST['submit']) ) { for($i=1; $i=$_POST['counties']; $i++) { if ( isset($_POST[county$i] ) ) { echo You have chosen . $_POST[county$i]. br/; } } } $county_total=mysql_num_rows($result); while($row = mysql_fetch_array($result)) {$i++; echo $row['name']; } $county_total=mysql_num_rows($result); echo $county_total; echo 'You Have ' . $county_total . ' Counties '; ? -- Gary __ Information from ESET Smart Security, version of virus signature database 5894 (20110221) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- :DJ