php-windows Digest 25 Mar 2003 00:17:33 -0000 Issue 1651

Topics (messages 19099 through 19111):

Cannot find the page
        19099 by: P.Bijl
        19100 by: P.Bijl
        19101 by: Rich Gray
        19102 by: P.Bijl

php as exe in windows
        19103 by: Henrik Bjernersjø
        19104 by: Mike Brum
        19105 by: Chris Kranz

Unable to Fork error using exec() or system()
        19106 by: Dave Marr
        19109 by: Chris Kranz

Can't get domxml working
        19107 by: Stefan Lenhart
        19108 by: Chris Kranz
        19110 by: Christoph Grottolo

Error, does anyone see anything wrong?
        19111 by: P.Bijl

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 ---
When i try to open a *.php

Anyone a simple solution?



--- End Message ---
--- Begin Message ---
Anyone Any idea what this 404 error can be?

"P.Bijl" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> When i try to open a *.php
>
> Anyone a simple solution?
>
>



--- End Message ---
--- Begin Message ---
>
> Anyone Any idea what this 404 error can be?
>
> "P.Bijl" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > When i try to open a *.php
> >
> > Anyone a simple solution?
> >
> >

What webserver? Is the script within the document root? Does the web server
find the document if you rename it .html? Are other non-php documents
rendered correctly?
Need more information really...

Rich


--- End Message ---
--- Begin Message ---
Problem has been solved for the big party, only thing left that php wont be
shown in HTML docs. the code can be viewed with source viewer

"Rich Gray" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> >
> > Anyone Any idea what this 404 error can be?
> >
> > "P.Bijl" <[EMAIL PROTECTED]> schreef in bericht
> > news:[EMAIL PROTECTED]
> > > When i try to open a *.php
> > >
> > > Anyone a simple solution?
> > >
> > >
>
> What webserver? Is the script within the document root? Does the web
server
> find the document if you rename it .html? Are other non-php documents
> rendered correctly?
> Need more information really...
>
> Rich
>



--- End Message ---
--- Begin Message ---
Hi

I want to create an application that I can run on my web-server every five
minutes. The application should look in my ftp-catalogue and move incomming
files to other directories. I want to do this in php. Is it possible - and
in that case - how?


Thanks in advance!

--
Henrik Bjernersjø
Market Broker AS



--- End Message ---
--- Begin Message ---
The first step is to obviously install PHP and have it associated with .php
files on your system and create your script that works 100% when you just
double-click on the file.

After that's working, create a .bat file that makes a call to the PHP
executible (C:\PHP\php filename.php).

Then, create a Scheduled Task (in the Control Panel) to run every 5 minutes
that points to that batch file.

Good Luck


-----Original Message-----
From: Henrik Bjernersjø [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 11:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php as exe in windows


Hi

I want to create an application that I can run on my web-server every five
minutes. The application should look in my ftp-catalogue and move incomming
files to other directories. I want to do this in php. Is it possible - and
in that case - how?


Thanks in advance!

--
Henrik Bjernersjø
Market Broker AS



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--- End Message ---
--- Begin Message ---
You can also pass arguments to the php file through the batch file if
needed. I've used this loads recently mixing a crappy little VB app into
PHP.

Check the manual, there's a nice chapter on running PHP on the command
line, and helped me through most of the problem I had. If your only
running php.exe for this one script, you might also consider making a
custom php.ini file and putting it in with the php.exe folder. Although
if you use php on your webserver on the same machine, this wouldn't be
worth doing...

chris kranz
fatcuban.com
 


-----Original Message-----
From: Mike Brum [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2003 17:13
To: Henrik Bjernersjø; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] php as exe in windows


The first step is to obviously install PHP and have it associated with
.php files on your system and create your script that works 100% when
you just double-click on the file.

After that's working, create a .bat file that makes a call to the PHP
executible (C:\PHP\php filename.php).

Then, create a Scheduled Task (in the Control Panel) to run every 5
minutes that points to that batch file.

Good Luck


-----Original Message-----
From: Henrik Bjernersjø [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 11:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php as exe in windows


Hi

I want to create an application that I can run on my web-server every
five minutes. The application should look in my ftp-catalogue and move
incomming files to other directories. I want to do this in php. Is it
possible - and in that case - how?


Thanks in advance!

--
Henrik Bjernersjø
Market Broker AS



--
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 ---
I am using IIS6 and PHP 4.3.2-RC. Any time I try to use the exec() or
system() functions to run an external program, I get the "Unable to Fork"
error. I have execute rights on the applicaiton I am trying to run. The
problem is PHP prepends "cmd.exe /c" to any exec() or system() calls. That
means I need to give cmd.exe execute rights for the anonymous web user
account. This opens up a HUGE security breach, and I was wondering if there
are any plans to stop PHP from prepending that or workarounds for the Unable
to Fork error. I know many people must run into this problem, there has to
be a way around it!

Thanks,
Dave



--- End Message ---
--- Begin Message ---
Can you not run your external programs in a batch file? Or will that
also run under "cmd /c" ?

chris kranz
fatcuban.com
 


-----Original Message-----
From: Dave Marr [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2003 18:15
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Unable to Fork error using exec() or system()


I am using IIS6 and PHP 4.3.2-RC. Any time I try to use the exec() or
system() functions to run an external program, I get the "Unable to
Fork" error. I have execute rights on the applicaiton I am trying to
run. The problem is PHP prepends "cmd.exe /c" to any exec() or system()
calls. That means I need to give cmd.exe execute rights for the
anonymous web user account. This opens up a HUGE security breach, and I
was wondering if there are any plans to stop PHP from prepending that or
workarounds for the Unable to Fork error. I know many people must run
into this problem, there has to be a way around it!

Thanks,
Dave



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--- End Message ---
--- Begin Message ---
Hi everyone!

I've been trying to include php_domxml.dll for quite a while, but it just doesn't work 
out. When I'm invoking "php -?" on the command line I get an error message saying: 

Unknown(): Unable to load dynamic library 'php_domxml_dll' - A library file required 
for the execution of this application can not be found. [Second part loosely 
translated from german]

In php.ini, I have extension_dir set to f:\php\extensions, the directory where 
php_domxml.dll actually resides and extension=php_domxml.dll uncommented. While 
searching for a solution I read it could help to copy the dll files to 
C:\windows\system, which I did, but it didn't. My OS is Win98, php version is 4.3.1.

I'm aware that the domxml library is not considered stable for use, but anyway qould 
like to have a DOM parser for my problem, at least to get a start...

Any ideas what could be the cause for my problem or what else I could try? Any 
suggestion is highly appreciated!

Best regards,
Stefan

--- End Message ---
--- Begin Message ---
Have you tried invoking php with a specific config file?

Php.exe -c f:\php\config.ini

And then double check in your config file that you've got the extension
dir in the right place? It may be that php isn't reading your config
file at all, and so not getting the extension directory...

Just an idea...

chris kranz
fatcuban.com
 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2003 21:30
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Can't get domxml working


Hi everyone!

I've been trying to include php_domxml.dll for quite a while, but it
just doesn't work out. When I'm invoking "php -?" on the command line I
get an error message saying: 

Unknown(): Unable to load dynamic library 'php_domxml_dll' - A library
file required for the execution of this application can not be found.
[Second part loosely translated from german]

In php.ini, I have extension_dir set to f:\php\extensions, the directory
where php_domxml.dll actually resides and extension=php_domxml.dll
uncommented. While searching for a solution I read it could help to copy
the dll files to C:\windows\system, which I did, but it didn't. My OS is
Win98, php version is 4.3.1.

I'm aware that the domxml library is not considered stable for use, but
anyway qould like to have a DOM parser for my problem, at least to get a
start...

Any ideas what could be the cause for my problem or what else I could
try? Any suggestion is highly appreciated!

Best regards,
Stefan



--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Stefan Lenhart) wrote:

>I've been trying to include php_domxml.dll for quite a while, but it just doesn't 
>work out.
>
>Any ideas what could be the cause for my problem or what else I could try? Any 
>suggestion is highly appreciated!

>From the manual (www.php.net/domxml):

Note to Win32 Users: In order to enable this module on a Windows
environment, you must copy libxml2.dll from the DLL folder of the
PHP/Win32 binary package to the SYSTEM32 folder of your windows
machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32) 

Christoph


--- End Message ---
--- Begin Message ---
U?

Parse error: parse error, unexpected T_WHILE, expecting ',' or ';' in
c:\apache\htdocs\news1\nieuws.php on line 18


17.
18. while ($list = mysql_fetch_object($query)) {
19. echo "<p><b>$list-> blablaetcetc......


Thanx,
P



--- End Message ---

Reply via email to