Jump to content

kosaks

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by kosaks

  1. Thanks guys.. My problem is solve now.. if(trim($file) == '#3#'){ echo "No results found"; }else{echo "results has been found"; }
  2. Hello sir Sorry if you did not understand my reply. I myself is being puzzled on my work. When i use the API (Please refer to the API code earlier) it returns this as the output.. #1# "4","+447980987654","+447781537583","","2009-07-08","10:38:15","hello "","" world","Green" "5","+447980987654","+44776230146","","2009-07-08","10:38:55","hello world","Green" otherwise if it does have have any output to return.. this is the returned output of the API #3# Im thinking why my condition does not work well.. if i use this code for my condition.. if($file == '#3#'){ echo "No results found"; }else{ echo "results has been found"; } Does this makes sense sir? thanks
  3. yes sir.. it shows the output of the API..
  4. Hello sir.. this is the code.. <?php $sc = new SoapClient('http://www.textapp.net/webservice/service.asmx?wsdl'); $params = new stdClass(); $params->returnCSVString = true; $params->externalLogin = 'SU11202050'; $params->password = 'jpdxcPK2'; $params->number = '+447537404702'; $params->keyword = 'test'; $result = $sc->__call('GetSMSInbound', array($params)); $file = $result->GetSMSInboundResult; if($file == '#3#'){ echo "No results found"; }else{ echo "results has been found"; } echo $file; ?> thanks
  5. Hello.. I don't have any error reporting installed I've been testing it on my domain.. If a use mail() function without HTML body i can actually send an email.. However when i have an HTML body it wont send an email. thanks
  6. Hello sir This is actually being returned by the API #3# if it does not see any result. You can check it here http://developer.textapp.net/WebService/Methods_GetSMSInbound.aspx and for the transaction code #3# you can refer it here http://developer.textapp.net/WebService/TransactionCodes.aspx.. Dont know why the condition is not working.. thanks
  7. Hello Im making html mail for my project. However the mail() function of PHP does not send my email. <?php $message = ' <html> <head> <title>Test Email</title> </head> <body> <h4>This is a test email message from me</h4> <br/> <p><b>Lorem Ipsum<b><br/> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </body> </html> '; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'To: me <darkstarnexus@yahoo.com>' . "\r\n"; $headers .= 'From: Sample <sample@mail.com>' . "\r\n"; $headers .= 'Cc: Sample2 <sample2@mail>' . "\r\n"; $headers .= 'Bcc: sample3@mail' . "\r\n"; if(mail('darkstarnexus@yahoo.com', 'Test Html Email', $message, $headers)){ echo "mail delivered"; }else{echo "mail is not delivered";} ?> Can some tell me why?
  8. Hello.. Thanks for your help.. Sadly it does not solve my problem.. I've check the result again on the API and it returned #3# as the result.. However by using the if statement if($file == '#3#'){ echo "No results found"; }else{ echo "results has been found"; } the result is results has been found which is wrong the result should be No results found since my API does not see any result.. Does this has something to do with the returned string of my API? thanks
  9. Hello to everyone I would like to ask for this simple question.. Im trying to put if and else condition on my php code. However this condition is not working.. if($file == #3#){ echo "No results found"; }else{ echo "results has been found"; } This variable $file is the result after i used an API.. If the API does not see any results they would return #3# as the result. This means they returned a transaction code of 3 which you can see here http://developer.textapp.net/WebService/TransactionCodes.aspx means that there was nothing to return. The condition does not function well even if i make 3 or #3# as part of the condition. Can you help me guys? thanks
  10. Hello to everyone Does anyone knows how to schedule php script? I have a script that saves the scheduled task on MYSQL database. What i want is that when the scheduled task reach its due date, the php script will initiate automatically without any user interaction. I've tried using Windows Scheduler but it will not solve my problem because windows scheduler only runs when it reaches its scheduled time. Only then the script will initiate. Please help me guys. I will really appreciate all the help i cant get. thanks in advance
×
×
  • 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.