[PHP] How to change the first line of a text file

2010-06-12 Thread Richard Kurth
I have around 6000 text files and I need to change the first line on every one of them. The first line is the title of the article and I need it look like this titlethe name of the article/title every file has the first line and the it starts the article on the second line The files are

[PHP] Forcing a Post of data

2009-05-05 Thread Richard Kurth
How can I force this to be a POST and not a GET a href=customer.php?cid=1location=customeradd.php Add Customer /a or is the only way you can pass data with a POST is from a Form submission. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forcing a Post of data

2009-05-05 Thread Richard Kurth
Ashley Sheridan wrote: On Tue, 2009-05-05 at 00:22 -0700, Richard Kurth wrote: Ashley Sheridan wrote: On Tue, 2009-05-05 at 00:09 -0700, Richard Kurth wrote: How can I force this to be a POST and not a GET a href=customer.php?cid=1location=customeradd.php Add Customer

Re: [PHP] Problem with passing and Area in a $_POST

2009-03-15 Thread Richard Kurth
tedd wrote: At 6:31 PM -0700 3/14/09, Richard Kurth wrote: I have a script that is passing a area in a $_POST and it does not pass the data. When I try to look at the data with $_POST['fieldorder'] it its empty but when I look at it with $_REQUEST['fieldorder'] the data is there. This seams

Re: [PHP] Problem with passing and Area in a $_POST

2009-03-15 Thread Richard Kurth
Shawn McKenzie wrote: tedd wrote: At 6:31 PM -0700 3/14/09, Richard Kurth wrote: I have a script that is passing a area in a $_POST and it does not pass the data. When I try to look at the data with $_POST['fieldorder'] it its empty but when I look at it with $_REQUEST['fieldorder

Re: [PHP] Problem with passing and Area in a $_POST

2009-03-15 Thread Richard Kurth
Phpster wrote: I don't think that fieldorder needs to be an array. I don't see you using it as a multiselect. Does this field occur multiple times on the form? Bastien Sent from my iPod On Mar 15, 2009, at 11:56, Richard Kurth richardku...@centurytel.net wrote: Shawn McKenzie wrote

Re: [PHP] Problem with passing and Area in a $_POST

2009-03-15 Thread Richard Kurth
tedd wrote: At 8:56 AM -0700 3/15/09, Richard Kurth wrote: This is the form that is being sent as a post and the fieldorder[] is the part that is not sending properly. But it has worked for about a year in the script. It just stopped working. and I did not change anything in this script

[PHP] Problem with passing and Area in a $_POST

2009-03-14 Thread Richard Kurth
I have a script that is passing a area in a $_POST and it does not pass the data. When I try to look at the data with $_POST['fieldorder'] it its empty but when I look at it with $_REQUEST['fieldorder'] the data is there. This seams very strange to me. It has been working for about 6 months with

[PHP] Using a class inside of a class

2008-12-12 Thread Richard Kurth
Can I use another class inside of a function in a class this function process_queue below is inside of a class called class mailer I want to use the phpMailer class inside of this function so I can send email using smtp. Can this be done and is there any information out there on how to do

[PHP] how can I make an email bounce

2008-11-23 Thread Richard Kurth
I need to make a bunch of emails bounce in different ways so I can check to see if my script to read a mail box full of bounced emails will work properly. Does any body know how I can do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] find a word in a string

2008-11-05 Thread Richard Kurth
is the a php function to find a word in a string and report back that it was found -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Catchable fatal error

2008-10-20 Thread Richard Kurth
I am getting *Catchable fatal error*: Object of class stdClass could not be converted to string in *C:\web\easycontactpro\openchecker.php* on line *49 line 49 is * $mail_head = imap_headerinfo($conn, $i); what could be casing this. The next line works fine if I delete line 49 $conn =

Re: [PHP] Catchable fatal error

2008-10-20 Thread Richard Kurth
I figured it out I am getting *Catchable fatal error*: Object of class stdClass could not be converted to string in *C:\web\easycontactpro\openchecker.php* on line *49 line 49 is * $mail_head = imap_headerinfo($conn, $i); what could be casing this. The next line works fine if I delete line 49

[PHP] pulling data from array

2008-09-08 Thread Richard Kurth
I am trying to pass the data from a table to a google.visualization.OrgChart javascript I have converted the data to an array called $customf_array. Look down in the script to where I need to pull the data out of the array to see the reset of my question $query = SELECT * FROM member WHERE

[PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Richard Kurth
I am trying to read a bunch of files that are in many directors into one string But it will only read one file. Every file is a number 134328923 but they all start with 13 They are in 22 directors named 0 to 22 How can I make the script look in each directory and read each file into a string

Re: [PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Richard Kurth
Version 5 First, which version of PHP? PHP 5 added a lot of features for reading files. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: I am trying to read a bunch of files that are in many directors into one string

Re: [PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Richard Kurth
*); foreach ($files as $file) { $string .= file_get_contents($file); } } echo $string; Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: Version 5 First, which version of PHP? PHP 5 added a lot of features

Re: [PHP] read a bunch of files that are in many directors into one string -- oops again

2008-08-07 Thread Richard Kurth
Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: *I get this when I run it Parse error*: syntax error, unexpected T_DNUMBER in *remove.php* on line *4 it does not like the *foreach (0..22 as $dirNum) Try this: $rootPath = '/remote'; $string

Re: [PHP] read a bunch of files that are in many directors into one string -- oops again

2008-08-07 Thread Richard Kurth
I had to add the full path and it works just fine. Thanks Well, make sure $rootPath is correct for your environment. Also, add a slash after the directory name. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: *Now I get

[PHP] mail script not working

2008-08-04 Thread Richard Kurth
I have been trying to get this mail script to send an html message and it just sends the html in plain text with all the html code showing. Could somebody tell my way this will not work. When it does send it takes a long time to go through but when I send a plan text message it goes through right

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Richard Kurth
Andrew Ballard wrote: On Thu, Jul 31, 2008 at 4:24 PM, brian [EMAIL PROTECTED] wrote: Andrew Ballard wrote: On Thu, Jul 31, 2008 at 1:27 PM, brian [EMAIL PROTECTED] wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few

[PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Richard Kurth
I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs by cron so it is running in the background. How would I do this and is it the best

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Richard Kurth
Andrew Ballard wrote: On Tue, Jul 29, 2008 at 4:52 PM, Richard Kurth [EMAIL PROTECTED] wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today

[PHP] Problem with using array_diff and array_combine

2008-07-28 Thread Richard Kurth
I hope I can explain what I am trying to do. I have two tables the first one has the custom form elements elements_id elements_field_type elements_field_caption members_id 35 text test 8 36 text test2 8

[PHP] Problem with using array_diff and array_combine

2008-07-27 Thread Richard Kurth
I hope I can explain what I am trying to do. I have two tables the first one has the custom form elements formelements_id formelements_field_type formelements_field_caption members_id 35 texttest8 36 texttest2 8 The second one has the customer id and the field value

[PHP] looping through a database

2008-06-16 Thread Richard Kurth
I am looping through a database of files that are numbers 1 through 10 if number 1 is in the database I what to print out the first table below if it is not then print the else section below. Then loop through the database to see if 2 through 10 are there and do the same thing. Of course what

Re: [PHP] looping through a database

2008-06-16 Thread Richard Kurth
Wolf wrote: Richard Kurth wrote: I am looping through a database of files that are numbers 1 through 10 if number 1 is in the database I what to print out the first table below if it is not then print the else section below. Then loop through the database to see if 2 through 10

Re: [PHP] creating an xls file from mysql data

2008-05-13 Thread Richard Kurth
Chris wrote: Richard Kurth wrote: This script will create an xls file from the data that is sent to it When I run this it only gets one recored and it is supposet to get all the records that are past by the $_POST[selectedcontactlist] I think I have a } in the wrong place but I can

[PHP] creating an xls file from mysql data

2008-05-12 Thread Richard Kurth
This script will create an xls file from the data that is sent to it When I run this it only gets one recored and it is supposet to get all the records that are past by the $_POST[selectedcontactlist] I think I have a } in the wrong place but I can not figure it out anybody have a suggestion

[PHP] creating an xls file from mysql data

2008-05-11 Thread Richard Kurth
This script will create an xls file from the data that is sent to it When I run this it only gets one recored and it is supposet to get all the records that are past by the $_POST[selectedcontactlist] I think I have a } in the wrong place but I can not figure it out anybody have a suggestion

[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

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

2008-05-08 Thread Richard Kurth
Dan Joseph wrote: On Thu, May 8, 2008 at 11:47 AM, Richard Kurth [EMAIL PROTECTED] wrote: 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

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

2008-05-08 Thread Richard Kurth
Dan Joseph wrote: On Thu, May 8, 2008 at 11:54 AM, Richard Kurth [EMAIL PROTECTED] wrote: Dan Joseph wrote: On Thu, May 8, 2008 at 11:47 AM, Richard Kurth [EMAIL PROTECTED] wrote: I have a program that I am writing that I what to install on my server that can be accessed

[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] 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({ .

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] 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

[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] 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] 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] 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] 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

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] 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

[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] 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] 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

RE: [PHP] finding next and prev record in mysql

2007-05-11 Thread Richard Kurth
-Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:09 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] finding next and prev record in mysql Richard Kurth wrote: How would I find the next id and the prev id in sql statement

RE: [PHP] finding next and prev record in mysql

2007-05-11 Thread Richard Kurth
-Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:09 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] finding next and prev record in mysql Richard Kurth wrote: How would I find the next id and the prev id in sql statement

[PHP] finding next and prev record in mysql

2007-05-10 Thread Richard Kurth
How would I find the next id and the prev id in sql statement like the one below. The id number is not going to be in order so I can't do a or limit 1 on the search SELECT id FROM contacts WHERE category = '5' AND subcategory = '1' AND members_id= '8' ORDER BY lastname

[PHP] Delete first line of a csv file if it is the headers

2007-04-29 Thread Richard Kurth
The below script will parse a csv file to a database I need to remove the first line because it is the header files and I don't need them. How can I test for that and remove them. $file = fopen($_POST['copy'], 'r') or $message .= Could not open . $_POST[copy] . for reading.BR\n;

[PHP] Do two lists in a while statement

2007-04-21 Thread Richard Kurth
How can I do something like this in the same while statement. This does not work while (list(,$possible) = each($possiblefields) list(,$possibleview) = each($possiblefieldsdiscription)){ }

RE: [PHP] Do two lists in a while statement

2007-04-21 Thread Richard Kurth
On 4/21/07, Richard Kurth [EMAIL PROTECTED] wrote: How can I do something like this in the same while statement. This does not work while (list(,$possible) = each($possiblefields) list(,$possibleview) = each($possiblefieldsdiscription)){ } What about using ? while (list(,$possible

RE: [PHP] Do two lists in a while statement

2007-04-21 Thread Richard Kurth
On 4/21/07, Richard Kurth [EMAIL PROTECTED] wrote: On 4/21/07, Richard Kurth [EMAIL PROTECTED] wrote: How can I do something like this in the same while statement. This does not work while (list(,$possible) = each($possiblefields) list(,$possibleview) = each($possiblefieldsdiscription

RE: [PHP] Do two lists in a while statement

2007-04-21 Thread Richard Kurth
-Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Saturday, April 21, 2007 1:13 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] Do two lists in a while statement On 4/21/07, Richard Kurth [EMAIL PROTECTED] wrote: On 4/21/07, Richard Kurth

[PHP] Problem with uploading file using FireFox

2007-04-21 Thread Richard Kurth
I know this is not a PHP problem it is a Browser problem but I need a workaround to make this work. So I can finishing my php script Using this to select the file and path form action=test7.php method=post input type=file name=uploadfile id=original size=60BR BR input type=submit

[PHP] isset

2007-04-14 Thread Richard Kurth
What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST['var'] = and isset thinks is set

[PHP] changing array to a string

2007-03-27 Thread Richard Kurth
When I submit the for below it gives me an array that looks like this array(5) { [0]= string(1) 3 [1]= string(1) 4 [2]= string(1) 5 [3]= string(1) 6 [4]= string(1) 7 } I would like to convert it to a string like this 3,4,5,6,7 form action=test.php method=post table trtd colspan=2

RE: [PHP] changing array to a string

2007-03-27 Thread Richard Kurth
Richard Kurth wrote: When I submit the for below it gives me an array that looks like this array(5) { [0]= string(1) 3 [1]= string(1) 4 [2]= string(1) 5 [3]= string(1) 6 [4]= string(1) 7 } I would like to convert it to a string like this 3,4,5,6,7 $ids = implode(',', $_POST['subscriptions

RE: [PHP] Using array_search I get error

2007-03-12 Thread Richard Kurth
-Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:16 AM To: Richard Kurth Cc: Stut; php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error On 3/12/07, Richard Kurth [EMAIL PROTECTED] wrote: Richard Kurth wrote

[PHP] Using array_search I get error

2007-03-11 Thread Richard Kurth
This array comes from $_REQUEST of all data submitted $array='Array ( [id] = 17 [takeaction] = saveCustomFields [notes] = -- Feb 4, 2007 @ 9:16 PM --fdsfdsfsdfdsfsfsfds -- Feb 4, 2007 @ 9:21 PM --fdfdsfsdffsd -- February 11, 2007, @ 9:31 PM -- This is a tes -- February 14, 2007, @ 10:10 PM --

RE: [PHP] Using array_search I get error

2007-03-11 Thread Richard Kurth
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 2:53 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error Richard Kurth wrote: This array comes from $_REQUEST of all data submitted $array='Array

RE: [PHP] Using array_search I get error

2007-03-11 Thread Richard Kurth
Richard Kurth wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 2:53 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error Richard Kurth wrote: This array comes from $_REQUEST of all

RE: [PHP] determine time in city using GMT offset

2007-03-07 Thread Richard Kurth
] Sent: Wednesday, March 07, 2007 10:36 AM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] determine time in city using GMT offset Richard Kurth wrote: How would I determine the time in a different city If I know the GMT offset in both placesSay GMT -1 in one city and GMT -7

[PHP] Turning serialize data into an array

2007-03-05 Thread Richard Kurth
How can I get the data out of this string that has been serialize I need to get it into an array so I can access the data with something like $testdata[1] I have tried $testdata= unserialize($testdata); also $sst= base64_encode(serialize($testdata)); $testdata1= unserialize(base64_decode($sst));

[PHP] Getting bool(false) when using unserialize

2007-03-04 Thread Richard Kurth
Way am I getting Error at offset 499 of 497 bytes bool(false) when I run this script below according to the manual this should work';? $testdata=a:17:{s:11:\event_start\;s:4:\2230\;s:9:\event_end\;s:4:\2 300\;s:14:\start_unixtime\;i:1173076200;s:12:\end_unixtime\;i:117307800

RE: [PHP] Re: Getting bool(false) when using unserialize

2007-03-04 Thread Richard Kurth
: Sunday, March 04, 2007 2:20 PM To: php-general@lists.php.net Subject: [PHP] Re: Getting bool(false) when using unserialize stripslashes before serializing; not afterwards. Richard Kurth wrote: Way am I getting Error at offset 499 of 497 bytes bool(false) when I run this script below according

RE: [PHP] save email in original layout

2007-02-23 Thread Richard Kurth
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 2:19 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] save email in original layout http://php.net/mysql_real_escape_string is the only thing you need to worry about

RE: [PHP] time

2007-01-29 Thread Richard Kurth
[snip] I am writing a program for managing leads and contacts. I would like to add the ability to see what TIME it is where the contact is not there server time. So if you looked at a list of contacts from all over the country you would see different times compared to what time it is where the

Re[2]: [PHP] failed to open stream error

2005-06-10 Thread Richard Kurth
Hello Duncan, Friday, June 10, 2005, 12:01:33 AM, you wrote: DH On Friday 10 June 2005 06:31, Richard Kurth typed: Way do I get Warning: fopen(https://esos.state.nv.us/SOSServices/AnonymousAccess/CorpSearch/CorpD etails.aspx?CorpID=478765): failed to open stream: Invalid argument When I

[PHP] failed to open stream error

2005-06-09 Thread Richard Kurth
Way do I get Warning: fopen(https://esos.state.nv.us/SOSServices/AnonymousAccess/CorpSearch/CorpDetails.aspx?CorpID=478765): failed to open stream: Invalid argument When I run this. I can access the page from the browser but not from inside of a script

[PHP] stupid question about a class

2004-12-08 Thread Richard Kurth
I have a stupid question but I can not figure it out I am using a class that creates the select statement for mysql. I am ale to add all the data with out any problem. But when I run the class to get the results. I can only see the results by running echo in front of the call to the class . echo

[PHP] searching with mutable criteria

2004-12-07 Thread Richard Kurth
I am having a problem with this script what it does is write the sql needed to search for data based on mutable criteria. It works fine if you search with all the different fields but if you only search with one or two of the fields it creates a sql that looks like this SELECT * FROM listing WHERE

[PHP] Problem with code

2004-12-06 Thread Richard Kurth
I am having a problem with the code below it provides the first page with out any problem but when I select the next page it shows all the results from the first page and the results from the second page. It does the same thing on the third page also. I have been looking at it for two days and can

[PHP] searching with mutable criteria

2004-12-06 Thread Richard Kurth
I am having a problem with this script what it does is write the sql needed to search for data based on mutable criteria. It works fine if you search with all the different fields but if you only search with one or two of the fields it creates a sql that looks like this SELECT * FROM listing WHERE

[PHP] mysql error

2004-12-05 Thread Richard Kurth
Could somebody tell me way these query gets a error 1064 and does not work. error=You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT * FROM listing WHERE `state` = 'WA' AND `type` = 'RES' query=SELECT *

[PHP] Problem with code

2004-12-05 Thread Richard Kurth
I am having a problem with the code below it provides the first page with out any problem but when I select the next page it shows all the results from the first page and the results from the second page. It does the same thing on the third page also. I have been looking at it for two days and can

[PHP] Problem with a while loop

2004-10-07 Thread Richard Kurth
I am having a problem with a while loop if I put in a number with 0's in front of it it converts the number two the first whole number. such as 1 would be 1 02200 would be 2200. Then it starts the count down starting with that number. How can I make it not remove the 0's in front of the

Re[2]: [PHP] Problem with a while loop

2004-10-07 Thread Richard Kurth
Hello djoseph, Thursday, October 7, 2004, 11:34:22 AM, you wrote: The following script would look like this when run 1 2 3 4 I needed it to look like this 1 2 3 dtrc You're going to want to use printf or sprintf to format the numbers. dtrc example: printf( %05d, $i );

[PHP] compiling php with mysql ver3 or 4

2004-05-31 Thread Richard Kurth
Hello , How can I compile PHP so that it does not mater what version of mysql is installed. If I compile it for mysql 3.X and then upgrade mysql to ver 4 PHP will not install. I get error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file this is

[PHP] Pulling unique data from database into an array

2004-02-02 Thread Richard Kurth
I am pulling data from a database that list the Language a person speaks and the id number. It is in a format like this. user_idfield_value 6English||Spanish 2English 8English||Portuguese||Finnish 5English||Japanese||German 3

Re[2]: [PHP] Pulling unique data from database into an array

2004-02-02 Thread Richard Kurth
!!) - these are basic manipulations and a developing proper JM understanding of them is very important to being able to write good code JM - I speak from experience when I say the only real way to understand it JM is to play with it. JM have fun. JM Richard Kurth wrote: I am pulling data from a database

[PHP] Pulling unique data from database

2004-02-01 Thread Richard Kurth
I am pulling data from a database that list the Language a person speaks. It is in a format like this. English||Spanish English English||Portuguese||Finnish English||Japanese||German English English German each time it looks at a new record it list all the languages that that person speaks

[PHP] Pulling two field from mysql table into an array

2004-02-01 Thread Richard Kurth
What is the best way to pull two fields from a mysql database and add the two fields to an array for each record in the table field_name user_id I need it so iI can access the array with $key and $value -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Problem with while loop

2004-01-07 Thread Richard Kurth
I can't seam to get this while loop to work properly. It should create a message that has the first two lines and then it will list all the domain that meat the criteria. $lines = The following are web sites that are at 95% usage or more of there web space\n; $lines = Site Name Used(MB)

[PHP] Problem with using php at the command line with mysql

2004-01-05 Thread Richard Kurth
I am using PHP to do some command line work on a Linux box. I keep getting this error and can not figure out way. Is there something I am missing because this should work. There is a copy of the code at the bottom of this message. Warning: mysql_fetch_array(): supplied argument is not a valid

  1   2   3   >