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
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
> 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
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
> > > $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
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
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
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
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
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
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
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
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
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
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
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 -
--- 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
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
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
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?
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
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
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
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]
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
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
> 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
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
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
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
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
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
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
> 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
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, '/', ".
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
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
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
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
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
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
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
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
--- 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
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"
> > 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
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
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
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
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
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
> 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
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
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
101 - 154 of 154 matches
Mail list logo