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:
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 unde
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
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:
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
>>> "Bruc
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 PROT
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
>>>
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
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 pag
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 oth
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
>
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 t
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 me
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. S
?
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.
dll works 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 i
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,
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
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 does
>>> zerof <[EMAIL PROTECTED]> 7/02/2008 12:04 p.m. >>>
Try Roadsend, now as Open Source:
http://www.roadsend.com/home/index.php?SMC=1&pageID=compiler
Hey, that looks cool. Do many people use this? Has anyone built any
standalone GUI apps with it?
Regards,
Bruce
--
PHP General Mailing
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 sav
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 o
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
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 equivalen
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:
>
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; charset
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 know
sing htmlentities() on each element,
before you do the nl2br...
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, 2
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 $msg->Body
12:33 p.m. >>>
Too much beer to think through 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'
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 v
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
ignore_repeated_sou
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...
>
>
> $a = 75.82 * 100;
>
> echo intval
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
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
>
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,
36 matches
Mail list logo