[PHP] Create password for .htaccess file
Hi, I have an htaccess file and I want to create users and password with a php script. The problem is that I've used md5 encryp for the password and is not working. How to create the password from a php script. Thanks in advance for your help
[PHP] How to search products on my site
Hi, I have a site with some phone products. I want to search for a specific products. I use this: SELECT product_id, product_name FROM products WHERE product_name LIKE '%$search_string%' It works fine if the search string counts 1 word. But if the search string id counts 2 or 3 or more words it's not working.. How can i do this kind of search. I do not want a boolean search or a fulltext search. Thabks for any help!
Re: [PHP] Average time spent on a page
Yes, I'm looking for the algorithm. - Original Message - From: M Saleh EG To: [EMAIL PROTECTED] Cc: php-general@lists.php.net ; Frank de Bot Sent: Sunday, August 07, 2005 6:36 AM Subject: Re: [PHP] Average time spent on a page Try using one of the log reader/analysis packages available for Apache or try doing it urself. Are you looking for the algorithm? let me know. On 8/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: LOL. This got nothing to do with my question . LOL again - Original Message - From: Frank de Bot [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Saturday, August 06, 2005 10:20 PM Subject: Re: [PHP] Average time spent on a page [EMAIL PROTECTED] wrote: Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!! A hello world page will take me around 15 secs I guess... A full blown website with everything you can imagine a few months orso. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- M.Saleh.E.G 97150-4779817
Re: [PHP] Average time spent on a page
LOL. This got nothing to do with my question . LOL again - Original Message - From: Frank de Bot [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Saturday, August 06, 2005 10:20 PM Subject: Re: [PHP] Average time spent on a page [EMAIL PROTECTED] wrote: Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!! A hello world page will take me around 15 secs I guess... A full blown website with everything you can imagine a few months orso. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Average time spent on a page
Guess what? I've googled for it and nothing - Original Message - From: Burhan Khalid [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Saturday, August 06, 2005 5:07 PM Subject: Re: [PHP] Average time spent on a page [EMAIL PROTECTED] wrote: Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!! PLEASE ONLY SEND YOUR MESSAGE ONCE!!! Also, remember that google is your friend. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Average time spent on a page
Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!!
[PHP] Average time spent on page
Hi, How can i found out the average time users spent on a page. Anyone know a tutorial? Thanks in advance for your help !!!
[PHP] time()
Hi, I have the date when users registered stored in the database using time() function format. I have to search for users that are registered this week, this month and this year. How can i do that? I mean how can i found the beginning of this week? Or the beginning of this month? Thanks in advance for your help!
[PHP] Arrays
Hi, How can i destroy an array? I mean i have a loop and for each new value in the loop i want to destroy the array. Something like that: while($row = mysql_fetch_array($result)) { $product[] = $product_id; // some code here } I've tried this but doesn't work while($row = mysql_fetch_array($result)) { $product = array(); $product[] = $product_id; // some code here } Any help would be appreciated !!
[PHP] Register globals and ini_set
Hi, If i use, at the beginning of my scripts, ini_set('register_globals', 0), register globals will be turned off? Thanks
[PHP] Problem with arrays
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books ) ) and Array ( [0] = aaa [1] = bbb ) I want to join this two array and the result must be loke this: Array ( [0] = Array ( [0] = 28 [1] = Music [2] = aaa ) [1] = Array ( [0] = 5 [1] = Books [2] = bbb ) ) Thanks in advance for your help
[PHP] Problem with arrays
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books ) ) and Array ( [0] = aaa [1] = bbb ) I want to join this two array and the result must be loke this: Array ( [0] = Array ( [0] = 28 [1] = Music [2] = aaa ) [1] = Array ( [0] = 5 [1] = Books [2] = bbb ) ) Thanks in advance for your help
[PHP] Problems with multiple arrays
Hi all, I have 3 arrays: $array _ids = (id_1, id_2, id_3, id_4) $array_names = (name_1, name_2, name_3, name_4) $array_emails = (email_1, email_2, email_3, email_4) I want to create an array that contains all this arrays and then to print the array. Something like that: foreach ($full_data as $key = $value) { echo $valuebr; } and the result must be: id_1 - name_1 - email_1 id_2 - name_2 - email_2 id_3 - name_3 - email_3 id_4 - name_4 - email_4 Any help would be appreciated !!!
[PHP] Search problem
Hi, I need to build up a search module for a shop. If I make a basic search (product title for example) it is ok. $query = SELECT product_id FROM products WHERE title LIKE '%$title%'; But i need an advance search for more than one field (title, description, price, weight) The problem is that i don't know which field is filled in by the user (title, description, price or weight) I mean, the user can fill in all fields, or only price field, or title and weight etc How can i do the search? Thanks
[PHP] Mail function
Hi, I have a script which send emails using mail() function. I have 100 email addresses and i set up the script to send 1 email every 10 seconds. So, it will take 1000 seconds to send all 100 emails. My question is: If I stop the script after,let's say 12 seconds, it will send only 1 email or all 100?I mean it is possible that the server to cache all emails and send them if i stop the script? I must say that the script is run through a web browser. Thanks in advance for your help
[PHP] sleep function
Hi, I want to create a script that displays all names from a database once per second. A part of the script look like this. for ($i=0; $i$total_names; $i++) { echo namebr; sleep (1); } The scipt works fine but it displays all names at once. I want to display the first name, then refresh the browser and display the first name and the second, then the first name, the second and the third and so on. Can someone please tell me how can i do this? Thanks in advance for your help !!!
[PHP] MySql injections....
Hi, This is not the proper list to put this question but i hope you can help me. Does anyone know a good tutorial about mysql injections? Thanks a lot for your help
Re: [PHP] MySql injections....
I have a site and the other days i received a message from a guy that told me my site is vulnerable to mysql injections. I do not know how can i prevent this. The server is not configured or it's all about the script? - Original Message - From: Bostjan Skufca @ domenca.com [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, May 11, 2005 1:50 PM Subject: Re: [PHP] MySql injections Probably you mean about prevening mysql injections - or not? :) Bostjan On Wednesday 11 May 2005 11:38, [EMAIL PROTECTED] wrote: Hi, This is not the proper list to put this question but i hope you can help me. Does anyone know a good tutorial about mysql injections? Thanks a lot for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Array problem
Hi, I have a form like this: form action=products.php method=post input name=position[pos][value 1] type=text id=position[pos][value 1] value=number 1 input name=position[pos][value 2] type=text id=position[pos][value 2] value=number 2 input name=position[pos][value 3] type=text id=position[pos][value 3] value=number 3 /form For each element of the array i want to update the value in the database. For example, for position[pos][value 1] i want to update the value (number 1) in the database. Thanks in advance for your help!!!
[PHP] Problem with arrays
Hi, I have a form like this: form action=products.php method=post input name=position[pos][$value] type=text id=position[pos][$value] value=number 1 input name=position[pos][$value] type=text id=position[pos][$value] value=number 2 input name=position[pos][$value] type=text id=position[pos][$value] value=number 3 /form Note that $value from position[pos][$value] is different in all 3 fields. For each element of the array i want to update the value in the database. For example, for each value of the position[pos][$value] i want to update the database with the specific number. Something like this: $query = UPDATE table SET value = 'number 1' WHERE id='$value'; Thanks in advance for your help!!!
[PHP] Convert time
Hi, I have a database where i store the username and date when he registered. The time when he registered is using the time() function. I want to display the date he registered in this format: year, month, day, hour, minute, second. Please somebody tell me how can i do that. I know is is very stupid from me that i've stored the date when a user register using the time() function. Thank you very very much in advance for your help
[PHP] Data and time problem
Hi, I have a mysql database where i store a user name and date when he registered. The date format is like this 2005-03-17 02:41:51. How can i found out how many minutes passed from the date he registered till now. Thanks in advance for your help !
[PHP] Screen resolution in php
Hi, How can i get the screen resolutin in php. I've read that i can't this. With java i can do this. SCRIPT LANGUAGE=JavaScript document.write(Your Screen Resolution Is : ); document.write(screen.width + x + screen.height); /script My question is how can pass the screen resolution from java to a variable? It is a better way? Any help would be appreciated! Thanks