RE: [PHP] Recommend payment processors?
I've been using Authorize.Net for about 6 months now & am happy with them. I use their AIM interface, which allows ,e complete control over the look & feel of the payment process. There is no problem doing everything in PHP, as long as you have the CURL extensions & they are built with SSL support. -- JR > -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 03, 2003 11:15 AM > To: php general > Subject: [PHP] Recommend payment processors? > > > Just wondering what people are using/recommend out there.. I'm going to be > getting a merchant account and let people purchase services through my > website on a secure server, all in PHP. What concerns me is this archived > post I came across: > > http://marc.theaimsgroup.com/?l=php-general&m=102165623600464&w=2 > > Reading that, it sounds like it's not possible to use Payment Pro, or > possibly other systems, with PHP .. is this correct? Some of the other > posts in the archive sounded like people were using it, so I'm not really > sure what is possible at this point. > > Thanks, > Chad > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Shopping Cart Credit Card Verification
The solution you choose for credit card verification depends on a number of things: - how much control you want over look & feel - whether you are rolling your own shopping cart I happen to use Authorize.Net, which allows you to control the entire process & maintain the look & feel you desire: http://www.authorize.net/ But there are lots of other solutions. If you want to email me with more details of what you are looking for, I'd be glad to try to help. -- JR > -Original Message- > From: Josiah Peters [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 31, 2002 01:55 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Shopping Cart Credit Card Verification > > > I sure hope this is the correct mailing list. I have been struggling with > this problem for quite some time. > Does anyone know a way to verify credit card information in real time with > your bank over the internet in say a shopping cart? > > Joey Peters > > _ > STOP MORE SPAM with the new MSN 8 and get 3 months FREE*. > http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&; DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3m f -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: & in Query String
Ok ... I take back what I said about & not working in a query string. It works just fine. But, none of this explains why I am sometimes receiving a request with & in the query string, especially I am using '&' in the link. The only way I think I can find out is by augmenting the error message I received, as described earlier. I'll report back when/if I learn anything from doing this. -- JR > -Original Message- > From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 12:15 PM > To: Erwin > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: & in Query String > > > At 16:54 26.11.2002, Erwin spoke out and said: > [snip] > >> Actually, you should specify the URL with the & > >> yourself, like this: > >> > >> > > > >Of course not...this is a HREF tag, which can use & instead of > &. & > >is for displaying purposes only, not for URL's. > > Nope. As I just learnt from this list it _is_ valid to specify a query > string using & as delimiter - it will be resolved by the browser the > same way as it is when it gets displayed. > > Actually this is the only way to create W3C-compliant query strings. > > Just check with the W3C HTML Validator: http://validator.w3.org/ > > > -- >>O Ernest E. Vogelsinger >(\) ICQ #13394035 > ^ http://www.vogelsinger.at/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: & in Query String
I tried it & it fails. The browser sends the query string with the & & the $_GET access fails. I am using IE 6. I can't imagine that it would be buggy in this regard. -- JR > -Original Message- > From: @ Edwin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 11:17 AM > To: Jonathan Rosenberg (Tabby's Place) > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: & in Query String > > > Hello, > > "Jonathan Rosenberg (Tabby's Place)" <[EMAIL PROTECTED]> wrote: > > [snip] > > I'm missing something here. If you use '&' to separate arguments on > the > > query string, how do they get separated out for access via $_GET? > [/snip] > > Don't worry about it, just try it :) > > Anyway, the link that has & would be translated to &. (The browser > should take care of this since it's the proper way to do it anyway...) > > - E > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: & in Query String
Not, this answer makes sense. I couldn't see how using '&' in the query string would work. I'm gonna take the advice & augment my error message to include browser name & other info. I've been wondering if a web crawler might be causing this. I'll let you know what turns up (of course, the problem will stop occurring once I add this info :-). -- JR > -Original Message- > From: Erwin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 26, 2002 10:54 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: & in Query String > > > Derick Rethans wrote: > > Jonathan Rosenberg wrote: > >> I have a page with thumbnail pictures that can be clicked on to see > >> a larger picture. Each picture is hyperlinked as follows > >> > >> > >> > >> I access the 'pic' & 'caption' attributes with $_GET['pic'], etc. > >> Pretty standard stuff. > >> > >> I have PHP set up so that error messages get mailed to a specified > >> mail account. Every so often I get the following error message: > >> > >> Undefined index: caption > >> In file /home//show_pic.php, line 64 > >> page: /show_pic.php?pic=gb3.jpg&caption=Some+Text > >> > >> The problem is obviously (I think) that the $_GET['caption'] is > >> failing. > > True, if you receive &caption in your URL, then the variable won't be > called $_GET['caption'], but $_GET['amp;caption'], which (I think) is > invalid because of the ;. > > >> > >> What I can't figure out is why the '&' got turned into '&'. Is a > >> browser doing this? > > > Yes it is. > > No, it isn't. I sure hope there is no browser which turns & in & in > URL's. That would be very, very bad indeed! > > > Actually, you should specify the URL with the & > > yourself, like this: > > > > > > Of course not...this is a HREF tag, which can use & instead of > &. & > is for displaying purposes only, not for URL's. > > Following the tip from Marek, adjust your errormessage mailing > thingy...add > all the $_GET variables to it (print_r($_GET)). Some other notices maybe > usefull to... > > Erwin > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: & in Query String
In an earlier message, Derick Rethans [mailto:[EMAIL PROTECTED]] said ... > Yes it is. Actually, you should specify the URL with the > & yourself, like this: > > otherwise it is not valid HTML. I understand that using '&' is technically not correct HTML. But I don't see how changing the '&' -> '&' solves my problem. But just to be sure I tried it. Sure enough, this caused the error to occur. I'm missing something here. If you use '&' to separate arguments on the query string, how do they get separated out for access via $_GET? > -- -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Cleaning up MSWord HTML
Microsoft provides a program that will do just that. I believe that it gets loaded into Word & you run it from there. If this will suffice, take a look for it on Microsoft's site. If you can't find it, let me know. I once downloaded it & can probably dig up a URL for you. -- JR > On Thu, 21 Nov 2002, Chris Boget wrote: > I've done some searches on Google, PHPClasses.org, etc > for something like what I'm trying to accomplish but have > had little luch. And since I don't want to reinvent the > wheel I thought I'd ask here. > Has anyone come across a piece of code that cleans up > the HTML created by MSWord when you "Save As.." html? > I need to remove all the extra crap added in such as the > styles, etc. > If you can point me in the right direction with > regards to where to get started or where there might > be such code, I'd be ever so appreciative! > Chris -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] No Reply From cURL
I suspect your problem is that CURL is not built with SSL support. To test this, replace the https:/.../ with a reference to a non-SSL URL (http://.../). If you get a return that, you need to build CURL with SSL support. -- JR > -Original Message- > From: Steve Keller [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 21, 2002 14:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP] No Reply From cURL > > > I apologize for being a pest about this, I'm just not getting it. > > I'm attempting to open a connection to NetLedger to post an XML file. I'm > attempting this basic code, which is pretty much what I find everywhere: > > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, > "https://partners.netledger.com/SmbXml";); > curl_setopt($ch, CURLOPT_POST, 1); > curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); > curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); > curl_setopt($ch, CURLOPT_VERBOSE, 1); > curl_setopt($ch, CURLOPT_POSTFIELDS,$postData); > > $result = curl_exec ($ch); > curl_close($ch); > echo $result; > > And I'm getting no result back so I can't even see what error I'm getting. > > I'm using PHP 4.2.3, with OpenSSL/0.9.5a and compiled as follows: > > './configure' '--with-apxs=/usr/local/www/bin/apxs' > '--with-mysql=/usr/local/' '--with-gd=/usr/local/' '--with-freetype' > '--with-imap' '--with-curl' > > Also, how do I include a file in the postData? Can someone point me to a > good page about HTTP where I can read about doing that? > -- > S. Keller > UI Engineer > The Health TV Channel, Inc. > (a non - profit organization) > 3820 Lake Otis Pkwy. > Anchorage, AK 99508 > 907.770.6200 ext.220 > 907.336.6205 (fax) > Email: [EMAIL PROTECTED] > Web: www.healthtvchannel.org > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail and from line overriding
You need to change the first statement to $from = "From: [EMAIL PROTECTED]"; -- JR > -Original Message- > From: Frank Wang [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 15, 2002 10:15 AM > To: [EMAIL PROTECTED] > Subject: [PHP] mail and from line overriding > > > Hi, > > I have something like following: > > $from = "[EMAIL PROTECTED]"; > $email = "[EMAIL PROTECTED]"; > $msg = "abcde"; > > mail($email, $subj, $msg, $from); > > the message sent always has the 'from' line taken from php.ini, not $from, > is there a way to override this ? Thanks. > > Frank > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Why $ on variable names?
In an earlier message, Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at] said ... > Think of how an interpreter works. It parses the > sourcecode in realtime, not as a compiler. People must > _wait_, every time, until it is finished, > not only once like a compiler. Thus designers of > interpreted languages like something that can easily be > distinguished, so you don't need to lookup a > lot of hash tables to identify a symbol, or to > resolve amiguities. Lots of other popular interpreted languages managed to get by without the need for something unique to identify a variable name: LISP, TCL, JavaScript, Visual Basic. During parsing an interpreter or compiler will know when it might see a variable (or constant, which can be stored in the same hash table). Look at the syntax for any language. There's really no need for extraneous symbol table lookups. > That's why the '$' preceds a variable name. Simply > said, when the parser sees a '$', it knows which symbol > table to look it up. If a token doesn't have a '$', it > can be found in the table of keywords of the language's > state machine. But, that's not true. If the token doesn't have a '$' it could be a function or constant name, as well as a keyword. > -- >>O Ernest E. Vogelsinger -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Why $ on variable names?
In an earlier message, Larry Rosenman [mailto:ler@;lerctr.org] said ... > How about: > That's the way the language designers did it, and > there's LOTS of PRODUCTION code out there that uses it. Because "that's the way it is"? Well, that's good enough for me. I'll never question anything else again & I trust you won't, either. > See also the precedence of PERL. Huh? What does the "precedence of PERL" mean? > LER -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Why $ on variable names?
In an earlier message, Marco Tabini [mailto:marcot@;inicode.com] saidf ... > If I can venture a comment, what you think > "clutters" the code others may find a quick and > easy way to identify a variable in it. I guess this could be true. But I don't understand why someone would need an "easy" way to identify variables? Why not an easy way to identify function names? Or constants? In any case, I don't recall anyone complaining that they had trouble "identifying variables" in C, C++, Modula, Pascal, Java, etc. > Marco -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Why $ on variable names?
In an earlier message, Jason Wong [mailto:php-general@;gremlins.com.hk] said ... > Yup. So you can have: > print "I'm a $variable"; > instead of the messy javascript way: > alert("I'm a " . $variable); But the language could still support variable evaluation within strings without requiring the '$' to always appear in front of a variable name. So, a '$' within a string would mean "treat the following identifier as a variable to be evaluated". I believe that this introduces no inconsistencies & removes the ugly $s that litter PHP programs. -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re: [PHP] Creating SSL Connection to Accept Credit Cards
Do you have telnet access to the server? If so, you could download the standalone CURL program & invoke it via the exec() function call. -- JR > -Original Message- > From: Ben C. [mailto:benc@;cox.net] > Sent: Tuesday, November 05, 2002 13:19 PM > To: Jaime Bozza; 'Adam Voigt' > Cc: [EMAIL PROTECTED] > Subject: RE: Re: [PHP] Creating SSL Connection to Accept Credit Cards > > > Is there anything else that I can do. I am running PHP 4.1.2 so > the fopen() doesn't work and I donot have support for CURL. Any > other suggestions? > > > > > From: "Jaime Bozza" <[EMAIL PROTECTED]> > > Date: 2002/11/05 Tue PM 01:09:37 EST > > To: "'Ben C.'" <[EMAIL PROTECTED]>, "'Adam Voigt'" <[EMAIL PROTECTED]> > > CC: <[EMAIL PROTECTED]> > > Subject: RE: Re: [PHP] Creating SSL Connection to Accept Credit Cards > > > > Except that https:// doesn't work with fopen until PHP 4.3.0. > > > > Suggestions are only good if they work with a current version of PHP. :) > > (No, I don't consider 4.3.0 current until it's at *least* released) > > > > Regardless, until then, CURL support is probably the way to go. > > Assuming you have curl support, it's fairly straightforward: > > > > --- > > $ch = curl_init("https://somesite.com";); > > curl_setopt($ch, CURLOPT_HEADER, 0); > > curl_setopt($ch, CURLOPT_POST, 1); > > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > curl_setopt($ch, CURLOPT_POSTFIELDS, $authorization_data); > > > > $result = curl_exec($ch); > > $errorstr = curl_error($ch); > > curl_close($ch); > > --- > > > > $result contains the data received and $errorstr contains the error > > message (if any) if it was unsuccessful. Translating $result depends on > > how they return the data. > > > > With the above example, you'll need to have $authorization_data in POST > > format, which really is nothing more than the GET format string. > > (Secure transaction APIs typically don't allow GET) > > > > var=somevalue&var2=somevalue2&var3=anothervalue > > > > > > > > > > > -Original Message- > > > From: Ben C. [mailto:benc@;cox.net] > > > Sent: Tuesday, November 05, 2002 11:55 AM > > > To: Adam Voigt > > > Cc: [EMAIL PROTECTED] > > > Subject: Re: Re: [PHP] Creating SSL Connection to Accept Credit Cards > > > > > > > > > I am not sure if that is what they want. I will try it and > > > get back. Good suggestion. > > > > > > > > From: Adam Voigt <[EMAIL PROTECTED]> > > > > Date: 2002/11/05 Tue PM 12:33:00 EST > > > > To: [EMAIL PROTECTED] > > > > CC: [EMAIL PROTECTED] > > > > Subject: Re: [PHP] Creating SSL Connection to Accept Credit Cards > > > > > > > > Like: > > > > > > > > $f = fopen("https://whatever.com","r";) > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Creating SSL Connection to Accept Credit Cards
I thought that using fopen to create an SSL connection was not yet supported in PHP. I would suggest the CURL functions for this. -- JR > -Original Message- > From: Adam Voigt [mailto:adam@;cryptocomm.com] > Sent: Tuesday, November 05, 2002 12:33 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Creating SSL Connection to Accept Credit Cards > > > Like: > > $f = fopen("https://whatever.com","r";) > > ? > > On Tue, 2002-11-05 at 12:31, [EMAIL PROTECTED] wrote: > > My credit card processor requires that I create an SSL > connection in order to generate a transaction key. How would I > go about writing a script to do so. Please point me in the right > direction. The tech support says that it can only be done in > ASP, but I find that hard to believe. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php