Jump to content

host-provider

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

host-provider's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I want to make something very important, i hope here many masters are available who can guide me and send me solution... I have a website abc.com it is opening from eveywhere, it has login account system when i login to that website it says your location is not FGH you must be login from FGH etc.. Now my concern is i am from FGH website and logins work for me but when my customers want to login they use VPN and login to that website.. I want to make a solution for them. For example i want to create website or something in php where users come and browse website and simply login.. i dont know i have to use iframe or proxy server... I will get proxy for FGH country set to this script or iframe and make it to my domain.com where users come and browse site and login is there any method please tell me...
  2. Hello, I have a code which i use to check mysql server is up or down it is showing correct result but if i want to add another ip of same server too how it is possible? <?php $server = "localhost"; $portg = "3306"; #$portl = "login server port"; $timeout = "2"; $game = @fsockopen("$server", $portg, $errno, $errstr, $timeout); echo "<br>SERVICE: "; echo $game ? "<font color=\"#00CC33\"><b>ONLINE</b></font>" : "<font color=\"red\"><b>OFFLINE</b></font>"; ?>
  3. I see actually i have basic information about php i am not an advance user.. Thats why i was looking for the code to add in index.php
  4. Hello I have added code but still same issue i am still able to open m.domain.com in my desktop browser it is not redirecting.. <?php // if user agent does not match a mobile if(!preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||!preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i',substr($useragent,0,4))) header('Location: http://www.domain.com'); // redirect to desktop version ?>
  5. Hello, I have desktop and mobile layout both working fine.. I have added code to desktop site which is redirecting mobile users to mobile layout auto: <?php if ($version != "desktop") { $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i',substr($useragent,0,4))) header('Location: http://m.domain.com'); } ?> Now i want to add some code in mobile layout so it will auto redirect desktop pc to main site if they will open m.domain.com in computer please help..
  6. Please tell me is it fine? @$db = mysql_connect("IP", "username", "password"); if (!$db) { @$db = mysql_connect("ip", "username", "password"); } if (!$db) { $error .= 'System Is Busy Please Wait Some Moment.'; }
  7. you sure if both database are connected it will send from one first?
  8. <?php $mytext = $_REQUEST['message']; if (strlen ($mytext) > 250) die("Unable to send your character limit is over 250"); $text_explode = explode(" ", $mytext); $count_explode = count($text_explode); $count_text = count($void_text); for ($i=0; $i<$count_text; $i++) { for ($j=0; $j<$count_explode; $j++) { if ($text_explode[$j]==$void_text[$i]) $words = "$words, $text_explode[$j]"; } } if (!empty($words)) { $error .= 'You have entered valgur or suspecious words'. $words.'\n'; } if (empty($_REQUEST['phone']) or strlen($_REQUEST['phone'])<11) { $error .= 'Enter Valid Phone Number e.g. 000000000000.<br><br><a href="index.php">Click here to go back, re-enter phone number!</a>'; } #if (empty($_REQUEST['name']) or strlen($_REQUEST['name'])<7) { #$error .= 'Please enter your name'; #} #if (empty($_REQUEST['message']) or strlen($_REQUEST['message'])<7) { #$error .= 'Please enter message'; #} @$db = mysql_connect("localhost", "username", "password"); if (!$db) { $error .= 'System Is Busy Please Wait Some Moment.'; } if (!empty($error)) { ?> <font color="#FF0000"><b><?php echo $error ?></b></font> <?php } else { mysql_select_db("database",$db); #$phone = $_POST['phone']; $phone = ltrim($_POST['phone'], 0); $name = $_POST['name']; $message = $_POST['message']; $phonenum = "+92$phone"; $message = ("From $name:\n$message\n[www.domain.com]"); $DirectionID = "2"; $TypeID = "1"; $StatusID = "1"; $StatusDetailsID = "200"; $ToAddress = "1"; $ChannelID = "0"; $BillingID = date("d/m/Y g:i a"); $FromAddress = $name; $CharsetID = "1"; $ToAddress = $phonenum; $Body = $message; $Subject = $_SERVER['REMOTE_ADDR']; error_reporting(0); session_start(); if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) { $query = "INSERT INTO Messages (DirectionID, TypeID, StatusDetailsID, StatusID, ChannelID, BillingID, FromAddress, Subject, CharsetID, ToAddress, Body) VALUES ('$DirectionID', '$TypeID', '$StatusDetailsID', '$StatusID', '$ChannelID', '$BillingID', '$FromAddress', '$Subject', '$CharsetID', '$ToAddress', '$Body')"; //echo "<b>Recipient Number: $phone<br> Sender Name: $name<br> Message: $message<br><br><br>"; echo "<b>Your SMS Sent Successfully To: 0$phone <br><br><a href='index.php'>Go Back To Send More Text SMS Now!</a></b>"; unset($_SESSION['security_code']); } else { echo "<b>Error: wrong security code</b><br><br>"; print "<a href='index.php'>Click here to go back, re-enter security code</a>"; } $result = mysql_query($query); { ?> <br> <br> Advertisement <?php } } error_reporting(0); mysql_close(); //// ?> look there i want to make connection of second database everything will be same just host name will be changed how to make it possible?
  9. No it is just an sms site, i have local database and i have 2 networks on system both has static ip.. So if one network down it should connect from another ip thats why want to make database settings like this.. if you want to help please tell me can i send u code in pvt?
  10. Hello Sir, I need one help in my php file.. I have one database information in php file where form query go but when website lost database connection it shows error system is busy.. Is it Possible i add 2 database informations if one get lost query pass to another database if both lost then it show system is busy.. If you want i will show u my coding please reply..
  11. Hello, I have found this forum very useful and i hope i will get some help from here. I am nill in php so if someone help i am thankful, I actually want to know how to add facebook login in php files.. I have 2 pages of sms script one is index.php where is form like name, number, textbox and captcha then send button.. and second file is send.php where has api to send sms. I have seen some sites there is button login with facebook after login there sms form shows and in name field there person name already written and field locked and in number field there we have to write number and text box, captcha.. without login sms form not showing... So how to do this can someone help me? if some one really want to help i can also give him sample of site where i have seen this and i need exact like this pm me for sample...
×
×
  • 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.