php-windows Digest 3 Apr 2002 22:34:01 -0000 Issue 1076
Topics (messages 12915 through 12922):
problems with include under windows
12915 by: secrgb
Re: Passing Javascript Variables to PHP
12916 by: Wayne Hinch
sendmail
12917 by: Graham Dawes
new to PHP...have some questions
12918 by: Matt Babineau
12919 by: Rasmus Lerdorf
testing for value in $HTTP_COOKIE_VARS
12920 by: Steve Yates
12921 by: Steve Yates
Re: [PHP-INST] XSLTransformation via Sablotron
12922 by: Phillip Fox
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 ---
hey
i have apache installed and also php on a win machine
but this function does no t work
<?php
include(http://domain.com/);
?>
it gives an error, why?
BW sun aga secrgb aka jaan
--- End Message ---
--- Begin Message ---
Thanks everyone for the help, much appreciated. The problem was solved
by hiding text fields and doing it that way.
Thanks again,
Wayne
-----Original Message-----
From: Mike Flynn [mailto:[EMAIL PROTECTED]]
Sent: 03 April 2002 01:51
To: Robin Bolton; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Passing Javascript Variables to PHP
At 02:37 PM 4/2/02 -0700, Robin Bolton wrote:
>Another way to pass data from JavaScript <-> PHP is with cookies.
Good point!
-Mike
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have had some problems with a php application slowing down when it tries
to send email. It will work but the same function will take 30 seconds
instead of instant when the application is required to send an email aswell.
I have been told that it may be that the problem is with a slow dns lookup
and because sendmail is trying to send the mail instantly the application
has to wait. The method around it was for unix and was:
For people having really slow posting because of email related issues, try
adding -ODevelieryMode=q to the sendmail_path php variable. Then it'll just
queue it, not even do a DNS lookup.
How can I do this for a W2K system
many thanks
Graham
--- End Message ---
--- Begin Message ---
I have been playing with the $_POST variable
how would I go about looping over the $_POST variable to retrieve the
variable and values?
I can do this:
<%
if (count($_POST) > 0) {
/*send mail */%>send out mail<BR><%
$var1 = array_keys ($_POST);
$var2 = array_values ($_POST);
print_r ($var1);%><BR><%
print_r ($var2);
}
%>
This gets me the list to variable names and the list of their values...
How can I set local variable to those names and set the values to the
ones in the second list?
Matt Babineau
Web Developer
http://www.criticalcode.com <http://www.criticalcode.com/>
Mobile: 603.943.4237
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
foreach($_POST as $name=>$value) $$name = $value;
On Wed, 3 Apr 2002, Matt Babineau wrote:
> I have been playing with the $_POST variable
>
> how would I go about looping over the $_POST variable to retrieve the
> variable and values?
>
> I can do this:
>
> <%
>
> if (count($_POST) > 0) {
> /*send mail */%>send out mail<BR><%
> $var1 = array_keys ($_POST);
> $var2 = array_values ($_POST);
> print_r ($var1);%><BR><%
> print_r ($var2);
> }
> %>
>
> This gets me the list to variable names and the list of their values...
>
> How can I set local variable to those names and set the values to the
> ones in the second list?
>
>
> Matt Babineau
> Web Developer
> http://www.criticalcode.com <http://www.criticalcode.com/>
> Mobile: 603.943.4237
> [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
With PHP 4.1.x defaulting to turning off the automatically registered global
variables, I am trying to code in such a way that the code will work on a
server running 4.0.x as well. However I'm having trouble testing for the
existence of variables.
For example, given $HTTP_COOKIE_VARS...if the value $HTTP_COOKIE_VARS['foo']
does not exist PHP spits out a warning about an undefined index. Yet this
is what I observe (given the cookie is defined):
in_array('mycookie', $HTTP_COOKIE_VARS) == false
echo array_values($HTTP_COOKIE_VARS) prints "Array"
$HTTP_COOKIE_VARS['mycookie'] == 'myvalue'
How can this be? Is there a better way to test for a cookie's existence
besides in_array()?
I should note that before changing to the array notation, $mycookie ==
'myvalue' with PHP making the assignments. For the record, my 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 /
--- End Message ---
--- Begin Message ---
"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..."
- Steve Yates
- To know recursion, you must first know recursion.
/ Taglines by Taglinator 2.5 - www.srtware.com /
--- End Message ---
--- Begin Message ---
On Tue, 2 Apr 2002, Steve at Puddletown wrote:
> The result is that Sablotron itself (command line) works fine but this
> code produces
> following error "XML parser error 4: not well-formed (invalid token)".
>
> I would appreciate any hint. Thanx alot.
>
You need to add 'file://' before your path information for both the XML
and XSL files. This solution is mentioned in the second note on step #5 on
the page refrenced in your email.
The code should look like this:
// Perform the transformation
$out = xslt_process($xsltHandle, 'file://'.getcwd().'test.xml', 'file://'.getcwd().
'test.xsl');
I was able to get the code you code to work by using the line above, but
with the original code you sent I got a diffirent error.
I've got PHP Version 4.1.1 (in Module mode), and Apache/1.3.23 on Windows
2000 Professional.
I think that since the XSLT extension is still experimental the error
messages are not quite acurate yet, but with this addition to your code
you should be in business. You might also like to check bugs.php.net for
some notes on this (XSLT) bug.
XSLT rocks!
Let me know if you have any more questions,
--> Phillip Fox -- [EMAIL PROTECTED]
405.773.WORX -- 1.888.772.WORX -- http://www.TheWorxCo.Net/
--- End Message ---