[PHP] Odd problem with ereg_replace and addslashes

2003-12-03 Thread Ian Truelsen
Here is what I am doing: I am reading in the contents of a text file that contains variables whose properties I want to output. So, as was suggested on the list I used the following: eval("\$rest = \"".addslashes($pre_rest)."\";"); This works quite well, with one problem: if I use a contraction,

[PHP] Odd problem with ereg_replace and addslahes

2003-12-03 Thread Ian Truelsen
Here is what I am doing: I am reading in the contents of a text file that contains variables whose properties I want to output. So, as was suggested on the list I used the following: eval("\$rest = \"".addslashes($pre_rest)."\";"); This works quite well, with one problem: if I use a contraction,

Re: [PHP] odd problem

2003-03-23 Thread Jack
"Sebastian" <[EMAIL PROTECTED]> wrote: > having a little problem. I know i have a connection to the mysql database > but for some reason i can't get this to update the database when submit is > clicked. perhaps i am overlooking something.. Here is part of the script: > > if($HTTP_POST_VARS[send])

[PHP] odd problem

2003-03-23 Thread Sebastian
hello all, having a little problem. I know i have a connection to the mysql database but for some reason i can't get this to update the database when submit is clicked. perhaps i am overlooking something.. Here is part of the script: if($HTTP_POST_VARS[send]) { $result = $db->sql("UPDATE comme

RE: [PHP] Odd Problem

2002-10-13 Thread John W. Holmes
> To: PHP List; [EMAIL PROTECTED] > Subject: Re: [PHP] Odd Problem > > I got the spelling and everything right... > > - Original Message - > From: "John W. Holmes" <[EMAIL PROTECTED]> > Newsgroups: php.general > To: "'Stephen'" <[

Re: [PHP] Odd Problem

2002-10-13 Thread Stephen
I got the spelling and everything right... - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> Newsgroups: php.general To: "'Stephen'" <[EMAIL PROTECTED]>; "'PHP List'" <[EMAIL PROTECTED]> Sent: Sunday, Oc

RE: [PHP] Odd Problem

2002-10-13 Thread John W. Holmes
Print your SQL to the screen and verify it's value is what you think it is. Make sure it's accessing the right table. ---John Holmes... > -Original Message- > From: Stephen [mailto:[EMAIL PROTECTED]] > Sent: Sunday, October 13, 2002 5:03 PM > To: PHP List > S

[PHP] Odd Problem

2002-10-13 Thread Stephen
Hello, I'm running a script that inserts a form's contents into a MySQL table. However, when I insert the contents, I get an error telling me this: Unknown column 'employee' in 'field list' I can't find the problem. I have a field in my table called employee but I guess it doesn't see it. Any

[PHP] Odd problem using sendmail - possibly to do with set_time_limit?

2002-03-04 Thread Alexis Birkill
Hi, I'm trying to track down an odd problem in a script I'm writing, the purpose of which is below: The script takes data of a subject and a body for an e-mail from an HTML form, and sends this out to a list of recipients stored in a datafile parsed by the PHP. The size of the e-mails can be

Re: [PHP] Odd problem

2001-02-03 Thread Richard Lynch
> Apache on Solaris 2.6, suEXEC, PHP 3.0.15 as a CGI (not mod_php). > I'm seeing this sort of thing in my Apache error logs. > > failed to open log file > fopen: Permission denied > [Thu Feb 1 04:28:33 2001] [error] [client 192.168.1.15] Premature end of script headers: /usr/local/mailman/cgi-bin