[PHP-WIN] Re: Method get for Windows ME and PWS w/PHP-4.1.1

2002-02-27 Thread Steve Yates
obals" configuration directive must be turned on for the variable to auto-create. Otherwise use $_GET['blah'] or $HTTP_GET_VARS['blah']. http://www.php.net/manual/en/language.variables.external.php - Steve Yates - A fool and his money are soon elected. / Taglines by Tag

[PHP-WIN] Re: WinXP Error Passing Variables (and creating)

2002-02-27 Thread Steve Yates
, possibly overriding your POST variable's value, or creating a value for an internally created variable name. - Steve Yates - If only women came with pull-down menus and on-line help... / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: mail() and no internet connection

2002-03-06 Thread Steve Yates
n mail server? If so then you can set it to work that way. If you have PHP pointed to your ISP's mail server then it won't connect. If you need a mail server, Mercury is free and not too difficult to set up (www.pmail.com). - Steve Yates - After they make styrofoam, what do th

[PHP-WIN] Re: MySQL auto_increment ??

2002-03-06 Thread Steve Yates
this seems quite time consuming. You just have to be aware of locking other write requests so no two try to share a number. > Another thing: > If ID is INT(3), what will happen when I insert user no. 1000? Most databases I've seen make an autoincrement field a longint. - Steve Yate

[PHP-WIN] Re: EZ upgrade to php 4.1.1

2002-03-08 Thread Steve Yates
r constants. Does anyone know an easy way to solve this? In PHP.INI: register_globals = On Perhaps not the most secure, but it's easy. :) - Steve Yates - Where there is a will, there is a won't. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://w

[PHP-WIN] testing for value in $HTTP_COOKIE_VARS

2002-04-03 Thread Steve Yates
testbed is PHP 4.1.2 on IIS 4.0 as a CGI app. PS--I'm posting this to the .windows group since the .version4 group doesn't allow posting?? Thanks, - Steve Yates - Why did Shakespeare use so many famous quotations in his work? / Taglines by Taglinator 2.5 - www.srtware.com /

[PHP-WIN] Re: testing for value in $HTTP_COOKIE_VARS

2002-04-03 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a better way to test for a cookie's existence > besides in_array()? To perhaps clarify I should say "...test for a variable's existence.

[PHP-WIN] Re: testing for value in $HTTP_COOKIE_VARS

2002-04-03 Thread Steve Yates
OOKIE_VARS["foo"]) and ($HTTP_COOKIE_VARS["foo"] == 'value')) { } PHP short circuits the logic so method 2 doesn't throw the error on the value test. Or of course you can put the test for the value inside the if {}. Also for environment variables you can use ge

[PHP-WIN] Re: Cookies and IIS5

2002-04-08 Thread Steve Yates
you are not sending the cookie first (before any other output), or perhaps do not have two dots in the server name (".domain.com"). How about posting your cookie code? (recipie?) - Steve Yates - I hate people who make generalizations. / Taglines by Taglinator - www.srtware.com

[PHP-WIN] Re: Security Alert! PHP CGI cannot be accessed directly.

2002-04-16 Thread Steve Yates
ini. Read just a bit further. :) - Steve Yates - Love is grand. Divorce is around twenty grand. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Cant get PHP to run on Win 98

2002-05-01 Thread Steve Yates
Or alternatively extract($HTTP_GET_VARS); // creates all GET vars, no others echo $C; - Steve Yates - Omit needless, redundant, unnecessary, repetitive words. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP-WIN] Re: mail() doesn't work with $ variable

2002-05-05 Thread Steve Yates
, replace each of the four variables with a string literal and see what happens. - Steve Yates - Patience: A virtue that carries a lot of wait. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Why Global Variables turned off??

2002-05-05 Thread Steve Yates
You don't know. But specifically testing it by $_POST['authorized'] or extract($HTTP_POST_VARS) (and no other variable arrays) would ensure it arrived via a POST. - Steve Yates - Friends help you move. Real friends help you move bodies. / Taglines by Taglinator - www.srt

Re: [PHP-WIN] php won't "process" forms anymore

2002-05-05 Thread Steve Yates
"Toby z" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > the book > only talks bout writting a string to a file ... while > i have multiple stingz to b saved Use fwrite() twice. http://www.php.net/manual/en/function.fwri

Re: [PHP-WIN] register_globals and php 4.2

2002-05-09 Thread Steve Yates
" at > the beginning of your file. Repeat this same idea with your other variables Or to get them all at once use extract($HTTP_GET_VARS). - Steve Yates - I didn't fight my way to the top of the food chain to be a vegetarian. / Taglines by Taglinator - www.srtware.com /

[PHP-WIN] Re: flushing output to the browser whilst the script does somethinguseful

2002-05-09 Thread Steve Yates
() ? :) http://www.php.net/manual/en/function.flush.php - Steve Yates - I'm sorry, were the voices in my head bothering you? / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: $PHP_SELF generating an error

2002-05-19 Thread Steve Yates
"R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Undefined variable PHP_SELF in... Do you have PHP 4.1.2? Try this syntax: echo $_SERVER["PHP_SELF"]; 4.1 no longer automatically creates variables by d

[PHP-WIN] Re: Needed: Several short, swift kicks.

2002-05-28 Thread Steve Yates
ail"). Do you know how to set up a web server? If so I suggest that trying to use PHP outside of the web environment first will be more confusing than helpful. However to get you started put this into a plain text file called "hello.php" and run "php hello.php"

[PHP-WIN] Re: Email Addresses (was: [PHP-WIN] Re: Needed: Several short, swift kicks.)

2002-05-29 Thread Steve Yates
or's e-mail software. > And from Steve's reply, do I correctly infer that my posts and his are > also going to a news server? Yes in fact that's how I'm posting. Via news.php.net. - Steve Yates - * <- Tribble & <- Tribble practicing Yog

[PHP-WIN] Re: mail() and user name

2002-05-29 Thread Steve Yates
;". The latter uses "\" to escape the internal quotes so they are interpreted literally. - Steve Yates - A single fact can spoil a good argument. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: form Post action

2002-06-04 Thread Steve Yates
o page temporarily, or set a caching timeout for that page, or try holding down the shift key as you click the button to post to that page. - Steve Yates - MONEY IS THE ROOT OF ALL EVIL. Send me $20 for more info! / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http:/

[PHP-WIN] Re: notice:undefined variable

2002-06-04 Thread Steve Yates
ARS); to the beginning of the script. This will autocreate all posted vars just like if register_globals was on. - Steve Yates - I've been rich and I've been poor. Rich is better. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) T

Re: [PHP-WIN] newbie problem with quotes

2002-06-05 Thread Steve Yates
or single quote the entire string and get rid of the slashes. Something like: echo 'href="javascript:window.open("addfossilpage.php?me=' . $folder_id . '","width=43 0","height=450" )">'; - Steve Yates - I drank WHAT!? - Socrates / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: notice:undefined variable

2002-06-05 Thread Steve Yates
have PHP on a Windows server I believe you can safely enable this option in php.ini. - Steve Yates - I don't work long hours. They are all 60 minutes, just like everyone else's. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) T

[PHP-WIN] Re: Re: PHP 4.2.1 And WinXP

2002-06-10 Thread Steve Yates
of "old" code to get it to work while you fix all the individual references. - Steve Yates - Life's unfair...but the root password helps! / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: beginner question to variables

2002-06-10 Thread Steve Yates
As $totalqty since you created it. The arrays are only for post, get, environment, etc., variables that come from outside your script. - Steve Yates - A pessimist complains about the noise when opportunity knocks. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Somebody please help beginner with variable problem

2002-06-10 Thread Steve Yates
> > > I have set register_globals = On. Where is your php.ini file? Should be in your c:\windows folder. - Steve Yates - I used spot remover on my dog. Good thing his name is Rover. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php

[PHP-WIN] Re: PHP 4.2.1. on PWS...

2002-06-13 Thread Steve Yates
cripts. > "Max Sullivan" <[EMAIL PROTECTED]> escribió en el mensaje > 004d01c20bf6$bf074420$1f281142@WILLY">news:004d01c20bf6$bf074420$1f281142@WILLY... > > You need to set cgi.force_redirect = 0 in your php.ini file. Is your PHP.INI file in your Windo

[PHP-WIN] Re: 404 error not being triggered for files with a php extension

2002-06-30 Thread Steve Yates
some head-beating and wall dents, I reported this several months back. See http://bugs.php.net/bug.php?id=14409. That also references an Apache issue number (mod_cgi/8683) in case you can add anything that might speed a solution. Seems like *something* should realize there's no file pre

[PHP-WIN] Re: errormessage: undefined variables - why define them?

2002-06-30 Thread Steve Yates
"Uwe Birkenhain" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > - is it now neccessary to define variables before I use them??? No, but realize 4.2 changed how variables are referenced. By default register_globals is set

[PHP-WIN] Re: Problems acessing post data

2002-06-30 Thread Steve Yates
als .INI file option is turned off. - Steve Yates - I'm pink...therefore, I'm SPAM. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: mail() on W2K Pro

2002-09-08 Thread Steve Yates
ersions of PHP) or your ISP's SMTP server. You have to set that setting in your PHP.INI file. - Steve Yates - For people who like peace and quiet: a phoneless cord. ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.

[PHP-WIN] Re: all variables unset on w2k pro.

2002-09-10 Thread Steve Yates
ract($HTTP_POST_VARS) at the top of your script to autocreate all the POSTed variables. See the information on changes between 4.1 and 4.2 on php.net for details. - Steve Yates - "Let's eat kosher tonight," said Tom judiciously. ~ Do you like my taglines? Add them to your messages

[PHP-WIN] Re: using apache on a network

2002-09-10 Thread Steve Yates
e my internetconnection it isn't used only the network I suspect you have Windows set to automatically dial out on that PC. In your Internet options, set your connection to Never Dial. - Steve Yates - When one is flying in tranquility, watch out for the mountains. ~ Do you like my tagli

[PHP-WIN] Re: "Headers already sent" error message

2002-09-10 Thread Steve Yates
our script starts. Even one blank line will be sent out, and therefore your headers would be coming too late. - Steve Yates - If you hold a hard drive to your ear, can you hear the C:? ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloadin

[PHP-WIN] Re: which smtp server can I install in windows used only myself?

2002-09-24 Thread Steve Yates
Mercury (www.pmail.com) can be set to only accept SMTP mail from a specific IP address. Set it for 127.0.0.1 and then send your mail to 'localhost'. - Steve Yates - He who laughs last probably made a backup. ~ Do you like my taglines? Add them to your messages and ~ lau

Re: [PHP-WIN]

2002-10-28 Thread Steve Yates
"Jason Porembski" <[EMAIL PROTECTED]> wrote in message news:01c27d5c$0487d830$6401a8c0@;HOMEPC... > page refuses to use PHP and is in love with ASP. I need to run some PHP > code from within ASP. How can this be done? Have you tried using fopen()? - Steve Yates -

Re: [PHP-WIN] 404 documents

2002-11-03 Thread Steve Yates
>I there a way to have the .php page pickup the url that was typed in e.g. >usertype= www.mydomain.com/wRongurl $usertype = getenv('REQUEST_URI'); I believe this is one of those server-dependent environment variables, but it works with Apache. - Steve Yates - Who is General Fa

[PHP-WIN] Re: 2 Issues for Mail() in Win/PHP4-

2002-11-03 Thread Steve Yates
an older version of PHP, or has register_globals turned on. Use $variable = $_POST['variable']; // or echo $_POST['variable']; or, extract($_POST) or extract($HTTP_POST_VARS) to create all POSTed variables. - Steve Yates - Wicked witch parking only -- Violators will be t

[PHP-WIN] Re: Getting my IP adress (not 127.0.0.1)

2002-11-27 Thread Steve Yates
f it's Apache try... getenv('SERVER_ADDR'); or gethostbynamel(getenv('HTTP_HOST')); phpinfo() should tell you what environment variables are available for your server. - Steve Yates - I have nothing against MS-DOS, stone knives, or bearskins. ~ Taglines by Taglinator - www

[PHP-WIN] crash on shutdown in php4ts.dll

2001-10-03 Thread Steve Yates
older. Any suggestions? Any corroboration? - Steve Yates - SRT Enterprises - If you shoot a mime, should you use a silencer? / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP-WIN] Help with Php4.06 installation

2001-10-10 Thread Steve Yates
l it was something along these lines. MB> the path I try to access through Netscape MB> is: http://ppp/scripts/database/test.php Is "ppp" the name of your server? - Steve Yates - SRT Enterprises - Before you criticize someone, you should walk a mile in their shoes. That way

[PHP-WIN] Re: crash on shutdown in php4ts.dll

2001-10-10 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a problem that has been nagging me for a while. If I load > any php page from my machine, when I shut down Windows I get an error in > php4ts.dll. If I h

[PHP-WIN] Re: upload files problem

2001-10-10 Thread Steve Yates
sting service. They may need the true path, in other words should something come before "/img"? - Steve Yates - SRT Enterprises - -- All right! Five more points! / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe,

[PHP-WIN] CGI mode still requires php4isapi.dll?

2001-12-24 Thread Steve Yates
have encountered this problem for the last few versions of PHP, but just with installing 4.1 did I notice that I had php4isapi.dll in my PATH from previous versions, leading me to wonder if PHP was still somehow running in ISAPI mode. - Steve Yates - SRT Enterprises - Do files get embarrassed

Re: [PHP-WIN] CGI mode still requires php4isapi.dll?

2001-12-24 Thread Steve Yates
I thought I had changed back to CGI mode. Even more strange, when trying to debug the GPF-on-shutdown problem I had reinstalled PWS and am 99% sure I didn't configure PHP for ISAPI mode after. So it's pulling that from somewhere. - Steve Yates - SRT Enterprises - Meticulously hand-

Re: [PHP-WIN] File question...

2001-12-25 Thread Steve Yates
ser could interactively edit the text from another PHP page, retreiving, displaying, and replacing the text between the comments. - Steve Yates - SRT Enterprises - My hard disk is full! Maybe I'll try this message section thing. / Taglines by Taglinator - www.srtware.com / -- PHP W

Re: [PHP-WIN] CGI mode still requires php4isapi.dll?

2001-12-26 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does PWS ignore the script map entries? I > did have it set up as ISAPI at one point but since that's still > pre-release I thought I had changed back

Re: [PHP-WIN] HTTP Referer

2001-12-28 Thread Steve Yates
aken, HTTP_REFERER is dependent on the web browser sending that info to the server. It may also be dependent on the server also (?), but if it's working for you then obviously your server supports it. - Steve Yates - SRT Enterprises - There are 3 kinds of people: those who can count

Re: [PHP-WIN] CGI mode still requires php4isapi.dll?

2002-01-01 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Suggestions, besides the obvious of > completely deleting and reinstalling PWS or Apache? To follow up with the group, I uninstalled PWS and installed Apache 1.3.22 a

[PHP-WIN] Re: Apache 1.3.22 and PHP 4.1.0

2002-01-02 Thread Steve Yates
t; not a path, took me a bit to figure that out). I did have PHP installed first, though I downloaded the Windows binaries in Zip format to get the other goodies. >I install Apache first, then PHP with the following error: >Cannot unload mod-php4.c: File is not in module list Is this when insta

[PHP-WIN] Re: PHP and IIS

2002-01-02 Thread Steve Yates
dvertising.com ; For Win32 only. sendmail_from = [EMAIL PROTECTED] - Steve Yates - SRT Enterprises - Meddle not in the affairs of dragons, for thou art crunchy, and good with ketchup. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscrib

[PHP-WIN] Re: Newbie Question: Using Cookies...

2002-01-03 Thread Steve Yates
gt; Set Test Cookie > > > Cookie has been set The last part is your domain name, so "0" is probably not matching your cookie to anything? Unless you're trying to make that the "secure" parameter, in which case you skipped one (and besides you can simply leave

[PHP-WIN] Re: $PHP_SELF

2002-01-04 Thread Steve Yates
have seen $PHP_SELF not work on PWS...is that what you have? You might try $PATH_INFO or $SCRIPT_URL. > $SCRIPT_NAME usually works for me on most servers. I think this returns the program or CGI name. At least is does on the versions of Apache that I've tried. - Steve Y

Re: [PHP-WIN] Windows NT SMTP Set Up Help Needed

2002-02-03 Thread Steve Yates
bug.php?id=5743 The symptom was that it would hang trying to connect. - Steve Yates - WWhhaatt ddooeess ""DDUUPPLLEEXX"" mmeeaann?? / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Apache variables

2002-02-03 Thread Steve Yates
"B Thomas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > echo $SCRIPT_NAME; > > Returns: nothing. What does phpinfo() show? There are some variables that are web-server dependent. - Steve Yates - Debrief: Wife liste

[PHP-WIN] Re: Is ASP.NET faster than php?

2003-02-26 Thread Steve Yates
"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >Does anyone have any thoughts about PHP vs ASP.NET? See http://www.php.net/manual/en/faq.languages.php , including the comments. - Steve Yates - When all else is lost, the future still rema

[PHP-WIN] Re: more on HTTP post variables

2003-06-12 Thread Steve Yates
[EMAIL PROTECTED] (Weifan Agusman) wrote in news:[EMAIL PROTECTED]: > I dont need to (and don't want to) put the 'school' field on the form. This is actually an HTML question. Use: - Steve Yates - * <- Tribble.! <- Tribble With A Mohawk.