[PHP] Re: server side redirects

2004-03-04 Thread Anil Kumar K.
here is no character ( space character or even empty lines) lying around outside PHP open/close tags. Avoid putting new lines, spaces, etc.. outside PHP open/close tags especially while writing library files which are meant for include-ing. best Anil -- Linuxense Information Systems Pvt.

[PHP] Re: Cybercash Dynamic Module

2004-02-24 Thread Anil Kumar K.
ay have similar situation. > Answer to the dump question (because none seems to give an answer :) ). Run phpinfo() and you will get the original configuration command in its output. Anil -- Linuxense Information Systems Pvt. Ltd., Trivandrum, India http://www.linuxense.com/ -- PHP Ge

[PHP] Re: weird header() (bug may be)

2004-02-12 Thread Anil Kumar K.
previous_page.php'); An "exit" statement after the first header will solve the problem. With most browsers, if multiple redirect headers are received, the last instruction is followed. I'm not sure what the RFC says about this. Anil On Thu, 12 Feb 2004, adwinwijaya wrote: >

Re: [PHP] Restart Apache with PHP???

2003-09-04 Thread Anil Kumar K.
configured to do only that. best regards. Anil On Wed, 3 Sep 2003, Jason Sheets wrote: > More safely maybe, but even that solution could be exploited somewhat > easily. The script that writes the file would be better off as a CGI > than executed through the Apache module, this wo

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

2003-08-29 Thread Anil Garg
t which is acceptable by date field of the mysql database. Thanks and regards Anil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: secure code

2003-05-28 Thread Anil Kumar K.
Here is exactly what you are looking for: "The Open Web Application Security Project" http://www.owasp.org/ best. Anil On Wed, 28 May 2003, Tim Burgan wrote: > Hello, > > I'm wondering if you can recommend any resources that discuss writing secure > code and

[PHP] e-mail

2002-12-26 Thread Anil Garg
his...in the from field..it says '[EMAIL PROTECTED]' I just need the from field to show 'Web User' (instead of 'unprivilaged user') Can i do this!! plz help thanks and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] email

2002-12-26 Thread Anil Garg
his...in the from field..it says '[EMAIL PROTECTED]' I just need the from field to show 'Web User' (instead of 'unprivilaged user') Can i do this!! plz help thanks and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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] php 4.2.3 giving prob.

2002-10-02 Thread Anil Garg
moreover, the same code is working fine in some older version of php..(on another machine) what m i doing wrong here? can someone give me some pointers. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-10-01 Thread Anil Garg
reason are both the threads beings processed?(i m asking this coz i want to know what will i be missing if i use 1.3.26 instead of 2.0.40. Can u plz gimme some pointers. Thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

[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
the mid of uploading my site. Hope to get some solutions. Thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] intalling php.

2002-09-30 Thread Anil Garg
: "Load module libphp.so. .. Add module libphp.c" .. I really got stuckcan someone plz tell me what probably i am doing wrong. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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
me page, and then look for links to the information you want. b.. If you typed the page address in the Address bar, make sure that it is spelled correctly. -- Can someone one tell me when this error comes. Thanx and regards anil p.s. php,query, -- PHP Gene

[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: Simple regexp

2002-08-30 Thread Anil Kumar K.
You can use the following pattern with preg_match: "/([a-f0-9]+)((:[a-f0-9]+){7})/i" I made an assumption that you are using the x:x:x:x:x:x:x:x address format. Anil On Wed, 28 Aug 2002, Adam Alkins wrote: > Hi Folks, > > Seeking some guidance here. My regexp kn

[PHP] Re: Passing variables between servers

2002-08-21 Thread Anil Kumar K.
rest of the info can be pulled from the database. Anil On Wed, 21 Aug 2002, Mark McCulligh wrote: > I have two server. One running PHP/Linux the other running ASP/2000. > The user logins into the PHP server and session variables are made to hold > their username, password, depart

[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]>; <[EMAI

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
off between ',",... and \ ? Note: putting a \\ to add \ doesnt help coz for one time it works one i open the entry in edit mode again i have to put \ before all the \. please help regards anil - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To:

[PHP] ' giving problem while inserting in table.

2002-07-12 Thread Anil Garg
; (e.g. \')solves my problem...but when i open the same quesion to edit it, again i have to put backslashes where ever i find " ' " in the quesion or answer. Can anyone please suggest a solution to this. thanx and regards anil [please ask if i havent explained the problem fully] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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
ere i want to remove the html tags from $term and then print it.(here it should print '.test') } else{ printf("not a html tag."); } ?> Thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

[PHP] Re: Two cases going to same case?

2002-06-30 Thread Anil Kumar K.
Can't you write it this way? switch( $bar) { case 2: ... case 1: ... case 3: ... } On Sun, 30 Jun 2002, Leif K-Brooks wrote: > I have a switch in a script I'm working on. I need to have case 1 and 2 > both to to case 3, but without case 1 going through case 2. Is th

[PHP] Re: Generating Barcodes and printing

2002-06-27 Thread Anil Kumar K.
Also: http://www.mribti.com/barcode/ On Thu, 27 Jun 2002, Peter wrote: > Read the stuff you find on google first though - there was an article I read > about certain inks absorbing InfraRed light so barcodes printed in them will > not work! > The HP ink used in the Deskjet 693 and 660 seems to

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

[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

[PHP] display_error=Off in php.ini

2002-06-21 Thread Anil Garg
help me with this. thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] increasing max size to upload

2002-06-20 Thread Anil Garg
it is being used. thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] table porblem in netscape!!

2002-06-18 Thread Anil Garg
%>   Welcome !     thanks anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 app

[PHP] Function Reqest/Question

2001-07-02 Thread Anil
Is there a func() that will let me break or skip to the END of the code snippet? I have a file that contains both HTML and PHP. I know there are several ways of attacking this. Including making a func() that outputs the footer - skip() containing a bunch of print statements with the

Re: [PHP-CVS] cvs: php4 / Makefile.in configure.in /main build-defs.h.in /pear PEAR.php.in /sapi Makefile.in /sapi/cgi config.m4

2001-04-08 Thread Anil Madhavapeddy
talled by default; an option to disable it would definitely be good however. Anil -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/zlib zlib.c

2001-04-02 Thread Anil Madhavapeddy
avsmMon Apr 2 09:52:14 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/zlib zlib.c Log: MFH, rev 1.77 Index: php4/ext/zlib/zlib.c diff -u php4/ext/zlib/zlib.c:1.76 php4/ext/zlib/zlib.c:1.76.2.1 --- php4/ext/zlib/zlib.c:1.76 Wed Mar 7 09:23

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/standard output.c

2001-04-02 Thread Anil Madhavapeddy
avsmMon Apr 2 09:48:29 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/standard output.c Log: MFH, rev 1.53 Index: php4/ext/standard/output.c diff -u php4/ext/standard/output.c:1.48.2.2 php4/ext/standard/output.c:1.48.2.3 --- php4/ext/standard/ou

[PHP-CVS] cvs: php4 /ext/standard output.c

2001-04-02 Thread Anil Madhavapeddy
avsmMon Apr 2 09:45:27 2001 EDT Modified files: /php4/ext/standard output.c Log: Free the correct output buffer, to avoid a segfault on a HEAD request when using output buffering with a custom handler (patch by zeev@) Index: php4/ext/standard/output.

[PHP-CVS] cvs: php4 /ext/zlib zlib.c

2001-03-30 Thread Anil Madhavapeddy
avsmFri Mar 30 09:44:09 2001 EDT Modified files: /php4/ext/zlib zlib.c Log: Send the correct Vary headers, if we negotiate a gzip/deflate session via Accept-Encoding. This obeys a SHOULD directive in RFC2616 PR: 10070 Index: php4/ext/zlib/zl

[PHP-CVS] cvs: php4(PHP_4_0_5) / ltconfig

2001-03-17 Thread Anil Madhavapeddy
avsmSat Mar 17 05:13:56 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4 ltconfig Log: Update libtool to support OpenBSD 2.8+ wrt shared libraries and library dependencies. Tested on i386/sparc. Index: php4/ltconfig diff -u php4/ltconfig:1.20