Re: [PHP] How do I hide download link ...

2002-06-18 Thread Fargo Lee
r [EMAIL PROTECTED] To: Fargo Lee [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 5:42 AM Subject: Re: [PHP] How do I hide download link ... - Original Message - From: Fargo Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 4:14 PM

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Fargo Lee
somewhere that's not accessable from the web and spit it out to the browser HTH Martin -Original Message- From: Fargo Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 6:15 AM To: [EMAIL PROTECTED] Subject: [PHP] How do I hide download link ... Hi, my customers go

Re: [PHP] How do I hide download link ...

2002-06-18 Thread Fargo Lee
Ok think I am all good now. Added ... $fh = fopen($download_file, r); then changed ... passthru($download_file); to fpassthru($fh); Thanks, again! Fargo Lee [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for the code, I think I am

[PHP] Re: How to convert seconds to days, hours, minutes seconds?

2002-06-18 Thread Fargo Lee
Thanks! Fargo Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi, if I have a variable containing a number of seconds what function would I use to output something like ... 13 Hours, 12 Minutes, 3 Seconds or 23 Days, 13 Hours, 12 Minutes, 3 Seconds Any examples

[PHP] How do I import tables into MySQL from web page ...

2002-07-09 Thread Fargo Lee
Hi, I am trying to import some tables from a dump file into a MySQL database from a php web page. What is the best way to do this without using backticks (fpassthru, system, exec or something else) and test for success or failure? I tried the following and while it works, my test for success or

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-09 Thread Fargo Lee
, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote: $status = system(mysql -umyuserid -pmypassword mydbname You need a space between -u and myuserid --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolut

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-09 Thread Fargo Lee
to echo it. Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wednesday 10 July 2002 13:27, Fargo Lee wrote: Thanks for pointing out the syntax error. I added the space after the -u but it did not make any difference. It still gives the sam

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, Jul 09, 2002 at 10:59:04PM -0700, Fargo Lee wrote: Thanks but it still returns Success on a failure. If anyone knows if it is even possible to assign the output of system, passthru or exec to a

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
the return_var as you suggested. Thanks! Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, Jul 09, 2002 at 11:41:47PM -0700, Fargo Lee wrote: got it to assign a 0 (success) or 1 (failure) to the return_var argument as you sugges

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
- From: Fargo Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 1:27 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] How do I import tables into MySQL from web page ... Thanks for pointing out the syntax error. I added the space after the -u but it did not make any difference.

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
. Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, Jul 10, 2002 at 12:14:58PM -0700, Fargo Lee wrote: This suggests, as do a few posts I just noticed in the manual, that one cannot assign the output of system() and perhaps passthru()

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
? Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, Jul 10, 2002 at 12:14:58PM -0700, Fargo Lee wrote: when made to fail MySQL does return an error on the command line yet the variable does not hold FALSE as the manual suggests i

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
Run the command manually at a shell prompt. What happens? Here's what happens for me on WinNT. In an error condition, say my password is invalid, it retuns the error message then a blank line and then I'm back at the prompt. So, if system() is true to the manual, that blank line is the

[PHP] Question about using if elseif ...

2002-07-18 Thread Fargo Lee
When viewing examples of using if and elseif I often see the example ending with an else like ... if($a == '1'){ echo '1'; } elseif ($a == '2'){ echo '2'; } else { echo '0'; } Is there any problem with leaving out the last else and just ending it with an elseif such as ... if($a == '1'){ echo

[PHP] Re: Question about using if elseif ...

2002-07-24 Thread Fargo Lee
Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php