php-windows Digest 7 Oct 2003 05:34:02 -0000 Issue 1944

Topics (messages 21691 through 21704):

Every 1008th character is missing???
        21691 by: Disko_kex
        21693 by: Charles P. Killmer
        21694 by: Disko_kex

Extends problem (classes)
        21692 by: Trystano.aol.com

IRC
        21695 by: Paulo Nunes
        21704 by: Rahman Haqparast

Re: Characters missingin mail source???
        21696 by: Manuel Lemos

'extends' problem (Classes)
        21697 by: Trystano.aol.com
        21702 by: Sek-Mun Wong

Help me out with Session problem
        21698 by: Kamran fff
        21699 by: Charles P. Killmer

timeout question
        21700 by: David Coleman

Getting MAC & NetBIOS Name from PHP?
        21701 by: Snuffy2

Problem with my PHPNuke Site
        21703 by: Charlie Brewer

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Why is every 1008th character missing when Im tring to send an email?
 
mail("[EMAIL PROTECTED]", "test","
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789012345678901234567890123456789123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789012345678901234567890123456789123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789123
456789012345678901234567890123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789123456789012345678901234567890123
456789012345678901234567890123456789012345678901234567890123456789012345
", "From: Redaktionen <[EMAIL PROTECTED]>\r\n"
."MIME-Version: 1.0\r\n"
."Content-type: text/html; charset=iso-8859-1\r\n"
."Reply-To: [EMAIL PROTECTED]"
."X-Mailer: PHP/" . phpversion());
 
 
The last "5" is missing. Im tring to send newletters to my customers
thru HTML formated emils, and because 1008th character is missing the
source gets pretty fuckt up.
 
Anyone got any ideas what I should do??

--- End Message ---
--- Begin Message ---
I just tried it on my server with both PHP 4.3.2 and 4.3.3 and I got the
last 5.  The only thing I changed was the email address to send to.

Charles

-----Original Message-----
From: Disko_kex [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 06, 2003 8:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Every 1008th character is missing???


Why is every 1008th character missing when Im tring to send an email?
 
mail("[EMAIL PROTECTED]", "test","
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789012345678901234567890123456789123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789012345678901234567890123456789123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789123
456789012345678901234567890123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789123456789012345678901234567890123
456789012345678901234567890123456789012345678901234567890123456789012345
", "From: Redaktionen <[EMAIL PROTECTED]>\r\n"
."MIME-Version: 1.0\r\n"
."Content-type: text/html; charset=iso-8859-1\r\n"
."Reply-To: [EMAIL PROTECTED]"
."X-Mailer: PHP/" . phpversion());
 
 
The last "5" is missing. Im tring to send newletters to my customers
thru HTML formated emils, and because 1008th character is missing the
source gets pretty fuckt up.
 
Anyone got any ideas what I should do??

--- End Message ---
--- Begin Message ---
I just changed to Apache 2 from Apace 1.3, but I still don't get the
last "5". Could it be my mail server?


-----Original Message-----
From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
Sent: den 6 oktober 2003 15:56
To: Disko_kex; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Every 1008th character is missing???

I just tried it on my server with both PHP 4.3.2 and 4.3.3 and I got the
last 5.  The only thing I changed was the email address to send to.

Charles

-----Original Message-----
From: Disko_kex [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 06, 2003 8:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Every 1008th character is missing???


Why is every 1008th character missing when Im tring to send an email?
 
mail("[EMAIL PROTECTED]", "test","
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789012345678901234567890123456789123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789012345678901234567890123456789123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789123
456789012345678901234567890123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789123456789012345678901234567890123
456789012345678901234567890123456789012345678901234567890123456789012345
", "From: Redaktionen <[EMAIL PROTECTED]>\r\n"
."MIME-Version: 1.0\r\n"
."Content-type: text/html; charset=iso-8859-1\r\n"
."Reply-To: [EMAIL PROTECTED]"
."X-Mailer: PHP/" . phpversion());
 
 
The last "5" is missing. Im tring to send newletters to my customers
thru HTML formated emils, and because 1008th character is missing the
source gets pretty fuckt up.
 
Anyone got any ideas what I should do??

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hi all,

I am a newbie to OO programming in PHP, and am having a few teething problems 
with the extends keyword (inheritance). I think that the following code 
doesn't work because the 'Another' class doesn't extend the 'Something' class (I 
have created it, but is not in this sample code). The setX function is definded 
in the Something class which isnt shown. Also, when I type the word 'extends' 
it doesn't get highlighted as being a key word. Can some please help.

class Another extends Something {
var $y;
function setY($v) {
$this->y=$v;
}

function getY() {
return $this->y;
}
} // Another class

$obj2 = new Something;
$obj2->setX(5);
$obj2->setY(6);

--- End Message ---
--- Begin Message ---
How can i build a chat using PHP and without refreshing a frame every x
seconds?
Thanks!!!

--- End Message ---
--- Begin Message ---
You can use Flash for such a thing. I think there should be ready scripts
for this stuff too. Just make a search using keywords "Flash" "PHP" and
"CHAT"

"Paulo Nunes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How can i build a chat using PHP and without refreshing a frame every x
> seconds?
> Thanks!!!

--- End Message ---
--- Begin Message --- Hello,

On 10/06/2003 06:40 AM, Disko_kex wrote:
I've got this annoying problem. I made a program that sends mail to my
customers, like a newsletter. The mail is in HTML and each mail is about
2000 chars, depends on the customers info. The problem I have is that
there is a lot of characters missing in the mail source when the mail is
delivered.

Ex:
"<tr><td>2003-03-03</td></tr>"

shows like this in the email source "tr><td>203-03-03</td/tr>"   there
is no logical structure for which characters is missing, it's different
everytime. Im running apache 1.3.28 and PHP 4.3.3, I tried IIS with PHP
4 and 5 with the same result.

The source for the mail is stored in a normal $message = array(); where
$message[$id]; is the mail source for the specific customer. If I print
$message[$id] from the program everything show correctly.

mail($mail_to, $subject, $message_head.$message[$key].$message_foot,
                         "From: Redaktionen
<[EMAIL PROTECTED]>\r\n"
                        ."MIME-Version: 1.0\r\n"
                        ."Content-type: text/html;
charset=iso-8859-1\r\n"
                        ."Reply-To: [EMAIL PROTECTED]"
                        ."X-Mailer: PHP/" . phpversion());    
Should I change something?


Any idea what I should do??

You need to properly encode your messages so they can pass in e-mail gateways that filter non-ASCII characters. For HTML messages usually you need to encoded with quoted-printable.


You may want to try this class to compose and send messages and can encode your message bodies properly. Just take a look at the supplied examples:

http://www.phpclasses.org/mimemessage

--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
Sorry if this is a double post for some of you, but I sent this email earlier 
today and had a strange email in a foreign language which seems like an email 
blocker. If any of you have received this email today, please delete it.

Hi all,

I am a newbie to OO programming in PHP, and am having a few teething problems 
with the extends keyword (inheritance). I think that the following code 
doesn't work because the 'Another' class doesn't extend the 'Something' class (I 
have created it, but is not in this sample code). Is there a problem with 
inheritance in PHP 4.2.3. The setX function is definded in the Something class which 
isnt shown. Also, when I type the word 'extends' it doesn't get highlighted 
as being a key word. Can some please help.

(am using Apache on XP)

<?php
class Another extends Something {
var $y;
function setY($v) {
$this->y=$v;
}

function getY() {
return $this->y;
}
} // Another class

$obj2 = new Something;
$obj2->setX(5);
$obj2->setY(6);

// End Code

Tryst

--- End Message ---
--- Begin Message ---
did you have your inheritance mixed up? (or maybe it was a typo)

if

> class Another extends Something {

then

> $obj2 = new Something;
> $obj2->setX(5);
> $obj2->setY(6);

would yield setY not found, because setY is not in Something.

Ie, both methods are available in "Another", only setX is in "Something".
(Something being the ancestor)

I know this could be just a typo, so if it is, then you might want to look
at how you require the file that has class Something in it.


<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Sorry if this is a double post for some of you, but I sent this email
earlier
> today and had a strange email in a foreign language which seems like an
email
> blocker. If any of you have received this email today, please delete it.
>
> Hi all,
>
> I am a newbie to OO programming in PHP, and am having a few teething
problems
> with the extends keyword (inheritance). I think that the following code
> doesn't work because the 'Another' class doesn't extend the 'Something'
class (I
> have created it, but is not in this sample code). Is there a problem with
> inheritance in PHP 4.2.3. The setX function is definded in the Something
class which
> isnt shown. Also, when I type the word 'extends' it doesn't get
highlighted
> as being a key word. Can some please help.
>
> (am using Apache on XP)
>
> <?php
> class Another extends Something {
> var $y;
> function setY($v) {
> $this->y=$v;
> }
>
> function getY() {
> return $this->y;
> }
> } // Another class
>
> $obj2 = new Something;
> $obj2->setX(5);
> $obj2->setY(6);
>
> // End Code
>
> Tryst

--- End Message ---
--- Begin Message ---
Hi,
 
I have WinPro2000 with IIS (PWS) and PHP4.
When i strat session receive an error.
 
 
Can you tell me how i can solve this problem
 
Thanks
 
Kamran Fayyaz


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

--- End Message ---
--- Begin Message ---
probably

-----Original Message-----
From: Kamran fff [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 04, 2003 2:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Help me out with Session problem


Hi,
 
I have WinPro2000 with IIS (PWS) and PHP4.
When i strat session receive an error.
 
 
Can you tell me how i can solve this problem
 
Thanks
 
Kamran Fayyaz


---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

--- End Message ---
--- Begin Message ---
I have a PHP page that for some reason is taking an ungodly long time to
execute.  I suspect that this is simply b/c I’m running Apache 1.3 /
MySQL 4.013-nt, PHP 4, Zend studio 3.0, and MySQL GUI on a 266 MhZ win2K
server.  (Yes people, I know I’m choking the poor thing, but I can’t
afford a new server right now.)
 
My question to the group is:
 
Does anyone know how I can increase my timeouts on page generation?
Halfway through the rowset, the page stops generating and returns to the
browser cut off at whatever point the server (apache, PHP or MySQL, I
dunno which) gave up and decided the page was taking too long.  It seems
to be a 90 second html response timeout imbedded somewhere in my
configuration, but I have no idea where to look to change this value to
unlimited, or maybe to 600 seconds or something more reasonable for the
hideous rowsets that my project is dealing with.
 
I don’t know if this is a PHP question, but I’m trying PHP, Apache, and
MySQL in case there is a cursor timeout or something…
 
Anyone feel like sharing some nifty tricks to help me tweak my
performance?  I don’t care if the page takes 10 hours to generate, I’m
on a local secure network and I want my connections open that long.
(I’d also like to know if there’s any tricks to not using cursors and
loading re-usable recordset-style objects into mysql_result variables,
so I don’t have to hit the db every time I want to re-use a loaded
rowset.  But let’s get my pages to finish generating first.
 
:-)
 
Thanks a bunch everyone!
 
Dave Coleman
Software Engineer
TeraByte Software Solutions LLC
[EMAIL PROTECTED]
 
 
 
Thanx everyone,
Dave
 

--- End Message ---
--- Begin Message ---
I'm looking to try to get a users MAC and/or NetBIOS name when they visit my
website. It somehow can be done, I'm not sure with PHP, but it can be done.

Does anyone have any idea how?

As an example check out:
http://stealthtests.lockdowncorp.com/

On that site, there are tests that will display NetBIOS & MAC addresses.
(NOTE: if you are properly firewalled or protected it won't display the
information accurately, however if unprotected and not behind a NAT or
router, it works)

Now how did they do this? & how can I?

Thanx

--- End Message ---
--- Begin Message ---
Was wondering if anyone knew how to fix this:

I have a PHPNuke website, with PHPbb forums.  The problem is, it doesnt matter what I 
set the Forum font color to, its automatically overridden by the website font color.  
Now I dont want the forums to have the same font color as the rest of the site, is 
there any way to fix this?

--- End Message ---

Reply via email to