[PHP] more efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as s

[PHP] Efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as some

Re: [PHP] Re: Protecting include files

2003-02-07 Thread Daniel Page
> I have used a few different Web hosting companies, and I > have never seen a case where my home directory was my > document root. I have always had a directory like > public_html/ or www/ that was my personal document root, so > as long as I don't place files in there, they are not > accessible v

[PHP] delete query doesnt work

2003-02-07 Thread Sunfire
i have a delete query: mysql_query("delete from members where company='$delete'); it doesnt work should i change it to : mysql_query("delete from members where company like '$delete'");?? the first one worked in mysql client but it doesnt work in php script for some reason... also having proble

Re: [PHP] Strings and regular expression?

2003-02-07 Thread 1LT John W. Holmes
> > > $a1="1,8,98,244,9,243,2,6,36,3,111,"; > > > > > > $a2="8,98,244,9,243,2,1,6,36,3,111,"; > > > > > > How can I exactly match "1," in both strings using one regular expression? > > > (first "1" is the first element and second time in a random position)? > > > > if(preg_match('/(^|,)1(,|$)/',$st

RE: [PHP] delete query doesnt work

2003-02-07 Thread Daniel Masson
Maybe you have to use wildcards like: mysql_query("delete from members where company like '%$delete%'");?? Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)61632

Re: [PHP] delete query doesnt work

2003-02-07 Thread Kevin Stone
You have a syntax error. Look at your quotes. -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 3:05 PM Subject: [PHP] delete query doesnt work > i have a delete query: > mysql_query("delete from members where compan

RE: [PHP] delete query doesnt work

2003-02-07 Thread Roedel, Mark
First two things I'd check: (1) Make sure the user you're connecting as has permission to delete rows, and (2) Make sure that your $delete variable has the value you were expecting. --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer| at himself, for he s

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
What is the error message you get if you put this in if(!mysql_query("delete from members where company='$delete')) die (mysql_error()); This would be the first step. Robbert van Andel -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:06 PM

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
it doesnt say anything query returns 1 and there are 0 errors and 0 warnings but when i echo the query string: echo "delete from members where company= '$delete'"; it will show on the web page: delete from members where company = so the $delete is blank for some reason... is it possible that submi

[PHP] mail() and sendmail path

2003-02-07 Thread micah lamb
Is there any way to declare the path to sendmail locally (on the page that has the mail() function) ? I need to use mail() but do not have access to the php.ini file. Micah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Client Side PHP

2003-02-07 Thread [-^-!-%-
I think that's a great idea. I'll support it. -john =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Thu, 6 Feb 2003, Maxim Maletsky wrote: > > I am doing now ;) > > > How would you guys like t

RE: [PHP] mail() and sendmail path

2003-02-07 Thread Dennis Cole Jr
You can find this here -> http://www.php.net/manual/en/ref.mail.php -Original Message- From: micah lamb [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 5:29 PM To: [EMAIL PROTECTED] Subject: [PHP] mail() and sendmail path Is there any way to declare the path to sendmail locall

Re: [PHP] mail() vs sockets

2003-02-07 Thread Paul Roberts
just post once - Original Message - From: "Jeff Busby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 9:30 PM Subject: [PHP] mail() vs sockets Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() fu

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
I've never heard of a variable not getting passed. Make sure that your form element is actually called delete and that it's part of the submitted form. Robbert van Andel -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:35 PM To: [EMAIL PROT

Re: [PHP] mail() vs sockets

2003-02-07 Thread Jeff Busby
Sorry, every time I posted I got an auto reply saying it had an attatchment and it wasn't sent...and I had to post again. The only way it worked was for me to reply to another post and change the subject and message. Didn't mean to annoy anyone with multiple posts. - Original Message -

Re: [PHP] delete query doesnt work

2003-02-07 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > so the $delete is blank for some reason... is it > possible that submitting a variable from 1 form > to another that some wont get carried over? No. It might help to read this: http://www.php.net/manual/en/security.registerglobals.php Chris -- PHP Gener

Re: [PHP] delete query doesnt work

2003-02-07 Thread Kevin Stone
Then you just answered your own question. -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 3:37 PM Subject: Re: [PHP] delete query doesnt work > ok so i mistyped it the real one is > mysql_query("delete

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
here is the forms that delete uses: //the first one is the combo box to select a member to //delete select a member to delete \"$DeleteMember[Company]\""; ?> the second form now is a check box with a submit button to confirm they want it deleted: are you really sure you want to delete the mem

[PHP] include_path doesn't seem to work

2003-02-07 Thread Mike D
Hello all, I have the following set in my php.ini file: ; UNIX: "/path1:/path2" include_path = ".:/usr/local/php/scripts" ; I placed a file in this directory containing a function, and I when I call the functions name i get a fatal error - function not defined... Am i missing something here?

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
You're form code is incorrect. select a member to delete should read select a member to delete The line: value=\"$DeleteMember[Company]\">\"$DeleteMember[Company]\""; should read value=\"$DeleteMember[Company]\">\"$DeleteMember[Company]\""; Robbert van Andel -Original Message- From

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
ok i changed the endings to those to but still keep getting blank variable in the end for $delete in the delete query - Original Message - From: "Van Andel, Robbert" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 5:51 PM Subject

Re: [PHP] Strings and regular expression?

2003-02-07 Thread Kevin Waterson
This one time, at band camp, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > Very true, I agree. For your solution, though, wouldn't it correctly match a > string such as '2,3,11,12' even though there is no entry that's just one? Ok, why not something like this.. There is almost always a bet

Re: [PHP] delete query doesnt work

2003-02-07 Thread Kevin Stone
In fact does not require the closing tag. will be ignored. Make sure you have Registered Globals ON. Or change $delete to $_POST['delete']; -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 4:16 PM Subject: Re: [PHP]

RE: [PHP] delete query doesnt work

2003-02-07 Thread John W. Holmes
Your problem is that form variables only exist on the page you POST your data to (or GET). You have a "confirmation" as that page. After your confirmation, $delete is empty on any other pages! If you want to pass it, then add it to a link or put it into another form as a hidden element or add it to

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
Okay. Next step would be to check the select option values in the resulting webpage and make sure that the values are actually there. I think the fact that delete is coming up blank is the key. Robbert van Andel -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Frid

RE: [PHP] Escaping Chars

2003-02-07 Thread John W. Holmes
> I need to get a password value from a form, store it in a database and > then > later be able to compare a login password to the one stored in the db. > This works great unless the password contains the '\' char. > magic_quotes_gpc is ON and magic_quotes_runtime is OFF. > As a klude, I tried just

Re: [PHP] include_path doesn't seem to work

2003-02-07 Thread Reuben D. Budiardja
On Friday 07 February 2003 05:56 pm, Mike D wrote: > Hello all, > > I have the following set in my php.ini file: > > > ; UNIX: "/path1:/path2" > include_path = ".:/usr/local/php/scripts" > ; > > I placed a file in this directory containing a function, and I when I > call the functions name i get a

[PHP] How do I force a 'timeout' in a loop for that itteration, or conversley how to timeout a 'ping" request?

2003-02-07 Thread Daevid Vincent
I'm trying to automate finding pingable domains given an IP or a domain. The problem is that some domains don't actually return "pings", and on Linux, it just sits there forever (ugh!). So... Can someone tell me how to 'abort' or 'timeout' an itteration of a loop. Maybe start a timer and then check

[PHP] Need To Find A php Person

2003-02-07 Thread Michael McGlaughlin
Hello, I am looking for someone well versed and established who understands the php language and who can support a product that I have that I cannot receive support from by the original developer. What would be the best way for me to go about finding someone? We paid the developer by making a

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
yes all of the select option values are coming up as true values just like i wanted and even when i shift $delete from the combobox ($delete is the name of the combobox) to the form with the check box i have printed on the screen "check the box to aprove the deletion of $delete" and in that line ne

[PHP] Re: How do I force a 'timeout' in a loop for that itteration, orconversley how to timeout a 'ping" request?

2003-02-07 Thread Philip Hallstrom
Not sure on linux, but on freebsd ping's man page says: -t timeout Specify a timeout, in seconds, before ping exits regardless of how many packets have been recieved. On Fri, 7 Feb 2003, Daevid Vincent wrote: > I'm trying to automate finding pingable domains given an IP or a domain. > The proble

RE: [PHP] Escaping Chars

2003-02-07 Thread Walls Rob W Contr 75 CS/SCBS
Thanks for the reply, but I still can't seem to make the connection... If I enter the value 123\"/' in a web form and put the form post value directly into the db (no stripslashes or any other function), the value as reported by the db at a command line query is 123\"/' (it LOOKS like the same va

RE: [PHP] Escaping Chars

2003-02-07 Thread John W. Holmes
> Thanks for the reply, but I still can't seem to make the connection... > If I enter the value > 123\"/' > in a web form and put the form post value directly into the db (no > stripslashes or any other function), the value as reported by the db at a > command line query is > 123\"/' That's not ri

[PHP] Re: setcookie() in various browsers..

2003-02-07 Thread Al
cookies work just fine with NS4x. Here's one I use: setcookie ("LastVisit", time(), time()+7776000); Chad Day wrote: This is with PHP 4.2 and register_globals off. I am setting cookies and starting a session in the following fashion: setcookie("EMAILADDR", $row[EMAIL], time()+2592000, '/', ".

[PHP] Re: [PHP-DB] Passing ARRAY through URL

2003-02-07 Thread Leif K-Brooks
Servers usually have limits on the get method (usually 500 characters IIRC), and some browsers may as well. I reccomend you look into using the post method through javascript. Squirrel User wrote: Help. I've tried to pass large array through URL but it keep telling me page can not be display

[PHP] strip slashes from variable content

2003-02-07 Thread Sunfire
hi.. i have a hidden variable and when its submitted to another script it has the value of "\\\... anybody know how to get the \ out of it? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date

[PHP] delete query doesnt work (fixed)

2003-02-07 Thread Sunfire
hi... my delete query : mysql_query("delete from members where company like '$delete'"); now works..this is how i fixed it... in the form that submits the $delete var add this: now in query change $delete to $flag_delete... and poof it magically works still need to debug the edit system since a

Re: [PHP] strip slashes from variable content

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 09:51, Sunfire wrote: > hi.. > i have a hidden variable and when its submitted to another script it has > the value of "\\\... anybody know how to get the \ out of it? Search www.php.net for "strip slash". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] delete query doesnt work

2003-02-07 Thread Hardik Doshi
Hi, I think you are facing problem with variable delete. Make sure your Php.ini settings for global off. Check value of variable is coming on the form or not. In case of your update, i think you forget to put where part. For example: mysql_query("update table_name set varible_name='$variable_na

Re: [PHP] strip slashes from variable content

2003-02-07 Thread Hardik Doshi
Ok i got your problem. First of all check php.ini settings for magic_gpc_quotes. If it is on then turn it off. I guess that the only problem you have. If you want to make it turn it on then you have to use stripslashes function. thanks Hardik --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Saturd

Re: [PHP] mail() vs sockets

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 06:39, Jeff Busby wrote: > Sorry, every time I posted I got an auto reply saying it had an attatchment > and it wasn't sent...and I had to post again. The only way it worked was > for me to reply to another post and change the subject and message. Didn't > mean to ann

[PHP] PHP 4.3.0 safe_mode

2003-02-07 Thread Devin
I am running Apache 1.3.27 with PHP loaded as a module and I have several sites on the server running. I want to enable safe_mode so that PHP can be more secure on the server so one user can't read another users files. However I notice that with safe_mode enabled it denies readfile function, but t

Re: [PHP] delete query doesnt work (fixed)

2003-02-07 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > in the form that submits the $delete var add this: > > now in query change $delete to $flag_delete... and poof > it magically works It's not magic, and John Holmes already explained it to you. If you do not pass a variable via GET, POST, or as a cookie, a

[PHP] Array sorting

2003-02-07 Thread Zydox
My question is if anyone have any idé on how to sort this array so that the names and ages are sorted after Close Friend, Friend, Wife and last Family... $A[] = array ("Nils", "23", "Friend"); $A[] = array ("Emma", "21", "Friend"); $A[] = array ("Cassie", "21", "Wife"); $A[] = array ("Zydox", "23"

RE: [PHP] Strings and regular expression?

2003-02-07 Thread John W. Holmes
> > Very true, I agree. For your solution, though, wouldn't it correctly > match a > > string such as '2,3,11,12' even though there is no entry that's just > one? > > Ok, why not something like this.. > There is almost always a better solution than regex > > > $string = '98,244,9,243,2,6,36,3,1

Re: [PHP] mail() vs sockets

2003-02-07 Thread Jeff Busby
Thanks, but I know how it works. I'm on the Pear general list and the php db list. I just join the php general list...replied to the confirm email then posted my question. There was no attatchments, it was a brand new email. I did it 3 times and received the same auto responder. So the last ti

Re: [PHP] ImageJPEG?

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 05:24, John Wards wrote: > Quickie > > I want to save a modified jpeg to a file. I can out put it by doing this: > > Header("Content-type: image/jpeg"); > > imagejpeg($image_thum); > > imagedestroy($image_thum); > > I want to save it to this location: > > /images/10

[PHP] Permenant Page Generation

2003-02-07 Thread Mecca
I would like to create two pages: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named aft

[PHP] Permenant Page Generation

2003-02-07 Thread Mecca
I would like to create two pages: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named aft

[PHP] Re: Array sorting

2003-02-07 Thread Philip Hallstrom
never done it, but check out: http://www.php.net/manual/en/function.array-multisort.php On Sat, 8 Feb 2003, Zydox wrote: > My question is if anyone have any idé on how to sort this array so that the > names and ages are sorted after Close Friend, Friend, Wife and last > Family... > > $A[] = arra

RE: [PHP] Permenant Page Generation

2003-02-07 Thread John W. Holmes
> I would like to create two pages: > > One form page to enter information. I've done that and used the same > format as a typical html page. method="post" action="submit.php"> > > I want the second page to show the information was submitted and have the > information create a permenant html page

[PHP] Re: Need To Find A php Person

2003-02-07 Thread Jean-Christian Imbeault
I might be able to help you with support/customization of your application depending on what kind of PHP application it is. I have a great deal of experience programming with PHP and developing large application. Could you let me know what kind of application you have? Jc Michael McGlaughlin

[PHP] Re: mysql auto increment question

2003-02-07 Thread Justin Garrett
http://www.php.net/manual/en/function.mysql-insert-id.php Justin Garrett "Van Andel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] m... I have an application that updates two MySQL database tables. One table has an auto_increment id field. I need to use this id to link to an entry

<    1   2