Jump to content
xisto Community

eddygalvin

Members
  • Content Count

    44
  • Joined

  • Last visited

Everything posted by eddygalvin

  1. hello, here is a script that was written to connect with a desktop java application. ---its a script that sends request from the desktop application to the web server and transfer the results back to the desktop application. it is a sort of relay script. please i need explanation that will help understand what the script is actually doing and how it works. any resource on php desktop applications connections would be of help.
  2. "So please you have to check with your FTP client your files or your script and try to research about the posibility of a DOS attack althougth I doubt about it because now almost all the hosting providers have DOS protection and some providers don?t have this feature in general but they offer for a few bucks this feature for some clients that want to be protected from a DOS attack.Dos attack? i know nothing about that but i am going to find out more about it.i checked the access log and found that all the bandwidth was only used by the http traffic.this was as a result of the proxy script that was running on the web server. the proxy script sucked up all the bandwidth.------------------------------------------------------- i have been able to find some work around it. doing some tweaking on the script.this will hopefully reduce the amount of bandwidth used.-------------------------------------------------------
  3. ---------------------------------- ---------------------------------- has anyone encountered this kind of challenge previously? help, these my recripts are eating up the bandwidth.
  4. i have checked the ip log i see very large spikes followed by periods of low transfer. but i cant find out the files that are being accessed most frequently. please how do i check the amount of bandwidth used by those files. thanks.
  5. i have just contacted the host provider about the issue.i checked the logs and the traffic consumption and all i see is just HTTP consumption for two day and 7gig exhausted.i think something is going wrong.
  6. hello, i have a project to setup a relay sript this will transfer infomation sent for my desktop appliction connect to other servers.but i have observed that the badwidth usage of my webserver has tremendiously increased. i would like to include a php code that will restrict the bandwidth usage of the php scripts relay scripts installed on the webserver, but i dont know if such php code exist, i have tried other way to handle this problem also tried reducing the php scrips execution time. i think there is a more efficient way to handle this.please i need help handling this issue. i also like to include automated action(task) if any of the scrips exceeds the bandwidth set.
  7. hello,i recently setup a hosting account to test run a proxy with my desktop application. i signed up for a 10gig monthly bandwidth.But i have noticed something about the bandwidth consuption has been relatively high. more than 7gig in less than 48 hours. i would like to know what could have caused the increase in bandwidth consumption. thanks
  8. hello i have tried downloading XDEBUGGER please i need help on how to install it. i use windows xp. all that is contained in the software is some zipped file. do i need to install the binaries on my system or on the server?.
  9. thanks the error has been resolved and the script is working perfectly well.
  10. thanks, but the value of the sms colume is set to 1 on the database. i think this aspect of the scripts generates the error "$recipients = explode(",", $to);$cost = count($recipients) * $balance; if ($cost > $left) { $error[] = 'insufficient units to send sms.'; }"
  11. hello need a bit of help on this code, it give an 'insufficient units to send sms.' <?include "igwt.php";include "mysql.php";include "../../api/smsapi.php";session_start(); $message = $_POST[message];$to = $_POST[receiver];$from = $_POST[from];/* if (strlen($to) == 10){$error[] = "You have to specify the country code, too. Eg. 13333333333";} */if ($_SESSION['username'] == ''){include "loginerror.php";die;exit;break;}$check = mysql_query("SELECT name, firstname, active, sms FROM users WHERE username = '$username'");$row = mysql_fetch_row($check); $_SESSION['name'] = $row[0];$_SESSION['firstname'] = $row[1]; $_SESSION['active'] = $row[2];$_SESSION['sms'] = $row[3];$_SESSION['username'] = $username;$left = $_SESSION['sms'];$on = $_SESSION['active']; // check the mobile number$atom = '[-a-z!#$%&\'*+/=?^_`{|}~]';if (eregi($atom, $to)) { $error[] = 'Invalid mobile phone number';}if ($left == '0'){$error[] = 'Not enough SMS credits to deliver this message.';}if (empty ($to)) { $error[] = 'You not specify destination address (TO)!'; }if (empty ($from)) { $error[] = 'You have not specified any sender id!'; }if (strlen ($message) > 465) { $error[] = 'Your message is too long'; }if ($on == 'no'){$error[] = 'Your account status is not active.';}if ((strlen ($message)) <= 160) { $balance = 1; } else { //greater than 160 $count = ((strlen ($message)) / 153); if ($count <= 3 && $count >2) { $balance = 3; } if ($count <= 2 && $count >1) { $balance = 2; } if ($count <= 4 && $count >3) { $balance = 4; } } $recipients = explode(",", $to);$cost = count($recipients) * $balance; if ($cost > $left) { $error[] = 'insufficient units to send sms.'; } if (!$error){mysql_query("UPDATE users SET sms = sms-'$cost' WHERE username = '$username'");$tudei = date('Y-m-d');mysql_query("INSERT INTO sms (username, message, date, tono, fromno) VALUES('".$username."','".$message."','".$tudei."','".$to."','".$from."')") or die(mysql_error());$mysms = new sms();$results = $mysms->send($to,$from,$message);}echo $sus;?> Notice from rvalkass: All code needs to have code tags around it.
  12. hello my cents has not updated for some time now at least more than 48 hours? may be mycent is not working or there is something wrong.
  13. hello i would like to get more tips on the best trading strategies, having to make the decision between online EA trading or manual trading? i trading manually has not realy been easy, it would be needfull if you can share your trading strategies as i would like to learn some more.
  14. hello i just started php and i would like to include a signup form to my site. i would need to some ready made scripts to get a jump start, form by html website, any help will be greatly appreciate thank you.
  15. hello i would like to setup a bulk sms website where users will be able to do the following1.users can recharge thier account with recharge vouchers2.send credits to other users on my site and have a referrer system.3.give a signup free sms to my users.I have made some research and i learnt that i require a gateway API to send sms intranet. this i have already done. i would like to know which software or script to install on my webserver that will give those features listed above thanks.thanks
  16. thanks the problem is now solved. i simply delected the line.php function submitSignUpForm()
  17. hello i have written an php to send signups to a webpage on a different sever. But when textrunning, i got a warning error Although the signup process was complete this warning would bounce vistors off my site. i have checked but have not found what was wrong with the script. i have attached the scripts below. Any help on resolving this issue will be highly appreciated. thanks. this is the first script SendSignupHttp.php { /*Require the PostRequest function for posting the API request to the server */ require ("PostRequest.php"); $resellerusername = "rock"; $isReseller = $_POST['rbIsReseller']; $username = $_POST['txtUserName'] ; $password = $_POST['txtPassword'] ; $companyname = $_POST['txtCompany']; $firstname = $_POST['txtFirstName']; $lastname = $_POST['txtLastName']; $cellphone = $_POST['txtCellPhoneNumber']; $email = $_POST['txtEmail']; $address = ""; $city = $_POST['txtCity']; $state = $_POST['txtState']; $country = $_POST['txtCountry']; $emailtosms = "0"; /* ================================================== SUBMIT A REQUEST TO SIGN UP VIA THE HTTP API =====================================================*/ // submit these variables to the server $data = array( 'ResellerUN' => $resellerusername , 'CustomerUN' => $username , 'IsReseller' => $isReseller, 'FN' => $firstname, 'LN' => $lastname , 'EMAIL' => $email , 'COMPANY' => $companyname , 'ADDRESS' => $address , 'CITY' => $city , 'STATE' => $state , 'COUNTRY' => $country , 'CELL' => $cellphone , 'EmailToSms' => $emailtosms, 'PASSWORD' => $password); // send a request to the API url list($header, $content) = PostRequest("http linenums:0'><?php function submitSignUpForm(){ if(isset($_POST['txtUserName'])) { /*Require the PostRequest function for posting the API request to the server */ require ("PostRequest.php"); $resellerusername = "rock"; $isReseller = $_POST['rbIsReseller']; $username = $_POST['txtUserName'] ; $password = $_POST['txtPassword'] ; $companyname = $_POST['txtCompany']; $firstname = $_POST['txtFirstName']; $lastname = $_POST['txtLastName']; $cellphone = $_POST['txtCellPhoneNumber']; $email = $_POST['txtEmail']; $address = ""; $city = $_POST['txtCity']; $state = $_POST['txtState']; $country = $_POST['txtCountry']; $emailtosms = "0"; /* ================================================== SUBMIT A REQUEST TO SIGN UP VIA THE HTTP API =====================================================*/ // submit these variables to the server $data = array( 'ResellerUN' => $resellerusername , 'CustomerUN' => $username , 'IsReseller' => $isReseller, 'FN' => $firstname, 'LN' => $lastname , 'EMAIL' => $email , 'COMPANY' => $companyname , 'ADDRESS' => $address , 'CITY' => $city , 'STATE' => $state , 'COUNTRY' => $country , 'CELL' => $cellphone , 'EmailToSms' => $emailtosms, 'PASSWORD' => $password); // send a request to the API url list($header, $content) = PostRequest("http://74.126.82.44/smsapi/CustomerSignUp.aspx?", $data); // display the result of the request //echo $content . '<br>'; $tok = strtok($content, " "); //Split the $content result into words if($tok == "OK") //Success { //Redirect user to the signup thank you page header("Location: signup_thankyou.html"); } else{ //Display the full error message $tok = strtok(" "); $tok = strtok(""); echo $tok . "<br>"; } }}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;<html xmlns="http://www.w3.org/1999/xhtml/;<head><meta content="en-us" http-equiv="Content-Language"><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Untitled 1</title></head><body><table align="center" border="0" cellSpacing="0" width="80%" > <tr> <td style="PADDING-TOP: 10px" vAlign="top" colspan="2"> <h3 align="center">Your enteries have been received 's Back Button to go back</h3> </td> </tr> <tr> <td style="PADDING-TOP: 10px; font-weight:bold; color:red" valign="top" colspan="2" align="center"> <?php submitSignUpForm(); ?> </td> </tr></table></body></html> this is the secound script PostRequest.php <?php /*=============================================================================================** The function to post a HTTP Request to the provided url passing the $_data array to the API===============================================================================================*/ function PostRequest($url, $_data) { // convert variables array to string: $data = array(); while(list($n,$v) = each($_data)){ $data[] = "$n=$v"; } $data = implode('&', $data); // format --> test1=a&test2=b etc. // parse the given URL $url = parse_url($url); if ($url['scheme'] != 'http') { die('Only HTTP request are supported !'); } // extract host and path: $host = $url['host']; $path = $url['path']; // open a socket connection on port 80 $fp = fsockopen($host, 80); // send the request headers: fputs($fp, "POST $path HTTP/1.1\r\n"); fputs($fp, "Host: $host\r\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n"); fputs($fp, "Content-length: ". strlen($data) ."\r\n"); fputs($fp, "Connection: close\r\n\r\n"); fputs($fp, $data); $result = ''; while(!feof($fp)) { // receive the results of the request $result .= fgets($fp, 128); } // close the socket connection: fclose($fp); // split the result header from the content $result = explode("\r\n\r\n", $result, 2); $header = isset($result[0]) ? $result[0] : ''; $content = isset($result[1]) ? $result[1] : ''; // return as array: return array($header, $content);}?>
  18. Hello,any help on designig a bulk sms site that sends text messages to mobile phones, the site would have the following features-manage users with an sms credit points for sending messages-have refereer options for members-members would be able to recharge thier accounts with voucher-sms scheduled delivery.-embede API with any sms gateway.-manage adresse bookAny help on the software or scripts to install on the webserver that would give these features would be highly appreciated. thanks you contributions highly needed.
  19. Hello i'love this thread and would like to build a wapsite where do i start from?
  20. Hello, have a web site but have not made a dine out of it (if i'm not paying for it). I am curious about making money with a website please do show us.
  21. Hello, i'm not convinced about google adsense. And just need a testimonia of who has been paid cash!
  22. Hello great post. Its 3years ago this stuff was posted. I would like to know if it still works now. Do they pay for downloads?
  23. Hello, i any help on how to generate traffic to my web site? I have tried google adsense only to get the account blocked after 150dors virtual cash.
  24. Hello interested in the online money making. Firstly i started with ptc sites of which most were scam. Also tried online investing and would appreciate more money making suggestions. Thanks
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.