Re: [PHP] Command Line Script

2004-10-30 Thread Steve Douville
> > If you want to stick with PHP, you're better off using an ssh key, so that > you're not prompted for the password. > Ahh, okay thanks. If anyone can point me to some useful docs, I'd appreciate it. I've been looking on google but not really sure what's right and what's not. Thanks, Steve --

[PHP] Command Line Script

2004-10-29 Thread Steve Douville
I'm trying to write something to run as a cron job that will perform an sftp command and then run a batch file. I was trying to use: system("sftp [EMAIL PROTECTED]") But that stalls and waits for a password before continuing with the script. Any ideas on how to pass the password when it's prompte

[PHP] Resetting result sets after looping

2004-09-29 Thread Steve Douville
After cycling through a result set using mysql_fetch_assoc, I need to cycle through the result set again. However, it's acting like it's maybe already at the end of the result set and can't be looped again. I've looked for something simple, like a result resetter, but I seem to be missing something

[PHP] Re: php inventory control software

2004-08-02 Thread Steve Douville
Take a look at www.oscommerce.com > Any one can suggest me a php template (or modules) of a > web-based inventory control software including a web-store. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php & paypal

2004-07-27 Thread Steve Douville
If you have a business account there, you can use the PayPal API which does return values to you when the transaction is complete. Take a read through the PayPal docs, it's pretty well laid out there. "Mike R" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Does anyone know if it i

[PHP] Re: PHP and HTML Conventions

2004-07-12 Thread Steve Douville
I generally do all my program logic first then go to HTML. Once I start HTML, I drop in the PHP stuff where I need it. I think, but am not sure, that it also cuts down on processing time not having to parse out echo tags. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Re: make an image disappear when page loads

2004-07-05 Thread Steve Douville
I use two div tags, one encapsulating the page contents and one that holds the image. PHP turns them on or off by echoing a javascript command at the appropriate time when the data is compiled and ready to show. - Original Message - From: "Pierre" <[EMAIL PROTECTED]> To: "'Egil Berntsen'"

Re: [PHP] user-defined superglobals

2004-07-04 Thread Steve Douville
Or if you wanted it to be pretty... define('MY_DATABASE_USER', 'user'); define('MY_DATABASE_PASS', 'pass'); mysql_connect('localhost',MY_DATABASE_USER,MY_DATABASE_PASS); - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Michael Collins" <[EMAIL PROTECTED]> Cc: <[EMAIL

[PHP] PHP cgi

2004-07-02 Thread Steve Douville
There used to be a way that stripped something from a PHP binary that drastically reduced the size of the cgi file. For the life of me, I can't remember and can't find it on google anywhere. Anyone know what it is? TIA, Steve

Re: [PHP] R: [PHP] Holding links in a database

2004-06-24 Thread Steve Douville
People with 10+ line sig's shouldn't talk about trimming posts... ;-) (or did I misunderstand what you meant about trimming posts? lol) - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 24, 2004 9:36 AM Subject: Re: [PHP] R: [PHP] H

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
as $index => $element) { > $InputString = "$element"; > echo "$InputString"; >} > ?> > > > > - Original Message - > From: "Steve Douville" <[EMAIL PROTECTED]> > To: "Phpu&qu

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
Can you give us the code from to ? - Original Message - From: "Phpu" <[EMAIL PROTECTED]> To: "Steve Douville" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:14 AM Subject: Re: [PHP] Problems with arrays > I want the

Re: [PHP] Problems with arrays

2004-06-17 Thread Steve Douville
What are you outputting? html, text, email body...?? - Original Message - From: "Phpu" <[EMAIL PROTECTED]> To: "Oliver Hankeln" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:06 AM Subject: Re: [PHP] Problems with arrays > I've tried this but it is not workin

[PHP] Syntax Help, Please

2004-06-15 Thread Steve Douville
I've forgotten how to assign something like this... $someStr = EOF>>>" bunch of raw non-echo'd html " EOF>>>; But can't seem to get the right syntax. Tried looking in the manual, but don't even know what I'm looking for! TIA, Steve

Re: [PHP] Erroring out?!

2004-06-14 Thread Steve Douville
Taking the die() out may have helped your script continue but now you won't know if there are sql problems which would cause you to not get any data. I typically trap the error in a string variable or an array, depending on the application, and print that out in a nice way to see why my query didn'

Re: [PHP] Load a frame and work on another?

2004-06-14 Thread Steve Douville
Did you try to just echo the javascript statements instead of trying to use the header? Should have the same effect. - Original Message - From: "Robert Sossomon" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, June 14, 2004 2:32 PM Subject: [PHP] Load a frame and work

Re: [PHP] Erroring out?!

2004-06-14 Thread Steve Douville
You need to quote the $user: $query = "select * from quoteprefs where salesman = '$user'"; - Original Message - From: "Robert Sossomon" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, June 14, 2004 2:44 PM Subject: [PHP] Erroring out?! > I am trying to figure out w

Re: [PHP] PHP pros and cons

2004-06-12 Thread Steve Douville
Yes, pardon me for actually providing to the spirit of this list, to help people find ways to meet their objectives. Just saying "no" isn't very constructive, now is it? :-) "Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ste

Re: [PHP] Installation Question

2004-06-11 Thread Steve Douville
did you set up the mime types in apache? did you restart apache? - Original Message - From: "Marlene Thoms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 12, 2004 12:37 AM Subject: [PHP] Installation Question I am running Windows XP and have installed Apache2, MyODBC,

Re: [PHP] Header target?

2004-06-11 Thread Steve Douville
You could use javascript to determine whether or not to send it to the frame and if so, the target attribute in the form tag can be used to direct the form values to the frame for processing, if you're intending for the other frame to process the form data. If you're intending that the frame that

Re: [PHP] PHP pros and cons

2004-06-11 Thread Steve Douville
Easier to learn than Perl, comparable learning curves with CF imo, probably a bit easier than ASP initially. Cheaper to deploy than CF since it's free, same for ASP. As for speed in building applications, I'd say that given someone has the same ability in any of the 4 (PHP, ASP, CF, Perl) deploym

Re: [PHP] Getting Server time

2004-06-10 Thread Steve Douville
lol -- If I get email not intended for me, it is now MY property and I'll darn well send it, copy it, distribute it as I see fit. Kinda like getting stuff in the mail you didn't order... And I guess the admins finally did something about those two autoresponders. THANKS!! - Original Message --

Re: [PHP] Getting Server time

2004-06-10 Thread Steve Douville
Since PHP is parsed on the server and not on the client machine, you should be getting the server time. You can figure out in which TZ the server is by comparing it to the time where you are. Steve - Original Message - From: "Alex Hogan" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL

Re: [PHP] previous page

2004-06-09 Thread Steve Douville
Try: $_SERVER['HTTP_REFERER'] You misspelled it... - Original Message - From: "Larry E. Ullman" <[EMAIL PROTECTED]> To: "cab" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, June 09, 2004 8:46 AM Subject: Re: [PHP] previous page > > Thanks all makes sense, but, if I add th

[PHP] Squirrelmail Plug

2004-06-07 Thread Steve Douville
Kudos, kudos, kudos to the people who developed this webmail application and kudos to people who contributed plugins. Truly an easy program to install. The plugins are endless and also simple to install and configure. An excellent PHP application, highly recommended for anyone that needs a powerfu

Re: [PHP] HTTP_REFERER

2004-06-04 Thread Steve Douville
nks, Steve - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 04, 2004 2:51 PM Subject: Re: [PHP] HTTP_REFERER > Steve Douville wrote: > > I think I'm having a major brain fart here. Is there a $HTTP_REFER

[PHP] HTTP_REFERER

2004-06-04 Thread Steve Douville
I think I'm having a major brain fart here. Is there a $HTTP_REFERER anymore? It doesn't show up as a server variable or anything at all in phpinfo()... using php 4.3.4 Ideas? TIA, Steve

Re: [PHP] php installation verification

2004-06-02 Thread Steve Douville
Open a file. Put this code in there: Save as test.php and point your browser to it. - Original Message - From: "Nguyen, Long P (Mission Systems)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 02, 2004 4:33 PM Subject: [PHP] php installation verification > I am new

Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
y would be prompted to do something about it. Oh, look, two more to delete. (I knew the risk, believe me...) ;-) - Original Message - From: "Justin Patrin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 1:43 PM Subject: Re: [PHP] Spammers

Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
age - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Steve Douville" <[EMAIL PROTECTED]>; "Php-General-Help" <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 12:01 PM Subject: RE: [PHP] Spammers [snip] Those messages are only broadcast

Re: [PHP] Spammers

2004-06-01 Thread Steve Douville
Those messages are only broadcast if you happen to send a message to the board cause people have autoresponders set. Given that there are only two and now one bad address returning a message, I find it fairly easy to just hit the delete button three times. I don't think this qualifies as spam. So,

Re: [PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread Steve Douville
This works perfectly fine for me, as is. fyi -- It doesn't matter what case "post" or "get" are in the code, the global _GET and _POST will be populated properly. - Original Message - From: "php-general" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 11:24 AM Su

[PHP] Socket w/SSL Issues

2004-05-31 Thread Steve Douville
PHP is installed without openssl here at pair. I want to make a socket call to port 443 on a server and I'm getting an error from fsocketopen() that no ssl support is built in, of course. I thought that using "ssl://" might work around this, but I guess not. Any ideas for me? $host = "my.host.com

Re: [PHP] dynamic table

2004-05-26 Thread Steve Douville
echo ''; echo ''; while ($myrow = mysql_fetch_array($sql)) { echo ''; echo $myrow[0]; echo ''; } echo ''; echo ''; You did say you wanted 5 COLUMNS, not rows, in your table... right? "nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hiya, > > How can i draw a new AFTER F

[PHP] PHP not parsing joined tables well

2004-05-17 Thread Steve Douville
I'm got a query that is joining a few tables. select par.*, pla.*, pro.*, reg.* from parent par, players pla, registrations reg, programs pro where blah blah blah Now, a result set is the same but I'm having trouble parsing it because I have column names that are identical in two of t

Re: [PHP] dynamically building insert/update forms from db

2004-05-14 Thread Steve Douville
When you do a describe (desc tablename) it returns the type and length of the field in the database as part of the result set. You can parse that out and determine what kind of an input field to generate. - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To:

Re: [PHP] dynamically building insert/update forms from db

2004-05-14 Thread Steve Douville
Why don't you have your script do a desc on the table you pass to it, parse the results, and populate the data needed for your form building class? - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Friday, May 14, 2004 9:37 AM Subjec

Re: [PHP] variable passing using URL

2004-05-13 Thread Steve Douville
Capture the variables you've sent to the main frame page and send them via the url of the frames. Hope that helps. - Original Message - From: "gowthaman ramasamy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 14, 2004 2:24 AM Subject: [PHP] variable passing using URL

[PHP] Variables Help

2004-05-13 Thread Steve Douville
Is there a variable that I can call that will return an array with any variables I have set? I'd want to call it and then parse and display current values of, in this case, a and b. Hope that makes sense. TIA