RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Alice Wei
Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: tedd.sperl...@gmail.com; php-general@lists.php.net Date: Sun, 27 Jun 2010 17:16:04 +0100 On Sun, 2010-06-27 at 12:11 -0400, Alice Wei wrote: Date

RE: [PHP] Modifying Existing Text File From PHP Is Not Working

2010-06-27 Thread Alice Wei
Subject: RE: [PHP] Modifying Existing Text File From PHP Is Not Working From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: tedd.sperl...@gmail.com; php-general@lists.php.net Date: Sun, 27 Jun 2010 17:29:05 +0100 On Sun, 2010-06-27 at 12:23 -0400, Alice Wei wrote: Subject

[PHP] Preg Match Problem

2010-06-02 Thread Alice Wei
Hi, I have a code snippet here as in the following: [CODE] $keywords = preg_split(/[\s,]+/, $day); $count = count($keywords); if(preg_match((Mon|Tue|Wed|Thu|Fri)/i, $keywords[$i])) { //line 40 $day_query =start_time.day='12345' AND end_time.day='12345'; } if(preg_match(Sat/i,

RE: [PHP] Preg Match Problem

2010-06-02 Thread Alice Wei
From: peter.e.l...@gmail.com Date: Wed, 2 Jun 2010 18:17:00 +0200 Subject: Re: [PHP] Preg Match Problem To: aj...@alumni.iu.edu CC: php-general@lists.php.net On 2 June 2010 18:14, Alice Wei aj...@alumni.iu.edu wrote: Hi, I have a code snippet here as in the following: [CODE

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-31 Thread Alice Wei
Date: Mon, 31 May 2010 11:56:38 -0400 To: php-general@lists.php.net; aj...@alumni.iu.edu From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms At 7:23 PM -0400 5/30/10, Alice Wei wrote: Tedd, Looks like I finally found

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-30 Thread Alice Wei
Date: Sun, 30 May 2010 11:53:44 -0400 To: php-general@lists.php.net; aj...@alumni.iu.edu From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms At 12:08 PM -0400 5/29/10, Alice Wei wrote: At the time of writing this, I got all

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-29 Thread Alice Wei
Date: Sat, 29 May 2010 11:50:50 -0400 To: php-general@lists.php.net; aj...@alumni.iu.edu From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms At 7:31 PM -0400 5/28/10, Alice Wei wrote: Anything I want? Seriously, I do know

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-28 Thread Alice Wei
Date: Fri, 28 May 2010 12:34:55 -0400 To: aj...@alumni.iu.edu; php-general@lists.php.net From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms At 9:19 PM -0400 5/27/10, Alice Wei wrote: I am not sure how to add to the page

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-28 Thread Alice Wei
Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: tedd.sperl...@gmail.com; php-general@lists.php.net Date: Fri, 28 May 2010 20:05:29 +0100 On Fri, 2010-05-28 at 15:00 -0400, Alice Wei wrote

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-28 Thread Alice Wei
Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: tedd.sperl...@gmail.com; php-general@lists.php.net Date: Fri, 28 May 2010 20:14:06 +0100 On Fri, 2010-05-28 at 15:12 -0400, Alice Wei wrote

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-28 Thread Alice Wei
Date: Fri, 28 May 2010 17:18:21 -0400 To: aj...@alumni.iu.edu From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms CC: php-general@lists.php.net On Fri, 2010-05-28 at 15:12 -0400, Alice Wei wrote: What I am trying to find out

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-28 Thread Alice Wei
...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms CC: php-general@lists.php.net On Fri, 2010-05-28 at 15:12 -0400, Alice Wei wrote: What I am trying to find out is, when I have my form with a dependent select menu, how can I pass the value

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-27 Thread Alice Wei
Date: Thu, 27 May 2010 12:23:46 -0400 To: aj...@alumni.iu.edu; php-general@lists.php.net From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms At 3:50 PM -0400 5/26/10, Alice Wei wrote: My bad, I cannot imagine I sent that stuff

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-26 Thread Alice Wei
On Tue, 2010-05-25 at 15:41 -0400, Alice Wei wrote: Date: Tue, 25 May 2010 13:40:44 -0400 Subject: Re: [PHP] Select Values Didn't Get Passed in From Two Different Forms From: marc.g...@gmail.com To: aj...@alumni.iu.edu I would like to take those values away into my third form, which

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-26 Thread Alice Wei
Date: Wed, 26 May 2010 09:19:26 -0400 To: php-general@lists.php.net; aj...@alumni.iu.edu From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms At 9:17 PM -0400 5/25/10, Alice Wei wrote: No, the fields are populated in the first

RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-26 Thread Alice Wei
Date: Wed, 26 May 2010 15:36:18 -0400 To: php-general@lists.php.net; aj...@alumni.iu.edu From: tedd.sperl...@gmail.com Subject: RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms Alice: You provide: ul form action= method=post liSelect the type of your

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Alice Wei
From: ak...@telkomsa.net To: aj...@alumni.iu.edu; php-general@lists.php.net Subject: RE: [PHP] Dynamic Menus in a PHP Form Issue Date: Tue, 25 May 2010 08:59:08 +0200 -Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: 24 May 2010 04:47 PM To: php-general

Re: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-25 Thread Alice Wei
Date: Tue, 25 May 2010 13:40:44 -0400 Subject: Re: [PHP] Select Values Didn't Get Passed in From Two Different Forms From: marc.g...@gmail.com To: aj...@alumni.iu.edu I would like to take those values away into my third form, which is what you see with the hidden. If they are not

[PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread Alice Wei
Hi,I have a snippet as in the following: ul liSelect the type of your starting point of interest:br/ div id=start_menuform action= name=form1 method=post spaninput type=radio value=Apartment name=start

RE: [PHP] Append Dom Document

2010-05-14 Thread Alice Wei
Hi, You are right about the fact I am not having multiple documents, and yet what I am trying to do here is to have one xmldoc, which I have declared in my original email, and have my other rss feeds that I am trying to call from the PHP to append as I check more checkboxes from the list.

[PHP] Append Dom Document

2010-05-13 Thread Alice Wei
Hi, I am trying to create a news feed page that loads a number of different feeds depending on what options the user selects. For some reason, I could not figure out how to get the dom document to append the different xml documents that get created. Below is the code, and obviously now

RE: [PHP] Append Dom Document

2010-05-13 Thread Alice Wei
Date: Thu, 13 May 2010 18:49:35 -0600 Subject: Re: [PHP] Append Dom Document From: quickshif...@gmail.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net On Thu, May 13, 2010 at 5:46 PM, Alice Wei aj...@alumni.iu.edu wrote: Hi, I am trying to create a news feed page that loads

RE: [PHP] Forward to a Different PHP Script?

2010-05-11 Thread Alice Wei
From: ak...@telkomsa.net To: aj...@alumni.iu.edu; php-general@lists.php.net Subject: RE: [PHP] Forward to a Different PHP Script? Date: Tue, 11 May 2010 11:01:30 +0200 -Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: 11 May 2010 10:55 AM Subject: [PHP

RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei
From: peter.e.l...@gmail.com Date: Wed, 21 Apr 2010 09:29:19 +0200 Subject: Re: [PHP] Mail Function Using PEAR Issues To: aj...@alumni.iu.edu CC: a...@ashleysheridan.co.uk; php-general@lists.php.net On 21 April 2010 04:25, Alice Wei aj...@alumni.iu.edu wrote: Well, from my experience

RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei
Date: Wed, 21 Apr 2010 22:01:03 +0200 Subject: Re: [PHP] Mail Function Using PEAR Issues To: aj...@alumni.iu.edu CC: a...@ashleysheridan.co.uk; php-general@lists.php.net On 21 April 2010 21:58, Alice Wei aj...@alumni.iu.edu wrote: From: peter.e.l...@gmail.com Date: Wed, 21 Apr 2010 21

RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei
post to this list I'd suggest you use the pear installer. On Thu, Apr 22, 2010 at 12:12 AM, Alice Wei aj...@alumni.iu.edu wrote: Date: Wed, 21 Apr 2010 22:01:03 +0200 Subject: Re: [PHP] Mail Function Using PEAR Issues To: aj...@alumni.iu.edu CC: a...@ashleysheridan.co.uk; php-general

RE: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Alice Wei
From: peter.e.l...@gmail.com Date: Mon, 19 Apr 2010 10:15:08 +0200 Subject: Re: [PHP] Mail Function Using PEAR Issues To: aj...@alumni.iu.edu CC: php-general@lists.php.net Most, if not all, mail servers keep log files. You should look for the log files to see if the mail server has sent

RE: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Alice Wei
Subject: Re: [PHP] Mail Function Using PEAR Issues From: a...@ashleysheridan.co.uk To: peter.e.l...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Date: Tue, 20 Apr 2010 21:16:03 +0100 On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: On 20 April 2010 20:17, Alice

RE: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Alice Wei
Subject: Re: [PHP] Mail Function Using PEAR Issues From: a...@ashleysheridan.co.uk To: peter.e.l...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Date: Tue, 20 Apr 2010 21:16:03 +0100 On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: On 20 April 2010 20:17, Alice

RE: [PHP] Mail Function Using PEAR Issues

2010-04-19 Thread Alice Wei
Date: Sun, 18 Apr 2010 21:39:19 -0500 From: k...@daleco.biz To: aj...@alumni.iu.edu CC: k...@designdrumm.com; php-general@lists.php.net Subject: Re: [PHP] Mail Function Using PEAR Issues Alice Wei wrote: Date: Sun, 18 Apr 2010 21:02:29 -0500 From: k...@daleco.biz To: aj

[PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Alice Wei
Hi, After several days, I have rebuilt my system on Linux using Ubuntu, installed PEAR and such. Thankfully, when I execute the code, it no longer gives me the error that the class is not found. Yet, when I submit the form now, I can always see the confirmation message telling me that my

RE: [PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Alice Wei
*think*, because localhost is a hostname, not a working mailbox. Try making $from equal to a real working address - possibly the same one as your Errors-to: header.. My $0.02, KDK On Apr 18, 2010, at 10:11 AM, Alice Wei wrote: Hi, After several days, I have rebuilt my system

RE: [PHP] Mail Function Problem

2010-04-13 Thread Alice Wei
Subject: RE: [PHP] Mail Function Problem From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: k...@daleco.biz; a.bovane...@gmail.com; php-general@lists.php.net Date: Tue, 13 Apr 2010 13:19:15 +0100 On Mon, 2010-04-12 at 12:25 -0400, Alice Wei wrote: Date: Mon, 12 Apr

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
From: peter.e.l...@gmail.com Date: Mon, 12 Apr 2010 13:09:48 +0200 Subject: Re: [PHP] Mail Function Problem To: k...@daleco.biz CC: aj...@alumni.iu.edu; php-general@lists.php.net On 12 April 2010 05:22, Kevin Kinsey k...@daleco.biz wrote: Thanks to the worldwide brotherhood of crooks

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
authentication. Is there an email account that I could try? I thought most email accounts requires authentication anyway. Thanks for your help. Alice On Mon, Apr 12, 2010 at 6:33 AM, Alice Wei aj...@alumni.iu.edu wrote: Hi, I have an issue here where I see no PHP errors on my mail function usage

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
Date: Mon, 12 Apr 2010 11:09:42 -0500 From: k...@daleco.biz To: aj...@alumni.iu.edu CC: a.bovane...@gmail.com; php-general@lists.php.net Subject: Re: [PHP] Mail Function Problem Alice Wei wrote: Hi! You have the following php.ini params:SMTP = smtp.live.com smtp_port = 587

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
Hi, Thanks to everyone's suggestions, I have followed some instructions from http://www.geeksengine.com/article/install-pear-on-windows.html and attempted to install PEAR. The problem is, when I do a test page, which only has: ?php error_reporting(-1); require_once PEAR.php; ?. utor

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
Date: Mon, 12 Apr 2010 15:54:05 -0500 From: k...@daleco.biz To: kranthi...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: [PHP] Mail Function Problem kranthi wrote: PEAR's mail package does support authentication.

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
From: kranthi...@gmail.com Date: Tue, 13 Apr 2010 07:41:19 +0530 Subject: Re: [PHP] Mail Function Problem To: aj...@alumni.iu.edu CC: k...@daleco.biz; php-general@lists.php.net thats weired... Mail.php contains the class Mail. So getting a class not found error is not possible...

[PHP] Mail Function Problem

2010-04-11 Thread Alice Wei
Hi, I have an issue here where I see no PHP errors on my mail function usage, and yet I am not getting the mail in the desired account. Here is what I have for my PHP code: $headers = From: aj...@alumni.iu.edu; $to = aj...@alumni.iu.edu ; $subject = Comments Regarding My Studio; $body =

RE: [PHP] Array Search Problem

2010-03-11 Thread Alice Wei
only a given (and usually documented) set of parameter(type)s, so you'll probably have to prepare the var, or even call the function in a loop, outputting to yet another descriptively named array that'll be used as wanted list later in the code. On Wed, Mar 10, 2010 at 6:57 PM, Alice Wei aj

[PHP] Array Search Problem

2010-03-10 Thread Alice Wei
Hi, I have the code as shown in the following that I am trying to create the image of based on the file loaded into the file and additional edits. The problem here appears to be that no matter what value I have in the $distance_to_destination variable, it does not affect any changes on the

[PHP] Array Search Not Working?

2010-03-10 Thread Alice Wei
Hi, I have two arrays here that I have combined into a new array, as shown here: $from = explode(-, $from); $change = explode(-,$change); $new_array = array_combine($from,$change); I then tried reading it from a file and do string matches, trying to find out the key using the array_search

RE: [PHP] Array Search Problem

2010-03-10 Thread Alice Wei
without having to strip off anything? Thanks for your help. Alice On Wed, Mar 10, 2010 at 4:12 PM, Alice Wei aj...@alumni.iu.edu wrote: Hi, I have the code as shown in the following that I am trying to create the image of based on the file loaded into the file and additional edits

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
for each fclose($fh); ? Thanks for your help. Alice Date: Thu, 25 Feb 2010 13:03:57 -0600 From: nos...@mckenzies.net CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: PHP GET Error? Shawn McKenzie wrote: Alice Wei wrote: Hi, I have done something wrong here

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Date: Thu, 25 Feb 2010 13:03:57 -0600 From: nos...@mckenzies.net CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: PHP GET Error? Shawn McKenzie wrote: Alice Wei wrote: Hi, I have done something wrong here, because when I have my variables declared in my PHP

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Date: Thu, 25 Feb 2010 13:50:16 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net Subject: Re: PHP GET Error? Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the I/O because

[PHP] PHP GET Error?

2010-02-25 Thread Alice Wei
Hi, I have done something wrong here, because when I have my variables declared in my PHP: $people_from = $_GET['people_from']; $state_colors= $_GET['state_colors']; I get this url: http://localhost/generic.php?people_from=Adair, OK-Alfalfa, OK-Atoka, OK-Beaver, OK-Beckham,

RE: [PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Subject: Re: [PHP] RE: PHP GET Error? From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: nos...@mckenzies.net; php-general@lists.php.net Date: Thu, 25 Feb 2010 20:03:28 + On Thu, 2010-02-25 at 15:01 -0500, Alice Wei wrote: Date: Thu, 25 Feb 2010 13:50:16 -0600 From

[PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Alice Wei wrote: Date: Thu, 25 Feb 2010 13:50:16 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net Subject: Re: PHP GET Error? Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using

RE: [PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Alice Wei wrote: Hi, I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the I/O because Actionscript does not have this option. So, I guess I cannot do the serialize here like you suggested. I have changed # to 0x for now

RE: [PHP] RE: PHP GET Error?

2010-02-25 Thread Alice Wei
Date: Thu, 25 Feb 2010 15:04:46 -0600 From: nos...@mckenzies.net To: aj...@alumni.iu.edu CC: a...@ashleysheridan.co.uk; php-general@lists.php.net Subject: Re: [PHP] RE: PHP GET Error? Alice Wei wrote: I can't see anything obviously wrong with the URL really. Is there no way instead

[PHP] array_count_values Problem

2010-01-12 Thread Alice Wei
Hi, I have a code in the following, after investigating more closely on how to use array_count_values(): //Calculate the number of elements in array $total_num = count($friend_from); $total_num2 = count(array_unique($friend_from)); for ($i=0;$i=$total_num2;$i++) echo $friend_from[$i] .

RE: [PHP] array_count_values Problem

2010-01-12 Thread Alice Wei
://php.net/array_count_values). So you are using it the wrong way, you should assign the return value to a variable and then access some index. Regards, Jonathan On Tue, Jan 12, 2010 at 11:09 AM, Alice Wei aj...@alumni.iu.edu wrote: Hi, I have a code in the following, after

[PHP] Count the Number of Certain Elements in An Array

2010-01-11 Thread Alice Wei
Hi, This seems like a pretty simple problem, but I can't seem to be able to figure it out. I have a lot of elements in an array, and some of them are duplicates, but I don't want to delete them because I have other purposes for it. Is it possible for me to find out the number of certain

RE: [PHP] Count the Number of Certain Elements in An Array

2010-01-11 Thread Alice Wei
Date: Mon, 11 Jan 2010 18:31:43 -0300 Subject: Re: [PHP] Count the Number of Certain Elements in An Array From: tapi...@gmail.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net On Mon, Jan 11, 2010 at 6:21 PM, Alice Wei aj...@alumni.iu.edu wrote: Hi, This seems like

[PHP] SVG and PHP

2010-01-05 Thread Alice Wei
Hi, Just went online and saw an SVG generated from Python, and wanted to do the similar thing by loading the SVG into an PHP script. Here is the script that I have: ?php #Load the Map $ourFileName= USA_Counties_with_FIPS_and_names.svg; $fh = fopen($ourFileName, r) or die(Can't open

RE: [PHP] SVG and PHP

2010-01-05 Thread Alice Wei
Hi, Just went online and saw an SVG generated from Python, and wanted to do the similar thing by loading the SVG into an PHP script. Here is the script that I have: ?php #Load the Map $ourFileName= USA_Counties_with_FIPS_and_names.svg; $fh = fopen($ourFileName, r) or die(Can't

RE: [PHP] SVG and PHP

2010-01-05 Thread Alice Wei
On Tue, 2010-01-05 at 15:15 -0500, Alice Wei wrote: Hi, Just went online and saw an SVG generated from Python, and wanted to do the similar thing by loading the SVG into an PHP script. Here is the script that I have: ?php #Load the Map $ourFileName

[PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
Hi, This seems like a small problem that I have read from http://us.php.net/manual/en/xmlreader.isvalid.php. I have the code snippet here as follows: ?php $xml = XMLReader::open('hello.xml'); // You must to use it $xml-setParserProperty(XMLReader::VALIDATE, true); if ($xml-isValid())

RE: [PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
: php-general@lists.php.net Subject: Re: [PHP] Validating XML Issue I'd say your XML document is not well formed, but validity depends on whether it conforms to the rules expressed in a schema. Mattias Alice Wei wrote: Hi, This seems like a small problem that I have read from

[PHP] String to Date Conversion Problem

2009-07-31 Thread Alice Wei
Hi, Guys: I am trying to turn a prepared line into a date format, and the string looks something like this: 23 JUL 09 - THURSDAY, and I am trying to change the string to a mm/dd/ format that looks like 07/23/2009. I tried to use strtotime() but it gave me nothing. Here is the

RE: [PHP] String to Date Conversion Problem

2009-07-31 Thread Alice Wei
]} {$parts[2]})); Cheers Stuart On 31 Jul 2009, at 15:19, Alice Wei wrote: Hi, Guys: I am trying to turn a prepared line into a date format, and the string looks something like this: 23 JUL 09 - THURSDAY, and I am trying to change the string to a mm/dd/ format that looks

[PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei
Hi, I use Linux, and I had installed PHP using yum install php. I am trying to use the pdf_new function to create pdfs from existing text files, but I get this error PHP Fatal error: Call to undefined function pdf_new() I have noticed that when I run the phpinfo() command, I cannot

RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei
On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei aj...@alumni.iu.edu wrote: Hi, I use Linux, and I had installed PHP using yum install php. I am trying to use the pdf_new function to create pdfs from existing text files, but I get this error PHP Fatal error: Call to undefined

RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei
Date: Mon, 16 Mar 2009 11:41:35 -0400 Subject: Re: [PHP] pdf_new() uncalled Function From: phps...@gmail.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net On Mon, Mar 16, 2009 at 11:32 AM, Alice Wei aj...@alumni.iu.edu wrote: On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei aj

RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei
[/snip] another option is FPDF from www.fpdf.org another class the classes are nice since they don't generally require the module to be installed. If you are on Linux, another option might be FOP... http://xmlgraphics.apache.org/fop/ I checked out the first link you provided, and

[PHP] Copy Non-Text file from One Server to Another Issues

2009-03-12 Thread Alice Wei
Hi, I have a simple code as shown in the following: ?php //original file $file = http://remote_server/copy/play.txt;; $file2 = http://remote_server/copy/test.jpg;; $file3 = http://remote_server/copy/sample.pdf;; //directory to copy to (must be CHMOD to 777) $copydir = .; $data =

RE: [PHP] Copy Non-Text file from One Server to Another Issues

2009-03-12 Thread Alice Wei
Date: Thu, 12 Mar 2009 14:55:52 -0400 Subject: Re: [PHP] Copy Non-Text file from One Server to Another Issues From: danbr...@php.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net On Thu, Mar 12, 2009 at 14:51, Alice Wei aj...@alumni.iu.edu wrote: Warning: file_get_contents

[PHP] Line Break Problem

2009-03-09 Thread Alice Wei
Hi, I have a question regarding using line breaks in PHP. I have the code something like: echo 1 . \t . $x . \t . $y . \r\n; When I run the code, it looks like a whole blob of text, but when I use View Source, the line breaks are formatted then correctly. Anyone can please tell

RE: [PHP] Line Break Problem

2009-03-09 Thread Alice Wei
Date: Mon, 9 Mar 2009 13:28:19 +0100 From: joc...@iamjochem.com To: stut...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: [PHP] Line Break Problem Stuart schreef: 2009/3/9 Alice Wei aj...@alumni.iu.edu I have a question regarding using line breaks

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-09 Thread Alice Wei
Date: Wed, 4 Mar 2009 15:29:19 -0500 Subject: Re: [PHP] How Much Data Can Be Written to a Database In One Instance? From: danbr...@php.net To: rob...@interjinn.com CC: aj...@alumni.iu.edu; php-general@lists.php.net On Wed, Mar 4, 2009 at 15:26, Robert Cummings rob...@interjinn.com

[PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
Hi, I am working on a series of long files that contain 4 or 5 MB each, each of them is encoded in UTF-8 saved as .dat format. However, I have noticed that when I do insert statements, the file only reads up to around 1MB and then would stop. If I split the file into 3 or 4 files, that

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
Subject: Re: [PHP] How Much Data Can Be Written to a Database In One Instance? From: rob...@interjinn.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Wed, 4 Mar 2009 15:26:38 -0500 On Wed, 2009-03-04 at 15:05 -0500, Alice Wei wrote: Hi, I am working

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
Subject: Re: [PHP] How Much Data Can Be Written to a Database In One Instance? From: rob...@interjinn.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Wed, 4 Mar 2009 15:26:38 -0500 On Wed, 2009-03-04 at 15:05 -0500, Alice Wei wrote: Hi, I am working

RE: [PHP] How Much Data Can Be Written to a Database In One Instance?

2009-03-04 Thread Alice Wei
_ Use Messenger to talk to your IM friends, even those on Yahoo! http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-26 Thread Alice Wei
To: php-general@lists.php.net Date: Wed, 25 Feb 2009 14:42:36 -0600 From: nos...@mckenzies.net Subject: [PHP] Re: Spaces Not Detected from Regular Expression preg_match Shawn McKenzie wrote: Shawn McKenzie wrote: Alice Wei wrote: Hi, I have a code as in the following: ?php

[PHP] Regular Expression Problem

2009-02-26 Thread Alice Wei
Hi, I have two lines here as follows: 1 -0.123701962557954E+03 0.460967618024691E+02 -0.12354765900E+03 0.46259109000E+02 What I am trying to do here is to only have 1 -0.123701962557954E+03 0.460967618024691E+02 be the output so I can do further

RE: [PHP] Regular Expression Problem

2009-02-26 Thread Alice Wei
Hi, I have two lines here as follows: 1 -0.123701962557954E+03 0.460967618024691E+02 -0.12354765900E+03 0.46259109000E+02 What I am trying to do here is to only have 1 -0.123701962557954E+03 0.460967618024691E+02 be the output so I can do further

[PHP] Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Alice Wei
Hi, I have a code as in the following: ?php $file = test.txt; $fp = fopen($file, r); while(!feof($fp)) { $data = fgets($fp, 1024); if ((preg_match(/0/,$data)) || (preg_match(/\\s\/,$data)) || (preg_match(/\\s\/,$data))) { //Don't do a thing }

[PHP] Switch statement Question

2009-01-29 Thread Alice Wei
Hi, I have a code snippet here as in the following: //Switch statements between the four options switch($string) { case : $string= NOT book.author='All'; break; default: $string= $string . AND NOT book.author='All'; break; } This code does work, but I am wondering if it is possible in

RE: [PHP] PHP unlink Permission Error

2009-01-14 Thread Alice Wei
Subject: RE: [PHP] PHP unlink Permission Error From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Tue, 13 Jan 2009 17:07:34 + On Tue, 2009-01-13 at 11:49 -0500, Alice Wei wrote: Subject: RE: [PHP] PHP unlink Permission Error From

[PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
Hi, I have a snippet of code as follows: ?php ini_set('display_errors', 1); error_reporting(E_ALL); $curDir = getcwd(); echo $curDir; chmod($curDir,0777); unlink(testFile.txt); echo unlink(testFile.txt); chmod ($curDir,0755); ? The problem is that I do not seem to have the correct

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
...@alumni.iu.edu CC: php-general@lists.php.net Date: Tue, 13 Jan 2009 14:53:32 + On Tue, 2009-01-13 at 09:42 -0500, Alice Wei wrote: Hi, I have a snippet of code as follows:?phpini_set('display_errors', 1); error_reporting(E_ALL); $curDir = getcwd(); echo $curDir; chmod($curDir

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
Jan 2009 15:09:44 + On Tue, 2009-01-13 at 09:50 -0500, Alice Wei wrote: Hi, Ashley:I thought about it and edited my script to check what permission I had, and it appears I do have the permission rights, and it actually changed to 0777. Here is the code:?phpini_set

[PHP] PHP unlink Errors

2009-01-13 Thread Alice Wei
Hi, I have a snippet below that I would like to delete a file. However, I keep getting kicked out because of permission errors, when my folder permission is 0777. ?php ini_set('display_errors', 1); error_reporting(E_ALL); $curDir = getcwd(); chmod($curDir,0777) or die (Failed to

RE: [PHP] PHP unlink Errors

2009-01-13 Thread Alice Wei
+0100 From: li...@bithub.net To: aj...@alumni.iu.edu CC: php-general@lists.php.net Subject: Re: [PHP] PHP unlink Errors Do you have php_safe_mode enabled? If's that's the case, try turning it off and then run your script again. Alice Wei wrote: Hi, I have a snippet below that I would like

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
Hi, Ashley: Sorry. To answer the question from your previous entry, it looks like that my permission could be set and changed for the folder, but when I do it on the file, I only get 0666. I have the latest code on another entry. Thanks a lot for your help. Alice Alice Wei Indiana

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
Subject: RE: [PHP] PHP unlink Permission Error From: a...@ashleysheridan.co.uk To: aj...@alumni.iu.edu CC: php-general@lists.php.net Date: Tue, 13 Jan 2009 16:50:31 + On Tue, 2009-01-13 at 11:33 -0500, Alice Wei wrote: Hi, Ashley:Sorry. To answer the question from your

[PHP] How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Alice Wei
Hi, I am inquiring on this list to see if it is possible to create a script that takes multiple update statements without my having to write one SQL statement for each of the updates. I have a scenario of which I create a table of some sort with some existing information using Flex,

RE: [PHP] How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Alice Wei
- From: Alice Wei [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 12:51 PM To: php-general@lists.php.net Subject: [PHP] How to Execute Multiple SQL Updates Using PHP I am inquiring on this list to see if it is possible to create a script that takes multiple update statements

[PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Alice Wei
Hi, I have a snippet of code as shown in the following: $message2=47406|Detroit; $stringChunk2= explode(|, $message2); if ($message2!=) { $count_chunk2= count($stringChunk2); $count_chunk_2= $count_chunk2-1; } for ($j=0; $j$count_chunk2; $j++) { $string3=

RE: [PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Alice Wei
Hi, Sorry, I cannot use that because I am supposed to turn the string into something that looks like regions.name LIKE '%47406' OR regions.name LIKE '%Detroit', which I had to fix $string3 variable to $string3=regions.name LIKE '% . $stringChunk2[$j] . '; The goal is that the

RE: [PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Alice Wei
from For Loops Alice Wei wrote: Hi, Sorry, I cannot use that because I am supposed to turn the string into something that looks like Sounds like we are doing someones school work again. regions.name LIKE '%47406' OR regions.name LIKE '%Detroit', which I had to fix

[PHP] Count the Number of Elements Using Explode

2008-10-31 Thread Alice Wei
Hi, I have a code snippet here as follows: $message=1|2|3|4|5; $stringChunks = explode(|, $message); Is it possible to find out the number of elements in this string? It seems that I could do things like print_r and find out what is the last element of $stringChunks is, but is there

RE: [PHP] Count the Number of Elements Using Explode

2008-10-31 Thread Alice Wei
Hi, Thanks for all who responded, and the function is now working properly. It turned out that count function works for strings that contain the actual data inside, but when it is an empty string, a new if clause had to be set to create the count. Alice Alice Wei Indiana University

RE: [PHP] How to Execute Exe File from PHP

2008-10-21 Thread Alice Wei
: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 20 Oct 2008 21:51:23 +0100 Subject: Re: [PHP] How to Execute Exe File from PHP On 20 Oct 2008, at 21:47, Alice Wei wrote: Has anyone tried to execute an .exe file from PHP? I am currently stuck in a situation where I cannot execute the script

RE: [PHP] How to Execute Exe File from PHP

2008-10-21 Thread Alice Wei
HI, To answer your questions, I run this on Windows. What is so weird is that when I do $a= shell_exec(C:\Inetpub\wwwroot\/test.exe -m$market -d$length); echo $a; It works, and echoes everything as it is supposed to, and the file is also generated like I expected. However, the PHP file

[PHP] How to Execute Exe File from PHP

2008-10-20 Thread Alice Wei
Hi, Has anyone tried to execute an .exe file from PHP? I am currently stuck in a situation where I cannot execute the script, and all I am getting is a blank screen. This is my code snippet used to execute the file: //execute program $a =

RE: [PHP] How to Execute Exe File from PHP

2008-10-20 Thread Alice Wei
Hi, Thanks for helping me out on this one. It turned out that after removing the @ sign, I found some errors I have during my exe compilation. Now the file is working. Thanks.for the heads up, everyone. Alice Alice Wei, MIS Programmer/Computer Application Developer ProCure

  1   2   >