RE: [PHP] apache1.3.22 won't start with php4.0.6

2001-10-29 Thread Fotwun

uhhh... the php psychic says she needs your birthdate and name first. =P

but really, give some useful info. what OS? how is PHP compiled... are you
using the CGI style standalone, or is it compiled into Apache, or is it a
apache module? Whats the error it gives you on the console when trying to
run it. Whats the error produced in the apache log? etc...


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 29, 2001 10:29 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] apache1.3.22 won't start with php4.0.6


 Hi,

 Does anyone know how to get round this problem? I have just
 installed Apache 1.3.22 but when I load php4.0.6 it won't run.

 Please email me at [EMAIL PROTECTED]

 Thanks,

 Ed.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Fotwun

Hi,

I need to send a broadcast email to our customers (about 3,000 emails). The
data is being drawn for the DB, and will be personalized. Obviously, the
code to do this is only a few lines. However, I am concerned with the load
it will put on the system trying to loop through and mail() 3,000+ times.
Because of the overhead I anticipate this will cause the server, I am
planning to do it late in the evening.

My concern is this... will such a loop calling mail() cause PHP/Apache/the
box/etc to crash under normal circumstances? We have a pretty beefy box, I
just have never tried broadcasting through PHP. Also, if there is any
reasonable chance for such a failure, is it possible to put timed pauses in,
say half a second or so before it continues the loop. I've never heard of
inserting pauses into the execution of PHP code, not sure if its possible.
If it were, I would think this could combat some of the load, and prevent
the bottleneck from building backlog until failure.

Who knows, maybe this type of routine won't even make my box flinch (P3-833,
FreeBSD, 256 megs), that's why I'm asking ahead of time. I'd hate to see a
crash, mainly because I'll have no idea where it left off, and will end up
sending 2 or more emails to some people if I have to run it more than once.

Thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Mixing PHP with a FAX Gateway? HELP!!! IDEAS???

2001-08-23 Thread Fotwun



Hey,

I'm wondering if anyone here has any experiencing mixing webware with a FAX
solution on the unix platform, particulary FreeBSD 4.2.

I have 2 seperate possilble solutions here. The first involves faxing using
software configured on the server. The 2nd is a PHP type solution, capturing
HTML from a URL and assembling it into an attachment for email. Please give
me any thoughts you can offer on these.

What I currently have is a e-commerce solution I wrote in PHP. There are
pages that are generated (sort of like a populated form) that need to be
faxed. This is all theory I am talking right now, because I have never done
anything like this, including just faxing from a server.

Now, what would it entail to get our dedicated server preped to do faxing
for starters. It's at our colo facility and gobs of bandwidth. Obviously we
have no modem connected at this point, and I don't even know if an actual
phone line would be available to us. So, what I am guessing is that there
are services that offer dial-out gateways for faxing and such, over the
Internet. Where, our software can send data to a faxing gateway, which in
turn sends the fax through their lines. Anyone know of any services like
this?

Also, what type of faxing software is available on FreeBSD? How does it
integrate with actual means of faxing (gateways/modem) etc.

Basically, the whole fax over server thing is new to me, and I'm trying to
see if anyone has any experience at all doing this. The goal is: when you
are looking at this rendered HTML page, you have a button that says Fax
and when you click on it, the web page you are looking at is faxed off,
through the server, looking just as it appeared on the screen basically
(which merely consists of text in tables, and a couple HR's). The goal is
to make this as seamless as possible.

2nd solution-
Now, eFax offers you a service where you can send an email, containing an
attachment, such as .html and it will render the email and attachments and
fax them off like they look. This would not be such a bad idea, but we want
to avoid people having to manually Send Page By Email through outlook each
time. What I am thinking if I can capture the HTML that is generated from
the script (ie- showdetails.php?order_id=432) and then create an attachment
of that HTML (ie- my_attachment_to_fax.html) and then send it through email
( function mail(); ) that would be perfect. Anyone have any code on how
capture the HTML from a URL (fopen(); ?) and then assemble that into an
attachment (.html / correct mime type/headers) and send it off?

Sound plausible?

Please give me any insight to either of these methods. Thank you.

Fotwun


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Credit Card Gateway Recommendations?

2001-08-20 Thread Fotwun

Ok,

I know most of you integrate your code into some for of e-commerce to accept
credit cards. I want to know what your favorite credit card gateway
(authorization) provider is.

Preferably, I am looking for a gateway that allows you to connect to their
server directly through the code, via sockets, as opposed to posting data a
URL and receiving the response on another script.

However, if there is a solution to those types of gateways (that do redirect
back to a script after authorization) to get around that and communicate
directly with the gateways code from the SSL URL without having to do that
redirect BS, that would be great too. I am thinking this could possibly be
obtained using CURL from inside the code?

Basically, let me know what your favorite company is to accept credit cards,
as seemless as possible with your PHP code. And, hopefully it isn't any that
require the actual browser to send data anywhere else outside my site (i
want my code to handle it all behind the scenes).

Thanks!!!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] print two Digits after decimal point

2001-08-19 Thread Fotwun

? echo \$.number_format($price,2); ?

 -Original Message-
 From: Andonny [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 19, 2001 11:21 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] print two Digits after decimal point
 
 
 Hi,
 I need to print on the webpage two digits after the decimal point.
 This is what I have at the moment:
 ? print $$price  ?
 I need to have for example $5.00 not   $ 5 as it does at the moment.
 
 Thanks for your help
 Andonny
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] E-Commerce - Integrating Sessions With Charging Processes That rePOST

2001-08-19 Thread Fotwun

Hi,

I have basically seen and used two methods for integrating credit card
gateways into PHP code.

The first method is one that opens a socket to the gateway server and sends
the data from within the code.

The second is where FORM data is posted to a https URL with the URL is
should send the response back to, with the confirmation code, etc.

I traditionally use PG for situations of e-commerce, mainly because of
transactions. I like the first method better, because I feel it is more
secure, seemless, and less chance for errors to occur (either user induced,
or other problems). I like being able to store all of the required data in
sessions (rather than adding to the DB at each step) and then making all of
the transactional queries at the end of the credit card charging process.

The problem I face is that all of the companies I've researched that allow
direct socket integration seem to charge quite a bit more in general than
those that use the POST/REDIRECT method of charging.  So, if anyone
knows of a reliable and affordable company that allows socket integration,
that would solve the problem best. 

However, because of budget issues, I may need to use one of these cheaper
companies, who ultimately use the POST/REDIRECT method.

My questions are how do you securly, reliably, and seemlessly integrate
sessions within that type of gateway. Because once the form data is posted
to the credit card gateway, it redirects (posts response data) back to the
script of your choice. However, in my experience, the sessions are not
restored/recognized until the browser is refreshed on the client side
(through the use of JavaScript) to get the server to recognize the request
as coming from your user, rather than the as a post from the gateway. I
don't want to have to deal with getting sloppy and adding additional
refreshes/java script if thats the only way to do it. If I were to merely
have the code generate a form based on hidden tags and have javascript
auto-form submit, then I would open to security problems, because I could no
longer restrict the script the gateway respondes to by an HTTP_REFFER.

Because the clients order id that is generated will be stored as a session,
I need a way to reference the order ID and confirmation code that is
returned by the posted data from the gateway, against the session data to
start inserting the data into the DB if it was a successful charge.

Any ideas...? Maybe there's a quick solution out there I am just
overlooking. The solution would be easy if I wasn't inserting all of my data
at the end of the process based on the session data. But this is how the
code is has to work, so what do you all think, how should I deal with this?

Thanks,

FT


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]