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

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: > D

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

2010-06-27 Thread Alice Wei
> Date: Sun, 27 Jun 2010 12:01:50 -0400 > To: aj...@alumni.iu.edu; php-general@lists.php.net > From: tedd.sperl...@gmail.com > Subject: Re: [PHP] Modifying Existing Text File From PHP Is Not Working > > At 7:20 AM -0400 6/27/10, Alice Wei wrote: > >Hi, > > > >

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

2010-06-27 Thread Alice Wei
l -> message[0] -> addChild("email",$email); $xml-> message[0] -> addChild("comments",$comments); echo $xml->asXML(); ?> Alice > Le 27 juin 2010 à 13:20, Alice Wei a écrit : > > > > > Hi, > > > > I have the code

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

2010-06-27 Thread Alice Wei
Hi, I have the code as in the following: \n" . $name . "\n" . $phone . "\n". $email . "\n" . $comments . "\n"; //If file exists. append, otherwise create $file = "messages.xml"; $fh = fopen($file,"a"); $lines = file($file); //Output a line of the file until the end is reached fo

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 wrote: > > > > Hi, > > > > I have a code sn

[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

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

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

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 wro

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

2010-05-28 Thread Alice Wei
om: 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 is, when I have my form with a &

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 W

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

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

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: > > &

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: > > > &

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: > > > > > > > Select the type of your starting point of in

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,

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 valu

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

2010-05-25 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: php-general@lists.php.net Date: Tue, 25 May 2010 20:37:29 +0100 On Tue, 2010-05-25 at 15:41 -0400, Alice Wei wrote: > Date: Tue, 25

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 ar

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

2010-05-25 Thread Alice Wei
Hi, It is kind of difficult to explain what I am trying to do here, I will provide the form here to give a better idea. Select the type of your starting point of interest: Apartment

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

[PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread Alice Wei
Hi,I have a snippet as in the following: Select the type of your starting point of interest: Apartment If I tried to put this at the top of a file where I save

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.

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 wrote: Hi, I am trying to create a news feed page that loads a number of

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

[PHP] Forward to a Different PHP Script?

2010-05-11 Thread Alice Wei
Hi, I am not sure if this makes sense, but here is a snippet of what I have: $q=$_GET["q"]; //find out which feed was selected if($q=="Herald Times") { $xml=("http://www.heraldtimesonline.com/rss/news.xml";); } else{ //execute a whole different php program, like http://localhos

RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei
it by hand; though for reasons I've outlined in a previous > post to this list I'd suggest you use the pear installer. > > On Thu, Apr 22, 2010 at 12:12 AM, Alice Wei wrote: > > > >> Date: Wed, 21 Apr 2010 22:01:03 +0200 > >> Subject: Re: [PHP] Mail Funct

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 wrote: > >> From: peter.e.l...@gmail.com > >

RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei
> From: peter.e.l...@gmail.com > Date: Wed, 21 Apr 2010 21:51:31 +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 18:44, Alice Wei wrote: > > I h

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 wrote: > > Well, fro

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

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

RE: [PHP] Mail Function Using PEAR Issues

2010-04-18 Thread Alice Wei
uggested on your previous thread. Also, I see you have > $from set to equal "localhost". Many SMTP servers will reject this > I *think*, because "localhost" is a hostname, not a working mailbox. > Try making $from equal to a real working address - possibly the same >

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

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

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

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. > > http://email.about.com/od/emailpro

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: . utor It only gives me a blank page, with no errors. Has a

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 follow

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 wrote: Hi, I have an issue here where I see no PHP errors on my mail function usage, and yet I am not

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 wrote: > > > > Thanks to the worldwide brotherhood of crooks know

[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
ot; later in the code. > > On Wed, Mar 10, 2010 at 6:57 PM, Alice Wei wrote: > >> > >> did you read the help for those functions on php.net? > > > > Yes, I found a "recursive" way to find out the "index" like I wanted, by > > doing

RE: [PHP] Array Search Problem

2010-03-10 Thread Alice Wei
having to flatten my array. Is what I am trying to do here possible? Or, is there a trick in array_search that I could use to find the index without having to strip off anything? Thanks for your help. Alice > > On Wed, Mar 10, 2010 at 4:12 PM, Alice Wei wrote: > > > >

[PHP] RE: Array Search Not Working?

2010-03-10 Thread Alice Wei
> > I'm still a little foggy on what you're doing, but doing, but does this > help? > > $from = explode("-", $from); > $state_colors = explode("-", $state_colors); > $change = explode("-", $change); > > $old = array_combine($from, $state_colors); > $new = array_combine($from, $change); > > //s

[PHP] RE: Array Search Not Working?

2010-03-10 Thread Alice Wei
ists.php.net > Subject: Re: Array Search Not Working? > > Alice Wei wrote: > > Hi, > > > > I have two arrays here that I have combined into a new array, as shown > > here: > > > > $from = explode("-", $from); > > $change = explode(&qu

[PHP] RE: Array Search Not Working?

2010-03-10 Thread Alice Wei
> Date: Wed, 10 Mar 2010 10:09:54 -0600 > From: nos...@mckenzies.net > To: aj...@alumni.iu.edu > CC: php-general@lists.php.net > Subject: Re: Array Search Not Working? > > Alice Wei wrote: > > Hi, > > > > I have two arrays here that I have combin

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

[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

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 obviou

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 li

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

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 1

[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

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

[PHP] RE: PHP "GET" Error?

2010-02-25 Thread Alice Wei
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: > &g

[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, OK-Bl

RE: [PHP] array_count_values Problem

2010-01-12 Thread Alice Wei
e function array_count_values returns an array > (http://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, Al

[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] 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 wrote: > > > > Hi,

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

[PHP] SVG Won't Color?

2010-01-06 Thread Alice Wei
Hi, I have the code as in the following, and I am trying to colorize the map. The SVG File is located here: http://upload.wikimedia.org/wikipedia/commons/5/5f/USA_Counties_with_FIPS_and_names.svg. Looks like when I tried to modify the contents of the line, it does not seem to take into a

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: The problem is that my screen appears as blank

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: The problem is that my screen appears as blank even though I could open up USA_Counties_with_FIPS_and_names.svg and

[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: The problem is that my screen appears as blank even though I could open up USA_Counties_with_FIPS_and_names.svg and see th

RE: [PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
ni.iu.edu > CC: 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: &

[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: setParserProperty(XMLReader::VALIDATE, true); if ($xml->isValid()) echo "true"; else echo "NOT"; ?> Here is the contents of hello.xml:

RE: [PHP] String to Date Conversion Problem

2009-07-31 Thread Alice Wei
THURSDAY'); > > echo date('m/d/Y', strtotime("{$parts[1]} {$parts[0]} {$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

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

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 dow

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 wrote: On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei wrote: Hi, I

RE: [PHP] pdf_new() uncalled Function

2009-03-16 Thread Alice Wei
On Mon, Mar 16, 2009 at 10:06 AM, Alice Wei 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 function pdf_new() I

[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] 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 wrote: > > > > War

[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: 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 = file_get_contents($file); $file2

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 wrote: > > > > See

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 > > > >> I have a q

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

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: http://ww

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:

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:

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

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 processin

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

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: > >&g

[PHP] Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Alice Wei
Hi, I have a code as in the following: This is the input file: 1 23kd 3dkd2 " " 4 5 6 For the output, I get nothing running it from the command prompt, but I would like to have " " in the output, could anyone please give me some guides on what I have done wrong in my regular expressio

[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

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

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, As

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

RE: [PHP] PHP unlink Errors

2009-01-13 Thread Alice Wei
P] 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 to delete a file. However, I >

[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. Is it possible that someone on the list could point out what my possible errors are to allow this code to be functioning

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
t> Date: Tue, 13 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 a

RE: [PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
P unlink Permission Error> From: a...@ashleysheridan.co.uk> To: aj...@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 follow

[PHP] PHP unlink Permission Error

2009-01-13 Thread Alice Wei
Hi, I have a snippet of code as follows: The problem is that I do not seem to have the correct permissions, even though I seem to have changed the permissions of the folder to 777 already upon the file deletion time. This is the output I got: C:\Inetpub\wwwroot\projectWarning: unli

  1   2   >