[PHP] newbie question: duplicate emails

2001-04-23 Thread Nikhil Goyal
Hello people, I am having a peculiar problem with my mailing list and hope you can help me out. I have a mySQL database with a table of email addresses for the mailing lists. I have many lists, and my (PHP) code runs various queries on this table to generate lists of email addresses to which the

Re: [PHP] newbie question: duplicate emails

2001-04-23 Thread Nikhil Goyal
gain. That being > said are there any SMTP logs you can check? Have you monitored the exact > data being sent to the SMTP server(maybe set up a dummy socket that repeats > back the data sent to it then have your program try to connect to that)? > -- > phill > > "&quo

Re: [PHP] what is better? mysql_connect() or mysql_pconnect()?

2001-04-24 Thread Nikhil Goyal
I believe a good article is at http://www.php.net/manual/en/features.persistent-connections.php ""elias"" <[EMAIL PROTECTED]> wrote in message 9c3fi6$edm$[EMAIL PROTECTED]">news:9c3fi6$edm$[EMAIL PROTECTED]... > hello... > just asking...what is better in this case: > i got lots of scripts and alm

Re: [PHP]PHP script and new window.

2001-04-24 Thread Nikhil Goyal
""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9c2gdi$170$[EMAIL PROTECTED]">news:9c2gdi$170$[EMAIL PROTECTED]... > First of all, I believe since you are using javascript on your button you > shouldn't use type="submit". Change it to type="button", which means it will > have no effect for brows

Re: [PHP] Using

2001-04-24 Thread Nikhil Goyal
also, using Method = POST will not show the vars in the URL, though it will be passed. Make it METHOD="GET" to show it in the URL. N "Rene Maldonado" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I think it woulf be better this way: print ""

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-25 Thread Nikhil Goyal
I wrote a similar script of my own... Works fine for me function email_valid($email) { $pattern="^[0-9a-zA-Z_-]+(\.[0-9a-zA-Z_-]+)*@[0-9a-zA-Z_-]+(\.[0-9a-zA-Z_-]+ )+$"; return ereg($pattern, $email); } (returns false if email is not valid, true if it is) N "Martin Skjöldebrand" <[EMAIL PRO

[PHP] exclusive execution

2001-04-27 Thread Nikhil Goyal
I need to set up a script such that only one instance of it is running at a time i.e. in case the script is already executing, it will not be started again. My problem is on a script taking a long time to execute (like it should) - I find that for some reason the script stops somewhere in the mid

Re: [PHP] exclusive execution

2001-04-27 Thread Nikhil Goyal
ID is per instance of the script, this should provide you > with the functionality you're looking for. > > John > > On Fri, 27 Apr 2001, Nikhil Goyal wrote: > > > I need to set up a script such that only one instance of it is running at a > > time i.e. in case the

Re: [PHP] exclusive execution

2001-04-27 Thread Nikhil Goyal
solution would be to have the script write it's process ID in some .pid > file. Since a process ID is per instance of the script, this should provide you > with the functionality you're looking for. > > John > > On Fri, 27 Apr 2001, Nikhil Goyal wrote: > > > I n

Re: [PHP] Is PHP code software?

2001-05-01 Thread Nikhil Goyal
I read about a PHP compiler for windows some time back - that qualifies PHP as software, or actually code analogous to C/++ right? "Kath" <[EMAIL PROTECTED]> wrote in message 002201c0cf58$c26d7980$[EMAIL PROTECTED]">news:002201c0cf58$c26d7980$[EMAIL PROTECTED]... > Food for thought: Is PHP code s

Re: [PHP] include whole directories?

2001-05-01 Thread Nikhil Goyal
you could create a common include file for each directory, for e.g. functions/auth.inc.php would contain: include ("auth/auth1.php"); include ("auth/auth2.php"); ... later you could just include() the auth.inc.php file, and all the rest qould get included as well "andrew" <[EMAIL P

[PHP] mailing list

2001-05-01 Thread Nikhil Goyal
Hello people, I came with this problem to the group a while back, got some suggestions, and have been working on them since then. I know post the query again from a new perspective I have a mysql database, which contains a lot of email addresses and various other fields. My PHP code generates a

Re: [PHP] mailing list

2001-05-03 Thread Nikhil Goyal
nope, that's not it. sorry Nikhil ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message 051c01c0d2e1$2f9bfb40$7a24fea9@oemcomputer">news:051c01c0d2e1$2f9bfb40$7a24fea9@oemcomputer... > > start sending email (this process would take many minutes). However before > > this script finished, another

[PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
When does a session variable become available? Immediately after the session_register command or after the script ends? And if the commands are as follows: session_start(); session_register("hello"); $hello=3; will the session variable $hello be set to 3 or do I have to add another session_regi

Re: [PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
eted and I refresh the window with script #2, the output is okay (1). Why does this happen? Nikhil ""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > -Original Message- > > From: Nikhil Go

Re: [PHP] Session Problems....HELP!!!!

2001-05-03 Thread Nikhil Goyal
the session_start() should be placed at the top, before the ... wrote in message 454D444FF5C0D211891800A0C98C7D90359A54@SERVIDOR">news:454D444FF5C0D211891800A0C98C7D90359A54@SERVIDOR... > Hi! my name is bruno, from Brazil and i'm having some problems with > sessions. > Look my code: > >

Re: [PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
tore the > session values from script 1 before they can be retrieved by script 2. > > Kirk > > > -Original Message- > > From: Nikhil Goyal [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 03, 2001 2:41 PM > > To: [EMAIL PROTECTED] > > Subject:

[PHP] Re: Mysql export

2001-10-19 Thread Nikhil Goyal
I've found the best way is to set up a MyODBC link. You can download MyODBC from http://mysql.com/downloads/api-myodbc.html It's a bit complicated, but you get excellent results! - Nikhil Roman wrote: > Please help me, how to export mysql table to the xls table ? > Thanks for all > >