php-windows Digest 25 Jan 2002 09:11:52 -0000 Issue 969

Topics (messages 11628 through 11636):

Re: Windows NT SMTP Set Up Help Needed
        11628 by: Charlie Killian
        11629 by: Shrock, Court
        11636 by: Martin Lindhe

Limit connection/download
        11630 by: Olivier Hubert
        11631 by: Symeon Charalabides
        11632 by: Olivier Hubert

Re: [PHP] PHP software tool
        11633 by: malcontent

Re: NEWBIE IN DISTRESS:  Install Instructions are not work for PHP 4.1.1!!!
        11634 by: Andre Amaral

Need Advice
        11635 by: Mike

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 ---
Court-
No luck yet. Here is the call to mail():

$mr = mail("[EMAIL PROTECTED]", "subject", "Line 1");

Simple and straight forward. But I'm still getting the error:
Warning: Server Error in E:\Inetpub\wwwroot\ckmailtest.php on line 22

Charlie

> I had a similar error running in CGI mode on WinNT.  I ended up
> taking apart
> my call to mail() until it worked.  A simple call with dummy values and no
> extra headers would work, but what I wanted would not.  I traced the cause
> to the bcc header.  Also, I noticed that the cc header does not
> work either
> on the windows cgi version.  I even noticed that the case of the
> Cc and Bcc
> headers changed the errors that I received.

--- End Message ---
--- Begin Message ---
Weird...have you verified that you can send mail using the server specified
in php.ini using another app --outlook express, netscape mail, mozilla mail,
etc...

>Court-
>No luck yet. Here is the call to mail():
>
>$mr = mail("[EMAIL PROTECTED]", "subject", "Line 1");
>
>Simple and straight forward. But I'm still getting the error:
>Warning: Server Error in E:\Inetpub\wwwroot\ckmailtest.php on line 22
>
>Charlie
--- End Message ---
--- Begin Message ---
> Court-
> No luck yet. Here is the call to mail():
> 
> $mr = mail("[EMAIL PROTECTED]", "subject", "Line 1");
> 
> Simple and straight forward. But I'm still getting the error:
> Warning: Server Error in E:\Inetpub\wwwroot\ckmailtest.php on line 22

Could you try this out:

$address = "[EMAIL PROTECTED]";
$head = "From: PHP Test <[EMAIL PROTECTED]>\r\n";
$subject = "hello world";
$message = "Hello there\nTest123\n";
mail($address, $subject, $message, $head);

I think the mail header is required, anyway this works for me and i
suggested it to a guy here yesterday that had similar probs and it worked
right out for him too

/Martin


> 
> Charlie
> 
> > I had a similar error running in CGI mode on WinNT.  I 
> ended up taking 
> > apart my call to mail() until it worked.  A simple call with dummy 
> > values and no extra headers would work, but what I wanted 
> would not.  
> > I traced the cause to the bcc header.  Also, I noticed that the cc 
> > header does not work either
> > on the windows cgi version.  I even noticed that the case of the
> > Cc and Bcc
> > headers changed the errors that I received.
> 
--- End Message ---
--- Begin Message ---
Hi,

        I am using the following configuration:

- Apache 3.2.6 (I think)
- PHP latest version
- MySQL latest version

        I have a web site with a lot of files that are downloadable only by 
registered users. Session variables are used to keep track of who is logged 
and who is not (non-registered users can still browse the files, but not 
download them). Now, I would like to have a limit of one download/user. Is 
there a way I can limit the downloads with PHP or even an Apache 
configuration? I know there is an Apache module that allows restriction on 
the number of queries served, per IP address, but I do not have VC++ so I 
cannot compile Apache with the module. Also, I would like the user to be 
able to browse the files while downloading one, but giving two connections 
allows for two simultaneous downloads.

        Any ideas any one?

All help is welcome :-)

Olivier Hubert

--- End Message ---
--- Begin Message ---
>  I have a web site with a lot of files that are downloadable only by 
> registered users. Session variables are used to keep track of who is logged and
> who is not (non-registered users can still browse the files, but not download
> them). Now, I would like to have a limit of one download/user. Is there a way I
> can limit the downloads with PHP or even an Apache configuration? 

The simplest way is to set a flag via a cookie - very easy with PHP. Something 
along the lines of:

if (DOWNLOAD)
        setcookie('has_downloaded','1',time()+60*60*24*(number of days),'\');

However, knowledgable people can see through the cookies system and delete 
the cookie from their PC, allowing them to download more.
As I said, it's only the simplest system...

Symeon Charalabides (cosmopolitan trainee)
------------------------------------------
http://www.webmate.gr

--- End Message ---
--- Begin Message ---
At 20:57 2002-01-24 +0000, Symeon Charalabides wrote:
> >  I have a web site with a lot of files that are downloadable only by
> > registered users. Session variables are used to keep track of who is 
> logged and
> > who is not (non-registered users can still browse the files, but not 
> download
> > them). Now, I would like to have a limit of one download/user. Is there 
> a way I
> > can limit the downloads with PHP or even an Apache configuration?
>
>The simplest way is to set a flag via a cookie - very easy with PHP. 
>Something
>along the lines of:
>
>if (DOWNLOAD)
>         setcookie('has_downloaded','1',time()+60*60*24*(number of days),'\');
>
>However, knowledgable people can see through the cookies system and delete
>the cookie from their PC, allowing them to download more.
>As I said, it's only the simplest system...

         This is a good idea, but then again, how do I know for sure when a 
user has finished his download and can download another file? With 
something like this (which I could enable in a session variable), a user 
can only download one file before being rejected by the system.

Olivier Hubert

--- End Message ---
--- Begin Message ---
> 
> GnuEmax?


Speaking of which...

Is there any decent windows editor which has support for php AND 
integrated CVS AND which is does not contain the word emacs in it's name?

I tried to learn emacs but gave up when I found out how cumbersome 
multiple file development was compared to homesite.

--- End Message ---
--- Begin Message ---
Go to http://www.experttek.com/php/installation.php

Step by Step installatio on Win2k running IIS5


"Mark" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I apologize if the title of this post sounds overly aggresive, but I have
> followed the instructions to a 'T' and got nowhere!!  I have tried the
> "auto" install version of PHP and manual instructions for installing PHP
> 4.1.1.  Neither of them work.  I added the lines to my httpd.conf file for
> both types of installs (not at the same time) as discribed in the
> Install.txt file, along with the instructions on the website, and can get
no
> "test" scripts to run or PHP for that matter.  All I get is a blank screen
> when running the CGI version or can not even get apache to load when I try
> the Module version (Get a "Requested Operation Failed" message).  can
> someone please help?????  My system is as follows:
>
> Windows 2000 SP2
> Apache 2.0.28 (I have also tried version 1.3.22 with same results as
> mentioned above)
> PHP 4.1.1
> MDAC 2.7
> MySQL 3.23.46a
>
> Thanks in advance!!
>
> Mark
>
>


--- End Message ---
--- Begin Message ---
Ok, I have looked for the past 2 days searching for an answer to my problem.
It's not PHP related but quite similar to it.

I run a web/FTP server from my house. My problem is that my download rates
to my place is super fast yet my u/l rates really suck. I mean I can't push
anything faster then 15 kb/s and I am on a 1.5 MB connection with a 765KBs
up stream. Whats going on? i have tried 2 nics and that don't seem to be the
problem. That and the other computers that are on same network that i'm on
are lagged to crap. Its been happening for 4 months now and it is really
making me mad.
Any ideas?? here are the specs:

AMD 1.4 GHz
512MB PC-133 RAM
D-Link 530+TX 10/100
SMC 10

Is there something in the registry that i can change? Maybe its a registry
setting for an up down ratio?

--
-Mike Taekema
Microsoft Certified Professional
www.fvforces.net



--- End Message ---

Reply via email to