Re: [PHP] Re: get ip of visitors

2002-04-23 Thread Claudiu

$ipaddr=getenv(REMOTE_ADDR);


Cam asta ar fi...


On Tue, 23 Apr 2002, Cosmin wrote:

 Ya I found
 $ip = gethostbyname($REMOTE_ADDR);
 Thanks anyway

 Cosmin

 Cosmin Vlasiu [EMAIL PROTECTED] wrote in message
 007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL PROTECTED]...
 Hello,
 How can I take the IP of the visitator of my php page?
 not gethostbyname...
 I need the ip of any visitator not for the specified visitator.

 Thank you

 Cosmin




 --
 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] reset auto_increment field mysql

2002-03-13 Thread Claudiu

It continues incrementing the id field from where it left..
But i found the solution on the web;
it's as simple as :
TRUNCATE mytable; (which deletes the contents and also resets
auto_increment field to 0)

Thanks !

On Tue, 12 Mar 2002, Rick Emery wrote:

 It worked for me.

 What results did you get?


 -Original Message-
 From: Claudiu [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 12, 2002 8:51 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] reset auto_increment field mysql


 I wish it was that simple...
 No.. It doesn't work this way...

 On Tue, 12 Mar 2002, Rick Emery wrote:

  your query is:   DELETE FROM mytable;
 
  -Original Message-
  From: Claudiu [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 12, 2002 5:09 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] reset auto_increment field mysql
 
 
  I have a mysql table which contains an id field which is set to
  auto_increment.
  I have a script which empties this database at regular intervals.
  My problem is that the auto_increment field won't reset to 0 after
  deleting all of tha data, but continue incrementing from where it left.
 
  How can i solve this problem..
  I want id to reset to 0 when i delete the contents of the table.
  Can someone 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 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] Pattern matching in PHP

2002-03-13 Thread Claudiu

Hello!

I have a number... say 12234109 i want to transform it to 12,234,109
or 10312 transformed to 10,312 ... i guess you got my point..


Is there a way doing this... I believe pattern matching...but i dont know
how to do it...
Or any other solution?
Thanks...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] reset auto_increment field mysql

2002-03-12 Thread Claudiu

I have a mysql table which contains an id field which is set to
auto_increment.
I have a script which empties this database at regular intervals.
My problem is that the auto_increment field won't reset to 0 after
deleting all of tha data, but continue incrementing from where it left.

How can i solve this problem..
I want id to reset to 0 when i delete the contents of the table.
Can someone help?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Claudiu

I wish it was that simple...
No.. It doesn't work this way...

On Tue, 12 Mar 2002, Rick Emery wrote:

 your query is:   DELETE FROM mytable;

 -Original Message-
 From: Claudiu [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 12, 2002 5:09 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] reset auto_increment field mysql


 I have a mysql table which contains an id field which is set to
 auto_increment.
 I have a script which empties this database at regular intervals.
 My problem is that the auto_increment field won't reset to 0 after
 deleting all of tha data, but continue incrementing from where it left.

 How can i solve this problem..
 I want id to reset to 0 when i delete the contents of the table.
 Can someone 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] stripslashes in web forms

2002-03-04 Thread Claudiu

Here is the ideea i have a string variable $test that contains let's
say : 17
Normally the output on the screen of this string would be echo $test; ---
17 \

There is this function stripslashes which gives me the oportunity to
output exactly what i want i mean 17  but this doesnt seem to work
in an input box in a web form it outputs only 17 and somehow misses the
  What is there to do?

Thanks in advance
Claus



-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp