|
Posted by Petr Vileta on 10/27/06 22:33
"PeacePipe" <peacepipe@last.cum> píse v diskusním príspevku
news:271020062125161865%peacepipe@last.cum...
> Oops < must change nick. I see there is another "Happy" already in here.
>
> Hello folks. My colleague and I are unable to figure out what is wrong
> with some code. We can't make it do what we want. Perhaps some kind
> person can help please.
>
> I run a particular pay-to-view web site. For credit card processing, we
> signed on with PayPal.
>
> The process is generally working ok. An interested person clicks the
> "join" button on the site and is transported to PayPal where he enters
> his card data and so on.
>
> PayPal generates access codes for the new member and emails them to
> him. PayPal also sends us an email announcing a new join.
>
> The problem is that, so far, I must update the .htpasswd file manually
> to liven up access to the member area.
>
> My colleague has good PHP skills and has written code to try to enable
> PayPal to update the file automatically but all attempts fail so far.
> The relevant section of the code is reproduced below. (This is not the
> entire file, only the reelvant lines.)
>
> We have proper permissions to write to the .htaccess file (777)
>
Hmm, permissions is 777 ... you are running on Lunux. You must use htpasswd
linux command instead to direct writing to file because passwords in
..htpasswd file are crypted. Run it as shell_exec() in your PHP code. For
more info use "man htpasswd".
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
[Back to original message]
|