Jump to content

jmcc

Members
  • Posts

    67
  • Joined

  • Last visited

    Never

Everything posted by jmcc

  1. Hi I need to send out +- 10 000 statements to our customers. How do I prevent from being marked as a spammer? I think the daily limit is 500. Should I use a public smtp? Thanks Jay
  2. Great thanks, will give it a shot.
  3. Hi It's kinds cheating to do this but if you already have the header set use this javascript echo's by php to redirect instead of: header('location:member.php') use: function js_redirect($url, $seconds=1) { echo "<script language=\"JavaScript\">\n"; echo "<!-- hide code from displaying on browsers with JS turned off\n\n"; echo "function redirect() {\n"; echo "window.location = \"" . $url . "\";\n"; echo "}\n\n"; echo "timer = setTimeout('redirect()', '" . ($seconds*1000) . "');\n\n"; echo "-->\n"; echo "</script>\n"; return true; } js_redirect("member.php",1);
  4. Hi I have a live chat integrated into my website that uses Ajax, PHP and MySQL. When two people have the chat window open they can chat and it works fine. How can I send an alert to the person being requested to chat with, or for the chat.php page to popup automatically. It prob needs to be some function constantly running in the background check the DB for new message entries. Thanks Jay
  5. Hi I have a page that looks great without any php in it. As soon as I do a php db call all my div's align left and everything is skew. Does anyone know how this is possible and how to fix it? Thank you Jay
  6. Hi Thank you for all your help, I will upload the files to the web server. Jay
  7. Hi I am still receiving the same error---this is my code: I have a simple form that posts the vars to my php page. $file = $_FILES[file] [name]; $row = 1; if (($handle = fopen("csv/$file", "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $num = count($data); $row++; for ($c=0; $c < $num; $c++) { $msisdn = $data[$c]; echo $msisdn; // call build url function $slap_url = build_url($base_url, $username, $password, $text, $msisdn, $cost); echo $slap_url; // PHP Curl redirect $url = 'http://gateway.networks.net/v2'; $params = "$slap_url"; $user_agent = "Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)"; $ch = curl_init(); curl_setopt($ch, CURLOPT_GET,1); curl_setopt($ch, CURLOPT_POSTFIELDS,$params); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $result=curl_exec ($ch); curl_close ($ch); } } fclose($handle); } When I upload the .csv file on to the webserver my script works, but not if i call the file from local HDD
  8. Hi This is the error I get: Warning: fopen('test.csv') [function.fopen]: failed to open stream: No such file or directory in /home/sbantomh/public_html/ the .csv file is on my computer I, how do I call them from my HDD?
  9. Something like this? $csv = str_getcsv(file_get_contents($_FILES['file']['tmp_name'])); foreach($csv as $emails){ echo $emails; }
  10. Hi How do I loop through a csv file on my computer and send an email to all clients in .csv file.
  11. Saw I left out a ")" How do I read csv's from a file? $num = explode(",",file($file)); foreach($num as $msisdn){ echo $msisdn } Thanks Jay
  12. would this work? $num = explode(",",file($file); foreach($num as $msisdn){ echo $msisdn } Thanks Jay
  13. Thank you for your help
  14. So the cronjob is not a line of code in my script.php file? where must I insert this line of code? Thanks Jay
  15. Hi Thank you for the reply. Where to I add the cronjobs code? Thanks, Jay
  16. Hi Is there a way to automatically call a script every day. I want to send a information email out everyday at 6am, but don't want to go and click the send email button every day at 6 am. Thanks Jay
  17. Something like this? $var = 111,222,333,444; foreach($var as $num) { list($phone[]) = explode(',',$num); echo $num; }
  18. Hi How do I insert csv into array. Example $var = 111,222,333,444,555,666,777,888,999; How do I insert those values into an array-> array('111','222','333','444','555','666','777','888','999'); Thanks Jay
  19. Hi I saw its quite simple, all I need to know is what vars the API takes on the server and pass them through. I don't need to develop any slingshot, I can just use PHP. Thanks
  20. Hi I want to develop a Mobile Originating SMS system. Can I integrate the slingshot API in PHP? Does anyone know of any good resources to help me get going on slingshot? Thank you, Jay
  21. Hi Why is the Div below not showing in IE7? <div id="nav3" style="position:absolute; left: 610px; top: 980px;"><a href="#" clicktoshow="nav4" clicktohide="nav1,nav2,nav3,nav6,nav7,nav10,nav11"><img src="http:///images/mobility/mobility_47.gif" alt="" width="103" height="34" border="0" align="right" /></a></div> </fb:visible-to-connection> </p> </div> Thanks Jay
  22. got it. just had to put php for my fropdowns in my header. <?php> //begin JSRecordset $jsObject_suburb = new WDG_JsRecordset("suburb"); echo $jsObject_suburb->getOutput(); //end JSRecordset <?> <link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" /> <?php> //begin JSRecordset $jsObject_city = new WDG_JsRecordset("city"); echo $jsObject_city->getOutput(); //end JSRecordset <?>
×
×
  • 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.