Re: [PHP] Re: Emulating a class destructor

2002-06-11 Thread Sqlcoders.com Programming Dept
> This is completely off the top of my head (i've never done this > before) -- but try single-quoting it to prevent interpolation > > register_shutdown_function('$this->cleanup()'); > Hiya, thanks for the suggestion, but i get the same 'Unable to call ...' message. Any other ways you can think of

Re: [PHP] Removing ^M

2002-06-08 Thread Sqlcoders.com Programming Dept
You could replace if by ASCII code (^M is actually a representation of ASCII 013, the CR character, thanks to http://www.mindspring.com/~jc1/serial/Resources/ASCII.html for the ASCII lookup table.). This should fix it (untested) where $nicestring is the output, $chrnumber contains the ascii co

Re: [PHP] Reading from a dir.

2002-06-08 Thread Sqlcoders.com Programming Dept
Try... HTH, Dw. Sqlcoders.com Dynamic data driven web solutions - Original Message - From: "Steven Mallett" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: June 08 2002 07:23 AM Subject: [PHP] Reading from a dir. > Is there another way to read the files from a direc

Re: [PHP] Getting http:// include to return?

2002-06-06 Thread Sqlcoders.com Programming Dept
It's not exactly what you wanted, but try this: http://www.hysp.net","r";); while (!feof ($intFileHandle)) { $intFileOutput .= fgets($intFileHandle, 4096); } fclose($intFileHandle); return $intFileOutput; } ?> HTH, Dw. Sqlcoders.com Dynamic data driven web solutions - Original Messag

Re: [PHP] Fwd: Worm Klez.E immunity - a public service by Jess Ragaza of Internet Architecture, Inc.

2002-06-06 Thread Sqlcoders.com Programming Dept
Original Message - From: "Chris Hewitt" <[EMAIL PROTECTED]> To: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]> Sent: June 06 2002 10:31 AM Subject: Re: [PHP] Fwd: Worm Klez.E immunity - a public service by Jess Ragaza of Internet Architecture, Inc. > D

Re: [PHP] Fwd: Worm Klez.E immunity - a public service by Jess Ragaza of Internet Architecture, Inc.

2002-06-06 Thread Sqlcoders.com Programming Dept
on your address book. HTH, Dw Sqlcoders.com Dynamic data driven web solutions > - - Original Message ----- > From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]> > To: "'Sqlcoders.com Programming Dept'" <[EMAIL PROTECTED]> > Sen

Re: [PHP] Fwd: Worm Klez.E immunity - a public service by Jess Ragaza of Internet Architecture, Inc.

2002-06-06 Thread Sqlcoders.com Programming Dept
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Great... along with bieng infected with the klez virus, everyone on php.net now has the address book of someone from the Department of Juvenile Justice. This is the best advertisment so far for why uncle sam should switch to linux. Vive le penguin!

Re: [PHP] stupid error, please kick me (and send me a solution)

2002-06-03 Thread Sqlcoders.com Programming Dept
Hiya, You're using single quotes around all your strings, for variables to be replaced with their values, you must use double quotes. Try replacing every ' with ". HTH, Dw Sqlcoders.com Dynamic data driven web solutions - Original Message - From: "Jule Slootbeek" <[EMAIL PROTECTED]> To:

Re: [PHP] MS SQL Problem

2002-06-01 Thread Sqlcoders.com Programming Dept
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, I remember reading of a config setting in php.ini which lowered the time PHP waits before clearing up/closing the socket out. If it's a linux system you might want to try running netstat to see the open net connections. If you see lots of o

Re: [PHP] MS SQL Problem

2002-05-31 Thread Sqlcoders.com Programming Dept
Hiya, were you using the appropriate free_query & close functions to free up the memory & more importantly the socket used to talk to the sql server? You might want to try using the _pconnect function if it's available instead of the usual _connect statement. I'd guess that PHP ran out of socket

[PHP] 'Couldn't compile code. And I'm not smart enough to tell you why, sorry.' -- Any ideas?

2002-05-30 Thread Sqlcoders.com Programming Dept
Hiya, I've been getting the strangest error: "Couldn't compile code. And I'm not smart enough to tell you why, sorry. in c3.php on line 25" Here's a code listing, if anyone can give me a hint as to what's up that would be great, this is the first time the PHP interpreter has thrown a wobbly like

Re: [PHP] Making varibles (more than one) with a function.

2002-05-22 Thread Sqlcoders.com Programming Dept
Sqlcoders.com Dynamic data driven web solutions - Original Message - From: "David Duong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: May 22 2002 04:21 PM Subject: [PHP] Making varibles (more than one) with a function. > I am aware that return can return strings but is their a set

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Sqlcoders.com Programming Dept
om Dynamic data driven web solutions - Original Message - From: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]> To: "php general" <[EMAIL PROTECTED]> Cc: "Joshua E Minnie" <[EMAIL PROTECTED]> Sent: May 22 2002 09:14 PM Subject: Re:

Re: [PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Sqlcoders.com Programming Dept
Hi there!, I've looked over this thread and from what I gather you want to know if you can/should use JavaScript for redirecting, my usual way of going about things is to put a JavaScript location.href='page.aspx' call in the head of the document (putting JS in the head causes it to execute before

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Sqlcoders.com Programming Dept
Hi there!, In a word - script mappings. In the IIS administrator, you must associate the .php extension with the php interpreter. Use the IIS help wizard to tell you how, or: 1. Start Regedt32.exe and open the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC \Pa

Re: [PHP] Function

2002-05-21 Thread Sqlcoders.com Programming Dept
Hi there!, When you include information from an include file, PHP treats the text as inline code if you use the include() function. In other words, if you use code like this: Then any functions inside file.php will be available just as if you'd copy/pasted them in. If file.php contained: funct

[PHP] "Zend Timeout Window" crashed due to an Access Violation. -- Any ideas?

2002-05-21 Thread Sqlcoders.com Programming Dept
Hi there!, I've been testing some code for a company and I'm encountering something which I've never found before, right after making a call to a simple DB abstraction class which basically just makes a call to odbc_connect, then odbc_do, and then loops through the data saving the value of any fie

Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Sqlcoders.com Programming Dept
> > What about MD5? > MD5 is a message digest I believe, something akin to the oldstyle CRC32. Then again I haven't used it much (just to verify a client's credit card number without revealing the CC number). HTH, Dw. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] printer_open

2002-05-21 Thread Sqlcoders.com Programming Dept
1c20101$6c3ae7b0$2f7e3393@TB447CCO3... > > Restart your web server when you make changes to php.ini. > > > > Also, note that these functions are for the printer on the server, i.e. > > where the code is running. > > > > ---John Holmes... > > > > ---

Re: [PHP] printer_open

2002-05-21 Thread Sqlcoders.com Programming Dept
Hiya!, Have you tried adding this line in the very top of your script (just inside the opening To: <[EMAIL PROTECTED]> Sent: May 21 2002 11:19 AM Subject: [PHP] printer_open > I'm attempting to use the printer_open function in php, and am getting the > following error: > > Fatal error: Call to

Re: [PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Sqlcoders.com Programming Dept
hiya, twofish runs at just over 25MB/sec when compiled into a test VC++ application, blowfish runs at 18MB/sec. As far as I remember, if you use the same keylenght (256 or 128) then you should get around the same level of encryption (probably not exact, but if one was that much weaker there'd be

Re: [PHP] refresh (part of) a page?

2002-05-20 Thread Sqlcoders.com Programming Dept
... HTH, Dw - Original Message - From: "savaidis" <[EMAIL PROTECTED]> To: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]> Sent: May 20 2002 08:42 AM Subject: RE: [PHP] refresh (part of) a page? > Thanks a lot! > >

Re: [PHP] Subscriber count from db

2002-05-17 Thread Sqlcoders.com Programming Dept
I think http://www.php.net/manual/en/function.number-format.php might accomplish what you need. HTH, Dw - Original Message - From: "Randum Ian" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: May 17 2002 08:44 AM Subject: [PHP] Subscriber count from db > Hi all, Ive been searc

Re: [PHP] PHP,CyberCash,Verisign,PayFlow

2002-05-17 Thread Sqlcoders.com Programming Dept
- Original Message - From: "Analysis & Solutions" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: May 17 2002 07:27 AM Subject: Re: [PHP] PHP,CyberCash,Verisign,PayFlow > Hi Ryan: > > > Does this mean that if i want to start accepting credit cards on my site i > > wont have

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread Sqlcoders.com Programming Dept
I've seen real-life examples of 100k pages going down to around 30k, considering that decrease in size, when you remember that CPU time is relatively cheap compared to bandwidth, it's worth the processing overhead in my opinion. Small (<20k) pages probably aren't worth it, for anything larger the

[PHP] Raising a custom error -- how?

2002-05-12 Thread Sqlcoders.com Programming Dept
Hiya, I want to be able to raise an error in some code I'm creating for reuse, most parts of this code deals with errors and just uses defaults as appropriate, but I need to be able to raise an error that will stop the PHP script interpreter and throw an error back to the developer. I've tried se