Re: [PHP] HipHop and other PHP compiler performance evaluation

2010-03-01 Thread Manuel Lemos
Hello, on 03/02/2010 01:04 AM Raymond Irving said the following: > Hi Manuel , > > Thanks for the feedback. > > I know that caching helps but if we could get a little more speed out of > the scripts then that would help with the number of request per second. > > I'll have a look at the article

Re: [PHP] Error Message - Need help troubleshooting

2010-03-01 Thread Rene Veerman
i doubt you passed us the entire .js.php script.. does the script itself ever fail, asides from showing this msg? On Tue, Mar 2, 2010 at 5:46 AM, Rick Dwyer wrote: > Hello List. > > I have some JS code that open a new window with a contact form in it.  When > the link is clicked to open the new

Re: [PHP] Best Practices Book, Document, Web Site?

2010-03-01 Thread Rene Veerman
http://oreilly.com/php/index.html perhaps? I dont know any free online best practice docs (other than the php.net function comments) that sum it all up nicely. But best practices are like coding standards; there are at least a few that are (near-)equals. Personally, the basis of my current codin

[PHP] Error Message - Need help troubleshooting

2010-03-01 Thread Rick Dwyer
Hello List. I have some JS code that open a new window with a contact form in it. When the link is clicked to open the new window, I will get the following error SOMETIMES: "Warning: Unknown: Your script possibly relies on a session side- effect which existed until PHP 4.2.3. Please be ad

[PHP] Re: Best Practices Book, Document, Web Site?

2010-03-01 Thread pan
""Hansen, Mike"" wrote in message news:7941b2693f32294aaf16c26b679a258d0efdc...@csomb01.corp.atmel.com... Is there a PHP Best Practices Book, Document, or web site that has information similar to Perl Best Practices but for PHP? Yeah, it's hard to find this stuff. A google search on {+"Best

[PHP] Re: Is there a way to get PHP to release this file?

2010-03-01 Thread Shawn McKenzie
Andrew Ballard wrote: > I am editing a data file via ODBC, and would like to be able to > download the updated file in the same transaction when finished. It > seems, however, that even after calling odbc_close(), PHP still > retains a lock on the file for the duration of the request. Is there a >

[PHP] Is there a way to get PHP to release this file?

2010-03-01 Thread Andrew Ballard
I am editing a data file via ODBC, and would like to be able to download the updated file in the same transaction when finished. It seems, however, that even after calling odbc_close(), PHP still retains a lock on the file for the duration of the request. Is there a way to get PHP to release the fi

[PHP] Re: Best Practices Book, Document, Web Site?

2010-03-01 Thread Shawn McKenzie
Hansen, Mike wrote: > Is there a PHP Best Practices Book, Document, or web site that has > information similar to Perl Best Practices but for PHP? > I'm not familiar with the Perl one, so I don't know specifically what you mean, but there are many "coding standards". Probably the Zend one would

[PHP] Best Practices Book, Document, Web Site?

2010-03-01 Thread Hansen, Mike
Is there a PHP Best Practices Book, Document, or web site that has information similar to Perl Best Practices but for PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysqli_connect problem

2010-03-01 Thread John Black
On 03/01/2010 07:54 PM, Thomas H. George wrote: Any suggestions? Tom Yes I have one. Whatever book you are using, burn it then shoot it! Without looking at the query, it is most likely failing because you are inserting un-escaped data into your database. So when you enter something like: G

Re: [PHP] When to use namespaces

2010-03-01 Thread Adam Richardson
I use namespaces within my web framework because the framework takes a more functional approach (no objects are created within the framework other than from existing classes such as PDO or Exception, immutability is promoted, etc.), and in this context, the namespaces felt quite natural for breakin

Re: [PHP] When to use namespaces

2010-03-01 Thread tedd
At 5:14 PM +0100 3/1/10, Auke van Slooten wrote: Hi everyone, I'm doing a small hobby project to better my understanding of php5, specifically php5.3 and I'm wondering when a namespaced project is better and when it is better to simply use a prefix to all class names. I've been trying to ge

[PHP] mysqli_connect problem

2010-03-01 Thread Thomas H. George
I am a newbie. The following script works but the second one (below) loads the variables from an html form and then fails. The connection commands in the second sript are identical as the first script was copied from the first. Only the variable values have been changed. #!/usr/bin/php # The f

Re: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread Jim Lucas
David Stoltz wrote: > Hi All, > > I have a working application in PHP 5.3 under IIS6. I've created a WAMP > server (Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying to > move the application to the new, dedicated server. > > My first problem, the new server doesn't like this l

RE: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread Ashley Sheridan
On Mon, 2010-03-01 at 13:37 -0500, David Stoltz wrote: > Even if I comment out what's in the include file, it still errors. > > It's the actual "include" statement causing the error, not what's in it > > > -Original Message- > From: Robert Cummings [mailto:rob...@interjinn.com] > S

RE: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread David Stoltz
Even if I comment out what's in the include file, it still errors. It's the actual "include" statement causing the error, not what's in it -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Monday, March 01, 2010 1:33 PM To: David Stoltz Cc: php-general@lis

Re: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread Robert Cummings
What does it do? Force the connection to https? if so you need to configure Apache to serve over https. David Stoltz wrote: Hi All, I have a working application in PHP 5.3 under IIS6. I've created a WAMP server (Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying to move the

[PHP] Going from IIS6 to WAMP

2010-03-01 Thread David Stoltz
Hi All, I have a working application in PHP 5.3 under IIS6. I've created a WAMP server (Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying to move the application to the new, dedicated server. My first problem, the new server doesn't like this line of code in the default.php:

Re: [PHP] how to download files require login

2010-03-01 Thread Richard Quadling
On 1 March 2010 17:00, Ashley Sheridan wrote: > On Mon, 2010-03-01 at 11:37 -0500, Ryan Sun wrote: > >> For URLs like >> 'http://download.fotolia.com/DownloadContent/1/h7G0bWGsGof8VvSqw32xFZ0KvD5eqbvN', >> it requires user login to download. >> Then how do I download it remotely via php server if

Re: [PHP] how to download files require login

2010-03-01 Thread Ashley Sheridan
On Mon, 2010-03-01 at 11:37 -0500, Ryan Sun wrote: > For URLs like > 'http://download.fotolia.com/DownloadContent/1/h7G0bWGsGof8VvSqw32xFZ0KvD5eqbvN', > it requires user login to download. > Then how do I download it remotely via php server if I have the > username and password in hand? > This

[PHP] session.entropy_file and hostname

2010-03-01 Thread Sascha Wojewsky
Hi, i'm new to this list... Is it possible to set the session.entropy_file to /bin/hostname (or something like this)? I've to user server-unique SessionIDs... Thanks Sascha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] When to use namespaces

2010-03-01 Thread Richard Quadling
On 1 March 2010 16:14, Auke van Slooten wrote: > Hi everyone, > > I'm doing a small hobby project to better my understanding of php5, > specifically php5.3 and I'm wondering when a namespaced project is better > and when it is better to simply use a prefix to all class names. > > I've been trying

[PHP] how to download files require login

2010-03-01 Thread Ryan Sun
For URLs like 'http://download.fotolia.com/DownloadContent/1/h7G0bWGsGof8VvSqw32xFZ0KvD5eqbvN', it requires user login to download. Then how do I download it remotely via php server if I have the username and password in hand? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] When to use namespaces

2010-03-01 Thread Ashley Sheridan
On Mon, 2010-03-01 at 17:14 +0100, Auke van Slooten wrote: > Hi everyone, > > I'm doing a small hobby project to better my understanding of php5, > specifically php5.3 and I'm wondering when a namespaced project is > better and when it is better to simply use a prefix to all class names. > > I

[PHP] When to use namespaces

2010-03-01 Thread Auke van Slooten
Hi everyone, I'm doing a small hobby project to better my understanding of php5, specifically php5.3 and I'm wondering when a namespaced project is better and when it is better to simply use a prefix to all class names. I've been trying to get a feeling for what is considered the best practi

[PHP] Custom php extension

2010-03-01 Thread liveq
Hello, I've written a small extension, which helps me to debug weird code behaviour in my framework. Anyway I want to improve it, and i'm stuck. I need to get some informations about request in PHP_RINIT_FUNCTION and in PHP_MSHUTDOWN_FUNCTION. I need to get info from _SERVER , _GET and _POST arra

[PHP] Custom php extension

2010-03-01 Thread liveq
Hello, I've written a small extension, which helps me to debug weird code behaviour in my framework. Anyway I want to improve it, and i'm stuck. I need to get some informations about request in PHP_RINIT_FUNCTION and in PHP_MSHUTDOWN_FUNCTION. I need to get info from _SERVER , _GET and _POST

[PHP] Generating end user documentation for SOAP services.

2010-03-01 Thread Richard Quadling
Hi. I've got a webservice using Zend_Soap_Server (along with AutoDiscover and WSDL from the Zend Framework). I used DocBlocks to describe my code and I can happily produce the developer level documentation for the classes (55 classes dealing with authentication, supplying data and versioning). I

Re: [PHP] Excel Spreadsheets and PHP

2010-03-01 Thread Andrew Ballard
On Fri, Feb 26, 2010 at 3:47 PM, Ian Robertson wrote: > Thank you all very much for your replies. > > I learned about a few new approaches. > > I didn't see it come up yet, so I'll post the URL of what I have been using. > > php_writeexcel - > http://www.bettina-attack.de/jonny/view.php/projects/

Re: [PHP] Re: Uninstalling PHP?

2010-03-01 Thread Jochem Maas
Op 2/28/10 12:08 AM, Austin Powers schreef: > ""Austin Powers"" wrote in message > news:ca.b0.29124.619a8...@pb1.pair.com... >> Three weeks ago I was working through the Lynda.com "PHP with MySQL >> Training" because I wanted to begin using PHP (surprise, surprise). >> >> Anyway, on this video co

Re: [PHP] Header function

2010-03-01 Thread Ashley Sheridan
On Mon, 2010-03-01 at 12:14 +0100, Kim Madsen wrote: > Ashley Sheridan wrote on 01/03/2010 07:13: > > > The HTTP header doesn't treat quoteation marks in the same way that PHP > > does. It needs double quote marks to function correctly. > > How do you mean? And do you have a link to this informa

[PHP] Re: PHP: inexplicable behaviour of pre- and post-increment operators

2010-03-01 Thread Martin Zvarík
Mess Dne 27.2.2010 5:01, clanc...@cybec.com.au napsal(a): A week ago Dasn asked a question about converting arrays, and I quoted one possible way of achieving his task, using the operation: $i = 0; while ($i< $k) { $b[$a[$i++]] = $a[$i++]; } I added the comment that "I have always been war

Re: [PHP] Header function

2010-03-01 Thread Kim Madsen
Ashley Sheridan wrote on 01/03/2010 07:13: The HTTP header doesn't treat quoteation marks in the same way that PHP does. It needs double quote marks to function correctly. How do you mean? And do you have a link to this information? Even if this is true, then the first Nick did should still b