Jump to content

QuickOldCar

Staff Alumni
  • Posts

    2,972
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by QuickOldCar

  1. The email service could be potentially marking them as spam. Have a look at phpmailer Is actually a lot to try to ensure all your emails go through. This is some helpful tips about emails http://www.rackaid.com/blog/spam-blacklist-removal/ https://sendgrid.com/blog/10-tips-to-keep-email-out-of-the-spam-folder/
  2. Maybe you should save these urls for the q to a db and pull them in your script with an id example www.myurl.com.au/hotel_details.php?hotel_id=358705&currency_code=AUD&q=64723 If you are trying to get dynamic urls appended as your own permanent links will most likely always run into this problem or others
  3. You do it with apache rewrite rules in .htaccess Here is a generator online http://www.generateit.net/mod-rewrite/index.php I think your main concern is the q parameter value is a mess I'm assuming It's always going to be different and those seem what is long Is more to this, your application also needs to interpret the new url correctly
  4. It used to always be var/www The new default web server location is var/www/html, the answer is yes The php won't get parsed unless you ran it from cli(command line interface) or in that folder Mostly due to permissions is best to do it from the public html folder You could include or require files (a php script for whatever reason) from outside of the public html folder though For instance wanting to include a list of sensitive passwords to check against stored in a csv file located in /var/passwords Btw welcome, visit php.net for some tutorials,examples and a wealth of information
  5. This pertains to links as well as content You show that you follow DMCA on your site Make the removal request process available to the requester, this is usually best done through mail but they can also do an additional email Requester should send you a written removal request Identification of original work that requester claims has been infringed. Identification of the material requester claims is infringing and needs to be removed, including a description of where it is located. Address, telephone number, and, if available, e-mail address, so the copyright agent may contact about the complaint. A statement that the above information is accurate. A statement of good faith belief that the identified use of the material is not authorized by the copyright owner, its agent, or the law. A statement, under penalty of perjury, that the requester is the copyright owner or are authorized to act on the copyright owner’s behalf in this situation Requester physical or electronic signature. Track your removals and provide some sort of proof you removed it if ever required Responding to the requester that it was removed will help them get off your back If you don't follow up on DMCA take down notices can get jailed and fines. I've dealt with all this on a video site and also my search engine.
  6. I'll tell you what I do when I want a local server and also be able to use it normally I install ubuntu server then install kubuntu desktop gui via commandline sudo apt-get update && sudo apt-get upgrade sudo apt-get install kubuntu-desktop always works for me
  7. One thing that may be causing issues is something else is using your apache port 80 skype is one of them try starting apache first, then other apps that possibly uses port 80
  8. Is there any difference running http://127.0.0.1/info.php versus http://localhost/info.php
  9. taskel may be deprecated you can just as well do it this way sudo apt-get update sudo apt-get install lamp-server
  10. install taskel first then sudo apt-get install tasksel
  11. use taskel and install it sudo apt-get update sudo tasksel install lamp-server
  12. Using GET parameter as id http://mysite.com/delete-xml-id.php?id=3 delete-xml-id.php <?php function delete_record($id, $file) { $xml = new DOMDocument(); $xml->load($file); $record = $xml->getElementsByTagName('record'); foreach ($record as $person) { $person_id = $person->getElementsByTagName('id')->item(0)->nodeValue; //$person_name=$person->getElementsByTagName('name')->item(0)->nodeValue; if ($person_id == $id) { $id_matched = true; $person->parentNode->removeChild($person); break; } } if ($id_matched == true) { if ($xml->save($file)) { return true; } } } $file = "database.xml"; if (file_exists($file)) { if (isset($_GET['id']) && ctype_digit(trim($_GET['id']))) { $id = trim($_GET['id']); if (delete_record($id, $file)) { echo "$id removed"; } else { echo "$id not removed"; } } else { echo "id missing"; } } else { echo "$file missing"; } ?> database.xml <?xml version="1.0" encoding="UTF-8"?> <database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <record> <id>1</id> <name>mark</name> </record> <record> <id>2</id> <name>bob</name> </record> <record> <id>3</id> <name>jane</name> </record> <record> <id>4</id> <name>mary</name> </record> <record> <id>5</id> <name>mary</name> </record> </database>
  13. You were right, was a cached browser page, don't know, maybe they do checks their domain js upon login
  14. as for any seo purposes both would appear equally important, the words are parsed from the string by the search engines the first link has an advantage being a more descriptive link because will contain more words the second link using the single word will most likely be better for that particular word when you write your articles try to use the important words first More important for seo is meta data within the top of your page source <title>My Title</title> <meta name="description" content="This is what my site is about" /> <meta name="keywords" content="list,keywords,what,your,site,pertains,to,with,a,comma" /> Then additional information can be added using opengraph or oembed
  15. I noticed you have mysqli enabled now, maybe can get somewhere now.
  16. If you ever decide to come back and read this.... try enabling the extensions as kicken said in php.ini extension=mysqli.so extension=pdo.so extension=pdo_mysql.so if you need to install it back up your stuff first I noticed in your configure seems to be these './configure' '--disable-fileinfo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr' I normally use terminal apt-get install php5-mysqlnd since you said using whm and cpanel http://enterprisevpssolutions.com/evdsportal/knowledgebase/article/197/how-to-install-mysqli-in-cpanel
  17. It's entirely possible to scrape sites, but you should get their permission. They have the curseforge api , That's the better way to do this. http://www.curseforge.com/projects/
  18. You need to find a friend with a static ip so they can add your ip into whm's cpHulk whenever need to.
  19. Went over this with using session and mysqli_insert_id The mysqli_insert_id() function returns the ID generated by a query on a table with a column having the AUTO_INCREMENT attribute. If the last query wasn't an INSERT or UPDATE statement or if the modified table does not have a column with the AUTO_INCREMENT attribute, this function will return zero. The users id should be the unique item to identify them, they can change their name,email,and ip's As for ip's, the simplest I can describe it. External/Public Internet service providers assign an ip to a customer, some ip's are static (fixed) while others are dynamic (changes), so using an ip is not reliable. Internal/Local Totally different, that is the per computer internal ip in a network...subnetwork
  20. I just tried it and worked fine using this code this was result once got to track.php Your SIM will be blocked if you do it will be a lot of time to enter. Allowed 2 registration per 24 hours ! Part of the problem and were being blocked? And seems to work, redirect as well made a folder called tmp to store cookies index.php <html> <head> <title></title> <link rel="stylesheet" href="styles/main.css" type="text/css" media="print, projection, screen"> </head> <body> <center> <br><br><br><br><br><br><br><br> <div style="border:1px solid #000000;background:#EEEEEE;padding-top:15px;padding-bottom:5px;width:350px;"> <font size=+2>Sign In Form</font><br> <form action="curl.php" method="post"> <input type="hidden" name="action" value="logon"> <table border=0> <tr> <td>Username:</td> <td><input name="username" type="text" size=30></td> </tr> <tr> <td>Password:</td> <td><input name="password" type="password" size=30></td> </tr> <td></td> <td align="left"><input type="submit" value="Sign In"></td> </tr> <tr> <td align="center" colspan=2><font size=-1>Don't have an Account ?</font> <a href="?action=newuser"><font size=-1 color="#0000EE">Sign UP Now !</font></a></td> </tr> </table> </form> </div> <br> </center> </body> </html> curl.php <?php if(isset($_POST['username']) && trim($_POST['username']) !=''){ $username = trim($_POST['username']); } if(isset($_POST['password']) && trim($_POST['password']) !=''){ $password = trim($_POST['password']); } if(isset($_POST['action']) && trim($_POST['action']) !=''){ $action = trim($_POST['action']); } if(isset($username) && isset($password) && isset($action)){ $url="http://www.bulksms2cash.com/index.php"; $postdata = array("username"=>$username, "password"=>$password, "action" => $action); $fields = http_build_query($postdata); //builds the query $ch = curl_init(); $cookie = tempnam('tmp','cookie'); $cookie_file_path = "tmp/"; curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"); curl_setopt ($ch, CURLOPT_TIMEOUT, 60); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_POST, count($fields)); curl_setopt($ch, CURLOPT_POSTFIELDS,$fields); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path); $result = curl_exec ($ch); curl_close($ch); header('Location: track.php'); exit(); } else { die('Parameters missing'); } ?> track.php <html> <div style="position: absolute; left: 0px; top: 0px; border: solid 2px #555; width:594px; height:332px;"> <div style="overflow: hidden; margin-top: -100px; ;"> </div> <iframe src="http://www.bulksms2cash.com#work" scrolling="no" style="height: 800; border: 0px none; width: 1280; margin-top: -60px; ; "> </iframe> </div> </div> <body> </html>
  21. Service Temporarily Unavailable
  22. How did you set up the server, I think you missed mysqli in there http://php.net/manual/en/mysqli.installation.php sudo apt-get install php5-mysqlnd but pretty sure would take out phpmyadmin and need a reinstall I always install server versions then a desktop gui on top but can always configure/add lamp this way sudo apt-get install tasksel sudo tasksel
×
×
  • 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.