[PHP-WIN] GPayments API

2005-07-08 Thread Ragnar
Hi guys, I was just wonderig if anyone on the list has ever done a GPayments integration with PHP before, or maybe even written a reuseable API to interface with ActiveMerchant. I had a look at the sample ASP (COM Object) and Java (JSP) API's that are provided by GPayments, but they're not much

[PHP-WIN] interacting with Java or C

2004-08-30 Thread Ragnar
Hi fellows, I was just wondering, I have to get a project done that involves online payment, which are handled through a payment gateway in the UK. Problem is the company only provides a Java or C alternative to interact with the gateway. Any idea how to make PHP talk to Java or C ? Any clues a

[PHP-WIN] thanks

2004-08-09 Thread Ragnar
Thanks everyone for the help with this issue ! > > another quick one. I was wondering what you'd have to do > > with a function, so it would be able to have 'optional' parameters > > when calling it. > > > > much like: > > > > string substr ( string string, int start [, int length]) > > > > where

[PHP-WIN] optional function parameters

2004-08-09 Thread Ragnar
Hi guys, another quick one. I was wondering what you'd have to do with a function, so it would be able to have 'optional' parameters when calling it. much like: string substr ( string string, int start [, int length]) where you can just omit the [, in length] part if you want. What do you hav

Re: [PHP-WIN] file self check

2004-08-09 Thread Ragnar
how that pearl file did it, but you couldn't edit it without breaking it. > You could store a table or a text file associating to each script its MD5 > hash string. > check the PHP md5() function > > _____ > - Original Message - > From: &quo

[PHP-WIN] file self check

2004-08-08 Thread Ragnar
Hi everyone, I was just wondering how one would write a php script that would check itself, if it has been tempered with before running, and if it has would not work. I have seen Perl scripts that work in such a why, that is you edit only 1 char in the file and it will not run anymore, but I coul

Re: [PHP-WIN] PHP OOP

2004-06-30 Thread Ragnar
Ok .. I figured it out now guys. Sorry for the hassle. returning the object is fine, but if you don't assign another variable with it after the function call it doesn't presist. So what I did was (after the function declaration in the code): if ($_GET['item']) $newitem = show_item($_GET['item']

Re: [PHP-WIN] PHP OOP

2004-06-30 Thread Ragnar
Thanks for the answers so far guys ... the thing that puzzles me is that the query definately works fine, because if I do this: --- function show_item($item) { $sublvl = $_GET['sub']; $qry_item = query("select ITMLIST.*, GRPLIST.NAME AS SUBNAME from ITMLIST, GRPLIST where ITMLIST.IT

[PHP-WIN] PHP OOP

2004-06-30 Thread Ragnar
Hi lads, I'm just tinkering around in PHP again recently, I haven't done much OO in general, so I wasn't too surpised when some of the stuff I did today didn't work. Example: (DB abstraction): function data($qry_result){ if ($qry_result){ return ibase_fetch_object($qry_result); } } (I

Re: [PHP-WIN] [PHP-NIX] File upload

2004-04-23 Thread Ragnar
mum > file size you are tring to upload. > > happy coding... > > Vk. > > > Ragnar wrote: > > > Hi guys/girls, > > > > I am having some major pain here with a php script handling file > uploads. > > It's part of an CMS and the file in qu

[PHP-WIN] [PHP-NIX] File upload

2004-04-22 Thread Ragnar
Hi guys/girls, I am having some major pain here with a php script handling file uploads. It's part of an CMS and the file in question takes a PDF, makes a thumbnail of it and then moves it to it's proper location on the server. All this works fine with smaller files < ~ 2 MB. I am having a file