RE: [PHP] Warning: 1 is not a valid File-Handle resource

2001-04-02 Thread Richard Kurth
to know. On 4/2/01 4:59 PM, "Richard Kurth" [EMAIL PROTECTED] wrote: What is causing this error Warning: 1 is not a valid File-Handle resource in c:/httpd/htdocs/autosetup/auto/createaccount.php on line 88 This is the cod in question $tab = chr(9); // define

[PHP] PHP safe_mode and reading /etc/passwd file

2001-09-22 Thread Richard Kurth
I have a little problem... I had to enable the PHP safe_mode, and now I receive this error message when I try to read the passwd file on the server : Warning: SAFE MODE Restriction in effect. The script whose uid is 110 is not allowed to access /etc/passwd owned by uid 0 in

[PHP] Is there a way to override safe mode to be able to read a etc/passwd file

2001-09-22 Thread Richard Kurth
How can I read the /etc/passwd file when safe mode is turned on. is there a work around on this. Hear is a function I use to check if a username is already in use on the system. This works fine when safe mode is off but when it is on it gives this error. Warning: SAFE MODE Restriction in effect.

[PHP] php_admin_flag safe_mode off

2001-09-30 Thread Richard Kurth
Way will this Command not work in the httpd.conf file I have safe mode turned on in the php.ini file but I what it off in one of my sites so I added php_admin_flag safe_mode off to the virtualhost that I want it off in like below VirtualHost other stuff php_admin_flag safe_mode off

[PHP] php_admin_flag safe_mode off

2001-09-30 Thread Richard Kurth
Way will this Command not work in the httpd.conf file I have safe mode turned on in the php.ini file but I what it off in one of my sites so I added php_admin_flag safe_mode off to the virtualhost that I want it off in like below VirtualHost other stuff php_admin_flag safe_mode off

[PHP] php_admin_flag safe_mode off

2001-10-01 Thread Richard Kurth
Way will this Command not work in the httpd.conf file I have safe mode turned on in the php.ini file but I what it off in one of my sites so I added php_admin_flag safe_mode off to the virtualhost that I want it off in like below VirtualHost other stuff php_admin_flag safe_mode

[PHP] need help with safe mode

2001-10-02 Thread Richard Kurth
Can I add php_admin_flag safe_mode off to the httpd.conf file to turn safe mode off for just one site. And leave it on for the rest of the server. According to the manual this can be done but when I try it. It does not work. Is there something else I have to do to make this work properly.

[PHP] problem with a while loop

2001-10-26 Thread Richard Kurth
I am trying to get the data out of the while loop if I echo $email inside the } it gives me all of the data but if I echo it out side of the loop it only gives me one record even though I know there is more. How can I get this to work $query = SELECT * FROM members Where Company LIKE

Re[2]: [PHP] installing php as cgi on linux

2001-07-27 Thread Richard Kurth
load until after you closed IE and reopened. Jon Snell -Original Message- Jon Snell From: Richard Kurth [mailto:[EMAIL PROTECTED]] Jon Snell Sent: Friday, July 27, 2001 2:20 PM Jon Snell To: php Jon Snell Subject: [PHP] installing php as cgi on linux Jon Snell I am trying to get php

[PHP] compiling Apache for php

2001-07-29 Thread Richard Kurth
How can I recompile Apache so that I can use PHP4 as a Dynamic Module (DSO). This is a working server and I can not change the httpd.conf file so I do not what to just do a compile and make install. Also there is not a copy of apxs on the server where can I get a copy of this. The server is

[PHP] HELP Getting error when compiling PHP

2001-07-30 Thread Richard Kurth
I am compiling php as a cgi but I get this error when I run make It says it cant find the file errno.h but the file is in the directory it is looking in. What can I do to fix this. [root php-4.0.6]# make Making all in Zend make[1]: Entering directory `/home/tmp/php-4.0.6/Zend' /bin/sh

Re: [PHP] Re: HELP Getting error when compiling PHP

2001-07-30 Thread Richard Kurth
Hello Yasuo, How can I tell if I am missing header files before I go and replace them Monday, July 30, 2001, 1:38:58 AM, you wrote: Yasuo Ohgaki Richard Kurth [EMAIL PROTECTED] wrote in message Yasuo Ohgaki [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am compiling php as a cgi b

[PHP] URGENT!!! Can't start Apache with php4 and mysql

2001-08-02 Thread Richard Kurth
I have read the archives for this problem but I can't seam to fix it This is on a RedHat 7 I get this error when I try to start Apache Starting httpd: Syntax error on line 256 of /etc/httpd/conf /httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: libmysqlclient.so.10:

Re: [PHP] Limit records/ prev/next links

2001-08-05 Thread Richard Kurth
Hello Steph, there is a real good example of what you what to do at phpbuilder.com http://www.phpbuilder.com/columns/rod2221.php3 You might have to tweak it a little But it does work Sunday, August 05, 2001, 3:56:38 PM, you wrote: Steph Hi all! Steph Im working with PHP and MySQL and I

[PHP] pursing a text file

2001-08-05 Thread Richard Kurth
I am trying to pull a txt file into this purser so that it will add the data to the variables. Now the code below works if I just add an echo $message inside the while loop. But this is not what I want to do. I what it to run the while loop and after it is done pass the whole message to the mail

[PHP] Form call a function on submit

2001-08-05 Thread Richard Kurth
Is it possible to have a form submit button call a function. Like for updating a record in a database or for deleting data. Rather than a new page or with PHP_SELF Best regards, Richard mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Registration key

2001-08-06 Thread Richard Kurth
I am getting ready to wright a registration key for my program. This is so I can distribute the program say for 30 days and at the end of that 30 days the user will have to register the program or it will not run. This program will be encrypted So no they can not mess with the code. I would like

[PHP] HELP with Regular Expressions

2001-08-20 Thread Richard Kurth
I am having a little problem with Regular Expressions In the function below I am trying to make sure only these characters are being used in the hostname. If the hostname contains letters,digits,periods and minus signs then it is fine and we can let the process continue. If it has

[PHP] Returning a string from a function

2001-08-21 Thread Richard Kurth
Could somebody tell me way this function will not work I know the script inside the function works because I have tested it but when I put it in a function all I get back when I call it is a 1 function getpath($search) { Global $search,$path; $a = `/bin/ls -al /home/sites/ | awk {'print $9 $10

[PHP] Returning info from a function

2001-08-21 Thread Richard Kurth
Could somebody tell me way this function will not work I know the script inside the function works because I have tested it but when I put it in a function all I get back when I call it is a 1 function getpath($search) { Global $search,$path; $a = `/bin/ls -al /home/sites/ | awk {'print $9 $10

[PHP] search engine

2001-09-05 Thread Richard Kurth
Has anybody wrote a quality search engine in Php Something like goto.com or googly. Not a site search engine. Preferably one that is a pay per click search that pulls from a mysql database and also will pull from other search engines. I am looking for one if you know were there is one I would

[PHP] Seperating a textarea into 3 different variables

2001-09-08 Thread Richard Kurth
I have a problem I am trying to set up a credit card form for worldpay And in the address field that I have to send to them it has to go in a textarea textarea cols=30 rows=4 name=address/textarea So when you fill this in it would look like this address city state Now this works fine for

Re: [PHP] Re: Seperating a textarea into 3 different variables

2001-09-08 Thread Richard Kurth
. Gaylen Fraley -- Gaylen Fraley Gaylen Gaylen Fraley Richard Kurth [EMAIL PROTECTED] wrote in message Gaylen Fraley [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a problem I am trying to set up a credit card form for worldpay And in the address field that I have to send to them it h

[PHP] Searching for text in a file

2001-09-10 Thread Richard Kurth
I am having a problem with searching through a file for a curtain text. Like the text below [EMAIL PROTECTED] does not exists in the file but when I run this it gives me a Match at line number. I need to run three or four names at a time through this script to see if they are already

Re[2]: [PHP] Searching for text in a file

2001-09-10 Thread Richard Kurth
false (I Kelly Barrett THINK EOF currently is false, though theoretically EOF could change to any Kelly Barrett value). Kelly Barrett Cheers, Kelly Barrett Kelly. -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 September 2001 5:12 PM To: php Subject

Re[4]: [PHP] Searching for text in a file

2001-09-10 Thread Richard Kurth
Barrett value). Kelly Barrett Cheers, Kelly Barrett Kelly. -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Monday, 10 September 2001 5:12 PM To: php Subject: [PHP] Searching for text in a file I am having a problem with searching through a file

[PHP] Changing perl to PHP

2001-09-11 Thread Richard Kurth
Could somebody tell me how to convert this little bet of code to PHP. The rest of the code for this was easy to do but I dont know what to do with this. Can I call LWP from php and if yes how? # read the post from PayPal system and add 'cmd' read (STDIN, $query, $ENV{'CONTENT_LENGTH'}); $query

[PHP] pulling data out of a string

2001-05-14 Thread Richard Kurth
I am trying to figure out how to pull data out of a string. This is driving me crazy. I figure an if statement of some sort would work but I'm not sure how to structure it. I know how to get what I want if it is just $fullhostname = www.domain.net; $exp = explode(., $fullhostname); $host =

Re[2]: [PHP] pulling data out of a string

2001-05-14 Thread Richard Kurth
Hello Philip, Monday, May 14, 2001, 3:36:17 PM, you wrote: That my problem www is not always the host when it is a sub-domain it would be like mysit.domain.net or sometimes people put a few extra periods in the domain name like www.my.test.net I thought maybe I could look at the string and

[PHP] Needing help hear

2001-05-15 Thread Richard Kurth
I am trying to pull all the e-mail out of the database and put them in a format like this [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] this is what I have now but I don't seam to be going in the right direction. Could somebody give me a hint $sql = SELECT email FROM customers;

[PHP] Need a little help with array

2001-05-15 Thread Richard Kurth
I am trying to get the first name and Last name plus the email address out of the database in a format like this Richard Kurth[EMAIL PROTECTED];Richard Kurth[EMAIL PROTECTED] so I can put it in the BCC section of a mail all customer program What I have below works for getting

Re[2]: [PHP] Need a little help with array

2001-05-15 Thread Richard Kurth
Begins) Maxim Maletsky [EMAIL PROTECTED] Maxim Maletsky www.phpbeginner.com Maxim Maletsky -Original Message- Maxim Maletsky From: Richard Kurth [mailto:[EMAIL PROTECTED]] Maxim Maletsky Sent: Wednesday, May 16, 2001 10:49 AM Maxim Maletsky To: [EMAIL PROTECTED] Maxim Maletsky Subject

Re[4]: [PHP] Need a little help with array

2001-05-15 Thread Richard Kurth
Maletsky Maxim Maletsky Maxim Maletsky Founder, Chief Developer Maxim Maletsky PHPBeginner.com (Where PHP Begins) Maxim Maletsky [EMAIL PROTECTED] Maxim Maletsky www.phpbeginner.com Maxim Maletsky -Original Message- Maxim Maletsky From: Richard Kurth [mailto:[EMAIL PROTECTED]] Maxim

[PHP] Is there a better way to do this

2001-05-16 Thread Richard Kurth
Is there a better way to do thisI want it to look and see if the userdata file is there and if true the bypass everything else run rest of code. If is not then check to see if userdat1 is and if it is change it's name to userdata the run rest of code. If none of the are there then gust shut

Re[2]: [PHP] Is there a better way to do this

2001-05-16 Thread Richard Kurth
are you trying to do that for? scott [gts] there's probably a much cleaner way to do what you scott [gts] want, but i dont really know what you want to do, scott [gts] so i cannot suggest anything -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16

[PHP] Problem with PHP_SELF

2001-05-18 Thread Richard Kurth
I am having a problem with this script. It works perfect if I just do a Query like (SELECT * FROM customers) but if I call it from another script with a form to set the search criteria for this Query (SELECT * FROM customers WHERE $metode LIKE '%$search%') It will show the first page

[PHP] Getting email out of a database

2001-05-19 Thread Richard Kurth
I am trying to pull all the e-mail address out of a database to be able to do a mass send. This gets me all the e-mail address and puts a , between them which is what I want. $sql = SELECT CONCAT(email) AS str_email FROM customers; $result = mysql_query($sql);

[PHP] mail function. not working

2001-05-19 Thread Richard Kurth
.= From: Richard Kurth [EMAIL PROTECTED]\n; $headers .= X-Sender: [EMAIL PROTECTED]\n; $headers .= X-Mailer: NorthWestHost\n; $headers .= X-Priority: 1\n; $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; // Mime type $headers .= bcc:[EMAIL

[PHP] should be simple

2001-05-20 Thread Richard Kurth
I am trying to pull html code out of a database to put in page something like this which I have stored in a database under cheader html head title/title /head body div align='center' img src=../autowebpages/autosetup.gif' width='406'height='158'border='0' alt=''/div It seams all I have to do is

Re: [PHP] should be simple

2001-05-20 Thread Richard Kurth
Hello Richard, Never Mind It was a stupid mistake I am querying all the data in a function and forgot to add the variable to the global list work just fine DU!! Monday, May 21, 2001, 7:08:16 AM, you wrote: Richard Kurth I am trying to pull html code out of a database to put in page Richard

[PHP] Running Crontab on php script

2001-05-23 Thread Richard Kurth
I have a php script that runs at root. I have php compiled as a cgi to do this. My question is what is the best way to run a crontab so that it does not send a message every time it runs. This script runs every 5 min and it can get pretty frustrating to get this email. The script runs only if

[PHP] Problem with PHP as CGI

2001-05-23 Thread Richard Kurth
I have php config as a cgi and I put this at the top of my script #!/usr/local/bin/php -q when ever I run this script at root in telnet I get this message below. I configured php like this ./configure --with-mysql make make install I have set this up on a number of servers

Re[2]: [PHP] Problem with PHP as CGI

2001-05-23 Thread Richard Kurth
Hello Stuart, yes there is a ? as the first line of my script as a mater of facket I can run a script that looks like this and I still get the problem #!/usr/local/bin/php -q ?php echo HELP; ? Wednesday, May 23, 2001, 9:06:08 PM, you wrote: Stuart J. Browne Richard Kurth [EMAIL PROTECTED

Re[2]: [PHP] Problem with PHP as CGI

2001-05-24 Thread Richard Kurth
May 2001, Stuart J. Browne wrote: Richard Kurth [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have php config as a cgi and I put this at the top of my script #!/usr/local/bin/php -q when ever I run this script at root in teln

[PHP] What is the deal with cookies

2001-06-18 Thread Richard Kurth
I have a script that authorizes the user and sets a cookie but when I run the script it takes the username and password sets the cookie. Verifies the cookie is set and then runs the rest of the code on the page. except it does not pass on the user name. I have to do a manual refresh to get it to

[PHP] variables in a e-mail

2001-06-18 Thread Richard Kurth
How can I add a variable to an e-mail on the fly. Say I have a form on my page that the user fells in with data. but when he fills in the message things like Hello,$Variable are added before it is sent. Does this make sence Best regards, Richard mailto:[EMAIL PROTECTED]

Re[2]: [PHP] variables in a e-mail

2001-06-19 Thread Richard Kurth
: Alexander Wagner Hiho, Alexander Wagner Richard Kurth wrote: How can I add a variable to an e-mail on the fly. Say I have a form on my page that the user fells in with data. but when he fills in the message things like Hello,$Variable are added before it is sent. Does this make sence Alexander

[PHP] validate phone numbers

2001-06-19 Thread Richard Kurth
I am using this script to validate for phone numbers and it work just perfect for US phone numbers. But it rejects some European and Australian numbers what do I need to do to make it validate all phone numbers if (($WPHONE_NO) || ($wphone_no)) { $wphone_no = trim($wphone_no); if

[PHP] email templates and str_replace

2001-06-20 Thread Richard Kurth
: ##newuser## /li liMysql Password: ##newuserpass## /li /ul /strong /font font size='4' color='#008080'strongThanks for choosing ##hostdomain## br Any Questions e-mail ##sales##@##hostdomain##/strong /font /body /html ; /* message*/ //$mail_template = $message; $fullname=Richard

[PHP] email with variables

2001-06-22 Thread Richard Kurth
I have three different e-mail messages in my program in functions. That I would like to figure a way for the program user to be able to edit this e-mail messages to there liking without having to mess with the code. Now I have figured out with the help of this user group how to do it with

[PHP] explode

2001-06-24 Thread Richard Kurth
Question about explode this work just perfect $name=what+ever; $name1=explode(+,$name); $fname=$name1[0] ;this has what $lname=$name1[0] ;this has ever But if I pass the info from another page like this a href=whatever.php?name=what+evertest/a

Re[2]: [PHP] explode

2001-06-24 Thread Richard Kurth
to pass special characters (eg. +) in the url, you need to nicole use a url encoding function like rawurlencode().. or choose another nicole delimeter which can be passed in the url like these -_. nicole s nicole Richard Kurth wrote: Question about explode this work just perfect $name

[PHP] sending e-mail with variables

2001-06-26 Thread Richard Kurth
I have a function that is for sending an e-mail to the customer the messages is stored in a mysql table. Then when the function is called it pulls the data into the mail program. My problem is this in the data that is stored in the table the data looks like this Your webhosting account at

[PHP] Problem with returning value from function

2001-06-26 Thread Richard Kurth
I am having problem getting the info back after I send it to a function. What I what to do is send the value $line two the function process it then return it with all the proper data in place . This function will process about 13 lines names $line1 through $line13 and when they return

[PHP] closing window after submit

2001-06-29 Thread Richard Kurth
I have a form that is in a pop up window it has an image for a submit button how can I close the pop up after submitting. I know I can do it with javascript with a standard submit button. but how can I do it when I use an image for a submit button form method=post action=?echo

[PHP] Adding 1 to a whole number

2001-06-30 Thread Richard Kurth
Way is this doing this Starting with 1000 all I what to do is increse this number by one the first time I run it it adds 1 to the number 10001 second time it 10001002 Shouldn't it just add 1 to the number 1000,1001,1002,1003 ? //$num =1000; $fp2=fopen (number,r+)or die(unable to open file

[PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. It can not find the page the thing is the page that it needs to find is the same page the login form is on and the path to

Re[2]: [PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
Hello Jason, No that does not make it work any different Monday, July 02, 2001, 3:08:58 AM, you wrote: I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. Jason Murray

[PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
I have a login form (look below) It works just perfict in IE but in Netscape it gives me this error Not Found The requested URL /build3.0/user/ was not found on this server. It can not find the page the thing is the page that it needs to find is the same page the login form is on and the path to

Re[4]: [PHP] Problems with Netscape

2001-07-02 Thread Richard Kurth
the same form. scott [gts] always view source in the browser! scott [gts] it'll save you a lot of time debugging... -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 6:30 AM To: 'Richard Kurth'; php Subject: RE: Re[2]: [PHP] Problems

[PHP] checking if checkbox is checked

2001-07-04 Thread Richard Kurth
I have 5 checkbox's in a form that I what to make sure at least one of the checkbox is checked. input type='checkbox' name='interest' value='basic' input type='checkbox' name='interest3' value='Internet access ' input type='checkbox' name='interest1' value='pro' input type='checkbox'

[PHP] verifying that a dropdown was selected

2001-07-05 Thread Richard Kurth
I have a dropdown box that is for selecting the month How can I be verified that the customer has selected one of the months. I am using verification like this but it does not do what I want for a dropdown box it works fine for regular fields if ($month == ) {

[PHP] If (!$results) are true what am I missing

2001-07-09 Thread Richard Kurth
What am I missing hear all I what to do is see if the domaname is in the database and if it does print the error message if does not then just move on without doing anything $db = MYSQL_CONNECT($roothostname,$rootusername, $rootpassword) OR DIE(Unable to connect to database);

[PHP] removing lines from array

2001-07-22 Thread Richard Kurth
I an trying to figure out how to remove lines from a text file from within an array. I fill the array with this $recordsarray = file (../auto/records); The lines I what to remove have this in them $remove = schopf.net ; What I need is how to loop through this array and pull

[PHP] installing php on redhat7

2001-07-25 Thread Richard Kurth
I am trying to install php as DSO on a redhat7 install of Apache. I can not seam to figure this out. I can not find apxs on the server anywhere. But in the httpd.conf file in the LoadModule area there is a section like this. How can I install php without reinstalling Apache that is not

[PHP] running a function after a form submit

2001-07-26 Thread Richard Kurth
Is there a way to run a function when a form is submitted this is an example below this form is being feed buy the form above and when the customer verifies the data that has input he submits it again I what to fire a function when he submits the second time ? if (! (isset($action))) { ?

[PHP] intalling php as cgi on redhat7

2001-07-27 Thread Richard Kurth
I can't belive I have to ask this but I can not get it to work I am trying to get php as cgi installed on a RedHat7 box to be used with Apache. I configured it with ./configure --with-mysql did a make and then a make install every thing whet just fine. I add ScriptAlias /php/ /usr/local/bin/php

[PHP] installing php as cgi on linux

2001-07-27 Thread Richard Kurth
I am trying to get php as cgi installed on a RedHat7 box to be used with Apache. I configured it with ./configure --with-mysql did a make and then a make install every thing whet just fine. I add ScriptAlias /php/ /usr/local/bin/php AddType application/x-httpd-php .php4 .php3 .phtml .php AddType

[PHP] Help would be appreciated

2001-04-05 Thread Richard Kurth
I am trying to write a script that pulls data from a data base and then writes the script to be run again by php. I have added a sample below. There is a lot more to this script but in general what it does is set up new sites on a server. Would it be better to have it write the code one time and

[PHP] How can I make this smaller

2001-04-05 Thread Richard Kurth
Is there another way to write this I would like to make it smaller also How would I write it so it is a function and I would be able to use all the data throughout the whole program every time I try the rest of the program does not see the data if(file_exists("userdata")) { $fp2=fopen

RE: [PHP] function and global problems

2001-04-06 Thread Richard Kurth
what it was. PS: No it won't. ""Richard Kurth"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I can not seem to get this figuered out I whant to run this function to pull data out of a file and thin use the data in the rest o

[PHP] looping through a $_POST variable

2007-12-30 Thread Richard Kurth
I am trying to loop through a $_POST variable. It comes from a text area and it will have data like many email address or just one listed with a space or on a new line. I can't seam to get the data to extract properly. I have tried this below $array = explode(' ', $_POST['emails']);

Re: [PHP] looping through a $_POST variable

2007-12-30 Thread Richard Kurth
I am trying to get one email at a time and run it through the loop and process it but if I have more than one email in the text area it gives me nothing and does not run What kind of problems are you having in extracting the data? On Dec 30, 2007, at 4:29 PM, Richard Kurth wrote: I am trying

Re: [PHP] looping through a $_POST variable

2007-12-30 Thread Richard Kurth
\n; } $result = mysql_query($query) or die(Query Failed: .lierrorno=.mysql_errno(). br .lierror=.mysql_error(). brbr .liquery=.$query ); return $result; } On Sun, December 30, 2007 5:29 pm, Richard Kurth wrote: I am trying to loop through

Re: [PHP] looping through a $_POST variable

2007-12-30 Thread Richard Kurth
to separate them Okay. Now var_dump($array) and see what it has. On Sun, December 30, 2007 6:34 pm, Richard Kurth wrote: When I do a var_dump($_POST['emails']); it has all the emails in it string(65) [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] I will validate the emails after I

[PHP] Run Process in back ground

2008-02-11 Thread Richard Kurth
Is there a way that I can call a function that will send an email and then move on redirecting to another website without having to what for the email to send? SendEmail($memberemail,$MailFrom,$MailHost); header(Location:http://domain.com;); -- PHP General Mailing List (http://www.php.net/) To

[PHP] php and Ajax problem

2007-05-28 Thread Richard Kurth
I can not figure out way this is not working can somebody help? html head titleUntitled/title script language=JavaScript function createRequestObject() { var req; if(window.XMLHttpRequest){ // Firefox, Safari, Opera... req = new XMLHttpRequest(); } else

[PHP] subtracting time from date and time

2007-06-18 Thread Richard Kurth
I am trying to figure out what is the most accurate way to find the time after I subtract 5 min,15 min, 30 min 1 hour 2 hours and 5 hours from a date and time that is formatted like this 20070617T193500 this is the way it has to be formatted to work in a vcalendar

RE: [PHP] subtracting time from date and time

2007-06-18 Thread Richard Kurth
-Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 10:55 AM To: Brad Bonkoski; Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] subtracting time from date and time Something like this will get it into a time stamp

RE: [PHP] subtracting time from date and time

2007-06-18 Thread Richard Kurth
You are right I was looking at it as 0735 was in the morning sorry about that. In that case it works perfect -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 12:21 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP

[PHP] determine which string is longer and then what is different in that string

2007-08-26 Thread Richard Kurth
I am trying to find out which string is the longest and then find out what is different between the two string. Sometimes String 2 is longer than String 1 The script below works sometimes but not all the time. Is there a better way to do this or tell me what is wrong with the script I am using

[PHP] RE: determine which string is longer and then what is different in that string

2007-08-26 Thread Richard Kurth
I am trying to find out which string is the longest and then find out what is different between the two string. Sometimes String 2 is longer than String 1 The script below works sometimes but not all the time. Is there a better way to do this or tell me what is wrong with the

[PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
$Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that that is the current number so I can select the next record || -- PHP General

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that that is the current number so I can select

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
Richard Kurth wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
M. Sokolewicz wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 06:04:45PM -0700, Richard Kurth wrote: Richard Kurth wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
brian wrote: Richard Kurth wrote: What I am trying to is get all the days from a table where email campaign = number. and then look at the last day that was sent and find it in the list and get the next day that follows that day. At this point the script below is not working. So if you

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
Jim Lucas wrote: Richard Kurth wrote: $query = SELECTday FROMemailcampaign wherecampaign_id = '$emailcampaign' ANDmember_id = '$members_id' ; $DB_Change_Campaign_Results = safe_query($query); while ( $row = mysql_fetch_array

Re: [PHP] Finding next recored in a array

2007-09-17 Thread Richard Kurth
Jim Lucas wrote: REVISED Try this ?php $query = SELECTday FROMemailcampaign WHEREcampaign_id = '$emailcampaign' ANDmember_id = '$members_id' ; $DB_Change_Campaign_Results = safe_query($query); ## ## NOTICE: changed from array to assoc ##

[PHP] pulling text from a file

2008-03-21 Thread Richard Kurth
I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? $lines = file_get_contents('clientlist1.txt'); $find=Address:; $f= strstr($f,$find); $separat=City:; $ADDRESS = substr($f, 0,

Re: [PHP] pulling text from a file

2008-03-21 Thread Richard Kurth
Richard Kurth wrote: I have a text file that looks like the one below. I need to read the file into a database. I was trying the script below but is not working can you help? $lines = file_get_contents('clientlist1.txt'); $find=Address:; $f= strstr($f,$find); $separat=City:; $ADDRESS = substr

[PHP] Opening a new window from Header Location or any other way

2008-04-20 Thread Richard Kurth
I have my login.php file that when I access the login fields they are in a small window width=400,height=250. When I click on submit I what it to close this window and open another full window with the web page that the script directs it to. But nomater what I do it opens it in the same window

[PHP] open_basedir restriction in effect

2008-04-24 Thread Richard Kurth
*I keep getting this warning when I try run my script that I what to look at the data in the mailbox for bounced email Warning*: opendir() [function.opendir http://easycontactpro.com/function.opendir]: open_basedir restriction in effect.

[PHP] reading Qmail boxes

2008-04-25 Thread Richard Kurth
I what to read the email headers that are in a Qmail mailbox so that I can run it threw a filter and see what mail bounced for what reason. How do I do this being that the ownership on Qmail mailboxes are diferent from the owner that runs php and apache -- PHP General Mailing List

Re: [PHP] reading Qmail boxes

2008-04-26 Thread Richard Kurth
Manuel Lemos wrote: Hello, Richard Kurth wrote: I what to read the email headers that are in a Qmail mailbox so that I can run it threw a filter and see what mail bounced for what reason. How do I do this being that the ownership on Qmail mailboxes are diferent from the owner that runs

[PHP] problem imap_headerinfo

2008-04-30 Thread Richard Kurth
I get a *Catchable fatal error*: Object of class stdClass could not be converted to string on this line $mail_head = imap_headerinfo($conn, $i); if I remove it it works fine what would be casing this I really need to read the header. I am using php version 5.2.5 $conn = @imap_open({ .

[PHP] problem with for loop

2008-05-02 Thread Richard Kurth
Way does my for loop not complete the task if there are 4 emails it only process 3 emails through the foreach loop if there is 3 it only process 2 # Connect up $host =domain.com; $port =110; $mailtype = pop3; $mailbox =INBOX; $username =[EMAIL PROTECTED]; $password

Re: [PHP] problem with for loop

2008-05-02 Thread Richard Kurth
Nathan Nobbe wrote: On Fri, May 2, 2008 at 1:20 AM, Richard Kurth [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Way does my for loop not complete the task if there are 4 emails it only process 3 emails through the foreach loop if there is 3 it only process 2 $file

[PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Richard Kurth
I have a program that I am writing that I what to install on my server that can be accessed by all domains on the server just like it was on there domain. Could somebody give me an idea on how I can do this or point me to some article that tells how to set this up. -- PHP General Mailing List

  1   2   3   >