RE: [PHP] Str_Replace Command

2004-02-02 Thread Crane, Christopher
Matt: This worked perfect. Thank you. I didn't realize it was reassigning, I thought it would work similar to array_push and add to the existing data. I get it now, thanks to you. Thanks again. I had been so frustrated I was losing my objectivity. Christopher J. Crane Network Manager - Infrast

RE: [PHP] Correct Coding

2003-08-14 Thread Crane, Christopher
Well this page will load and not always with that variable set. Is that ok, or will this code you put output an error. Christopher J. Crane Network Manager - Infrastructure Services IKON Document Efficiency at Work 755 Winding Brook Drive Glastonbury, CT 06078 Phone - (860) 659-6464 Fax - (860)

RE: [PHP] Splitting a string

2003-03-13 Thread Crane, Christopher
This is perfect. I was not sure how to use the brackets with a variable for position. Thank you very much Christopher J. Crane Network Manager - Infrastructure Services IKON The Way Business Gets Communicated 755 Winding Brook Drive Glastonbury, CT 06078 Phone - (860) 659-6464 Fax - (860) 652-4

[PHP] PHP Script Speed

2002-07-08 Thread Crane, Christopher
I have a question on speed but also dealing with the method of scripting. I have a few pages where I get things like weather and stocks. I get the data, which is usually in the form of a Comma delimited string like the stock quotes from Yahoo.com. In the past, I also wrote a function to get the da

[PHP] Undefined Offset Error

2002-07-02 Thread Crane, Christopher
Here is a piece of my code... Could someone tell me what I did wrong? I get the following errors; Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 33 Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 34 (obviously, the line numers

[PHP] Reading MSWORD Doc File Comments

2002-07-01 Thread Crane, Christopher
Is there a way to read the comments of a MSWord Doc file. I would like to get a directory listing of file in a directory that are mostly MSWORD docs. I would like to list the files with a description after each one. With HTML files I just read the file into a string and split it just after and th

[PHP]

2002-05-31 Thread Crane, Christopher
Here is a piece of code, that is close to doing what I want it to. The end result I would like to have is an array that is simple to work with. If the XML tag was RED HAT, I would like something like the following: $Tags['issue-name']. So I could print it out. Something like, print "$Tags['issue

[PHP] Undefined variables

2002-05-30 Thread Crane, Christopher
I have an annoying problem, that I know is my own ignorance to PHP. I came from PERL and this was not a problem there but is with PHP. Here's the issue. I have a number of scripts that use a "index.php?Task='some sort of task name'", for example, http://www.foo.com/index.php?Task=ShowVersion

RE: [PHP] Page Refresh

2002-04-23 Thread Crane, Christopher
23, 2002 10:06 AM To: Crane, Christopher Subject: Re: [PHP] Page Refresh Importance: High i don't undertand why you have the meta refresh in there, but the porblem you have is simular to any one who clicks refresh on their browser... essentialy, what you want to do is after the DB insert,

[PHP] Page Refresh

2002-04-23 Thread Crane, Christopher
I use a template page and then split out the middle of the page to do my PHP stuff depending on a variable I pass to it. I have a problem I hope someone can help me on. The template page has a meta refresh in the header set for 60 secs. One of the things this page does is insert data into a MySQL

RE: [PHP] XML HELP

2002-04-10 Thread Crane, Christopher
ok I tried this code and the array is still empty. By the way, my code looked the way it did because the browser or my mail client cut it off. I had each of the functions on one line for easy reading but because of the wrap I changed it to how you had it, which is how I would normally do it if eac

RE: [PHP] XML HELP

2002-04-09 Thread Crane, Christopher
#x27;, 'EndHandler'); xml_set_character_data_handler($Parser, 'CharacterHandler'); if ( xml_parse($Parser, $Contents) ) { echo 'YES!'; } else { echo 'NO!'; } xml_parser_free($Parser); } print "1st Position in the array = $StockStuff[0]\