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 Messa

[PHP] header function, I'm stumped

2003-12-02 Thread Chris Hubbard
ting information, though I'm not quite sure how to interpret. 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 da

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 "$CurrentContents"; next($Classes); } instead of the for loop you're using. currently you're doing a next first, w

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

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

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

2003-10-30 Thread Chris Hubbard
1.tmp (errno=2 - No such file or directory) in G:\web\domain.com\d\g\functions\fn_data.php on line 41 Right now the function returns "error". I've searched the MARC archives, I've searched Google, I've read the manual and contributed notes. Any suggestions? Thanks in advance

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

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: if ($_POST["SuBmIT"]) { // make sure posted variables are clean and are the kind you expect if ($_POST

RE: [PHP] Sessions Question

2003-10-14 Thread Chris Hubbard
] = $id; $_SESSION["name"] = $data["name"]; $_SESSION["email"] = $data["email"]; header("Location: http://ubb.atlantic-records.com/gallery/admin/index.php";); }else{ // if name and pa

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 s

[PHP] header() refresh vs location

2003-10-14 Thread Chris Hubbard
esn't have the word "refresh" on it. this page: http://www.w3.org/Protocols/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. Than

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: -Original Message- From: Raquel Rice [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 10:13 AM To: PHP-General Subject: [PHP] PHP & CSS I'm currently build

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] Re: PHP code generation

2003-09-05 Thread Chris Hubbard
-Original Message- From: 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? "

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

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 PROTECTED]Subj

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" scri

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 to

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

2003-07-24 Thread Chris Hubbard
ld be that your register_globals is off...maybe. David -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 i

RE: [PHP] PHP should know my data!

2003-07-24 Thread Chris Hubbard
Hmm. You're right. Maybe something like the following would help: ". $rs .""; ?> -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2:24 PM To: Chris Hubbard Cc: John Manko; PHP General Subject: RE: [PHP]

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

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 thro