RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Actually all form validation is done before the form action takes place, so that way we do not loose input. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:38 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
Gotcha. I typically use javascript to validate before the form is posted to validate. shane -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 6:23 PM To: Shane McBride; PHP Subject: RE: [PHP] Retain form values... Shane McBride <mai

RE: [PHP] Retain form values...

2004-03-18 Thread Shane McBride
How about passing the form variables to a hidden field on the next page? I used this for several page forms before. Also, sessions work well. Shane -Original Message- From: Firman Wandayandi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 3:43 PM To: [EMAIL PROTECTED] Cc: PHP-GEN

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
No, the value still is not incrementing. -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:25 PM To: Shane McBride; PHP; [EMAIL PROTECTED] Subject: RE: [PHP] Simple: Whats wrong with this? Shane McBride <mailto:[EMAIL PROTEC

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
$correct++ } Shane -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:06 PM To: Shane McBride Cc: PHP Subject: RE: [PHP] Simple: Whats wrong with this? Well I accidentally deleted your original email, but I didn't see where you were gett

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
It doesn't seem to work either way for me. Shane -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Simple: Whats wrong with this? > No. > > $correct++; > > Is all you need for the second cond

[PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
I have a form variable I want to increment by a value of 1 each time the page loads. Here's what I have so far: if(!isset($correct)) { $correct = 0; } else { $correct = $correct++; } Seems like it should work? Thanks! Shane -- PHP General Mailing List (http://ww

[PHP] Parse out text

2002-12-13 Thread Shane McBride
I have a form that is submitting a Javascript to validate fields before the form casn be submitted. The problem is that the field name has to be prefixed with "required". So, if I have a field called email, it has to be called requiredemail in order for the javascript to work. How can I remove the

RE: [PHP] Multiple page form

2002-11-26 Thread Shane McBride
So, you are using a database to store the records? -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 10:45 AM To: Shane McBride; [EMAIL PROTECTED] Subject: Re: [PHP] Multiple page form > It's been a while since I have done any PHP

[PHP] Multiple page form

2002-11-26 Thread Shane McBride
Hi there. It's been a while since I have done any PHP work. I am creating an online employment application using multiple forms for a client. I was going to use PHP. I don't remember if I need to pass variables along with the form for each page, or can I just call them on the last page. The appli

[PHP] Add FTP user via PHP?

2002-04-23 Thread Shane McBride
Is there a way to add an ftp user and assign them to a directory when the host server does not and will not load the ftp module? Shane McBride RDI Technologies www.rditech.net Office: 410-575-6326 Fax:410-575-6327 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] MAC file upload

2002-04-06 Thread Shane McBride
es. Any ideas on this? Shane McBride RDI Technologies www.rditech.net Office: 410-575-6326 Fax:410-575-6327 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] writing a time to mysql????

2001-04-26 Thread Shane McBride
Here's some code that I am using to get the time that is inout from a form into mysql. It looks like I may have the format backwartds. Any ideas? "INSERT into events (e_title, e_details, start, end, s_time, e_time) values ('$title', '$details', '$s_year-$s_month-$s_day','$e_year-$e_month-$e_day

Re: [PHP] my bugaboo.

2001-02-10 Thread Shane McBride
Look into addslashes() and stripslashes() Are you getting $text from a database query? - Shane DISCLAIMER: I am by no means an expert on this, or any other, topic... - Original Message - From: "Floyd Baker" <[EMAIL PROTECTED]> To: "Floyd Baker" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>

Re: [PHP] PHP File Uplaod Path

2001-02-08 Thread Shane McBride
Dhaval, You really do not nee to be concerned about the temp directory, but if you are, you can wite a little script (if your not the sysadmin) to find this out. Actually it tells you a ton of useful info. Here it is: Name it phpinfo.php or whatever you like, upload it to the server and view i

Re: [PHP] uploading file

2001-02-08 Thread Shane McBride
Yea, I guess I should have stripped out some of the special code before I posted. The ^ replaces \ when the user inserts the windows path, than I replace the ^ with \\ so the path works correctly. I did get this to work. I was sure fighting it though... - Shane DISCLAIMER: I am by no means an ex

Re: [PHP] Sum from Arrays ?

2001-02-07 Thread Shane McBride
Hum, maybe the count() function. Works with mysql_fetch_array() too. Here's a sample: $a[0] = 1; $a[1] = 3; $a[2] = 5; $result = count ($a); //$result == 3 Here's a link: http://php.net/manual/en/function.count.php DISCLAIMER: I am by no means well-versed in this, or any other, topic - Shane

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Shane McBride
This is just a guess, but remove the path (#!/usr/local/bin/php) If you have the php.ini and (I'm assuming Apache) the httpd.conf file configured you shouldn't need it. I never have used it. It looks like the Perl way to script... :) DISCLAIMER: I am by no means well-versed in this, or any othe

Re: [PHP] HTTP Authentication

2001-02-07 Thread Shane McBride
Nick, I'm not sure were you are getting the value of $PHP_AUTH_USER from, so you might want to try this snippet. This causes a dialog box to open and ask for a username/password. Also, in your code: you do not need to escape the quotes in the header. - Original Message - From: "Nick K

[PHP] File upload - ascii format

2001-02-06 Thread Shane McBride
How can I ensure that a file is transferred in ascii mode using the following: File to Upload: emplresults.txt  applresults.txt I think it may be how you specify the enctype? - Shane

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
Phil, Hey check out this thread: http://www.phpbuilder.com/forum/read.php3?num=3&id=100242&thread=100047 - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: T

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
Phil, Did you happen to copy the php4ts.dll into the winnt directory? I am not sure of the error you are getting, but it may help? - Original Message - From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PRO

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-06 Thread Shane McBride
ut no luck... To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 4:49 AM Subject: Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER > >I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and > never got anywhere

[PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-05 Thread Shane McBride
I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and never got anywhere, so I used apache and it works fine. I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, but no luck. I would like to use some of the functionality of IIS/NT5.0 Any ideas

Re: [PHP] simple config. question

2001-02-05 Thread Shane McBride
Unless I am mistaken, I am pretty sure you need to have sometype of .php extension. Unless you could put a line in the httpd.conf file like: AddType application/x-httpd-php .html BUT, I HAVE NEVER DONE THIS SO PLEASE WAIT FOR A MORE EDUCATED ANSWER. - Shane - Original Message -

[PHP] PHPSESSID location?

2001-02-05 Thread Shane McBride
Where is the temp session file held at? I have a script that uses sessions but I can't find the session file. My php.ini file indicates that the session.save_path = c:\php\sessiondata but there is not any files there when there should be. It does look like the session is working though. Any

[PHP] uploading file

2001-02-05 Thread Shane McBride
OK, I'm not sure if the file is getting uploaded or not, and it certainly is not getting copied to the permanent directory. Here's what I have: This creates the upload form: This is the action from that form: // Creates the image file with a timestamp $timestamp = time(); $image= $timestamp

Re: [PHP] Session With Cookies

2001-02-03 Thread Shane McBride
Try this: // Set Cookie if not already set if (!isset($user_id)) { $token = md5(uniqid(rand())); setcookie("user_id", $token, time()+3600,"/",".yourdomain.com"); } look at the setcookie function on php.net to figure out all the parameters: http://www.php.net/manual/en/function.setcookie.ph

[PHP] HTTP Authentication w/IIS

2001-02-03 Thread Shane McBride
OK, I loaded PHP with the ISAPI filter, but still no luck with authentication.. Here's the basic script that works on Apache/Linux:

Re: [PHP] IIS & ISAPI

2001-02-03 Thread Shane McBride
Yea I had to move the php4ts.dll dile to the winnt directory. Thanks. Have you every tried to get authentication to work using PHP as isapi? - Original Message - From: "Chris Fry" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]> Cc: &l

[PHP] IIS & ISAPI

2001-02-03 Thread Shane McBride
I have loaded PHP according to the install file but I can not see any .php file in a browser. When I look under the ISAPI properties in IIS is appears that the dll is not loading. It has a red arrow pointing down. Any ideas? shane

Re: [PHP] Cant get this one

2001-02-01 Thread Shane McBride
It looks like your not assigning the arrays correctly. Here's a long piece of code I use: (it has alot of extra code that you don't need.) Couldn't get list!"); } else { while ($row = mysql_fetch_array($sql_result)) { $title = addslashes($row["title"]); $price = $row["price"]; $image

[PHP] Pricing for PHP programming???

2001-01-31 Thread Shane McBride
I know this is not really a PHP question, but it should make for a good thread. :) I was wondering what other PHP people charge to write PHP? I have just been given a project for a fairly large customer, much larger than I normally do work for. So I am VERY confused.concerned about how to price

Re: [PHP] How can I make PHP to work on Win98 ?

2001-01-30 Thread Shane McBride
Here's my input: Get Xitami for Windows. You can not do any version of IIS on win98. Xitami is VERY easy to configure. Then you of course will need PHP. First, install Xitami, then PHP. The PHP installer will ask you what type of web server you run and configure PHP and the web server for

[PHP] Real prob w/ NT5 and $PHP_AUTH_USER

2001-01-30 Thread Shane McBride
I have PHP loaded as ISAPI, not CGI. I originally had PHP installed as cgi. When I have a script that authenticates a user, it never authorizes them. I have set the permissions in IIS to only allow Anonymous access. The other two options are disabled. I have tried all the different security opt

[PHP] IIS and $PHP_AUTH_USER

2001-01-29 Thread Shane McBride
I am getting a whole lot closer to getting IIS to work with PHP loading as ISAPI. Now, when I try to get authorized, it never works. It's probably a varialbe in the .ini file I have not set. I keep getting the user prompt box, and the realm changes after the first login failure NT5 PHP 4.0.4pl

Re: [PHP] IIS and PHP authorization

2001-01-27 Thread Shane McBride
I thought PHP would only run as CGI on IIS? Right now I'm trying to config Apache. - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, January 27,

[PHP] IIS and PHP authorization

2001-01-27 Thread Shane McBride
I finally got PHP, MySQL and Win2k installed after a long hard battle with a Promise Ultra/66 controller card. Now, PHP seems to work fine exceot when I have a script that requires authorization, I never get the popup box to input the login and password. Here's the script: Any ideas? TIA- S

[PHP] really need help...

2001-01-26 Thread Shane McBride
I am getting this error and I don't understand. I am running PHP 4.0.4 and Xitami web server on Windows 98SE. I know this is not the most ideal setup, but I just use it for developing. Warning: Unable to create 'd:\sites\merchantpower\mp\images\': Permission denied in d:/sites/MerchantPower/mp

[PHP] move_uploaded_file - getting furthur ..still need help

2001-01-26 Thread Shane McBride
Here's what I get: Warning: Unable to create 'd:\sites\merchantpower\mp\images\': Permission denied in d:/sites/MerchantPower/mp/admin/add_record2.php on line 47

Re: [PHP] phpinfo ?

2001-01-26 Thread Shane McBride
Try this: -Shane - Original Message - From: "kaab kaoutar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 26, 2001 10:23 AM Subject: [PHP] phpinfo ? > Hi there! > > I'm sure it's a stupid problem but the phpinfo does work while trying the > following html code

Re: [PHP] Help Please, MySQL is driving me insane

2001-01-26 Thread Shane McBride
The username that it defaults to is root, with no password. There is a command you need to run to set a password. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Jason Bouwmeester" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Friday, January 26, 2001 10:29 PM Subject:

Re: [PHP] Help Please, MySQL is driving me insane

2001-01-26 Thread Shane McBride
Have you started the server? If not go to the command prompt and: 1. cd c:\mysql\bin (assuming this is where it was installed. 2. type mqsqld-opt (optimized for pentium class PC) That should start the server. If you need more help let me know. - Shane - Original Message - From: "Chris"

[PHP] Use of exec() in windows

2001-01-26 Thread Shane McBride
All, I'm trying to port a wonderful application over to miserable windows. I can not find documentation of how to invoke exec on windows. Here's what I tried: // Creates the image file with a timestamp $timestamp = time(); $image= $timestamp.$picture_name; if ($PLATFORM == "windows") { $new_pat

[PHP] common.inc probs.

2001-01-26 Thread Shane McBride
I have a script that pulls in the following file via: require 'common.inc' The problem occurs when it hits the $UNIX_PATH variable. At least I think that's where it creates a problem. If I comment it out it works fine, but I of course need that variable. First of all I created a script that c

[PHP] include_path again

2001-01-26 Thread Shane McBride
OK, I figured out that I had forgotten the quotes around the path(s), but I still don't understand the path itself. Will it look in sub directories.For example: include_path=".;d:\sites" Will PHP look in any subs under sites? - Shane

[PHP] include_path in windows

2001-01-26 Thread Shane McBride
I am trying to get my php.ini file configured correctly. I have a script that calls the require function/command( I'm not sure which it is..) Here's what the .ini file is: include_path=d:\sites;d:\sites\merchantpower\setup According to the notation in the .ini file I have the correct syntax, bu

Re: [PHP] Help: Google like page functions

2001-01-23 Thread Shane McBride
I found a great little snippet by accident that does the "Previous 123 Next" links. If anyone is interested, here's the link to it: http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=21 - Original Message - From: "Shane McBride" <[EMAIL P

[PHP] Help: Google like page functions

2001-01-23 Thread Shane McBride
I thought this had been addressed earlier, but I could not find the thread. If I have a MySQL DB that has 50 records in it and I want to display 5 per page. How do I do this. Also, 50 was just a nice round number, the number will change constantly. All the search engines are doing this type of

Re: [PHP] Help w/ quotes/html and data from MySQL

2001-01-23 Thread Shane McBride
After I sent this message I looked at the code again. I saw the error as obvious as daylight. It's working great now. Thanks. - Original Message - From: "Steve Edberg" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTE

[PHP] Help w/ quotes/html and data from MySQL

2001-01-23 Thread Shane McBride
I have a field in MySQL that holds data that may look like this: Rose Painting"Looks really nice, blah, blah"25.00 Now, I want to pull that data back into a form to edit. Here's how I have unsuccessfully been doing it: ?> beginning code Description: ...ending code ?> I looks like that

Re: [PHP] Ethics question...

2001-01-17 Thread Shane McBride
TECTED]>; "Kath" <[EMAIL PROTECTED]> Cc: "'Rasmus Lerdorf'" <[EMAIL PROTECTED]>; "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 10:03 PM Subject: RE: [PHP] Ethics question... > hey, hey ...

[PHP] Ethics question...

2001-01-17 Thread Shane McBride
I have spent a lot of time working on a specific E-Commerce (shopping-cart) to fill a need for a customer. Now that the project is complete, I would like to market the product, which is entirely PHP and MySQL. My question is: Is it ethical to sell a product ( at a relatively low-cost) written i

[PHP] Search Engine submittal and PHP

2001-01-17 Thread Shane McBride
I have a site that uses PHP extensively. Each page has PHP, so of course each page ends in the .php extension. Does anyone know if this affects the way a search engine crawls a site? I have several sites that are very successful, but this site does not even show up on the search engines. All d

Re: [PHP] How do I store a pic?

2001-01-12 Thread Shane McBride
Kenneth, I store the path to the image in the table. I am unsure if you can actually write an image to a table. When the item is deleted, I run an "exec" command to remove the actual file. Here's some snippets: The actual html to create the upload file text box within a : This is the

Re: [PHP] pause

2001-01-10 Thread Shane McBride
If you find something other than client side validation, let me know please. I had to resort to VBScript and I hate it! - Original Message - From: "jeremy brand" <[EMAIL PROTECTED]> To: "DanO" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 4:42 PM Subject: R

Re: [PHP] How can I get a random number

2001-01-10 Thread Shane McBride
This is what I have used: $token = md5(uniqid(rand())); - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Monday, January 10, 2000 5:13 PM Subject: [PHP] How can I get a random number > How can I get a random number > > Th

Re: [PHP] Session Errors, do you recognize?

2001-01-10 Thread Shane McBride
One more thing after looking at the code. Try this: - Original Message - From: "JB" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 9:04 AM Subject: [PHP] Session Errors, do you recognize? Hey, I keep getting the same error messages when trying to fire up

Re: [PHP] Session Errors, do you recognize?

2001-01-10 Thread Shane McBride
Make sure that the To: <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 9:04 AM Subject: [PHP] Session Errors, do you recognize? Hey, I keep getting the same error messages when trying to fire up sessions in this code i wrote. i've written some test scripts to test sessions on my machine,