php-windows Digest 4 Apr 2003 13:35:52 -0000 Issue 1667
Topics (messages 19280 through 19292):
Re: Installing PHP with Apache on Win ME
19280 by: John
Re: Simple Answer, but I can't see it....
19281 by: John
PHP Editor
19282 by: Chris and Trish Kaelin
19283 by: Nick H. -- Level II Technical Support
19286 by: parus
19290 by: Piotr Pluciennik
19292 by: Svensson, B.A.T. (HKG)
Web services
19284 by: Mihail Bota
problem to get variable from html
19285 by: parus
Re: Subject: PHP probs with XML docs
19287 by: Neil Smith
Re: Better Error Trapping!
19288 by: Svensson, B.A.T. (HKG)
RE : Subject: session ids
19289 by: Neil Smith
PHP array => Javascript array
19291 by: Ignatius Reilly
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Disable ZLIB compression in PHP.INI
"Nick Scott" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have gone through the steps and when I open a php page it wants to
> download the page.
>
> What do I need to do?
>
>
--- End Message ---
--- Begin Message ---
Assuming you have some form info inside those tags, here is what I use:
<form action="<? echo $PHP_SELF; ?>" method="POST">
blah
blah
blah
</form>
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi, I have a login HTML form within a PHP page that I want to call itself
> when submitted. But when I press the submit button within the form, the
form
> doesn't load itself for some reason. I have tried two ways of solving this
> but can't get it to work. It would be great if someone could identify
where I
> have gone wrong.
>
> I have the tried the following codes:
>
> <form method="post" action="SessionLogin.php"></form> //SessionLogin.php
is
> the name of the actual file
>
> and...
>
> <?PHP $self = $_SERVER[ 'PHP_SELF' ]; ?>
> <form method="post" action="<?php echo $self ?>"></form>
>
> Both don't seem to work for some reason.
>
> Cheers in advance
>
> Tryst
--- End Message ---
--- Begin Message ---
Does anyone have any recomendations for a good inexpensive / free editor for
PHP files?
Chris Kaelin
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
--- End Message ---
--- Begin Message ---
vi? notepad?
Regards,
Nick H.
[EMAIL PROTECTED]
----- Original Message -----
From: "Chris and Trish Kaelin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 10:11 PM
Subject: [PHP-WIN] PHP Editor
> Does anyone have any recomendations for a good inexpensive / free editor
for
> PHP files?
>
> Chris Kaelin
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
you can try CONTEXT
(in windos)
in below address and it's free
http://www.fixedsys.com/context/
"Nick H. -- Level II Technical Support" <[EMAIL PROTECTED]>
???????:[EMAIL PROTECTED]
> vi? notepad?
>
>
>
> Regards,
> Nick H.
> [EMAIL PROTECTED]
>
>
> ----- Original Message -----
> From: "Chris and Trish Kaelin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 03, 2003 10:11 PM
> Subject: [PHP-WIN] PHP Editor
>
>
> > Does anyone have any recomendations for a good inexpensive / free editor
> for
> > PHP files?
> >
> > Chris Kaelin
> >
> > _________________________________________________________________
> > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> > http://join.msn.com/?page=features/virus
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
--- End Message ---
--- Begin Message ---
Maguma can be quite interesting.
http://www.maguma.com
HTH
Piotr
--- Chris and Trish Kaelin <[EMAIL PROTECTED]>
wrote:
> Does anyone have any recomendations for a good
> inexpensive / free editor for
> PHP files?
>
> Chris Kaelin
>
>
_________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months
> FREE*.
> http://join.msn.com/?page=features/virus
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
--- End Message ---
--- Begin Message ---
> Does anyone have any recomendations for a good inexpensive / free editor for
> PHP files?
notepad.exe
--- End Message ---
--- Begin Message ---
Hello,
I konw this subject was discussed extensively by the members of this list;
I became interested in it simply because this is one of my new tasks. I
have to enable the site as a server for web service.
What I have by now is a MySql database and a PHP web interface which
manipulates data from the
database. As far I understood, my job would be to take requests from
clients, run queries and then feed the results back to clients. Since I
used PHP by now, I'd like to stick with it.
So, I'd like to ask your help for any
hints/suggestions/ideas/tutorials/etc. regarding this problem.
Thanks a lot!
Mihai
--- End Message ---
--- Begin Message ---
i just download the "PHP 4.3.1 installer [1,028Kb] - 17 February 2003" but
after install
i found a rear situtation that i can't get variable from html form. php will
return "Undefined variable"
but in phpinfo(), i can see _POST[] was exist and have the value i want. do
any one can tell me what's wrong?
my os was win2000 advance server with iis for web service, and install PHP
in standard install.
many thanks
parus
from taiwan
4/4
--- End Message ---
--- Begin Message ---
Are you sending the correct DOCTYPE identifier at the start of the XHTML
file ? (Or rather, *what* are you sending and what *headers* are you also
sending ?)
Cheers,
Neil Smith.
At 01:14 04/04/2003 +0000, you wrote:
If I don't make the PHP document XHTML compliant, then the PHP document
loads into IE ok. If I make the PHP document XHTML compliant, and build up
a query string using the dot syntax to identify tables and their columns
and store this in a variable, I have the errors.
Is this a known error, or has anyone experienced this before??
--- End Message ---
--- Begin Message ---
> I'd love to hear other people's input on this and how they are attacking
> this problem!
Simply using defensive programming; e.g. never assume you get
the resources you ask for, but also assume input you get is
incorrect.
Abstract pseudo code:
TRY DO_EVENT
IF DO_EVENT_SUCCESS
CONTINUE_NORMAL_EXECUTION
ELSE_IF DO_EVENT_FAILS
FIND_OUT_REASON_OF_FAILURE
INVOKE_RECOVERY_MODULE
IF RECOVERY_MODULE_SUCCED
CONTINUE_NORMAL_EXECUTION
ELSE
MAKE_ERROR_REPORT_AND_FAIL
END_IF_INNER
END_IF_OUTTER
--- End Message ---
--- Begin Message ---
At 01:14 04/04/2003 +0000, you wrote:
Now my understanding of sessions may be
wrong, but I though when you kill a session the id is killed as well.
It is.
Your session is held by passing a 'session cookie' (not stored) on every
request to the server. That session cookie is dropped when you close the
associated browser window, and basically just contains your session ID.
that would mean when I refresh the page, a new id should be generated.
No, it wouldn't, *or* shouldn't. That is how it's supposed to work :: The
session is active till you close that browser window, because that window
is passing the session ID up to the server until its closed.
This also applies to any windows spawned *from it* -- by pressing Ctrl + N,
using window.open in javascript, or using the _blank target in an anchor
or form tag etc.
Unfortunately this does not happen and I can't figure out why. Only
after I shut all browser windows down, I get a new id and then the same
story again.
Correct, that's how it works. Not necessarily *all* windows though - open
them by clicking the browser icon in the taskbar & it'll work fine, but I
bet you're opening new windows from the existing browser window, which then
gets them all the same session ID.
Now, I know that the damn session is erased from the temp folder because
Correct. And cause its a session cookie, its not stored on your cookies
folder, either.
I see it happen, however the id sticks to the browser for whatever
reason. I am running php4.2.3 on w2k pro and IIS
HTH
Neil Smith.
--- End Message ---
--- Begin Message ---
Hello,
I am looking for a function or a class to convert a multidimensional
associative PHP array into an equivalent Javascript array (that is the
declaration string in : var my_array = <string>)
Googled to no avail.
If somebody can save me a few hours of coding this thing, I would greatly
appreciate.
Thanks
Ignatius
--- End Message ---