Jump to content

moviedrome

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

moviedrome's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. yep the variables are fine, the xml file opens fine in the browser using the link stored in $xml - i'm at a total loss.
  2. sorry line 59 is return file($xml);
  3. Ok, I've got rid of the urlencode and I now get No such file or directory in /home/fjnet/public_html/buyat.php on line 59 But the link works when i paste it into my browser so i'm not entirely sure what the problem is.
  4. my code is: $xml = "https://users.buy.at/mgt/affiliates/commission.php?EMAIL=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx&EPASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&ID=xxxxxxxxxxxxxxxxxx&DATEFROM=20{$startdate}&DATETO=20{$enddate}&ORDERBY=trans_date_time&ORDERDIRECTION=ASC&PAGE=all&FORMAT=XML"; return file(urlencode($xml)); print_r($xml); Thanks
  5. sorry for double post, i've tried file() as well and i get File name too long in /home/fjnet/public_html/buyat.php on line 59
  6. i'm using PHP version 4.4.7 but it still keeps telling me the url is too long. Really confused.
  7. Hi, I wonder if someone can help me with a file-get-contents problem, is there a way around the filename too long error? If not, can someone suggest a better way I can get that xml file into an array? Warning: file_get_contents(https%3A%2F%2Fusers.buy.at%2Fmgt%2Faffiliates%2Fcommission.php%3FEMAIL%3Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%26EPASSWORD%3Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%26ID%3Dxxxxxxxxxxxxxxxxxx%26DATEFROM%3D2008-04-01%26DATETO%3D2008-05-01%26ORDERBY%3Dtrans_date_time%26ORDERDIRECTION%3DASC%26PAGE%3Dall%26FORMAT%3DXML) [function.file-get-contents]: failed to open stream: File name too long in /home/fjnet/public_html/buyat.php on line 59 Thanks in advance
  8. Thanks, i've just tried that and I get nothing displayed. Any idea why this could be?
  9. I have the following stored in $response and this is what i get when i print_r $response (it continues to 80 rows but i haven't shown them all. What i need to do is be able to print for [0] [sStatus] for example and for [1] [iMerchantId]. I've tried printing them and i'm not sure what i'm doing wrong. Please help! stdClass Object ( [getTransactionListReturn] => Array ( [0] => stdClass Object ( [iId] => 15780442 [sStatus] => pending [sType] => normal [bPaid] => false [iPaymentId] => 0 [iMerchantId] => 1681 [fSaleAmount] => 1 [fCommissionAmount] => 40 [dClickDate] => 2008-04-13 12:15:10 [dTransactionDate] => 2008-04-13 13:20:16 [dValidationDate] => 2008-04-13 13:20:16 [sClickref] => jono310 [aTransactionParts] => Array ( [0] => stdClass Object ( [sCommissionGroupName] => default [fSaleAmount] => 1 [fCommissionAmount] => 40 [iCommission] => 40 [sCommissionType] => amount ) ) ) [1] => stdClass Object ( [iId] => 15961215 [sStatus] => confirmed [sType] => normal [bPaid] => false [iPaymentId] => 0 [iMerchantId] => 1952 [fSaleAmount] => 1.99 [fCommissionAmount] => 16 [dClickDate] => 2008-04-22 21:34:35 [dTransactionDate] => 2008-04-22 22:47:14 [dValidationDate] => 2008-04-29 10:06:13 [sClickref] => user48755offer75 [aTransactionParts] => Array ( [0] => stdClass Object ( [sCommissionGroupName] => Books Direct Top Gear x 2_0_1.99_2 [fSaleAmount] => 1.99 [fCommissionAmount] => 16 [iCommission] => 16 [sCommissionType] => amount ) ) )
  10. Thanks - i got it working, i wasn't defining the variable properly first.
  11. Hi there, I just get the following using that solution Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => ) Array ( [0] => )
  12. Hi there - I current have a variable which looks like this: $productname = OrderRef:anything@testing.co.uk;ProdName:Free Trial;OrderValue:0;EPI:user12345offer1;EPI2:;TransDate:20/09/2007;AffEmail:anything@testing.co.uk But I only want this bit user12345offer1 so i want all the text between EPI: and the following ; My brain hurts and I can't figure out how to extract it, can someone please put me out of my misery, I've a feeling it's easy and i'm just not seeing it!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.