Jump to content

jairathnem

Members
  • Posts

    93
  • Joined

  • Last visited

Everything posted by jairathnem

  1. not able to get you here. you want to read what from the images? do you want to search based on file names?
  2. array_count_values(str_word_count($string, 1)) ); This will return the list of all the words in the string and their count.
  3. write a php to output JSON. Example : <?php require 'connection.php'; $term = $_GET['term']; $sql = "SELECT * FROM `table_name` WHERE `element` like '$term%'"; $sth = mysql_query($sql) or die(mysql_error()); $rows = array(); while($r = mysql_fetch_assoc($sth)) { $rows = $r; } print json_encode($rows); ?> and in Autocomplete call this php and parse the returned value. NOTE: the php isnt secure. It is just an example. Donot deploy the same code.
  4. ask the site admin. Good luck with that!!
  5. There is no magic formula to calculate the cost of a site. you will need site's analytic data if you want to roughly estimate the cost.
  6. You can only rought estimate it based on a few parameters: Avg. visitors per day. new visitos in a day. avg. stay time on the site. nav to other pages also I am curious, what are you planning to build? cost of other sites? or for your personal site?
  7. the metroalert.min.js and jquery.min.js are referenced wrong in the html file.
  8. Increasing the timeout and filesize should work. both these settings are located in php.ini file.
  9. As the error states you donot have $order_by defined anywhere in the script.You are trying to check the value, when it doesnt hold any.
  10. you will have to use javascript or jquery to acheive that.
  11. PHP will only get the server time. To get the client time use javascript. Here is a sample code from google. var currentTime = new Date() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() if (minutes < 10) minutes = "0" + minutes document.write("<b>" + hours + ":" + minutes + " " + "</b>")
  12. Hey VinnySeo. Welcome
  13. Her's how I would acheive it: make the search result output JSON, use JQuery to perform POST request on a defined confition (for ex: entered string length >3), parse JSON and display in dropdown. you can make use of autocomplete() jquery function.
  14. $x = the variable (array) = what to typecast to. In this case array $child = object of a class tid = variable of the class experts, please correct me if I am wrong.
  15. I think the answer is Bcrypt. more info here : http://stackoverflow.com/questions/4795385/how-do-you-use-bcrypt-for-hashing-passwords-in-php
  16. Traditionally what used to be done was encrypt the passwords here is the logic when registering/changing the password is encrypted(say MD5 or SHA1) and stored to DB, when logging in the logged in password field is encrypted again and matched with the value in the DB. Since the encryption is one-way it was difficult to crack it. Note : this is old and it can be cracked easily now-a-days. You are better of using rredefined password libraries used by wordpress, joomla..etc.
  17. all the values in the test one are enclosed in single quotes. Probably that's why.
  18. No ide why the message wouldn't display. do this. create a test php file and add the below code <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello. This is the message. '; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> change the to and from and visit the page.
  19. Remove the '@' before the mail function, it will let us know any errors. also try adding these headers to the mail $headers = "From: mail <$email_from>\r\n"; $headers .= "MIME-Version: 1.0" ."\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
  20. you mean to say the mail arrives. but the content is blank?
  21. It will work. You have to compare the login time with current time.
  22. try changing $body = 'Name: ' . $name . "\n\n" . 'Email: ' . $email . "\n\n" . 'Subject: ' . $subject . "\n\n" . 'Message: ' . $message; to $body = "Name: $name \n\nEmail:$email \n\nSubject:$subject\n\nMessage:$message";
×
×
  • 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.