[PHP] header function, I'm stumped

2003-12-02 Thread Chris Hubbard
. Can someone provide some depth to the mechanisms within the header(location)? Thanks in advance, Chris Hubbard [EMAIL PROTECTED] www.wildcharacters.com 425 481 2020 php based web application development [[ check out phalidate, a data validation class ]] Y! [EMAIL PROTECTED] MSN [EMAIL

RE: [PHP] Parse WebCT quiz

2003-12-02 Thread Chris Hubbard
John, I think your best option is to convert their format to XML and then use the XML to drive your quiz system. Should be pretty straightforward to convert to XML, cause you don't have to worry about exploding stuff. You just have to match patterns and use str_replace. Chris -Original

RE: [PHP] tax functions

2003-11-19 Thread Chris Hubbard
Sara, You're on the right track. You've created your functions, but they need some work before they can be used. Starting with getTax() you've got a naming convention conflict, while not necessarily a problem, it's bad style. Instead of $item as the parameter for the function, use something like

RE: [PHP] next,key,current question

2003-11-13 Thread Chris Hubbard
Sara, Try this: $count = count ($Classes); for($i=0; $i$count; $i++){ $CurrentIndexValue = key($Classes); $CurrentContents = current($Classes); echo option value='$CurrentIndexValue'$CurrentContents/option; next($Classes); } instead of the for loop you're using.

RE: [PHP] BTML 2.0 released!!!

2003-11-06 Thread Chris Hubbard
Bas, Looks interesting. But why would I use bhtml when I've got Smarty and 10,000 other templating systems to choose from? I'm not interested in the vauge promises of speed. I'm only interested in systems that make it easier for me to code. Smarty makes it easier for me to code. How does bhtml

[PHP] stat(), file_exists(), is_file() on Windows2000

2003-10-30 Thread Chris Hubbard
searched the MARC archives, I've searched Google, I've read the manual and contributed notes. Any suggestions? Thanks in advance Chris Hubbard [EMAIL PROTECTED] www.wildcharacters.com 425 481 2020 php based web application development Y! [EMAIL PROTECTED] MSN [EMAIL PROTECTED] AIM ganeshacph

RE: [PHP] stat(), file_exists(), is_file() on Windows2000

2003-10-30 Thread Chris Hubbard
John, thanks for the quick response. If it had been a snake it would have bit me. Thanks. I was trying to do it the hard way. Chris -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 1:20 PM To: Chris Hubbard; [EMAIL PROTECTED] Php

RE: [PHP] Login system

2003-10-17 Thread Chris Hubbard
Bas, Based on your (somewhat limited) requirements, I recommend that you look at using Uma. http://sourceforge.net/projects/uma/ It's easy to use, and you can drop it into your application without any trouble. Chris -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: Friday,

[PHP] header() refresh vs location

2003-10-14 Thread Chris Hubbard
/rfc2616/rfc2616 doesn't have the word refresh on it. this page: http://us4.php.net/manual/en/function.headers-sent.php does have the word refresh but it's not relevant. Thanks in advance. Chris Hubbard [EMAIL PROTECTED] www.wildcharacters.com 425 481 2020 php based web application development Y

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
Jake, it would be helpful if we could see your code. That said... first you need to identify what information you need to track in the sessions, and whether you're going to use php sessions (the $_SESSIONS array) or build your own mysql based session tracker. to use php sessions: you will need

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
header (Refresh: 0; url=login.php); } } -Original Message- From: Mike Brum [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 4:31 PM To: 'Chris Hubbard'; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions Question One quick note - if you're starting a session

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
Jake, given that I can't see what is in config.php time.php, I'll focus on your index.php. I assume that the issues I point out will be applicable to config and time also. this: ? should be: ?php include(config.php); include(time.php); assuming that $SuBmIt and inout and username and password

RE: [PHP] PHP CSS

2003-10-06 Thread Chris Hubbard
Raquel, this is an HTML question, not PHP. And here's the answer: The following goes in the head section of your html: link href=path/to/style.css rel=stylesheet type=text/css -Original Message- From: Raquel Rice [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 10:13 AM To:

RE: [PHP] php editor

2003-09-11 Thread Chris Hubbard
I think the BEST php editor out there is Microsoft's Visual Studio. Here's some of the reasons I think Visual Studio is the BEST 1. None of that annoying syntax highlighting that you find in many other editors 2. Unlimited technical support (at only $245 per call) 3. At $1000 - $2500 per copy

RE: [PHP] using fwrite to create PHP files

2003-09-05 Thread Chris Hubbard
Vince, You also need to escape the $, so instead of . if ($_GET.. use . if (\$_GET. You may have to escape the single quotes. I have written two pretty lame code generators. The first one did not use templates, the second one does. You've got the lines of code in your builder script.

RE: [PHP] Java based HTML editor

2003-09-05 Thread Chris Hubbard
I recommend htmlarea, it's _javascript_, not java. http://www.interactivetools.com/products/htmlarea/ there's a couple similar scripts available. chris -Original Message-From: Todd Cary [mailto:[EMAIL PROTECTED]Sent: Friday, September 05, 2003 6:48 AMTo: [EMAIL

[PHP] PHP code generation

2003-09-05 Thread Chris Hubbard
I'm working on a code generation project. Is there anyone on the list who has experience building these things, and, would like to discuss architecture/patterns/structure of code generation off-list? Chris Hubbard [EMAIL PROTECTED] www.wildcharacters.com 425 481 2020 php based web application

RE: [PHP] Re: PHP code generation

2003-09-05 Thread Chris Hubbard
: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Friday, September 05, 2003 9:30 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP code generation What are the example of code generation project? Are you referring to the generation of the random characters? Chris Hubbard [EMAIL PROTECTED] wrote

RE: [PHP] Imagick

2003-08-12 Thread Chris Hubbard
Jacob, Yes I've used imagemagick with php. I found that none of the online documentation worked for me. I was unable to use the imagemagick class and the tutorials seemed to refer to older versions. That being said, here's some code that does work, maybe you can extrapolate from it. Feel free

RE: [PHP] PHP should know my data!

2003-07-24 Thread Chris Hubbard
Now this is funny. John, you've captured the irony of a number of recent posts. Congrats. Been a while since I laughed this hard. Cobol. egad. That's a nice touch. Thanks for the levity. chris -Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24,

RE: [PHP] PHP should know my data!

2003-07-24 Thread Chris Hubbard
, July 24, 2003 2:24 PM To: Chris Hubbard Cc: John Manko; PHP General Subject: RE: [PHP] PHP should know my data! Unfortunately I don't think some people got the joke. Next thing you know their going to complain that PHP should have told them the punchline ;) Cheers, Rob. On Thu, 2003-07-24 at 18:17

RE: [PHP] Re: PHP should know my data!

2003-07-24 Thread Chris Hubbard
-Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of J. Cox Sent: Thursday, July 24, 2003 8:26 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP should know my data! Chris Hubbard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hmm. You're right. Maybe something like

RE: [PHP] Localization and Customization of Application

2003-07-22 Thread Chris Hubbard
Mike, the easiest way to do this would be to use smarty. (smarty.php.net) abstract out your language specific strings into a file that is called by the template. Use a variable to define the language and use an assign to dynamically change the language file in the template. Then build a function

RE: [PHP] Forms and PHP

2003-07-19 Thread Chris Hubbard
Not sure why you don't want to submit the form. But if you really really don't want to submit the form then you have to use javascript. If you're willing to submit the form, then this is relatively simple, depending on how you want to display the data. if you're willing to submit, then step