Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-25 Thread Tamara Temple
On Jun 24, 2011, at 2:20 PM, Jim Giner wrote: Call me backwards, but I prefer to keep my statements simple. I would first obtain the POST value before trying to pull up an array element. $stype=$_POST[''store_type']; if (!isset($stype)) (handle missing radio button) else

[PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Tamara Temple
On Jun 24, 2011, at 6:28 AM, Chris Stinemetz wrote: So I am trying to keep this simple and just assign the value with the radio button and then insert it into mysql database, but with the following code I am getting the mysql error: Unknown column '250kbps' in 'field list' when I choose the

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
That worked perfectly! Thank you, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Vitalii Demianets
On Friday 24 June 2011 17:28:08 Chris Stinemetz wrote: That worked perfectly! And will work, until you decide to put quotes in button name for some reason. And until some malicious user forge POST request with $_POST['post_tptest'] = '; DROP DATABASE; -- But you can use prepared statements to be

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Richard Quadling
On 24 June 2011 15:44, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: On Friday 24 June 2011 17:28:08 Chris Stinemetz wrote: That worked perfectly! And will work, until you decide to put quotes in button name for some reason. And until some malicious user forge POST request with

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Tamara Temple
On Jun 24, 2011, at 10:28 AM, Richard Quadling wrote: On 24 June 2011 15:44, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: And furthermore, I think Carthage must be destroyed. Let's haul out the PHP war wagons! http://xkcd.com/327/ I so wanted to rename my daughter Little Chelsea

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Richard Quadling
On 24 June 2011 18:23, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 24, 2011, at 10:28 AM, Richard Quadling wrote: On 24 June 2011 15:44, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: And furthermore, I think Carthage must be destroyed. Let's haul out the PHP war wagons!

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Chris Stinemetz
radio select validation What I am doing wrong? I want to make sure a radio button is selected, but my current code allows insertion even when radio button isn't selected. My code is: //Generating radio buttons for store type with array

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Jim Giner
Call me backwards, but I prefer to keep my statements simple. I would first obtain the POST value before trying to pull up an array element. $stype=$_POST[''store_type']; if (!isset($stype)) (handle missing radio button) else $st_name=$choices[$stype]; for me (and the next guy who has

Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-24 Thread Andre Polykanine
://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Chris Stinemetz chrisstinem...@gmail.com To: rquadl...@gmail.com Date created: , 9:44:05 PM Subject: [PHP] Re: [PHP-DB] Re: radio form

[PHP] Re: [PHP-DEV] PHP 5.3.7RC1 Released for Testing

2011-06-16 Thread Frédéric Hardy
Hello ! Le 16 juin 2011 à 23:42, Johannes Schlüter a écrit : To find out what was changed since the last release please refer to the NEWS file found within the archive or on http://svn.php.net/viewvc/php/php-src/tags/php_5_3_4RC1/NEWS?revision=HEADview=markup Valid NEWS file for 5.3.7RC1

[PHP] Re: [PHP-DEV] PHP 5.3.7RC1 Released for Testing

2011-06-16 Thread Johannes Schlüter
On Thu, 2011-06-16 at 23:42 +0200, Johannes Schlüter wrote: To find out what was changed since the last release please refer to the NEWS file found within the archive or on http://svn.php.net/viewvc/php/php-src/tags/php_5_3_4RC1/NEWS?revision=HEADview=markup This should - obviously - have

[PHP] Re: [PHP-WEBMASTER] encoding issue

2011-06-02 Thread Richard Quadling
On 2 June 2011 06:34, bandhu chithi bchi...@gmail.com wrote: Hi There, I have a website up running. I want to change my developer, but the code of the website is entirely in coded format and when i took the backup and passed it on to my new developer, they can not read anything and all the

Re: [PHP] Re: [PHP-WEBMASTER] encoding issue

2011-06-02 Thread Geoff Shang
On Thu, 2 Jun 2011, Richard Quadling wrote: There are other possibilities, but they could have legal repercussions - essentially reversing the encoding may be considered as an attempt to bypass a copyright protection system which could contravene the

[PHP] Re: [PHP-WEBMASTER] Simple question

2011-05-09 Thread Richard Quadling
On 9 May 2011 14:53, Vincent McGinley vmcgin...@re-thinkitinc.com wrote: Can you remove the @. Do you get an error? Tried this and got same result (page loads up halfway and no error message). Can you change the location to ./folder/$Product.php ? Changed path and same result. Does the

[PHP] Re: [PHP-WEBMASTER] Simple question

2011-05-09 Thread Richard Quadling
On 9 May 2011 15:59, Vincent McGinley vmcgin...@re-thinkitinc.com wrote: Notice:  Undefined variable: Product in /Applications/MAMP/htdocs/Pages/Products/Bamboo_Zoo/index.php on line 181 And there's the issue. In your old system, you probably had something called register_globals enabled.

[PHP] Re: php-general Digest 5 May 2011 21:55:09 -0000 Issue 7299

2011-05-06 Thread e-letter
Readers, Looking through the mail lists archives, only the following message seems to advise about the possibility to use gnuplot: http://marc.info/?l=php-generalm=96248542218029w=2 Is it possible to start gnuplot using php, to plot a graph from postgresql data. For example, a table is created

[PHP] Re: php-general Digest 5 May 2011 21:55:09 -0000 Issue 7299

2011-05-06 Thread David Robley
e-letter wrote: Readers, Looking through the mail lists archives, only the following message seems to advise about the possibility to use gnuplot: http://marc.info/?l=php-generalm=96248542218029w=2 Is it possible to start gnuplot using php, to plot a graph from postgresql data. For

[PHP] Re: php to store data

2011-05-03 Thread Florin Jurcovici
Hi. Create a page containing just: ?php phpinfo() ? open it in a browser, then see if SQLite appears in the resulting web page. If yes, you're done - you can use an actual database, although an embedded one. But this should also mean that you have file write access from PHP - since SQLite

Re: [PHP] Re: php to store data

2011-05-03 Thread Philip Thompson
On Tue, May 3, 2011 at 5:18 AM, Florin Jurcovici florin.jurcov...@gmail.com wrote: Hi. Create a page containing just: ?php phpinfo() ? open it in a browser, then see if SQLite appears in the resulting web page. If yes, you're done - you can use an actual database, although an embedded

Re: [PHP] Re: php to store data

2011-05-03 Thread Stuart Dallas
On Tuesday, 3 May 2011 at 17:50, Philip Thompson wrote: On Tue, May 3, 2011 at 5:18 AM, Florin Jurcovici florin.jurcov...@gmail.com wrote: Hi. Create a page containing just: ?php phpinfo() ? open it in a browser, then see if SQLite appears in the resulting web page. If

[PHP] Re: PHP delete confirmation

2011-04-29 Thread Geoff Lane
On Friday, April 29, 2011, ad...@buskirkgraphics.com wrote: Personally I would use the javascript page navigation is senseless if they miss click. Javascript: Small and simple javascript. onclick=return confirm('Are you sure you want to delete?') Personally, I'd use Javascript and also

Re: [PHP] Re: PHP delete confirmation

2011-04-29 Thread Jim Lucas
On 4/29/2011 12:06 AM, Geoff Lane wrote: On Friday, April 29, 2011, ad...@buskirkgraphics.com wrote: Personally I would use the javascript page navigation is senseless if they miss click. Javascript: Small and simple javascript. onclick=return confirm('Are you sure you want to

Re: [PHP] Re: PHP delete confirmation

2011-04-29 Thread Ashley Sheridan
Jim Lucas li...@cmsws.com wrote: On 4/29/2011 12:06 AM, Geoff Lane wrote: On Friday, April 29, 2011, ad...@buskirkgraphics.com wrote: Personally I would use the javascript page navigation is senseless if they miss click. Javascript: Small and simple javascript. onclick=return confirm('Are

[PHP] Re: [PHP-WEBMASTER] Can you tell me the detailed difference between PDO and Mysql_connect?

2011-04-21 Thread Ferenc Kovacs
2011/4/21 通用产品开发组-王晓明 wangxiaoming...@soufun.com Dear PHP Officer, From China. I have heard of PDO extension for more than one year, but I havn't test the difference between PDO and Mysql_connect. I search a very long time for other programers' test report from google, but failed. There

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-04-01 Thread Santosh gunat
Hi, I am in a big problem, My manager gave a task, He want a PHP scrip which will check if the remote machines are Powered on and are running. He want this to be done using eclipse. He also want a log in a HTML or text file that which remote machine is running and which remote machine is

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-28 Thread Curtis Tammany
I had allways used PHP as an Apache module up intil now. They seem incompatible. I reinstalled PHP as a CGI binary. PHP inserts the following: #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL ScriptAlias /php/ C:/Program Files/PHP536/ Action application/x-httpd-php C:/Program

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-26 Thread Pierre Joye
On Sat, Mar 26, 2011 at 1:47 AM, Tommy Pham tommy...@gmail.com wrote: I've never tested the difference for performance.  If that's the case, any particular reason to stop support ISAPI for IIS then? or is FastCGI faster than ISAPI for IIS? It is faster, however the ISAPI was not maintained

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Pierre Joye
On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham tommy...@gmail.com wrote: There used to be a VC6 binary release for PHP v5.3.3 at windows.php.net but I don't see a VC6 build for v5.3 now.  Any way, since you're using using Windows, why not just run it as FastCGI?  It runs fine on Win2003 (x86),

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 1:44 PM, Pierre Joye pierre@gmail.com wrote: On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham tommy...@gmail.com wrote: There used to be a VC6 binary release for PHP v5.3.3 at windows.php.net but I don't see a VC6 build for v5.3 now.  Any way, since you're using using

Re: [PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Sharl.Jimh.Tsin
Try third binary instead of official one. Best regards, Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**) 2011/3/26 Tommy Pham tommy...@gmail.com: On Fri, Mar 25, 2011 at 1:44 PM, Pierre Joye pierre@gmail.com wrote: On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham tommy...@gmail.com

Re: [PHP] Re: PHP session replication

2011-03-19 Thread Alessandro Ferrucci
Hi Florin, thank you for your write up, actually the main reason why I asked the original question was because I mainly write servlet based webapps currently but I've decided to use PHP for my next project mainly for exploratory reasons. On Sat, Mar 19, 2011 at 10:06 AM, Florin Jurcovici

[PHP] Re: [PHP-WEBMASTER] php with htmlspecialchars function

2011-03-11 Thread Daniel Brown
On Fri, Mar 11, 2011 at 13:07, Lisa Nguyen lisa.ngu...@jpl.nasa.gov wrote: Hi I use one of your example to test the htmlspecialchars : ?php $new = htmlspecialchars(a href='test'Test/a, ENT_QUOTES); echo $new; // lt;a href=#039;test#039;gt;Testlt;/agt; ? On my browse, it display like

Re: [PHP] Re: [PHP-WEBMASTER] php with htmlspecialchars function

2011-03-11 Thread NetEmp
Well Lisa, that is exactly the way htmlspecialchars is supposed to work. Here you could also display - Test - without using any function at all, simply echo a href='test'Test/a; and this should work well. NetEmp On Fri, Mar 11, 2011 at 11:51 PM, Daniel Brown danbr...@php.net wrote: On Fri,

[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.6RC2 Released for Testing

2011-03-10 Thread Pierre Joye
2011/3/10 sexyprout hellosexypr...@gmail.com: What will be the changes in PHP 5.3.6 final? No change between RC3 and final if everything is fine in this RC, if not then we may need another RC. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP General

[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.6RC2 Released for Testing

2011-03-10 Thread Pierre Joye
See the NEWS file in the release. 2011/3/10 sexyprout hellosexypr...@gmail.com: Sorry everyone. I actually meant the full changelog from v5.3.5 to v5.3.6. -- sexyprout -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP General Mailing List

Re: [PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.6RC2 Released for Testing

2011-03-10 Thread Sharl.Jimh.Tsin
maybe the title PHP 5.3.6RC2 Released for Testing is wrong,please check. Best regards, Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**) 2011/3/11 Pierre Joye pierre@gmail.com: See the NEWS file in the release. 2011/3/10 sexyprout hellosexypr...@gmail.com: Sorry everyone. I

[PHP] Re: [PHP-DEV] PHP 5.3.6RC1 Released for Testing

2011-02-17 Thread Alexey Zakhlestin
On 17.02.2011, at 16:17, Johannes Schlüter wrote: The first release candidates of 5.3.6 was just released for testing and can be downloaded here: http://downloads.php.net/johannes/php-5.3.6RC1.tar.bz2 (md5sum: f78d7b47ddbfca42ebdfcdef2adfe859) The windows binaries are available at:

[PHP] Re:[PHP] code quest

2011-02-15 Thread Kirk Bailey
Frankly, while that modulo looks like something worthy of learning, for my immediate time critical need I went with a quicker method, which is working. The complete script is below. It simply counts cells and resets the row when a number is exceeded. ?php # The next several lines declare an

[PHP] Re: PHP -- using without installing

2011-02-15 Thread Michelle Konzack
Hello Steve Staples, Am 2011-02-14 12:32:51, hacktest Du folgendes herunter: Is there such a thing? or will I have to have a pre-req of php and php-cgi must be installed on linux disclaimer? If you are a OVER-GEEK, youc can compile the php and php-cli 100% static, which I have done some

[PHP] Re: PHP arguments getting lost in call!?

2011-02-15 Thread Florin Jurcovici
Hi. I had no idea you were using Xdebug. When you said Zend Studio i assumed you were using the standard Zend debugger. My bad. Been trying to get Xdebug working in combination with Zend Studio 8. The two seem to talk to each other. But Zend Studio doesn't display any data, no breakpoints,

Re: [PHP] Re: php-general Digest 14 Feb 2011 03:32:02 -0000 Issue 7180

2011-02-14 Thread Thijs Lensselink
On 02/14/2011 05:53 AM, Florin Jurcovici wrote: Hi. Me stupid, my bad. Turns out the bug isn't in my code, but in the debugger. I'm working with the trial version of Zend Studio. When inside the call to the static method, everything is undefined. If I look at variables using the

[PHP] Re: php-general Digest 14 Feb 2011 03:32:02 -0000 Issue 7180

2011-02-13 Thread Florin Jurcovici
Hi. Me stupid, my bad. Turns out the bug isn't in my code, but in the debugger. I'm working with the trial version of Zend Studio. When inside the call to the static method, everything is undefined. If I look at variables using the Expressions view, I can see their values, and they _are_

[PHP] Re: [PHP-DB] 2nd Pair of eyes please

2011-01-27 Thread Donovan Brooke
Hello, to respond to some of the comments/questions.. No, it wasn't parsing anything... and yes, I put ini_set('display_errors', 1); error_reporting(E_ALL | E_STRICT); at the top of the page. (as well as there is a custom built PHP management app that allows to turn on the display_errors..

Re: [PHP] Re: [PHP-DB] 2nd Pair of eyes please

2011-01-27 Thread Donovan Brooke
Oops, sorry, this was suppose to go to the PHP-DB list! Ignore! thx, Donovan -- D Brooke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Error logging

2011-01-18 Thread Carlos Medina
Am 18.01.2011 01:33, schrieb Jimmy Stewpot: Hello, I currently have a strange issue where we are seeing 'random errors' being displayed to end users. What I find most interesting is that in the php.ini file we have the following error settings. error_reporting = E_ALL ~E_NOTICE

[PHP] Re: [PHP-DEV] Re: [PHP] [security] PHP has DoS vuln with large decimal points

2011-01-16 Thread Mike Robinson
On 2011-01-16, at 9:59 PM, Daniel Brown danbr...@php.net wrote: On Sun, Jan 16, 2011 at 21:00, Tommy Pham tommy...@gmail.com wrote: Here are the results after some further tests for the same platform: * max float value: 1.7976931348623E+308 * min float value: 9.8813129168249E-324

[PHP] Re: PHP extension for equivalen of getent?

2011-01-07 Thread Michelle Konzack
Hello Michael Shadle, Am 2011-01-07 00:35:38, hacktest Du folgendes herunter: http://php.net/posix Grmpf! Time to get a new PHP Book... 2002 is rather old! Thanks, Greetings and nice Day/Evening Michelle Konzack -- # Debian GNU/Linux Consultant

RE: [PHP] Re: PHP extension for equivalen of getent?

2011-01-07 Thread Tommy Pham
-Original Message- From: Michelle Konzack [mailto:linux4miche...@tamay-dogan.net] Sent: Friday, January 07, 2011 2:56 AM To: php-general@lists.php.net Subject: [PHP] Re: PHP extension for equivalen of getent? Hello Michael Shadle, Am 2011-01-07 00:35:38, hacktest Du folgendes

[PHP] Re: [PHP-DB] Two forms on one page

2011-01-03 Thread Karl DeSaulniers
On Jan 3, 2011, at 5:17 PM, Ethan Rosenberg wrote: 'Submit Ktten' Shouldn't this be.. 'Submit Kitten' If your asking for it to explicitly equal that (===), then you need to spell Kitten with an i in it? But, that may not be what is actually wrong, just somehting I think I caught.

[PHP] Re: [PHP-DB] Re: [PHP] Regex for telephone numbers

2010-12-30 Thread Daniel Brown
On Thu, Dec 30, 2010 at 14:07, Ethan Rosenberg eth...@earthlink.net wrote: Josh - I used use \d{3}-\d{3}-\d{4}. It works beautifully!! Just keep in mind that invalid numbers will also pass that check, such as 000-000- or 123-456-6789. That's why my example was a bit more involved.

[PHP] Re: [PHP-DB] Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Karl DeSaulniers
Hi Ethan, Could you do a string compare and check at certain characters for a dash? IE: check the second character to see if it is a dash for 1-800... if that is not a dash, check the fourth character for a dash, 469-9... then the other places where dashes would be based on those two

[PHP] Re: [PHP-DB] Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Karl DeSaulniers
You could also help them out a little with something like.. $phone = str_replace((, , $phone); $phone = str_replace(), -, $phone); HTH, Karl On Dec 29, 2010, at 6:27 PM, Josh Kehn wrote: On Dec 29, 2010, at 7:12 PM, Ethan Rosenberg eth...@earthlink.net wrote: Dear List - Thank you

Re: [PHP] Re: [PHP-DB] Re: [PHP] Regex for telephone numbers

2010-12-29 Thread Alexis
Why not have three separate fields for each part, as that way you don't need to bother about how the user separates them, as trust me, if they can break it, they will. I have found it is best to always limit the amount of free entry you permit a user, as that will drastically cut back in data

[PHP] Re: [PHP-DB] Re: [PHP] Problems w/ goto

2010-12-20 Thread Daniel Brown
On Sat, Dec 18, 2010 at 17:02, David Hutto smokefl...@gmail.com wrote: or maybe it's saturday morning and i'm drunk? This seems to be the most likely, and considering how all messages are permanently and independently archived and propagate throughout the Internet, it might be a good reason

[PHP] Re: [PHP-DB] Re: [PHP] Problems w/ goto

2010-12-20 Thread David Hutto
On Mon, Dec 20, 2010 at 7:37 AM, Daniel Brown danbr...@php.net wrote: On Sat, Dec 18, 2010 at 17:02, David Hutto smokefl...@gmail.com wrote: or maybe it's saturday morning and i'm drunk?    This seems to be the most likely, and considering how all messages are permanently and independently

[PHP] Re: [PHP-DB] Re: [PHP] Problems w/ goto

2010-12-17 Thread Daniel Brown
On Fri, Dec 17, 2010 at 12:16, Richard Quadling rquadl...@gmail.com wrote: And have you seen all the sad faces ... : { on http://docs.php.net/manual/en/control-structures.goto.php#92763 Can't be good for them. If only people knew how many hours - literally, hours - it took me to keep

[PHP] RE: [PHP-DB] Re: [PHP] Closing Browser

2010-12-06 Thread Oddity Software LLC
If you are trying to do some automation type stuff you might want to look at something like Robo Task - http://www.robotask.com/ You can schedule a browser open to specified URL's (php script) and have it close the window handle after the page is loaded. Regards, Will T Chief Technical

[PHP] Re: php cli question

2010-09-13 Thread J Ravi Menon
On Sat, Sep 11, 2010 at 8:50 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 09/10/2010 11:13 AM, J Ravi Menon wrote: Hi, I have some basic questions on running php  (5.2.x series on Linux 2.6) as a standalone daemon using posix methods (fork() etc..): #!/usr/bin/php ?php require_once

[PHP] Re: php cli question

2010-09-11 Thread Shawn McKenzie
On 09/10/2010 11:13 AM, J Ravi Menon wrote: Hi, I have some basic questions on running php (5.2.x series on Linux 2.6) as a standalone daemon using posix methods (fork() etc..): #!/usr/bin/php ?php require_once ('someclass.php'); // do some initializations . // main 'forever'

[PHP] RE: PHP list posting confirmation for vicki.stanfield....@dfas.mil

2010-09-08 Thread STANFIELD, VICKI CTR DFAS
I am trying to build php-5.3.3 and getting the following error: /users/0/php-5.3.3/TSRM -I/users/cin05038/php-5.3.3/Zend -I/usr/local/include -g -O2 -DZTS -c /users/0/php-5.3.3/ext/standard/filestat.c -o ext/standard/filestat.lo /users/0/php-5.3.3/ext/standard/filestat.c: In

[PHP] RE: PHP list posting confirmation for vicki.stanfield....@dfas.mil

2010-09-08 Thread tedd
At 9:03 AM -0400 9/8/10, STANFIELD, VICKI CTR DFAS wrote: I am trying to build php-5.3.3 and getting the following error: And what does the Subject line say about your problem? Absolutely nothing! Please understand that these QA's are kept in the archives for others to read, review, and

RE: [PHP] RE: PHP list posting confirmation for vicki.stanfield....@dfas.mil

2010-09-08 Thread STANFIELD, VICKI CTR DFAS
)510-3375 -Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Wednesday, September 08, 2010 9:22 AM To: STANFIELD, VICKI CTR DFAS; php-general@lists.php.net Subject: [PHP] RE: PHP list posting confirmation for vicki.stanfield@dfas.mil At 9:03 AM -0400 9/8/10, STANFIELD

[PHP] Re: [PHP-DEV] Re: [PHP] mod_php

2010-08-20 Thread Guillaume Rossolini
Hi, 1. What optimizations does PHP interpreter make? I guess it should be able to check file modification time and cease to compile it again and again. Is this correct? There is some bytecode form, right? Core PHP does not optimize your code like a DBMS would rewrite your SQL. There are

[PHP] Re: PHP images server

2010-08-05 Thread Colin Guthrie
'Twas brillig, and Jean-Michel Philippon-Nadeau at 04/08/10 16:48 did gyre and gimble: Hi List, My website uses a lot of external images coming from many different websites. Those images are sometimes small, sometimes big, and to reduce the loading time of my pages and for better uniformity,

Re: [PHP] Re: php -l - does it find *anything*?

2010-08-02 Thread Peter Lind
On 2 August 2010 12:05, Gary php-gene...@garydjones.name wrote: Okay, I'm resurrecting this because I just found something I consider to be strange in the documentation. Under the -l option at http://php.net/manual/en/features.commandline.options.php it says This option won't find fatal

[PHP] Re: PHP 5.3 as a requirement for a library?

2010-07-30 Thread Nathan Rixham
David Harkness wrote: I'm working on the Hamcrest matching library and have been considering the switch to using namespaces (\Hamcrest\Type\IsInteger) instead of class-names-as-namespaces (Hamcrest_Type_IsInteger). Coming from the Java world I'm used to being forced to deploy my applications on

[PHP] Re: php array in different OS

2010-07-23 Thread Colin Guthrie
'Twas brillig, and fyang at 22/07/10 03:34 did gyre and gimble: Dear Bob McConnell, Thank you for your reply. I really post the same message eight times because of the first e-mail authentication.please remove the extra e-mail in your free time. There are two servers

[PHP] Re: php array in different OS

2010-07-23 Thread Yang Fei
Dear Colin Guthrie , Thanks for your help very much. According to your suggestion, I have solved the question. best wish, Yang Fei 2010-7-24

[PHP] Re: PHP database interface layer

2010-07-22 Thread Shawn McKenzie
On 07/22/2010 08:35 AM, Marc Guay wrote: Hi everyone, I've built a fairly large normalized database schema for a project. This is fun for me as I like thinking about how everything is interconnected. Foreign keys are all set up, many-to-many tables are go, etc, and so on. But now it's

[PHP] Re: PHP question

2010-07-13 Thread Richard Quadling
On 13 July 2010 15:46, Joey Hendricks j.hendrick...@comcast.net wrote: Hi Mr. Quadling,  Thank you for the reply. I still don't understand how to get all the emails into the function. Before I put in the function I had something like this- for($i=0; $i=9; $i++) { if(!empty($_GET[email.$i]))

[PHP] Re: [PHP-WEBMASTER] Web Service Problem

2010-06-15 Thread Richard Quadling
On 15 June 2010 12:44, John john.zaka...@graphicano.com wrote: Really i need help coz i am trying to solve this problem from 4 weeks and i can not so please help me I want to use a web service ( created in ASP.NEt ) in my web site using php coz i will use the result in other php pages.

Re: [PHP] Re: [PHP-WEBMASTER] Web Service Problem

2010-06-15 Thread Michael Shadle
Wso2 is also pretty awesome. I wish soap would just die and be replaced with rest and json. On Jun 15, 2010, at 6:15 AM, Richard Quadling rquadl...@gmail.com wrote: On 15 June 2010 12:44, John john.zaka...@graphicano.com wrote: Really i need help coz i am trying to solve this problem

Re: [PHP] Re: [PHP-WEBMASTER] Web Service Problem

2010-06-15 Thread Richard Quadling
On 15 June 2010 17:07, Michael Shadle mike...@gmail.com wrote: Wso2 is also pretty awesome. I wish soap would just die and be replaced with rest and json. On Jun 15, 2010, at 6:15 AM, Richard Quadling rquadl...@gmail.com wrote: On 15 June 2010 12:44, John john.zaka...@graphicano.com wrote:

Re: [PHP] Re: [PHP-WEBMASTER] Web Service Problem

2010-06-15 Thread Michael Shadle
On Tue, Jun 15, 2010 at 10:14 AM, Richard Quadling rquadl...@gmail.com wrote: REST is a concept, not a protocol (as I understand it), so you cannot just create a service and supply a contract file. You have to document the service in some other way and then the users have to write all the

[PHP] Re: PHP - Header ERROR

2010-06-13 Thread Shawn McKenzie
On 06/13/2010 08:43 AM, Don Wieland wrote: Hello, I have a contact form with three fields, name, email, and comment, and a CAPTCHA I am doing some basic validation for empty fields but am getting a PHP error when trying to redirect back to the original page with an ERROR, It seems when

Re: [PHP] Re: PHP - Header ERROR

2010-06-13 Thread Steve
On 6/13/2010 9:37 AM, Shawn McKenzie wrote: On 06/13/2010 08:43 AM, Don Wieland wrote: Hello, I have a contact form with three fields, name, email, and comment, and a CAPTCHA I am doing some basic validation for empty fields but am getting a PHP error when trying to redirect back to the

[PHP] Re: PHP app Server Load

2010-06-10 Thread Nathan Rixham
Dan Joseph wrote: Hi, This is slightly OT... We're wrapping up a new PHP/MySQL driven web site built on the Zend Framework. We're anticipating a couple hundred thousand members with several thousand of them coming to the site at once. I'm trying to figure out how to determine how many

[PHP] Re: [PHP-WEBMASTER] I have a question for a php expert....

2010-06-09 Thread Daniel Brown
On Thu, Jun 10, 2010 at 01:29, ad...@moorewebprojects.com wrote: It amazes me that I have figured out the hardest parts to do, but I am stumped on this and cannot get the darn thing to include properly, I would appreciate some instruction as now I am at a loss! Clint; Send that to

[PHP] Re: PHP Udate MySQL command

2010-06-04 Thread Gary
Sorry, just noticed that I had this line in the post. (should not post before coffee). $sql = INSERT INTO contact comments, VALUES = $test WHERE contact_id = 33; It is supposed to be $sql = UPDATE contact comments = '$test' WHERE contact_id = '33' Gary gwp...@ptd.net wrote in message

[PHP] Re: php photo galery

2010-05-19 Thread Shawn McKenzie
On 05/18/2010 08:11 PM, David Mehler wrote: Hello, I've googled for this and tried some downloads but not finding what i'm looking for. A site requirement is to have a photo gallery. These user's are not very technical so i thought about getting a galery with the ability to upload photos via

[PHP] Re: php photo galery

2010-05-18 Thread Ross McKay
On Tue, 18 May 2010 21:11:00 -0400, David Mehler wrote: I've googled for this and tried some downloads but not finding what i'm looking for. A site requirement is to have a photo gallery. These user's are not very technical so i thought about getting a galery with the ability to upload photos via

RE: [PHP] Re: php photo galery

2010-05-18 Thread Justin Cripps
I have used Satellite. Worked pretty well for me. http://design.tedforbes.com/ Justin -Original Message- From: Ross McKay [mailto:ro...@zeta.org.au] Sent: Wednesday, 19 May 2010 11:23 AM To: php-general@lists.php.net Subject: [PHP] Re: php photo galery On Tue, 18 May 2010 21:11:00

Re: [PHP] Re: php photo galery

2010-05-18 Thread Ashley Sheridan
On Wed, 2010-05-19 at 11:22 +1000, Ross McKay wrote: On Tue, 18 May 2010 21:11:00 -0400, David Mehler wrote: I've googled for this and tried some downloads but not finding what i'm looking for. A site requirement is to have a photo gallery. These user's are not very technical so i thought

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread Nathan Rixham
Nathan Nobbe wrote: On Mon, May 10, 2010 at 9:19 PM, David McGlone da...@dmcentral.net wrote: On Monday 10 May 2010 22:15:44 Paul M Foster wrote: On Mon, May 10, 2010 at 06:09:00PM -0400, David McGlone wrote: On Monday 10 May 2010 13:04:36 richard gray wrote: On 10/05/2010 18:17, Ashley

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread Robert Cummings
Nathan Nobbe wrote: i did gander at robs template system in interjinn once, but never got my head wrapped round it; honestly i only gave it a day or so. i prefer to go the typical route as per above, and omit the bloat that systems like smarty, savant etc bring to the table. nothing personal

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread tedd
At 1:34 AM -0600 5/11/10, Nathan Nobbe wrote: -snip- if theres one thing i tend to stay away from, or start deleting the second i inherit a new codebase, its smarty. ive never seen anything more bloated ridiculous. hey, lets all learn *another* set of conventions syntax on top of what we've

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread tedd
At 10:00 AM -0400 5/11/10, Robert Cummings wrote: Nathan Nobbe wrote: i did gander at robs template system in interjinn once, but never got my head wrapped round it; honestly i only gave it a day or so. i prefer to go the typical route as per above, and omit the bloat that systems like smarty,

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread Robert Cummings
tedd wrote: Rob: If I could understand what the Hell you are talking about, I'd be a better programmer. You're a bit like Einstein talking to a bunch of High School Physics Teachers. We nod our collective heads thinking huh? while hoping there isn't going to be a test. If you want me to

[PHP] Re: PHP Encoder like IonCube

2010-05-10 Thread shiplu
Hello Ashley, My application will not be accessible through Internet. Users will use it through internal network. And internet is strictly prohibited there. Thats the reason why i'm lookin for such solution. On 5/10/10, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-05-10 at

[PHP] Re: PHP Encoder like IonCube

2010-05-10 Thread Ashley Sheridan
On Mon, 2010-05-10 at 17:51 +0600, shiplu wrote: Hello Ashley, My application will not be accessible through Internet. Users will use it through internal network. And internet is strictly prohibited there. Thats the reason why i'm lookin for such solution. On 5/10/10, Ashley Sheridan

Re: [PHP] Re: PHP Application Structre

2010-05-10 Thread David McGlone
On Monday 10 May 2010 13:04:36 richard gray wrote: On 10/05/2010 18:17, Ashley Sheridan wrote: It makes sense sometimes to have different files for different sections of a website. For example, blog.php, gallery.php, cart.php could deal with the blog, gallery and shopping cart sections for

[PHP] Re: [PHP-INSTALL] Getting file pointer from file descriptor

2010-04-23 Thread Rasmus Lerdorf
You seem to be quite confused. First of all, a function like fdopen() which has never existed in any version of PHP, wouldn't read/write anything. In C that function will return a FILE pointer from a file descriptor. You would then use fread()/fwrite() to read and write from that FILE pointer.

[PHP] Re: PHP include security

2010-04-17 Thread Micky Hulse
What do ya'll think? Any suggestions? Sorry for the duplicate posting... I had some problems signing-up for the list. :( Also, I moved my test code to sniplr: http://snipplr.com/view/32192/php-security-include-path-cleansing/ TIA! Cheers M -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: [PHP-INSTALL] Getting file pointer from file descriptor

2010-04-16 Thread Naga Kiran K
Hi Rasmus, Thanks for reply. The requirement I was looking for is to read/write given only the file descriptor number. PHP-CGI binary is invoked by a webserver that runs in jail-directory and doesn't have access to the file path directory. So, it communicates with another daemon that opens a

Re: [PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread kranthi
have you tried using a profiler like xdebug? or may be it is not a php issue at all.. i find https://addons.mozilla.org/en-US/firefox/addon/1843 to be helpful in these situations -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP execute very slow : PHP Version 5.2.6

2010-04-11 Thread Al
On 4/10/2010 9:07 PM, Kristijan Marin wrote: Hi, I'm experiencing very slow performance of my php scripts ... At first and for a long time I thought it was Oracle fault cause I didn't use binding (I rewrote the code ), but the performance is still bad. So I tested my sql statement and did

[PHP] Re: php 5.3.2 Unable to fork

2010-04-01 Thread Eduardo Nunes
Hi, thanks for the reply, just tried without any db bases and the scenario did not change (besides for mysql). With and without pear.. nothing changed from the initial scene. Nathan Rixham nrix...@gmail.com escreveu na mensagem news:4bb3eb75.4020...@gmail.com... Eduardo Nunes wrote:

Re: [PHP] Re: php 5.3.2 Unable to fork

2010-04-01 Thread Eduardo Nunes
I would try your setenv path idea while compiling php without mysql, however I don't get why compiling php with mysql does not fork nor execute even running the php cli as root... Thanks for the reply Nilesh! Nilesh Govindarajan li...@itech7.com escreveu na mensagem

[PHP] Re: php 5.3.2 Unable to fork

2010-03-31 Thread Eduardo Nunes
Compiling without mysql support, the cli php -r 'echo shell_exec(echo Test!);' works fine even as the apache unprivileged user. However when running the test.php script with apache the error log still shows the error Unable to execute / Unable to fork ... Eduardo Nunes zeh...@terra.com.br

<    1   2   3   4   5   6   7   8   9   10   >