Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-10-11 Thread Rick Emery
Quoting Chris [EMAIL PROTECTED]: Rick Emery wrote: Is anyone using PHP5 on Linux to connect to MS SQL Server 2000 on Windows and execute stored procedures with output parameters within a transaction? If so, how? I'm trying to do something like this in the PHP application: begin

[PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
to accomplish it. Thanks in advance, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da Vinci -- PHP

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
Quoting Richard Lynch [EMAIL PROTECTED]: On Wed, September 27, 2006 7:40 am, Rick Emery wrote: I'm trying to do something like this in the PHP application: begin transaction execute a stored procedure, receiving an identity back if certain conditions are met execute another stored

[PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
in advance, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da Vinci -- PHP General Mailing List (http

Re: [PHP] apc and ZendPlatform

2006-06-30 Thread Rick Emery
Quoting Jochem Maas [EMAIL PROTECTED]: Rick Emery wrote: We're running Zend Platform on a server that also has apc installed; we're using apc in the scripts to cache data, and I understand (I think) that it also does bytecode also often referred to as 'opcode' caching That's what I meant

Re: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Rick Emery
($age); $results = mysql_query($insert) or die(mysql_error()); $age++ } There's a semi-colon missing at the end of the last line ($age++). Hope thi shelps, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-12 Thread Rick Emery
Quoting Rory Browne [EMAIL PROTECTED]: I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
? -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da Vinci -- PHP General Mailing List (http://www.php.net

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: [snip] Couldn't I write my own cookie to fool the authentication into thinking I'm somebody else? [/snip] I suppose that you could do that if you were savvy enough to realize that automatic login to the intranet used a cookie for authentication and you knew how to

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: You could just store a username, since they have already authenticated, but a cookie with just a username would be easy to duplicate. My current thought is to hash a checksum of some sort and storing that in the cookie as well. That way you avoid the username only

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting Jochem Maas [EMAIL PROTECTED]: Rick Emery wrote: Okay, I'm following all of this. So I could take, say, the username reversed and encode it, then decode it in the PHP application, and be I wouldn't do it like that instead stick the username in the cookie in plaintext

Re: [PHP] Str to Int

2006-01-21 Thread Rick Emery
on the left side of the expression. For example, if ('' == $cardID) { instead of if ($cardID == '') { That way, if you accidentally use = instead of ==, you should get an error because you can't assign something to a literal or constant. Hope this helps somebody, Rick -- Rick Emery When once you

Re: [PHP] Zend Sudio's Optimizer / PHP 5.1.1

2005-12-02 Thread Rick Emery
don't think they have a version for PHP 5.1.x yet. -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da Vinci

RE: [PHP] Upgrading on RH ES3

2005-12-02 Thread Rick Emery
that rpm installed; thus, apxs (and the httpd-devel rpm) was not needed on your system to build the module. Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return

Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread Rick Emery
Quoting [EMAIL PROTECTED]: Thanks for your help. I'd love to hear if you have any success with the RPMs. Unfortunately (?) everything worked for me out-of-the-box. On a fresh FC4 box, I installed httpd and php, then downloaded and installed the freetds and php-mssql rpms. I copied an

Re: [PHP] PHP and MSSQL on Linux

2005-11-03 Thread Rick Emery
what I would need to do there to make the script work via the web? Did you run the script from the command line as the apache user? That would rule out any permissions issues. Just grasping at straws. Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your

Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
haven't been able to find them, and our system administrator wanted to use Fedora Core 4, so I've been having to compile freetds and php from source (though now that I've done it a few times, I kind of like doing it that way :-) hth, and thanks, Rick -- Rick Emery When once you have tasted

Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
Quoting [EMAIL PROTECTED]: I get no output from mssql_get_last_message(). When I use the pear DB class, and use $db-getMessage(), I get connect failed, very useful like usual with getMessage(). Even doing a print_r of the object reveals nothing. I'm pretty sure that PHP is not even trying

Re: Re: Re: [PHP] PHP and MSSQL on Linux

2005-11-02 Thread Rick Emery
Quoting [EMAIL PROTECTED]: Yup, I thought that was the problem too but when I added my server to the conf file, there was no change. When you set up your MSSQL connection in fedora, did you install anything else other than MSSQL and PHP-MSSQL? Or did you have to set anything in your php.ini

Re: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-23 Thread Rick Emery
Jasper Bryant-Greene wrote: On Fri, 2005-10-21 at 15:43 -0500, Jay Blanchard wrote: [snip] I haven't used Windows for a while, but Start-Search-Files folders (or something like that) and enter php.ini. Delete all results except the one that you've been editing, and then move the one you've

RE: [PHP] PHP and XML

2005-10-06 Thread Rick Emery
, and performing XSL transformations on XML documents. Hope this helps, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return

Re: [PHP] Re: PHP vs. ColdFusion

2005-10-06 Thread Rick Emery
. Thanks again to everyone. Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da Vinci -- PHP General

[PHP] Linux/PHP and Windows/MSSQL

2005-10-06 Thread Rick Emery
administrator and I think it defeats what management wants to accomplish with a commercially supported distro (package management with easy updates). Is anybody in a similar environment that has an easy solution, or can anybody offer advice? Thanks in advance, Rick -- Rick Emery When once you

Re: [PHP] ASP (VBScript) to PHP Converters?

2005-09-09 Thread Rick Emery
://asp2php.naken.cc/ I've never used it, but I have a friend who played around with it. He said it wasn't perfect, but he was very impressed with what it did. HTH, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have

Re: [PHP] Filter based on ctype_print()

2005-09-05 Thread Rick Emery
Quoting Robin Vickery [EMAIL PROTECTED]: On 9/5/05, Rick Emery [EMAIL PROTECTED] wrote: What I really want to do is replace the non-printable character(s) with printable character(s) (maybe a question mark, or a space), but haven't been able to find a function that will do it. Maybe something

[PHP] Filter based on ctype_print()

2005-09-04 Thread Rick Emery
write one myself using preg_replace, but would need a regular expression to find non-printable characters; I'm terrible at regular expressions. Any ideas? Thanks in advance. Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
Just a quick note to thank everybody who has replied. I've been getting a lot of feedback, and won't be able to reply to all of the messages I've received, but I appreciate each and every one of them and don't want anybody to feel left out. Thanks again, Rick -- Rick Emery When once you have

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
to change their Microsoft only attitudes, so the statement from my boss that management said it has to run on IIS really caught me by surprise. Thanks, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
as echoing my feelings and frustration. Unfortunately (or fortunately, I guess) I didn't have the guts to do it; I'd be risking getting in trouble (they've been know to reprimand people because of the tone in an email). Thanks, Rick -- Rick Emery When once you have tasted flight, you will forever

RE: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
and I had a good laugh over this signature :-) Thanks, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da

RE: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
connection works fine for us. Thanks, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da Vinci -- PHP General

Re: [PHP] PHP vs. ColdFusion

2005-08-24 Thread Rick Emery
Quoting Richard Lynch [EMAIL PROTECTED]: Just for a test case, write a 10-line ASP script that does something similar, if much simpler, and pound on it on the same box with the Padcom clients. I did that when the problem first appeared. Great minds think alike :-) I'm betting you'll have

Re: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Rick Emery
Quoting Rick Emery [EMAIL PROTECTED]: Ugh, we're *never* going to make a decision. My boss just sent me this email: A *huge* THANK YOU! to everybody who replied; it was extremely helpful and, after my meeting with my manager this morning, she seemed to accept that the article was dated

Re: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Rick Emery
Quoting Rick Emery [EMAIL PROTECTED]: My employer has (finally) decided to take full advantage of our intranet, and wants to move from client-server applications to web-based applications. [snipped] Any input would be greatly appreciated. Opinions are welcome (especially from programmers

Re: [PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-06 Thread Rick Emery
if the session variable changes unless the script is reloaded. 2. My favorite, but probably overkill. Write a php page that outputs the session variables (as XML would be cool). Then use xmlhttprequest to retrieve them from javascript (Google AJAX for more information). Hope this helps, Rick -- Rick Emery

Re: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Rick Emery
the user side settings. You need to go for JavaScript and ask the question in a JavaScript list. Since you brought it up :-) Can anybody recommend a good JavaScript mailing list? Thanks, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Rick Emery
Quoting Chris W. Parker [EMAIL PROTECTED]: Rick Emery mailto:[EMAIL PROTECTED] on Friday, August 05, 2005 4:20 PM said: Can anybody recommend a good JavaScript mailing list? If by anybody you mean Google, then yes anybody can recommend a good JavaScript mailing list. Well, as I found

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Rick Emery
Quoting Chris W. Parker [EMAIL PROTECTED]: Rick Emery mailto:[EMAIL PROTECTED] on Friday, August 05, 2005 4:54 PM said: Well, as I found out when I Google'd before I posted, it *lists* plenty of JavaScript mailing lists. But it can hardly recommend a good one, which is what I asked

Re: [PHP] Re: Konqueror does not like my Website

2005-07-22 Thread Rick Emery
with the file-extension *.php and Konqueror can not handel this... (It is KDE 3.4) Greetings Michelle I just opened it in Konqueror 3.4.1 to look for any javascript errors, and it seemed to load and work fine. Sorry I wasn't any help, Rick -- Rick Emery When once you have tasted flight, you

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread Rick Emery
install is using the php.ini file you think it is. I got bit by this (I kept editing the php.ini file in one directory, but it was reading the file from another). It really does sound like error reporting is turned off. hth, Rick -- Rick Emery When once you have tasted flight, you will forever

[PHP] Ouput HTML w/PHP

2005-06-30 Thread Rick Emery
). Is there a way for me to maybe use the PHP tidy functions on the string containing the HTML ouput to validate it? Thanks in advance, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long

RE: [PHP] PHP vs. ColdFusion

2005-06-29 Thread Rick Emery
comments when I discuss this with management. I don't agree with all of your points, but will present all of the information and let management decide. That's what they get paid for :-) Thanks again, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your

Re: [PHP] PHP vs. ColdFusion

2005-06-29 Thread Rick Emery
/unsub.php -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you will always long to return -- Leonardo Da Vinci -- PHP General Mailing List (http://www.php.net

[PHP] Re: PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Ke'tszeri Csaba [EMAIL PROTECTED]: About zend: sorry to say that here, but the less tools you use, the more freedom you have. Give me ssh access to any server running my php code and I can inspect it very well, may fix it in one shot :)). From anywhere. For what it's worth, I agree.

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Jochem Maas [EMAIL PROTECTED]: what is special about the MSSQL2K servers? do you have a lot of stored procedures in it? stuff like that? Exactly; the past mentality has been do everything through stored procedures, so we have a *lot*. Also, my manager's boss (who has since retired)

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Jonathan Villa [EMAIL PROTECTED]: Take a look at these, they are just some of the articles I've bookmarked over the past Oracle is now behind (well in support of) PHP http://www.oracle.com/technology/tech/php/index.html IBM is also behind PHP (well in support of)

[PHP] Re: PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Anton Kovalenko [EMAIL PROTECTED]: As to ColdFusion, It seems to me that this technology is dead already. What makes you say this? I had never heard anything like this, but it would certainly be powerful ammunition to present to my bosses. Thanks, Rick -- PHP General Mailing List

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Brad Pauly [EMAIL PROTECTED]: It might not be easy to put a number on, but consider your (and possibly the other developers') enthusiasm about PHP. I would guess that you will be more productive with something that you are excited about. Our senior developer and I (who come from a C

RE: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Matt Babineau [EMAIL PROTECTED]: Yeah - I'll second all of this. I'm a Certified Macromedia CF Developer, why do you ask am I on this list? The answer is simple, php is better. However with the recent developments in CF6, CF has become very comparable. Why would I still choose PHP over

[PHP] PHP vs. ColdFusion

2005-06-26 Thread Rick Emery
programmers with experience in both), but I have to sell it to management (I'm already on the PHP side), so links to data or articles comparing the two are best. Thanks in advance, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward

Re: [PHP] Problem with array

2005-06-17 Thread Rick Emery
=\left\ width=\200\$pieces[1] $pieces[2] $pieces[3] $pieces[4]/tdtd valign=\top\ align=\left\ width=\80\$formatted_price/td/tr/table; } } -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been, and there you

Re: [PHP] Retrievable weather service info?

2005-06-16 Thread Rick Emery
Weather.com and METAR/TAF from NOAA are supported. Further services will get included, if they become available, have a usable API and are properly documented. hth, Rick -- Rick Emery When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for there you have been

Fw: [PHP] Re: Checking for empty values sent from a form

2003-03-06 Thread Rick Emery
foreach($HTTP_POST_VARS as $val) if($val==) { do something } - Original Message - From: shaun [EMAIL PROTECTED] To: Sent: Thursday, March 06, 2003 7:45 AM Subject: [PHP] Re: Checking for empty values sent from a form thanks for your reply but I was wondering if there was a way

Re: [PHP] Problem updating

2003-03-06 Thread Rick Emery
Is this HTML in a print or echo statement? If not, then the variables will not display. You can View Source to verify this. - Original Message - From: Steve Jackson [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 8:27 AM Subject: [PHP] Problem updating

Fw: [PHP] checking if module exists

2003-02-26 Thread Rick Emery
Write a test script and run it on the target server. If it crashes, it's not enabled. - Original Message - From: Jun [EMAIL PROTECTED] To: Sent: Wednesday, February 26, 2003 7:38 AM Subject: [PHP] checking if module exists I want my script to compress the output using gzip library.

Re: [PHP] editing field value using selectbox with options

2003-02-25 Thread Rick Emery
$titles = array(Mr.,Ms.,Mrs.,Dr.,Capt.); print select name=\MemPicSalutation\ id=\MemPicSalutation\\n; foreach($titles as $value) { if($row['title]==$value) $sel=SELECTED; else unset($sel); print option value=\$value $sel$value/option\n; } print /select\n; - Original Message -

Fw: [PHP] help me please

2003-02-25 Thread Rick Emery
You don't have to break up the strings: mail($ToName $ToEmail,$ToSubject, $EmailBody, From: $FirstName $Email); What are values of $ToName and $FirstName? why did you submit tghis 3 times? - Original Message - From: bionicegg [EMAIL PROTECTED] To: Sent: Tuesday, February 25, 2003 11:38

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
Yes, you can. Simply give the buttons differnt names: INPUT type=submit name=submit1 value=Submit This INPUT type=submit name=submit2 value=Submit That in the PHP script: extract($HTTP_POST_VARS); is( isset($submit1) ) { } else if( isset($submit2) ) { } - Original Message - From: Greg

Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
: Rick Emery [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:25 PM Subject: Re: [PHP] Submit buttons Yes, you can. Simply give the buttons differnt names: INPUT type=submit name=submit1 value=Submit This INPUT type=submit name=submit2 value=Submit That in the PHP script

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Rick Emery
You're on the right track: for ($i = 1; $i = 3; $i++) { $arr_name[$i] = $name$i; // I want $name1,$name2,$name3 etc } - Original Message - From: Jeff Pauls [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:18 PM Subject: [PHP] Auto Incrementing a

Re: [PHP] Problem with readfile on jpegs

2003-02-24 Thread Rick Emery
Show us code. The error refers to line 87. We need to see that, and other code surrounding 87. - Original Message - From: Patrick Teague [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:45 AM Subject: [PHP] Problem with readfile on jpegs I found info on

Re: [PHP] what's the matter?

2003-02-22 Thread Rick Emery
?php extract($HTTP_POST_VARS); if($gender=='') echo choice the gender; if($gender==male) echo you are male; if($gender==female) echo you are female; ? - Original Message - From: X [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 22, 2003 7:36 AM Subject:

Fw: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Rick Emery
$db = mysql_pconnect(localhost, test1, test1) or die(mysql_error()); - Original Message - From: ML [EMAIL PROTECTED] To: Sent: Friday, February 21, 2003 9:33 AM Subject: [PHP] Re: Mysql DB connect failure Where exactly would I put the print mysql_error() ? Here is the code... ?php

Re: [PHP] Forms and MySql date

2003-02-20 Thread Rick Emery
mysql stores date as -mm-dd that is how the date should be entered into the form If entered in another format, you can reformat it. - Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list list [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 4:43 PM Subject:

Re: [PHP] why won't this work?

2003-02-18 Thread Rick Emery
I did a View-Source on the generated code and got this for the Friday Feb 28 entry: table width='95%' tr bgColor=#99td center font face='arial' size='3' color='ff'Friday February 28th 8 AM to Noon /td/tr

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
It helps if you show us all your code, not just what you think we might need. For isntance, what does your mysql_query() statement look like? Does it have an or die(mysql_error())) clause? - Original Message - From: Janyne Kizer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday,

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: Janyne Kizer [EMAIL PROTECTED] To: Rick Emery [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:31 AM Subject: Re: [PHP] Problem

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
feel. - Original Message - From: Janyne Kizer [EMAIL PROTECTED] To: Rick Emery [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 17, 2003 9:31 AM Subject: Re: [PHP] Problem creating array from MySql query Thanks for taking a look at this. ?php mysql_connect (, ,

Re: [PHP] Problem creating array from MySql query

2003-02-17 Thread Rick Emery
what times out? The query? rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: Janyne Kizer [EMAIL PROTECTED] To: Rick Emery [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February

Fw: [PHP] MD5 login troubles

2003-02-17 Thread Rick Emery
Make it easy on yourself: $pw = md5($password); $query = INSERT INTO penpals (email, password, username) VALUES \$email\,\$pw\,\$username\); mysql_query($query); $pw = md5($password); $query = SELECT email,password,username FROM penpals WHERE email=\$email\ password=\$pw\; $result =

Fw: [PHP] check if a file has already be included

2003-02-17 Thread Rick Emery
can you use: include_once(filename); This way, if it wasn't included, it will be. If it was included, this statement is ignored. - Original Message - From: Greg [EMAIL PROTECTED] To: Sent: Monday, February 17, 2003 10:18 AM Subject: [PHP] check if a file has already be included Is

Re: [PHP] select query question

2003-02-17 Thread Rick Emery
SELECT * FROM mytable WHERE flags NOT IN('L','C') rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: Sunfire [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 17, 2003 11:19

Re: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-17 Thread Rick Emery
I also use Redhat 7.1 and use FTP successfully. Something in your setup? rick People will forget what you said. People will forget what you did. But people will never forget how you made them feel. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February

Re: [PHP] ereg usage

2003-02-16 Thread Rick Emery
The problem is that it's looking for hyphen, - , immediately preceeding the end. Remove the $. - Original Message - From: Peter Gumbrell [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 9:18 AM Subject: [PHP] ereg usage Could someone please tell me

Re: [PHP] cookie problem....

2003-02-13 Thread Rick Emery
I always use 4 parameters in my setcookie(cookie_name,cookie_value,time,/) Also, verify that $HTTP_POST_VARS['Name'] exists by printing it - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 7:20 AM Subject: Re: [PHP] cookie

Fw: [PHP] sending e-mail with 'Bcc:' and 'Cc:' not working....

2003-02-13 Thread Rick Emery
mail([EMAIL PROTECTED],This Is A Subject,$message,From: [EMAIL PROTECTED]\r\nCc: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]\r\nBcc: [EMAIL PROTECTED],[EMAIL PROTECTED]); Separate addesses with commas. Separate CC and BCC with \r\n - Original Message - From: Scott Fletcher

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Rick Emery
setcookie(userinfo,userid,NULL,/); - Original Message - From: Fireborn Silvaranth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 11:58 AM Subject: [PHP] problems with cookies and PHP ok now it will print it's value correctly but what

Re: [PHP] Removing a comma from a form field

2003-02-13 Thread Rick Emery
$thestr = str_replace(,,,$thestring); - Original Message - From: Ben C. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 12:13 PM Subject: [PHP] Removing a comma from a form field I'm trying to update a field which contains a $USD figure. But when I update it as

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
What do you mean by verify that info? Do you mena verify for content, or form, or what... - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: Php-General@Lists. Php. Net [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 12:22 PM Subject: [PHP] form within form I am

Re: [PHP] form within form

2003-02-13 Thread Rick Emery
PROTECTED] Sent: Thursday, February 13, 2003 12:30 PM Subject: RE: [PHP] form within form I apologize I mean when they click the 'verify' button, I verify their username and password before I allow them to update it. Eddie -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] problems with cookies and PHP

2003-02-13 Thread Rick Emery
In your code, it appears you are attempting to determine the value of the cookie immediately upon setting. The value of the cookie is NOT available at this point; a new page must be opened. Why are you setting time to 0? If you want cookie to disappear at end of the session, use NULL. Are

Re: [PHP] MySQL Madness

2003-01-29 Thread Rick Emery
If you're using root, then you must use the root password in mysql_connect(). - Original Message - From: Gibbs, Liam - SXIA [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 8:45 AM Subject: [PHP] MySQL Madness First off, when executing this command:

Re: [PHP] Warning: Failed opening

2003-01-29 Thread Rick Emery
index.php is not in your include path; that is, not in working directory nor c:\hp4\pear. Where is it? - Original Message - From: Ysrael Guzmán [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 8:54 AM Subject: [PHP] Warning: Failed opening This is my problem?

Re: [PHP] Re: Need help.

2003-01-28 Thread Rick Emery
Show us your code...we can't read your mind. - Original Message - Thkiat wrote: Can someone tell me what should I do to solve this problem? Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/epcc/public_html/exoops/class/database/mysql.php on

Re: [PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-24 Thread Rick Emery
[EMAIL PROTECTED] To: 'Rick Emery' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 24, 2003 7:46 AM Subject: RE: [PHP] Strange anomolie with each() and mysql_fetch_array() First, if you expect only a single row returned, why are you using a while(){} construct? Third, each

Re: [PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Rick Emery
Define fails - Original Message - From: Jay Fitzgerald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 24, 2003 3:11 PM Subject: [PHP] WHILE IF/ELSE loop not working can anyone tell me why this while loop fails? == while

Re: [PHP] checkboxes php

2003-01-24 Thread Rick Emery
select multiple applies to selection lists, not checkboxes - Original Message - From: Richard Whitney [EMAIL PROTECTED] To: Greg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, January 24, 2003 2:59 PM Subject: Re: [PHP] checkboxes php I just logged in to my Yahoo mail account.

Re: [PHP] mysql_fetch_row problem

2003-01-23 Thread Rick Emery
I'm gong to bet that $Location is alpha, not numeric. Therefore: $result = mysql_query(SELECT contactemail FROM loc WHERE location=\$Location\,$db); - Original Message - From: Bryan Brannigan [EMAIL PROTECTED] To: Php List (E-mail) [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 8:03

Re: [PHP] Who is foo what is bar?

2003-01-23 Thread Rick Emery
It comes from the acronym, FUBAR. This is military slang that has been around since WWII. FUBAR stands for: F**ked Up Beyond All Repair - Original Message - From: Uttam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 11:15 PM Subject: [PHP] Who is foo what is

Re: [PHP] Strange anomolie with each() and mysql_fetch_array()

2003-01-23 Thread Rick Emery
First, if you expect only a single row returned, why are you using a while(){} construct? Second, mysql_fetch_array() does not like to operate within another function call. I've tried it on multiple occasions; failed. Third, each() operates on succeeding elements of an array; there are only two

Re: [PHP] HELP please quickly

2003-01-22 Thread Rick Emery
file is the file that I need to compare against the second file, and if I find one match in the second file, I need to move it to the third file. From: Rick Emery [EMAIL PROTECTED] Reply-To: Rick Emery [EMAIL PROTECTED] To: Didier McGillis [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: Re

Re: [PHP] Simple E-mail Question

2003-01-22 Thread Rick Emery
$mailheaders = From: [EMAIL PROTECTED]\r\nCc: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]\r\nBcc: [EMAIL PROTECTED],[EMAIL PROTECTED]; mail([EMAIL PROTECTED], $Event Ticket Form, $msg, $mailheaders); - Original Message - From: Scott Saraniero [EMAIL PROTECTED] To: Sent:

Fw: [PHP] Image opendialog function

2003-01-22 Thread Rick Emery
PHP cannot open a dialog on client. PHP is server-side only. Use JavaScript to open a dialog. - Original Message - From: Steven Seijmonsbergen [EMAIL PROTECTED] To: Sent: Wednesday, January 22, 2003 4:52 AM Subject: [PHP] Image opendialog function Hi I'm looking for a Opendialog

Re: [PHP] HELP please quickly

2003-01-22 Thread Rick Emery
Are the numbers coming from a mysql database? If so, mysql can handle this chore. - Original Message - From: Didier McGillis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 7:21 AM Subject: [PHP] HELP please quickly Here is a brief description of what I want

Fw: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Rick Emery
No. md5() is not an encryption, it's a hash. - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: Sent: Wednesday, January 22, 2003 3:47 PM Subject: [PHP] Is there a way to undo the md5() encryption?? Hi! Is there a way to do the decryption of the encrypted data with the

Fw: [PHP] DOWNLOAD

2003-01-21 Thread Rick Emery
Neither HTML nor PHP open the download (Save/Save As) dialog. This is a function of the browser upon clicking any file link, other than an HTML file. - Original Message - From: Shaun van den Berg [EMAIL PROTECTED] To: Sent: Tuesday, January 21, 2003 12:39 AM Subject: [PHP] DOWNLOAD

Re: [PHP] Adding a variable to oracle that contains quotation marks??

2003-01-21 Thread Rick Emery
$query = UPDATE ACTIVITY SET COMMENTS = \'$updatecomments\' WHERE ACTIVITY_ID =\'$actcode\'; - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 21, 2003 6:53 AM Subject: [PHP] Adding a variable to oracle that contains quotation marks?? Hi All,

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Rick Emery
show us code - Original Message - From: Dan Delaney [EMAIL PROTECTED] To: Sent: Tuesday, January 21, 2003 8:33 AM Subject: [PHP] Input field array ends up as Array string Hi every body. I have a form that was originally working just fine. It had a series of input checkboxes with the

Re: [PHP] Page Rendering

2003-01-21 Thread Rick Emery
$PHP_SELF is not interpreted by the browser. The browser shows only what is sent to it; PHP variables are not sent to the browser. Take the simple solution: don't use PHP_SELF; just use the file name - Original Message - From: Bill Arbuckle, Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Fw: [PHP] $header = Location:........ being ignored!

2003-01-21 Thread Rick Emery
if ( $_POST['passwd'] != $db['password'] ) {header(Location: loginfailed.html); exit; } - Original Message - From: Shams [EMAIL PROTECTED] To: Sent: Tuesday, January 21, 2003 3:48 AM Subject: [PHP] $header = Location: being ignored! Hi Group, I basically have some simple

  1   2   3   4   5   6   >