[PHP] converting date into database date format(newbie)

2003-08-29 Thread Anil Garg
Hi, I am a newbie to php. I am reading date in the format "08-Aug-03" from a text file. While writing this date into the myqsl database's date column it shows '00-00-'. Is there a function or some other way to convert "08-Aug-03" type of dates in to format which is acceptable by date field of

[PHP] e-mail

2002-12-26 Thread Anil Garg
hi i found a 'formmail' scripts from somewhere.. the problem isthe email which i get from this scripts has 'unprivilaged user' in the 'from' field. mail($form['recipient'], $form['sublect'],$mailbody, "From:Web User"); if i use this...in the from field..it says '[EMAIL PROTECTED]' I just nee

[PHP] email

2002-12-26 Thread Anil Garg
hi i found a 'formmail' scripts from somewhere.. the problem isthe email which i get from this scripts has 'unprivilaged user' in the 'from' field. mail($form['recipient'], $form['sublect'],$mailbody, "From:Web User"); if i use this...in the from field..it says '[EMAIL PROTECTED]' I just nee

[PHP] addslashes and remove slashes.

2002-10-02 Thread Anil Garg
Hi, Is it so that in php 4.2.3 we have to do both..."addslashes" and "removeslashes" ?? coz in one of the older versions the things are goin fine without using "removeslashes" but it doesnet seem to be the case in php4.2.2. thanx and regards anil -- PHP General Mailing List (http://www.php.n

[PHP] php 4.2.3 giving prob.

2002-10-02 Thread Anil Garg
hi, i am facing a strange problem i am using php 4.2.3 the url says "http://ipaddress/admin/add_doc.php?id=264&mode=add";. but in the php file when i try to print $id and $mode it couldnt print the values.. but in some other files it successfully reads the parameters from url. moreover, the same

[PHP] comparison of apache 1.3.x and 2.x

2002-10-01 Thread Anil Garg
Hi, Thanx for you mails. As per your suggestion i have decided to install apache 1.3.26(latest 1.3.x) with php-4.2.3. But, one thing still boggling me(and i couldnt find any documentaion about that) is that whats the major difference between apache1.3.x series and apache 2.x series...for what rea

[PHP] apache2.x and php

2002-10-01 Thread Anil Garg
Hi, i came to know from someone that i can *not* make php a shared module in apache 2.x .It works only in 1.3x. If thats true can someone point me to some link saying the same. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] vulnerabilities??

2002-09-30 Thread Anil Garg
hi, Is there any version of php and apache for which there are no known vulnerabilities?? regards anil :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing php - 4.2.3 with apache - 2.0.40

2002-09-30 Thread Anil Garg
Hi, I am using following versions: php - 4.2.3 apache - 2.0.40 I am reffering to intallationg intruction at : http://www.php.net/manual/en/install.apache.php while intalling php i use the following: ./configure --prerfix=/usr/local -- with -mysql = /usr/local/msyql

[PHP] intalling php.

2002-09-30 Thread Anil Garg
Hi, I want to upload my website..i had a machine on local lan which had already php installed on it...so i made my website there.. Now on a news new unit. I am trying to install php on free bsd machine...the apache webserver is runniing fine.. on installing php it doesnt edit lines like:

[PHP] getting ip address of the user.

2002-09-24 Thread Anil Garg
hi, Can i get the ip-address of the machines who accessed my website?? Plz give the pointer that on what lines shall i start for doing so. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apache problem......

2002-09-24 Thread Anil Garg
hi in my httpd.conf i have added a virtual host as: # General setup for the virtual host DocumentRoot "/netvcr/www/niksun" ServerName niksun.com #ServerAdmin [EMAIL PROTECTED] ErrorLog "|/usr/local/sbin/rotatelogs /var/log/httpd-error.log 172800 10" TransferLog "|/usr/local/sbin/rotatelogs /va

[PHP] installing php-4.2.3

2002-09-11 Thread Anil Garg
hi, i am a newbie to php... i have downloaded php-4.2.3.tar.gz from http://www.php.net/downloads.php can someone please point me to the right documentaion from where i can know what to do next.. I am using FreeBSD-4.2. thanx and regards anil -- PHP General Mailing List (http://www.php.net/)

[PHP] is php-4.2.3 a stable version?

2002-09-11 Thread Anil Garg
Hi, i am using freebsd4.2 I couldnt find if the latest php-versiono 4.2.3 a stable version ?? i mean shall i use 4.2.2 or 4.2.3 ? thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] is php4.2 supported on freebsd-4.2

2002-09-11 Thread Anil Garg
Hi, i am using php.4.1.2. on freebsd 4.2 i want to upgrade from 4.1.2 to 4.2.2... The problem is: 1. Is php 4.2.2 supported on freebsd-4.2 ? 2. Can this happen that after upgrade(of php).some code doesnt work on 4.2.2 which was working on 4.1.2. thanx and regards anil -- PHP General

[PHP] which version to use?

2002-09-06 Thread Anil Garg
hi What version combinations of php and mysql should be used? regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] creating mail on submitting a form.

2002-09-03 Thread Anil Garg
hi, In a form i have several text area.when i submit the form, I need to send a email at a particular id which contains the text entered in the text area. Can someone gimme a script which gives me and idea about how to do that...or some link where i can find that. Thanx and regards anil

[PHP] Re: [ANNOUNCE] PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and4.2.1

2002-07-22 Thread Anil Garg
HI, Not being an expert in php..i couldnt understand the vulnerability. Can someone shed some light here. Regards anil - Original Message - From: "Marko Karppinen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP-DEV" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 22, 2002

Re: [PHP] ' giving problem while inserting in table.

2002-07-12 Thread Anil Garg
thanx, its working perfect now anil :) - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Anil Garg" <[EMAIL PROTECTED]>; "Martin Clifford" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 12, 2

Re: [PHP] ' giving problem while inserting in table.

2002-07-12 Thread Anil Garg
ubject: Re: [PHP] ' giving problem while inserting in table. > > > Use addslashes() on ALL strings before inserting them into your database. > Then, on your frontend, extract the data and use stripslashes() on all > strings. > > Hope to help! > > Martin Clifford > H

[PHP] ' giving problem while inserting in table.

2002-07-12 Thread Anil Garg
Hi, I am making a faq maintenance system using mysql and php. To insert a entry in to a faq table i am using the following query: - INSERT INTO faq_table_netvd (id,question, answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_ id) VALUES ('0','$frm[question]', '$fr

[PHP] hide a select tag

2002-07-08 Thread Anil Garg
Hi, sorry for going a lil out of way of php. can i hide a drop down menu.(as i always want to pass the default value selected in the drop down. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] to remove html tags from a string.

2002-07-05 Thread Anil Garg
Hi, How to do whats written in the commented line(//) in the code below: test"; if(stristr($term,"<") && stristr($term,">") && !stristr($term,"") && !stristr($term,"") ){ printf("its html tag"); // here i want to remove the html tags from $term and then print it.(here it should print '.te

[PHP] viewing php predefined fucntions

2002-07-01 Thread Anil Garg
Hi, at this link: http://www.php.net/manual/en/funcref.php i can see the categories of the available functions, But How can i see all the fucnctions in php together (in one screen)? Is there a way to do that. Thank You anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] debugger

2002-06-26 Thread Anil Garg
hi thanx for ur mail. In fact i have to make changes in the code written by someone else. I want to use debugger to know the path in which the files are called. Which is the debugger for php? thanx anil - Original Message - From: "B i g D o g" <[EMAIL PROTECTED]> To: &qu

[PHP] debugger

2002-06-26 Thread Anil Garg
hi, in perl i used perldb for debugging. whats to be used in php!! thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] large tables scroll down:(

2002-06-26 Thread Anil Garg
there's a couple problems with your question: > > we don't know what tool you're using, > what database you're you're using, > and most importantly, > > > this is not a PHP question. > > > please use a hammer for a nail, and a screwdriv

[PHP] large tables scroll down:(

2002-06-26 Thread Anil Garg
Hi, for viewing long tables. when i say SELECT * FROM abc i miss the upper entries of the table as they scroll down. is there something by which i can view a table page by page(as | more in unix) thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] include_module()

2002-06-26 Thread Anil Garg
Hi, Is include_module() a predefined functioin of php. I couldnt find it in documentaion. Is there any way i can view all the functions availabe together?? thanks anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple webserver

2002-06-25 Thread Anil Garg
hi, This is a bit off topic but can anyone please point me to a link where i can find a tutorial for setting multiple web server(by listening on different ports) on one machine. thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini not creating logs

2002-06-21 Thread Anil Garg
error_prepend_string = "" ; String to output after an error message. ;error_append_string = "" ; Log errors to specified file. ;error_log = Off --- - Original Message - From: "Ray Hunter" <[EMAIL PROTECTED]> To: "Anil Garg" <

[PHP] php.ini not creating logs

2002-06-21 Thread Anil Garg
Hi, sorry i forgot to mention that. yes i restarted my webserver. In fact the error messages are getting hidden(on setting display_errors = Off) but the logs are not getting created:(log_errors = /var/log/php-errors.log ) in php.ini file. thanx anil -- PHP General Mailing Li

[PHP] display_error=Off in php.ini

2002-06-21 Thread Anil Garg
Hi, In php.ini file i have set: display_errors = Off log_errors = /var/log/php-errors.log but i cant see anything coming in to php-errors.log file. I have tried to change the query in my php code...but it dispays error on the gui( the display errors doesnt seem to get off). I hope someone can h

[PHP] increasing max size to upload

2002-06-20 Thread Anil Garg
hi, how can i change the maximum size of the file being uploaded?? The line below does not seem to help me: Do i need to make some more changes?? php ver i am using is mod_php4-4.1.2 I dont have a php.ini file anywhere!! i just have a file php.ini-dist in /usr/local/etc/ ...but i dont think i

[PHP] table porblem in netscape!!

2002-06-18 Thread Anil Garg
I have made a table as shown below.. But when i open it in netscape in shows some blank space where i have used tag. Can anyone plz help me with this!! - cellpadding=0 cellspacing=0 height=25 width=100%>   Welcome

[PHP] type="file"

2002-05-24 Thread Anil Garg
Hi, I am using php In a html form m using: When i submit the form and try to retrieve the path written in the text box by using 'printf("%s",$file)' it returns a path "/var/tmp/trash" ... How can i print the path selected by browse button. Any ideas are appreciated. Thanx anil -- PHP Genera