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 argument 1, char 3:

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 -- PHP

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-09 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 "pTID detail view -

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 attachment.

Re: [PHP] Accessing Intberase database in NT

2001-04-02 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 if

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 one.

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 set of

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 thread,

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_query($query) or

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-answered

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] Can Anyone Help?

2001-03-28 Thread Stuart J. Browne
Warning: ?php_track_vars? 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 replaces ?php_track_vars? in PHP4 ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Can Anyone Help?

2001-03-28 Thread Stuart J. Browne
Warning: ?php_track_vars? 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 replaces ?php_track_vars? in PHP4 ?? oops.. umm.. from memory php_track_vars is enabled by default in

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 returns this

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