[PHP] Roadsend (was Re: PHP Source code protection)

2008-02-06 Thread Bruce Cowin
zerof [EMAIL PROTECTED] 7/02/2008 12:04 p.m. Try Roadsend, now as Open Source: http://www.roadsend.com/home/index.php?SMC=1pageID=compiler Hey, that looks cool. Do many people use this? Has anyone built any standalone GUI apps with it? Regards, Bruce -- PHP General Mailing List

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-18 Thread Bruce Cowin
Ha ha, it does! Admittedly, I haven't read every line of every post in this thread, but so far I haven't seen any mention of Nazis (until now). Godwin's Law breaking down Regards, Bruce Jay Blanchard [EMAIL PROTECTED] 19/12/2007 4:39:15 a.m. [snip] This is the thread that doesn't end.

[PHP] PHP 5.2 and MySQL

2007-10-31 Thread Bruce Cowin
I have just installed PHP 5.2.4 on Windows 2003 machine running IIS. Everything is fine except when I try to enable the MySQL extension (either php_mysqli.dll or php_mysql.dll), when I do a php_info(), at the bottom I get the message Error in my_thread_global_end(): 1 threads didn't exit. All

[PHP] PHP and daylight savings

2007-09-30 Thread Bruce Cowin
I'm using PHP 5.1.2 on IIS. Here in New Zealand, our daylight savings started a week earlier than usual and went into affect this past weekend. The time on my machine is correct. The timezone settings on my machine are correct. But if I display the time on a PHP page, it is 1 hour behind.

Re: [PHP] PHP and daylight savings

2007-09-30 Thread Bruce Cowin
? Regards, Bruce Bruce Cowin [EMAIL PROTECTED] 1/10/2007 11:02 a.m. I'm using PHP 5.1.2 on IIS. Here in New Zealand, our daylight savings started a week earlier than usual and went into affect this past weekend. The time on my machine is correct. The timezone settings on my machine are correct

Re: [PHP] PHP and daylight savings

2007-09-30 Thread Bruce Cowin
fine on a server running the same PHP version (5.1.2). Any ideas? Regards, Bruce Bruce Cowin [EMAIL PROTECTED] 1/10/2007 12:13 p.m. I discovered that we needed to update the php_timezonedb.dll. This worked fine on our servers and time is now correct. But in my dev environment on my

Re: [PHP] PHP and daylight savings

2007-09-30 Thread Bruce Cowin
That was it, thanks! I compared the permissions on this dll to another dll extension that loads fine. When I made it the same, it worked. Thanks again! Regards, Bruce Jeffery Fernandez [EMAIL PROTECTED] 1/10/2007 1:23 p.m. On Monday 01 October 2007 10:08, Bruce Cowin wrote: Yet another

Re: [PHP] Database includes

2007-08-27 Thread Bruce Cowin
Thanks to everyone who responded. Some really interesting ideas. I'll try them out. Regards, Bruce Wouter van Vliet / Interpotential [EMAIL PROTECTED] 28/08/2007 8:34 a.m. On 27/08/07, Stut [EMAIL PROTECTED] wrote: I use a slightly different approach to prevent the need to mess about

[PHP] Database includes

2007-08-26 Thread Bruce Cowin
I'm curious as to how everyone organises and includes their classes in PHP5. Let's take a simple example that has 3 classes: customer, order, and database. The database class has a base sql db class (I know there is PDO and other things but this class is already written and working) and classes

Re: [PHP] Loss of precision in intval()

2007-08-07 Thread Bruce Cowin
Richard's right. You get the same result if you do the equivalent in ASP. Regards, Bruce Richard Lynch [EMAIL PROTECTED] 8/08/2007 3:29:16 p.m. On Wed, August 1, 2007 11:52 am, Mark Summers wrote: This sort of thing really isn't helpful... ?php $a = 75.82 * 100; echo intval($a); ?

Re: [PHP] How to get stored procedure return values via PDO?

2007-07-26 Thread Bruce Cowin
I had a similar problem using PDO on MS Sql Server where I was trying to return the id of an inserted row. I ended up giving up and doing a second query to get @@IDENTITY. Regards, Bruce Richard Davey [EMAIL PROTECTED] 27/07/2007 12:51 a.m. Hi, I'm calling a MySQL Stored Procedure via PDO

[PHP] error reporting

2007-07-26 Thread Bruce Cowin
I'm running PHP 5.1 on IIS. My dev environment is all local on my machine. My php.ini has the following error reporting settings: error_reporting = E_ALL display_errors = Off display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off

[PHP] Re: strange stripos behavior

2007-07-24 Thread Bruce Cowin
the logical progression of the operators, but maybe try: if (stripos($searchtext, '') !== false) { -Shawn Bruce Cowin wrote: I'm using PHP 5.1 on IIS. I have an app that uses MimeDecode to load mime files and I've built an object to parse them into their various parts; i.e., $msg-Body(), $msg

[PHP] strange stripos behavior

2007-07-22 Thread Bruce Cowin
I'm using PHP 5.1 on IIS. I have an app that uses MimeDecode to load mime files and I've built an object to parse them into their various parts; i.e., $msg-Body(), $msg-Sender(), etc. I'm using stripos() to look for a string (that I know is in my test files). It works if I search in

Re: [PHP] text field truncation with sql server

2007-07-15 Thread Bruce Cowin
... If the 3981st character happens to be a '' that would explain why you aren't seeing our data... Use View Source in your browser if you don't understand the preceding sentence. :-) On Thu, July 12, 2007 11:37 pm, Bruce Cowin wrote: I have a simple page that displays a record from the sql server

[PHP] text field truncation with sql server

2007-07-12 Thread Bruce Cowin
I have a simple page that displays a record from the sql server database. One of the fields is a text field and keeps getting truncated at 3980 characters. I searched and saw someone had reported this as a PDO bug so I'm not using PDO anymore, but I'm still getting the truncation. Anyone

[PHP] mailparse_msg_extract_part_file error

2007-07-05 Thread Bruce Cowin
I have written a PHP (v5.1) app to parse a bunch of MIME files. It works for the vast majority, but sometimes I get this error: mailparse_msg_extract_part_file(): mbstring doesn't know how to decode plain transfer encoding! It appears to be when messages have Content-Type: text/plain;

[PHP] HTML in database

2007-07-04 Thread Bruce Cowin
I am writing code to store a bunch of email files, in MIME format, into a database. The body of some of these emails, but not all, are in HTML format. If I use addslashes (after checking get_magic_quotes_gpc()), the database record won't get saved. There's no error message, just no record

Re: [PHP] HTML in database

2007-07-04 Thread Bruce Cowin
Thanks. Sorry, I should have mentioned I'm using MS Sql Server and I don't see a mssql equivalent to that function. Regards, Bruce Chris [EMAIL PROTECTED] 5/07/2007 12:10:17 p.m. Bruce Cowin wrote: I am writing code to store a bunch of email files, in MIME format, into a database

Re: Re[3]: [PHP] HTML in database

2007-07-04 Thread Bruce Cowin
Oh, thanks very much. I didn't know about PDO before. I wish I had before I had written my own db class! :-) Thanks again and I'll try it out. Regards, Bruce Richard Davey [EMAIL PROTECTED] 5/07/2007 12:38:02 p.m. Thanks. Sorry, I should have mentioned I'm using MS Sql Server and I

Re: [PHP] HTML in database

2007-07-04 Thread Bruce Cowin
Me too. :-) I appreciated your quick response, though. Regards, Bruce Chris [EMAIL PROTECTED] 5/07/2007 1:14:58 p.m. Bruce Cowin wrote: Thanks. Sorry, I should have mentioned I'm using MS Sql Server and I don't see a mssql equivalent to that function. Ahh - sorry, missed that in your

Re: Re[2]: [PHP] HTML in database

2007-07-04 Thread Bruce Cowin
I was still having the same problems even with PDO, but doing my own replace: $body = str_replace(', \, $body); fixed the problem. Thanks again! Regards, Bruce Richard Davey [EMAIL PROTECTED] 5/07/2007 12:34:29 p.m. Hi Bruce, Thursday, July 5, 2007, 1:26:01 AM, you wrote: Thanks.

Re: [PHP] CSS vs. Tables OT

2007-04-18 Thread Bruce Cowin
And makes for very clean code. Very nice! Regards, Bruce Lori Lay [EMAIL PROTECTED] 19/04/2007 5:02:33 a.m. Wolf wrote: OK, so I like sticking my nose in sometimes... Accessibility Standards and being bobby approved. http://webxact2.watchfire.com/report.asp?t=2#priority3 on

Re: [PHP] secure database info in different environments

2007-04-04 Thread Bruce Cowin
Ok, thanks for the feedback. I'll check it out. Regards, Bruce Jochem Maas [EMAIL PROTECTED] 3/04/2007 9:12 p.m. Bruce Cowin wrote: Hi, I have a generic database class that I built to connect to our different databases. From other posts that I've read, I think the safe thing

[PHP] secure database info in different environments

2007-04-02 Thread Bruce Cowin
Hi, I have a generic database class that I built to connect to our different databases. From other posts that I've read, I think the safe thing is for me to put this file outside the web root, ensure it has a .php extension, set the include path to include this folder and include it in any

Re: [PHP] Running PHP on a windows server-your views

2007-03-19 Thread Bruce Cowin
Yes, there is a PHP-WIN list. Much less volumn than this list. We run PHP on Windows using IIS. So far haven't had any problems. But we've been using it on intranet only sites and not very intensive or complicated. Regards, Bruce Richard Lynch [EMAIL PROTECTED] 20/03/2007 11:28:14 a.m.

Re: [PHP] register_globals and passing variables

2007-03-14 Thread Bruce Cowin
Hi Jeff, You want to leave register_globals OFF. Depending on how $charid is passed, you want to use $_POST or $_GET: $charid = $_POST['charid']; or $charid = $_GET['charid']; I think you'll need to do the same for your $db_select variable. Is that what you're after? Regards, Bruce

[PHP] Re: Classes in PHP5 || Puzzling Problem || Trying to Set $this-$name = $value

2007-03-08 Thread Bruce Cowin
I don't know the details of your app, but you might want to reconsider a resdesign. Having said that, your code actually works for me. If I use your class as is, foo is 1. That is: $x = new test; echo $x-foo; outputs 1. Isn't that what you want? Regards, Bruce PHP [EMAIL PROTECTED]

[PHP] curlopt_timeout default

2007-03-01 Thread Bruce Cowin
I'm using PHP 5.1.2 on IIS. From time to time, my cURL response is empty (i.e., strlen($response) == 0). I'm wondering if it is a timeout issue. If cURL timed out, would you expect an empty response? Also, I want to change curlopt_timeout to see if this helps. But what I can't find is what

Re: [PHP] curlopt_timeout default

2007-03-01 Thread Bruce Cowin
Thanks Richard. I'll look into that. And yes, I'm looking at capturing the curl_getinfo() as well. Thanks again. Regards, Bruce Richard Lynch [EMAIL PROTECTED] 2/03/2007 1:36 p.m. On Thu, March 1, 2007 5:16 pm, Bruce Cowin wrote: I'm using PHP 5.1.2 on IIS. From time to time, my cURL

Re: [PHP] curlopt_timeout default

2007-03-01 Thread Bruce Cowin
For anyone who is interested, I found this: libcurl has no default timeouts for these. When you don't use them, you will be in the hands of your operating system's timeouts. at http://curl.haxx.se/mail/lib-2004-04/0027.html Regards, Bruce Bruce Cowin [EMAIL PROTECTED] 2/03/2007 1:59

Re: [PHP] WHERE problem

2007-02-19 Thread Bruce Cowin
Are you getting an error or just nothing returned? The first thing I'd check is if index is a numeric field and if it is, remove the single quotes from around $randi in the where clause. Regards, Bruce Mike Shanley [EMAIL PROTECTED] 20/02/2007 9:23:08 a.m. I'd like to think I understood

Re: [PHP] PHP/PEAR

2007-02-14 Thread Bruce Cowin
that reminds me: a woman walks into a bar carrying a duck. the bartender says hey, you can't come in here with that pig. the woman says it's not a pig, it's a duck. and the bartender says i was talking to the duck. Regards, Bruce Jochem Maas [EMAIL PROTECTED] 15/02/2007 3:36:56 a.m.

Re: [PHP] Spam using email on website

2006-11-07 Thread Bruce Cowin
Yikes, so besides disabling the mail() function, how do you check for all that? Regards, Bruce Richard Lynch [EMAIL PROTECTED] 8/11/2006 8:14 a.m. On Tue, November 7, 2006 12:42 am, Pieter du Toit wrote: I have a website that is being crawled or whatever and i have a submission form for an

Re: [PHP] pass value to next page

2006-11-07 Thread Bruce Cowin
Hi, In search.php3, you'd need to save the values into inputs of type hidden. You can then query them in result.php as per usual. I hope that helps. Regards, Bruce Wang Chen [EMAIL PROTECTED] 8/11/2006 11:57 a.m. Hi , Newbie question, I have a form, form

[PHP] Re: Frameworks

2006-11-05 Thread Bruce Cowin
Hi Tony, On the installation instructions for Radicore, I see a lot of mention of Apache but no mention of IIS set up. Does Radicore work on IIS? Thanks. Regards, Bruce Tony Marston [EMAIL PROTECTED] 3/11/2006 11:10:12 p.m. It totally depends on what type of application you are writing,