Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-03 Thread Per Jessen
Larry Garfield wrote: > IIRC, the way in SQL to circumvent that is to convert "100%" into > "100%%". However, that does rather defeat the purpose of a prepared > statement if I have to do my own escaping anyway, does it not? Depends on what you perceive the purpose of the prepared statement to b

[PHP] PDO prepared statements and LIKE escaping

2008-08-03 Thread Larry Garfield
Hi folks. I am trying to figure out the best way to handle an interesting issue in PDO prepared statements. Consider: $search = 'mystring'; $stmt = $dbh->prepare("SELECT * FROM mytable WHERE myfield LIKE :myfield"); $stmt->execute(array(':myfield' => $search . '%')); The above will search for

RE: [PHP] uploading big files with PHP

2008-08-03 Thread Catalin Zamfir Alexandru | KIT Software CAZ
What are you talking about? I've been able to upload a 4GB file without problem. Uploading doesn't depend on memory limit, and this has been a subject of debate on the PHP.net Manual (uploading files section, check it out). -Original Message- From: mike [mailto:[EMAIL PROTECTED] Sent: M

[PHP] [PHP Header] Right-Click Download in Firefox showing php filename

2008-08-03 Thread Will
I followed some of the examples that was on PHP header() http://us3.php.net/manual/en/function.header.php I am trying to have users download a file named 'Setup.msi', however under a PHP file with the sent header information, the default name to the user will be 'ApplicationSetup_v1_0.msi' -- I am

Re: [PHP] PHP Memory Management

2008-08-03 Thread Chacha C
is it possible because you can assign $func = foo and call $func() and it will call foo(), maybe that its creating an endless loop of assigning the function to itself? On Sun, Aug 3, 2008 at 11:17 AM, brian <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: > >> I've been running the script below: >>

Re: [PHP] uploading big files with PHP

2008-08-03 Thread mike
On 8/3/08, brian <[EMAIL PROTECTED]> wrote: > Also, use set_time_limit(0); and configure the server and php to accept a decent size, and probably configure the client to put only chunks at a time right? otherwise php will hit it's memory limit for the script quite easily i would assume. so there

Re: [PHP] PHP Memory Management

2008-08-03 Thread brian
Waynn Lue wrote: I've been running the script below: And I get PHP Fatal Error: Allowed Memory Size Exhausted after it runs for a bit. Looking at the memory usage, it's because $getBundles (an array) is huge, and keeps growing. What I'm confused by is why setting it to something else in the

Re: [PHP] remembering where the user is on the page??

2008-08-03 Thread brian
Benjamin Hawkes-Lewis wrote: brian wrote: A better way to do that is to give some block element--a header, a div, etc.--an ID. That works exactly the same as . It should work the same. But it doesn't in older user agents or with older assistive technology: http://stevenclark.com.au/2008/07/

Re: [PHP] uploading big files with PHP

2008-08-03 Thread brian
mike wrote: On 7/25/08, Angelo Zanetti <[EMAIL PROTECTED]> wrote: Hi all We are pitching to develop a website where the admin has to upload big video files but I'm not sure how this can be done as the file upload will most probably time out. How do current websites do it? Is there somehow a wa

Re: [PHP] uploading big files with PHP

2008-08-03 Thread mike
On 7/25/08, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Hi all > > We are pitching to develop a website where the admin has to upload big video > files but I'm not sure how this can be done as the file upload will most > probably time out. > > How do current websites do it? Is there somehow a way t

[PHP] php.ini and pgsql extension issue

2008-08-03 Thread Alain Roger
Hi, i found and solved an interesting issue under PHP 5.2.6. when i use the standard installation file under windows XP (php-5.2.6-win32-installer.msi), i get several error message in apache error.log file, something like : PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\webserver\

Re: [PHP] PHP page completly blank

2008-08-03 Thread Alain Roger
Ok i "found" where was the problem. basically when i install php 5.2.6 with installer.msi, i must after copy over those files, the content of the "php-5.2.6-Win32.zip" file, because several files and links are not installed / done by the installer.msi :-( just try to install it with default setting

Re: [PHP] PHP page completly blank

2008-08-03 Thread Daniel Brown
On Sun, Aug 3, 2008 at 3:54 AM, Alain Roger <[EMAIL PROTECTED]> wrote: > > when under command line i run php -v i get a lot of error messages, like > those 2 as attached files. > what can it be ? i've checked those files and they exist. :-( Attached files are stripped automatically by mailman

Re: [PHP] Re: Exposing PHP/errors on production vs. dev

2008-08-03 Thread tedd
At 1:04 AM -0400 8/3/08, Daniel Brown wrote: On Sun, Aug 3, 2008 at 12:22 AM, Chacha C <[EMAIL PROTECTED]> wrote: > Somehow .. I feel this isn't PHP Related. Boy, nothing gets by you, eh? Welcome to the list, new meat. Hey, he said he "feels" that it wasn't PHP Related. That's not like

[PHP] dynamic extension

2008-08-03 Thread Alain Roger
Hi, i do not see anymore the dynamic extension part in php.ini file, under PHP 5.2.6. is it normal ? thx -- Alain Windows XP SP2 PostgreSQL 8.2.4 / MS SQL server 2005 Apache 2.2.4 PHP 5.2.4 C# 2005-2008

[PHP] PHP page completly blank

2008-08-03 Thread Alain Roger
Hi, i reinstalled on my computer (Win XP) PHP 5.2.4 (but the same happens with 5.2.6). when i run an index.php page or any other php page which works well before, now i get a blank page result on my browser without any error message. even if only HTML code is inside the PHP page nothing is display