[PHP] Create password for .htaccess file

2005-09-03 Thread virtualsoftware
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

2005-08-09 Thread virtualsoftware
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

Re: [PHP] Average time spent on a page

2005-08-07 Thread virtualsoftware
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

Re: [PHP] Average time spent on a page

2005-08-06 Thread virtualsoftware
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

Re: [PHP] Average time spent on a page

2005-08-06 Thread virtualsoftware
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

[PHP] Average time spent on a page

2005-08-05 Thread virtualsoftware
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

2005-08-05 Thread virtualsoftware
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()

2005-07-29 Thread virtualsoftware
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

[PHP] Arrays

2005-07-12 Thread virtualsoftware
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

[PHP] Register globals and ini_set

2005-07-08 Thread virtualsoftware
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

2005-06-24 Thread virtualsoftware
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books

[PHP] Problem with arrays

2005-06-24 Thread virtualsoftware
Hi, I have 2 arrays: Array ( [0] = Array ( [0] = 28 [1] = Music ) [1] = Array ( [0] = 5 [1] = Books

[PHP] Problems with multiple arrays

2005-05-23 Thread virtualsoftware
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

[PHP] Search problem

2005-05-21 Thread virtualsoftware
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

[PHP] Mail function

2005-05-17 Thread virtualsoftware
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

[PHP] sleep function

2005-05-12 Thread virtualsoftware
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

[PHP] MySql injections....

2005-05-11 Thread virtualsoftware
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....

2005-05-11 Thread virtualsoftware
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

[PHP] Array problem

2005-03-25 Thread virtualsoftware
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

[PHP] Problem with arrays

2005-03-25 Thread virtualsoftware
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

[PHP] Convert time

2005-03-18 Thread virtualsoftware
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

[PHP] Data and time problem

2005-03-17 Thread virtualsoftware
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

2005-03-15 Thread virtualsoftware
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