Re: [PHP] Problem with PHP as CGI

2001-05-23 Thread Stuart J. Browne
"Richard Kurth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have php config as a cgi and I put this at the top of my script > > #!/usr/local/bin/php -q > > when ever I run this script at root in > telnet I get this message below. > > Error in argumen

Re: [PHP] PHP Editor

2001-05-10 Thread Stuart J. Browne
"Daniel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Just wondering whether you guys use any type of editor when programming in > PHP? if so what have you found to be useful? > I tend to stick with Vim, with syntax highlighting enabled. bkx --

Re: [PHP] Forcing a dynamic created text file to be saved

2001-04-10 Thread Stuart J. Browne
"Lindsay Adams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You are not going to be able to use PHP to tell the client browser to do anything. you are going to have to embed either a java.applet, or javascript to do it. I don¹t know a whole lot about either,

Re: [PHP] mystery line

2001-04-08 Thread Stuart J. Browne
"David Robley" <[EMAIL PROTECTED]> wrote in message 01040614091104.10051@www">news:01040614091104.10051@www... > On Fri, 6 Apr 2001 13:50, Martin Skjöldebrand wrote: > > Tyler Longren wrote: > > > In line 3, you don't need your tags again. > > > This is how you have it: > > > print "TID detail

Re: [PHP] PHP sending email contents as an attachment, not in thebody

2001-04-05 Thread Stuart J. Browne
"Lindsay Adams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > According to the headers in your email, you are using Outlook Express. > > I think it is a microsoft issue. Because when I write a long email in OE, > and send it to myself, I get it as an attachme

Re: [PHP] Accessing Intberase database in NT

2001-04-01 Thread Stuart J. Browne
<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Any idea how can i possibly access an Interbase database residing in NT4 from > my web server running in Linux? To do this, I believe you will have to compile PHP on the Linux box with the Linux GDS libraries (as

Re: [PHP] header() vs. no cache, it doesn't work.

2001-04-01 Thread Stuart J. Browne
> >When I use this script > > > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > > ### oops, don't forget to escape these! ^ ^ Umm, why would he need to escape those two "'s? They arn't within anothe s

Re: [PHP] version????

2001-04-01 Thread Stuart J. Browne
Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 9a23cm$fuu$[EMAIL PROTECTED]">news:9a23cm$fuu$[EMAIL PROTECTED]... > One more question! Why does some PHP 4.0 & up does not have the php.ini > file? I noticed for the UNIX, there isn't one. For Caldera, there is one. > For Windows, there is

Re: [PHP] This PHP list

2001-03-29 Thread Stuart J. Browne
> > After being eye-ball deep in documentation 8 hrs a day trying to learn how > > to do things with MySQL, Interbase, PHP, and CSS.. This list certinaly is a > > god-send. Not only do questions that are posted GET ANSWERED (questions > > i've asked in other groups have a tendancy to go un-answer

Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded

2001-03-29 Thread Stuart J. Browne
> > Doesn't the command return 1 or 0 in success or failure? > > Not 1 or 0. It returns 0 or some other value. Almost the same, > but not quite. > > > You may not have a result > > Probably wrong but something like > > if (mysql_query($query)) { > > } else { > > } > > or you could die out mysql_

Re: [PHP] saving uploaded image as file Vs. directly to database

2001-03-29 Thread Stuart J. Browne
> I would use filesystem if I need performance and if I don't worry about > management. > I would use database if I need to manage lots of them and if images have > attributes. > > Some older databases have really poor performance when LOB is used. If it is the > case, you might want to use combin

Re: [PHP] How to create user account?

2001-03-29 Thread Stuart J. Browne
> How can I use exec() to create user account? > I try to use exec("useradd testusr"); > but nothing happens, > I have set the permission of useradd to (chmod useradd) but still > can't do the desired operation!! Are you sure the user who is trying to create the user has permissions to

Re: [PHP] This PHP list

2001-03-29 Thread Stuart J. Browne
> > I wouldn't expect a programmer to walk in off the street and try to do > > graphic design without having any concept of graphic design. > > ack! i do this very thing! one reason i rely on css and tables rather > then graphics, that and it means less hits on my server :-) > > regarding this t

Re: [PHP] Can Anyone Help?

2001-03-28 Thread Stuart J. Browne
Warning: is no longer supported - please use the track_vars INI directive instead in d:/website/myphp/do_sendfeedback.php on line 1 Oh no someone stole me command what replacesin PHP4 ?? oops.. umm.. from memory php_track_vars is enabled by default in PHP4.. from doccos: Note: As of

Re: [PHP] Can Anyone Help?

2001-03-28 Thread Stuart J. Browne
Warning: is no longer supported - please use the track_vars INI directive instead in d:/website/myphp/do_sendfeedback.php on line 1 Oh no someone stole me command what replacesin PHP4 ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [PHP] pattern match help

2001-03-28 Thread Stuart J. Browne
> $str = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; > > I need to fetch the 5th charcter after ".compatible; M" in $str (ie > '5'). > > - The following gets me the fifth character along (ie 'l') > $variable = substr ($str, 5, 1); > > How do i tell the substr to start counting from

Re: [PHP] Curious

2001-03-27 Thread Stuart J. Browne
> >I am curious to know why you need to use the /n, and what it actually does, > >because I had a page that used them, and i removed them all and it still > >works fine. > > As far as the HTML output, it wont affect how it shows up on the screen, > but if you look at the HTML code, you will notice

Re: [PHP] sort multidimensional array?

2001-03-27 Thread Stuart J. Browne
> while ($row = mysql_fetch_array($results)) { > $tmp = get_item_reorder_priority($row["item_sku"]); > $list[$r]["priority"] = $tmp[0]; > $list[$r]["sku"] = $row["item_sku"]; > $r++; >} > >$list = array_multisort($list["priority"], SORT_NUMERIC, SORT_DESC); > > and it retur