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
,
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
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
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
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
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 /
"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.
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
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
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
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
, 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
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
"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
"
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 /
() ? :)
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
"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
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"
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
;". 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
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:/
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
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
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
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
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
> > > 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
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
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
"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
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
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.
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
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
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
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
"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
-
>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
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
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
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
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
"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
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,
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
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-
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
"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
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
"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
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
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
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
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
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
"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
"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
[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.
58 matches
Mail list logo