php-windows Digest 30 Sep 2003 23:49:39 -0000 Issue 1934
Topics (messages 21623 through 21631):
Re: form vars missing...
21623 by: Sven Schnitzke
Re: XML->HTML using PHP
21624 by: Thijs Koerselman
21625 by: Svensson, B.A.T. (HKG)
21626 by: hubo
21629 by: Ken Sanderson
21630 by: Ken Sanderson
Re: php 4.3.3 on apache 2.0.47/solved
21627 by: manon
Can't start php under Apache after Load Module php4apache.dll
21628 by: Morten Gulbrandsen
How is it supposed to work - absolute path includes
21631 by: Karl Widde
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 ---
Take a peek into the manual, section "using PHP" keyword
"register_globals" and consider the fact that the default ini
setting has been changed from "on" to "off" starting with
PHP 4.2.0 .
Regards,
--
Sven
> -----Ursprüngliche Nachricht-----
> Von: Jas [SMTP:[EMAIL PROTECTED]
> Gesendet am: Montag, 29. September 2003 17:59
> An: [EMAIL PROTECTED]
> Betreff: [PHP-WIN] form vars missing...
>
> Here is my problem:
>
> Using both the Get and Post methods my variables are missing on the
> resulting page. Example of code is listed below:
>
> <form method="post" url="result.php" name="form">
> <input type="text" name="name"><br>
> <input type="text" name="url"><br>
> <input type="submit" value="send">
>
> <?php
> if ((!$name) || (!url)) {
> do nothing;
> } elseif (($name) || ($url)) {
> do rest of code;
> } else {
> broken; }
>
> Should be simple and every time I have done this in a *nix environment it
> has worked but this time I have installed php on my IIS 5 server and check
> the scripting permissions and everything looks ok, except my variables are
> not being passed or recognized in the resulting script using post. Using
> the Get method my variables are listed in the URL of resulting page but the
> script isn't picking them up.
>
> Anyone else have troubles with this?
> Any help is appreciated,
> Jas
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi,
I'm new to this list and php so probably this is going to be a "newbie" question.
I consider myself an intermediate C/C++ programmer and I know quite some
things about HTML and XML.
A while ago I decided to make myself a flexible website using XML, and I
bumped into a cool tutorial in the MSDN about DXML. It is about generating
a dynamic menu bar, reading a TOC from an XML-file and combining CSS/XSL/Jscript
to generate HTML using server-side scripting.
My problem is: It uses ASP to generate HTML from the XML/XSL files, but (ofcourse)
I want to use PHP instead. I searched the in DOMXML for the same functions
but I just can't figure it out. Can someone please explain to me how to convert
this simple code into PHP? Actually I'm only interested in the last line.
// sXml and sXsl are variables containing the filenames
var oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM");
var oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM");
oXmlDoc.async = false;
oXslDoc.async = false;
oXmlDoc.load(Server.MapPath(sXml));
oXslDoc.load(Server.MapPath(sXsl));
Response.Write(oXmlDoc.transformNode(oXslDoc));
Thanx a lot,
Cheers T
--- End Message ---
--- Begin Message ---
> My problem is: It uses ASP to generate HTML from the XML/XSL
> files, but (ofcourse) I want to use PHP instead. I searched
> the in DOMXML for the same functions but I just can't figure
> it out. Can someone please explain to me how to convert this
> simple code into PHP? Actually I'm only interested in the last
> line.
I duno if this will help you, but a start might be to
go to the www.php.net and type in the key word XML in
the search box, or just follow this link:
http://www.php.net/xml
--- End Message ---
--- Begin Message ---
Hi,
you might want to have a look at the function
xslt_process
in your PHP Manual. There ist very easy sample.
Ciao
Hu Bo
"Thijs Koerselman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> I'm new to this list and php so probably this is going to be a "newbie"
question.
> I consider myself an intermediate C/C++ programmer and I know quite some
> things about HTML and XML.
> A while ago I decided to make myself a flexible website using XML, and I
> bumped into a cool tutorial in the MSDN about DXML. It is about generating
> a dynamic menu bar, reading a TOC from an XML-file and combining
CSS/XSL/Jscript
> to generate HTML using server-side scripting.
> My problem is: It uses ASP to generate HTML from the XML/XSL files, but
(ofcourse)
> I want to use PHP instead. I searched the in DOMXML for the same functions
> but I just can't figure it out. Can someone please explain to me how to
convert
> this simple code into PHP? Actually I'm only interested in the last line.
>
> // sXml and sXsl are variables containing the filenames
>
> var oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM");
> var oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM");
> oXmlDoc.async = false;
> oXslDoc.async = false;
> oXmlDoc.load(Server.MapPath(sXml));
> oXslDoc.load(Server.MapPath(sXsl));
> Response.Write(oXmlDoc.transformNode(oXslDoc));
>
> Thanx a lot,
> Cheers T
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
In order to use xslt_process your PHP must also support sablotron which
is the xslt extension that does the work.
Looking at your bit of code you don't actually need to that in PHP or
ASP, works fine in javascript. Here is a bit of code from one of my
scripts that's in an html page, all javascript. The params part is that
I am pulling the XML file to load from the URL, so you can ignore that
treat xmlfile as your xXml.
Ken
var objXML = new ActiveXObject("Microsoft.XMLDOM");
var domstyle = new ActiveXObject("Microsoft.XMLDOM");
var params = location.search;
function loadxml(){
var xmlfile = params.substr(params.indexOf("=")+1);
objXML.async = "false";
objXML.load(xmlfile);
domstyle.async = "false";
domstyle.load("FGDC Classic.xsl");
document.write(objXML.transformNode(domstyle));
}
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of hubo
Sent: September 30, 2003 6:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: XML->HTML using PHP
Hi,
you might want to have a look at the function
xslt_process
in your PHP Manual. There ist very easy sample.
Ciao
Hu Bo
"Thijs Koerselman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> I'm new to this list and php so probably this is going to be a
"newbie"
question.
> I consider myself an intermediate C/C++ programmer and I know quite
some
> things about HTML and XML.
> A while ago I decided to make myself a flexible website using XML, and
I
> bumped into a cool tutorial in the MSDN about DXML. It is about
generating
> a dynamic menu bar, reading a TOC from an XML-file and combining
CSS/XSL/Jscript
> to generate HTML using server-side scripting.
> My problem is: It uses ASP to generate HTML from the XML/XSL files,
but
(ofcourse)
> I want to use PHP instead. I searched the in DOMXML for the same
functions
> but I just can't figure it out. Can someone please explain to me how
to
convert
> this simple code into PHP? Actually I'm only interested in the last
line.
>
> // sXml and sXsl are variables containing the filenames
>
> var oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM");
> var oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM");
> oXmlDoc.async = false;
> oXslDoc.async = false;
> oXmlDoc.load(Server.MapPath(sXml));
> oXslDoc.load(Server.MapPath(sXsl));
> Response.Write(oXmlDoc.transformNode(oXslDoc));
>
> Thanx a lot,
> Cheers T
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
After I hit send I thought of something I should have added. The beauty
of doing it with PHP is that it becomes browser independent, which is
likely a drawback of doing it in straight javascript like I described.
Ken
-----Original Message-----
From: Ken Sanderson [mailto:[EMAIL PROTECTED]
Sent: September 30, 2003 10:33 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: XML->HTML using PHP
In order to use xslt_process your PHP must also support sablotron which
is the xslt extension that does the work.
Looking at your bit of code you don't actually need to that in PHP or
ASP, works fine in javascript. Here is a bit of code from one of my
scripts that's in an html page, all javascript. The params part is that
I am pulling the XML file to load from the URL, so you can ignore that
treat xmlfile as your xXml.
Ken
var objXML = new ActiveXObject("Microsoft.XMLDOM");
var domstyle = new ActiveXObject("Microsoft.XMLDOM");
var params = location.search;
function loadxml(){
var xmlfile = params.substr(params.indexOf("=")+1);
objXML.async = "false";
objXML.load(xmlfile);
domstyle.async = "false";
domstyle.load("FGDC Classic.xsl");
document.write(objXML.transformNode(domstyle));
}
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of hubo
Sent: September 30, 2003 6:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: XML->HTML using PHP
Hi,
you might want to have a look at the function
xslt_process
in your PHP Manual. There ist very easy sample.
Ciao
Hu Bo
"Thijs Koerselman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> I'm new to this list and php so probably this is going to be a
"newbie"
question.
> I consider myself an intermediate C/C++ programmer and I know quite
some
> things about HTML and XML.
> A while ago I decided to make myself a flexible website using XML, and
I
> bumped into a cool tutorial in the MSDN about DXML. It is about
generating
> a dynamic menu bar, reading a TOC from an XML-file and combining
CSS/XSL/Jscript
> to generate HTML using server-side scripting.
> My problem is: It uses ASP to generate HTML from the XML/XSL files,
but
(ofcourse)
> I want to use PHP instead. I searched the in DOMXML for the same
functions
> but I just can't figure it out. Can someone please explain to me how
to
convert
> this simple code into PHP? Actually I'm only interested in the last
line.
>
> // sXml and sXsl are variables containing the filenames
>
> var oXmlDoc = Server.CreateObject("MICROSOFT.XMLDOM");
> var oXslDoc = Server.CreateObject("MICROSOFT.XMLDOM");
> oXmlDoc.async = false;
> oXslDoc.async = false;
> oXmlDoc.load(Server.MapPath(sXml));
> oXslDoc.load(Server.MapPath(sXsl));
> Response.Write(oXmlDoc.transformNode(oXslDoc));
>
> Thanx a lot,
> Cheers T
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Issue solved: a setting in the firewall prevented proper execution of
the PHP scripts on Apache.
.....sigh......
Thanks for help/suggestions on and off list!
--- End Message ---
--- Begin Message ---
Hello Programmers
I try to run a service.
Apache 1.28 (win32) under win2000
And gets this error:
Microsoft Management Console
Der Dienst "Apache" auf "Lokalen Computer"
konnte nicht gestartet werden.
Der Dienst hat keinen Fehler zurückgegeben.
Es kann sich um einen internen Windows-Fehler oder
einen internen Dienstfehler handeln.
Setzen Sie sich mit Ihrem Systemadministrator in Verbindung,
falls das Problem weiterhin besteht.
C:\>NET START APACHE
Apache wird gestartet.
Apache konnte nicht gestartet werden.
Der Dienst hat keinen Fehler gemeldet.
>From my edited httpd.conf file:
LoadModule php4_module "c:\temp\php-4.3.3-Win32\sapi\php4apache.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php
However Apache did start and run smoothly before I attempted to
append the directives in httpd.conf.
How can I run
php version 4.3.3
Apache version 1.3.28
MySQL server version: 4.1.0-alpha-max-debug
successfully under
Microsoft Windows 2000 [Version 5.00.2195]
Please ?
Yours Sincerely
Morten Gulbrandsen
--- End Message ---
--- Begin Message ---
Hi
I using PHP (CGI) 4.3.3 on a win2k server with IIS 5.0. Ive got a php.ini
with include_path = "f:\web\folderA\folderB\" and a Site defined in IIS with
that has the same home dir. If I try to include myFile2.php from
f:\web\folderA\folderB\folderC\folderD\myFile1.php using
include("\folderE\folderF\myFile2.php"); - Dont work.
i get : "Warning: main(\folderE\folderF\myFile2.php): failed to open stream:
No such file or directory in
f:\web\folderA\folderB\folderC\folderD\myFile1.php on line 13"
if I move my
f:\web\folderA\folderB\folderE\folderF\myFile2.php
to
f:\folderE\folderF\myFile2.php
it does work.
i) I've tried using different doc_root, the same as site root folder and
unset - no result. phpinfo() shows the correct include_path.
ii) If I leave out the leading "\" in the desired include it does work - but
isn't this a non-absolute include?
include("folderE\folderC\myFile2.php"); - works
1. Is this the expected and normal behaviour?
2. Using almost the same php.ini and setup (with php version 4.1.1 instead)
on another server I AM able to do the desired include. Can it be an IIS
issue? And if so what variables/settings/registry keys to look for.
3. (Tricky question) But if you were to look in php source files - what file
to look in to sort out how includes really work?
--- End Message ---