RE: [PHP] redirection

2002-06-05 Thread Leotta, Natalie (NCI/IMS)
You can use JavaScript: document.location=URL; You can do that in an onClick (make sure that it's not a type submit, just a type button if you're using a button). -Natalie -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2:45 PM To:

RE: [PHP] Retrieving text from a URL using PHP

2002-06-06 Thread Leotta, Natalie (NCI/IMS)
In theory, I would guess you could use combinations of explode and strstr to maybe explode on , then run strstr on so you get everything after the but before the next . Then you'd probably have to implode it or something. There might be a better way to do it with just substr and strstr so you

RE: [PHP] Retrieving text from a URL using PHP

2002-06-06 Thread Leotta, Natalie (NCI/IMS)
I wish I'd seen this before I sent my message! -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 10:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Retrieving text from a URL using PHP On Thursday 06 June 2002 23:43, Anthony Ritter wrote: Is

RE: [PHP] url string

2002-06-10 Thread Leotta, Natalie (NCI/IMS)
Instead of window.location, try document.formName.target = file.php?params - that's how I have mine set up and it works well. You need to follow that with document.formName.submit() -Natalie -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 4:41

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)
That may be the case, but I had assumed the show() was a function in the file that should be included. When I include files and it doesn't work (I've only started trying today and discovered the beauties of the include_path) it says: Fatal error: Failed opening required 'includeFile.inc'

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)
successfully, this is all the help I can be :-) Good luck! -Natalie -Original Message- From: Doug DeVries [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 1:36 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Fw: include() statement goofing me up - help

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)
not going to ask question :-) Thanks! -Natalie -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 1:54 PM To: Leotta, Natalie (NCI/IMS); [EMAIL PROTECTED] Subject: RE: [PHP] Fw: include() statement goofing me up - help [snip] When I include files

RE: [PHP] MSSQL/PHP Query Help

2002-06-12 Thread Leotta, Natalie (NCI/IMS)
have you tried Nics.MAC in (xxx,xxx,xxx,xxx)? There's a lot less room for error in that, because it's so much tidier. -Natalie -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: [PHP] MSSQL/PHP Query Help

RE: [PHP] Querying for MAX

2002-06-12 Thread Leotta, Natalie (NCI/IMS)
is select MAX(column name) what you are looking for? I know it works on numeric columns, I'm not sure if it works on non-numbers, you'd have to look it up in a SQL Tutorial somewhere. Good luck! -Natalie -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent:

[PHP] including functions, passing objects I created

2002-06-12 Thread Leotta, Natalie (NCI/IMS)
I have a line class that I'm using to draw a line graph of up to 5 lines. Since I query the db for each of those lines (with a # as lineNum), my code to take everything out of the fetch_arrays is fairly cumbersome. I use this code in 4 different programs (the graph, the printable graph, the data

RE: [PHP] Menu Selections Dynamic from a Database

2002-06-25 Thread Leotta, Natalie (NCI/IMS)
Unless you want to submit or use frames, you need to use JavaScript to populate the second dropdown based upon the value of the first one. PHP doesn't let you do this without the submit or frames because it's server-side, whereas JS is client-side. If you need any code let me know. Good luck!

RE: [PHP] FOXED - no success in replacing file content using fgets/fputs and str_replace

2002-06-26 Thread Leotta, Natalie (NCI/IMS)
Some editors let you find/replace in files in a certain folder. That might be easier. I know UltraEdit let you do this and it only takes a few minutes. To me, that is much less labor-intensive than trying to write code to do it, unless you're trying to learn things while you do it. :-)

RE: [PHP] Other than substr

2002-07-03 Thread Leotta, Natalie (NCI/IMS)
What do you want it to look like in the text boxes? If you just want to take out the two parentheses, you can use strstr to get the index of the ) string to use in your substring statement. http://www.php.net/manual/en/function.strstr.php I hope this helps! -Natalie -Original

RE: [PHP] file delete...

2002-04-17 Thread Leotta, Natalie (NCI/IMS)
According to this, you should actually use unlink, but delete is available. http://www.php.net/manual/en/function.delete.php -Natalie -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 4:08 AM To: [EMAIL PROTECTED] Subject: [PHP] file delete...

RE: [PHP] if elseif else

2002-04-19 Thread Leotta, Natalie (NCI/IMS)
You can use as many elseifs as you need. I'm not sure how it affects performance, but it works (I have one that goes through all 50 states). -Natalie -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 10:02 AM To: PHP Subject: [PHP] if

[PHP] ImageCreate v. ImageCreateTrueColor

2002-04-22 Thread Leotta, Natalie (NCI/IMS)
Hello, I'm making an Image and I was wondering what the difference is between these two Image constructors. I need to find a way to make dotted and dashed lines (according to different patterns I've been given) and I want the sections between the dots to be transparent. I'm planning on using

RE: [PHP] dynamic drop down

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Do you want to submit every time the dropdown changes? If you just want the second dropdown to update and don't want a submit, let me know. I am doing this in one of my programs and I can send you some code if you think it would help. Ex of my program: We want to show populations. There's a

RE: [PHP] If else question

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Does it show the message and the form or just the message? -Natalie -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question If and else expect to be followed by exactly 1

RE: [PHP] If else question

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
My officemate and I talked about this and the only thing he could come up with was a possible problem with your parser. Are you using a beta version or something unusual? I don't know if you have a way to know this - the programmers didn't set up PHP where I work, but I know our web server is

[PHP] arrays in a class

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Do I have to do anything different to access an array in a class? I have var $apcs = array(); at the top of my class I set it using $line1-adj_array[$pos] = (integer) $value; in the read-in part of the app that uses the class ($line1 is the object, $pos is just a number) Later

RE: [PHP] arrays in a class

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Wow. Now I'm feeling dumb... It does work with my non-array vars though - I guess laziness caught me. Thanks!! -Original Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 4:36 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re

RE: [PHP] arrays in a class

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 4:45 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] arrays in a class »Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:37:37 -0400 : Wow. Now I'm feeling dumb... It does

[PHP] using transparent images in a style

2002-04-25 Thread Leotta, Natalie (NCI/IMS)
Hi. I'm trying to make lines based on dots and dashes and I need the colors in the middle to be transparent. This is all done within a class, that's why there are $this-s all over. $t = ImageColorAllocate($this-im,1,1,1); $this-trans = ImageColorTransparent($this-im,$t); $this-style

RE: [PHP] using transparent images in a style

2002-04-25 Thread Leotta, Natalie (NCI/IMS)
as a .bmp it would help? -Original Message- From: Leotta, Natalie (NCI/IMS) Sent: Thursday, April 25, 2002 10:41 AM To: [EMAIL PROTECTED] Subject: [PHP] using transparent images in a style Hi. I'm trying to make lines based on dots and dashes and I need the colors in the middle

RE: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Leotta, Natalie (NCI/IMS)
Is there any reason that you have to use JS to redo the array? I did something like this once and had the buttons monitored by JS, then when you click it set a hidden var (with a name like sort) and submitted the page. Then my PHP read in everything and redrew the graph based on what we were

RE: [PHP] $this-

2002-04-29 Thread Leotta, Natalie (NCI/IMS)
Hi, Steve. $this refers to a specific instance of a class. The - accesses a property or method associated with this class. So, in your class, say it's class car, and in your constructor you want to initialize the color to red, you'd do $this-color = $red; Outside of the class, with your

RE: [PHP] javascript and PHP

2002-04-29 Thread Leotta, Natalie (NCI/IMS)
This is what I do in one of my programs. I set hidden values in my HTML and then JS can access them, change them, and then when the form is submitted (JS can do that too if you want it to be automatic) the PHP reads in the hidden values. -Natalie -Original Message- From: 1LT John W.

[PHP] ImageLines with styles

2002-05-13 Thread Leotta, Natalie (NCI/IMS)
Hello. I'm drawing line graphs and for each line they want a different style (dots, dashes, etc.). I can't find a way to make the line draw thicker than normal, and the regular thickness isn't thick enough. I've tried drawing 3 lines next to each other, which works fine with solid lines, but

RE: [PHP] ImageLines with styles

2002-05-13 Thread Leotta, Natalie (NCI/IMS)
Thank you so much! I'd looked all over, but apparently not in the right places. Thanks again!! -Natalie -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 4:32 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PHP

[PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
This might be a little bit JS and a little bit PHP. I'm wondering if there's an easy way to refresh a PHP page on an onClick and change one parameter (say someone wants to redraw the graph, but with the points). I don't want to pay attention to any of the other parameters that could have

RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
[mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 3:56 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] refreshing PHP on onClick Leotta, Natalie (NCI/IMS) wrote: This might be a little bit JS and a little bit PHP. I'm wondering if there's an easy way to refresh

RE: [PHP] refreshing PHP on onClick

2002-05-16 Thread Leotta, Natalie (NCI/IMS)
This sounds like it might work. Thanks for your help!! I knew there had to be a better way than what my coworkers came up with :-) -Natalie -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 4:09 PM To: Leotta, Natalie (NCI/IMS) Cc

[PHP] creating Image to display without saving it.

2002-05-23 Thread Leotta, Natalie (NCI/IMS)
I've got a page where I create an Image that I want to put into one of my HTML table cells. I've been doing this by saving the file, chmoding it, and then opening it using image source in the HTML. The problem is that when you do that, the new version of IE has that stupid pop-up window when

RE: [PHP] creating Image to display without saving it.

2002-05-24 Thread Leotta, Natalie (NCI/IMS)
, 2002 3:00 PM To: Leotta, Natalie (NCI/IMS) Cc: [EMAIL PROTECTED] Subject: Re: [PHP] creating Image to display without saving it. On Thu, 23 May 2002, Leotta, Natalie (NCI/IMS) wrote: I've got a page where I create an Image that I want to put into one of my HTML table cells. I've been doing

RE: [PHP] image_create(), header.....

2002-05-24 Thread Leotta, Natalie (NCI/IMS)
You can save them and then call them up, but then you have to use a cron or something to empty out the folder. Here's how I save it: //Image created and everything up here, this is the very end of it $myTime = time(); ImagePNG($im, ../spool/jp$myTime.png); //this creates a unique name

RE: [PHP] image_create(), header.....

2002-05-24 Thread Leotta, Natalie (NCI/IMS)
Thanks! I didn't know it was that helpful :-) It's in there now. -Natalie -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 3:58 PM To: Leotta, Natalie (NCI/IMS) Subject: RE: [PHP] image_create(), header. This looks like a great example

RE: [PHP] Intermediate Searching... screen.

2002-05-28 Thread Leotta, Natalie (NCI/IMS)
You could, in theory, submit your query to an intermediate file, which only displays the Searching screen, but is querying your database and throwing everything you need into hidden fields in a form. Then have that form have an onLoad submit to your results page. I did this with HTML submitting

RE: [PHP] comment followed by ? fails to parse

2002-05-28 Thread Leotta, Natalie (NCI/IMS)
But why wouldn't the parser skip right over a // line? it shouldn't even see anything in it. -Original Message- From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 4:46 PM To: Johnson, Kirk; [EMAIL PROTECTED] Subject: RE: [PHP] comment followed by ? fails to

RE: [PHP] comment followed by ? fails to parse

2002-05-28 Thread Leotta, Natalie (NCI/IMS)
That makes sense. Thanks! -Natalie -Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 4:46 PM To: Leotta, Natalie (NCI/IMS); 'Jonathan Rosenberg'; Johnson Kirk; [EMAIL PROTECTED] Subject: RE: [PHP] comment followed by ? fails to parse

RE: [PHP] imagettftext question

2002-05-28 Thread Leotta, Natalie (NCI/IMS)
To change your Image color use ImageFill: ImageFill($im,$gifwidth,$gifheight,ImageColorAllocate($im,235,235,235)); Then, in your ImageTTFText, you can set the font: ImageTTFText($im, 11, 0, 20, (540-20),-$black,../fonts/arial.ttf, Source: SEER 12 Program); I recommend using

RE: [PHP] comment followed by ? fails to parse

2002-05-29 Thread Leotta, Natalie (NCI/IMS)
I disagree. I use // because then when I need to take out a chunk of code (the requirements for the programs change faster than I can keep up with them!!) I can do /* unnecessary code */ and it doesn't end prematurely. -Natalie -Original Message- From: Ed Gorski [mailto:[EMAIL

RE: [PHP] fdup Pipes?

2002-05-30 Thread Leotta, Natalie (NCI/IMS)
Like we have much of a choice - I'm sure my bosses would love it if I went to them and asked for a real email client. -Original Message- From: Jonathan Rosenberg [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 11:06 AM To: Rasmus Lerdorf Cc: [EMAIL PROTECTED] Subject: RE: [PHP]

RE: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread Leotta, Natalie (NCI/IMS)
I have a quick question. I've been reading all of this about the upgrade - we're just waiting for our network guy to do it. We need to use the query string for parameters so our URL is cut-and-paste-able. Is that going to be a problem? We were using $HTTP_POST_VARS until someone decided that

RE: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread Leotta, Natalie (NCI/IMS)
:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 4:29 PM To: Leotta, Natalie (NCI/IMS); Igor Portnoy; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Problem running script after installing PHP 4.2.1 Okay, the only issue with the upgrade is that register_globals defaults to off

RE: [PHP] Undefined variables

2002-05-30 Thread Leotta, Natalie (NCI/IMS)
You could try using isset first. I'm not sure where your log is, but if you check to see if task is set, then maybe that will eliminate the problem :-) -Natalie http://www.php.net/manual/en/function.isset.php -Original Message- From: Crane, Christopher [mailto:[EMAIL PROTECTED]]

RE: [PHP] Is PHP used by U.S. Government? By U.S. DoD?

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
My company contracts for the National Institutes of Health and the National Cancer Institute. A group of us are developing a website for State Cancer Profiles - ie, you want to see the trend of lung cancer in the Total US v. Kentucky kinds of things. All of the graphs that I'm working on are

RE: [PHP] Graphs using PHP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
Hi, Jason. I'm developing some really cool line/point and bar graphs. While the Image stuff is definitely quite different, I think you'd really like it once you get into it. Our graphs are generated dynamically from data in a database. I can't show you the graphs because they aren't ready for

[PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
I just tried to open the PHP link about the Navy. I'm running IE6 (freshly installed today, so no tweaks have been made) with Win2000. When I clicked on the link in the email, a locate link window came up (similar to an open file window). This does not happen on my coworker's machine. The

RE: [PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
: Jaime Bozza [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 1:49 PM To: Leotta, Natalie (NCI/IMS) Cc: Jeans, Matt (NCI/IMS); Cucinelli, James (NCI/IMS); [EMAIL PROTECTED] Subject: RE: [PHP] PHP URLs not opening from email in Outlook XP Natalie, I'm using Outlook XP here and the link opens

[PHP] RE: SOLVED: [PHP] PHP URLs not opening from email in Outlook XP

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
and point it to your browser of choice. Not something you want to put on your website for John Q. Public, but ok for advanced users. thanks for the help! -Natalie -Original Message- From: Leotta, Natalie (NCI/IMS) Sent: Friday, May 31, 2002 1:52 PM To: 'Jaime Bozza' Cc: [EMAIL PROTECTED

RE: [PHP] Run php function with user click

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
JavaScript could do a similar thing with onClick. -Natalie -Original Message- From: Jim lucas [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 4:21 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Dave Shacket Subject: Re: [PHP] Run php function with user click use flash to open

RE: [PHP] Run php function with user click

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
lucas [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 4:29 PM To: Leotta, Natalie (NCI/IMS); [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Dave Shacket Subject: Re: [PHP] Run php function with user click but that would take you off the current page wouldn't it? or would you return false? Jim

[PHP] RE: Nothing will execute after calling imagejpeg.

2002-06-03 Thread Leotta, Natalie (NCI/IMS)
with ImageColorAllocate. I have a meeting until about 1:00, but if you're still having problems let me know and I can email you some example code this afternoon. -Natalie -Original Message- From: Kris Johnson [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 11:11 PM To: Leotta, Natalie (NCI/IMS