Jump to content

jmcc

Members
  • Posts

    67
  • Joined

  • Last visited

    Never

About jmcc

  • Birthday 04/16/1982

Contact Methods

  • Website URL
    http://www.jmcc.co.za

Profile Information

  • Gender
    Male
  • Location
    South Africq

jmcc's Achievements

Member

Member (2/5)

0

Reputation

  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
×
×
  • 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.