php-windows Digest 1 Aug 2003 00:00:10 -0000 Issue 1847
Topics (messages 20946 through 20958):
Failure remote includes
20946 by: m.r.
20948 by: skate
Re: What do the programs running in winxp do?
20947 by: skate
Apache or IIS
20949 by: William Harrison
20950 by: Sek-Mun Wong
Re: Sessions...
20951 by: Marcus Haase
E-Mail Attachments...
20952 by: Guru
Apache 2 + php 4.04 memory problem
20953 by: Johny Key
downloading using php via commandline
20954 by: John Yu
PHP Script for Mysql
20955 by: The.Rock
Q on PHP 4.3.2 & Apache 2.0.43
20956 by: jsWalter
20957 by: Luis Ferro
20958 by: Sek-Mun Wong
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 ---
PHP 4.3.2, Apache 2.0.47, Windows XP Pro
PHP includes of remote files like
<?php include('http://somedomain.com/'); ?>
give error Failed opening 'http://somedomain.com/' for inclusion
includes of local files like
<?php include('test.txt'); ?>
no problem.
The problem with inclusion of remote files was supposedly solved with PHP
4.3.0, but still seems a problem, at least on Apache 2.0.47. Is there any
setting I should look into? Any ideas/help most welcome!
--- End Message ---
--- Begin Message ---
> <?php include('http://somedomain.com/'); ?>
> give error Failed opening 'http://somedomain.com/' for inclusion
you tried ...
<?php include('http://somedomain.com/index.html'); ?>
would it not be more beneficial to open the files (fopen, fread)? this way
you can parse the page if needed, and add your own headers / footers without
killing any HTML
--- End Message ---
--- Begin Message ---
> HI folks, when you press ctrl-alt-del to get a list of running processes
in
> winxp is there a written description anywhere that describes what each of
> these programs is doing?
>
this really isn't a PHP question at all...
check the microsoft knowledge base on their website, should be a complete
listing of all windows programs on there...
--- End Message ---
--- Begin Message ---
Hi,
We are planning to use PHP on windows 2000 but which is the better web
server to use under this these circumstances IIS or Apache?
Thanks
Will
--- End Message ---
--- Begin Message ---
We use both in production.
I'm biased, but we prefer Apache, even though I've had more issues with it.
(On win32) Prior to Apache 1.3.27, had a few issues with the apache service
dying every few days and not restarting (win2k event viewer didn't even know
it stopped) on a Compaq DL370 (ah there's the problem you say!).
Also, compiling PHP with DEAPI (whilst using open ssl) was a slight issue,
but I think the warnings were mostly harmless (it's just the constant
crashes caused me to think it was the DEAPI factor)
That's my nightmare apache story, I've run them on other prod servers
(win2k) without a hitch.
IIS is of course, patch city - not really as evil as anti-micro$oft lobby
(include yours truly) would have you believe, but nonetheless a few
annoyances like intermittent ISAPI PHP builds having crash issues. And ONLY
use ISAPI - don't even think of the CGI version.
PHP-CGI on IIS is only useful if you're not interested in scaling. Trust me,
you NEED the persistent connections.
Besides, the ISAPI version gives you a neat $_SERVER["APPL_PHYSICAL_PATH"],
the equivalent of $_SERVER["DOCUMENT_ROOT"] in Apache... It escapes me (and
micro$oft) how such an important variable gets missed out. APPL_PHYSICAL
PATH is NOT available via CGI... how's that for ms weirdness.
Anyway, needless to say IIS is slightly easier to set up, but doesn't
support important features like http-gzip (can anyone say "spend more
money"?). Ok, well, you can use PHP zlib compression... I'm picking at
bones, but it all adds up.
All in all, IIS is less painful to setup, configure and run, but I think
it's Apache that lets me sleep at night.
Apache also give you warm fuzzies and makes you more attractive to the
opposite sex.
"William Harrison" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> We are planning to use PHP on windows 2000 but which is the better web
> server to use under this these circumstances IIS or Apache?
>
> Thanks
>
> Will
>
>
>
--- End Message ---
--- Begin Message ---
Try upgrading to php 4.3.0 or higher, i have been experiencing the same
problems as you did untill I switched to 4.3.1
Good luck.
Marcus
Brian McGarvie wrote:
I use a session for a syste to varify login...
However sometimes the session seems to timeout (as I'd expect) however it
seems random, sometimes it's within a few mins of 'inactivity' and other
times i have seen it not timing out if left 'logged in' overnight and
continue work in the morning.
How can I stop this and/or bring some kind of consistency?
Below is the session part of my php.ini with the comments stripped out to
save needless text :)
Thanks In Advance....
OS: Xeon 2Ghz, 1gb Ram, Windows 2000 Server - SP 4, NTFS disks types, PHP
Version 4.3.0RC3, IIS (4 is it that's on Win 2000).
[Session]
session.save_handler = files
session.save_path = C:\PHP\sessiondata ; argument passed to save_handler
session.use_cookies = 1
; session.use_only_cookies = 1
; Name of the session (used as cookie name).
session.name = PHPSESSID
session.auto_start = 0
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
session.cookie_path = /
; The domain for which the cookie is valid.
session.cookie_domain =
; Handler used to serialize data. php is the standard serializer of PHP.
session.serialize_handler = php
session.gc_probability = 1
session.gc_dividend = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
; Set to {nocache,private,public,} to determine HTTP caching aspects or
leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache
; Document expires after n minutes.
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
--- End Message ---
--- Begin Message ---
Hi,
Are there any efficient ways fo attaching files to e-mails and sending them
using mail() function... please help me...
--
with Warm Regards,
Guru.
---------------------------------------
Yahoo IM: guru4vedi
MSN: [EMAIL PROTECTED]
---------------------------------------
--- End Message ---
--- Begin Message ---
Hellow all,
I have small problem. I'm using simple download script <see below> to
download realmedia files. I had it on apache 1.3 + php 4.01 module without
any problems. But then I updated to Apache 2 + php 4.04 module and then
after download any file memory is still alocated and after few hours server
is memory overloaded. But I need Apache 2. Please can anybody help me.
Thanx!
JK
<?
$meno=$QUERY_STRING.".rm";
$file="E:/Archiv/".$QUERY_STRING.".rm";
$fp = fopen($file,"rb");
$fsize = filesize($file);
header("Content-type: application/download \r \n");
header("Content-length: $fsize \r \n");
header("Content-Disposition: attachment; filename=\"$meno\"");
fpassthru($fp);
exit;
?>
--- End Message ---
--- Begin Message ---
Hi
I'm using php on winxp through commandline. Now, Amazon has this feature
where the sellers could download reports from it's Automated Inventory
Management system...
To get into this system, they require you to send a POST request... now,
I've sent the request, supposely, the reply is the file, how do I make php
take this file?
Can I just do this:
$reply="";
while (!feof($conn))
$reply .= fread($conn, 1024);
echo $reply;
or I need something else.
thanks
John
--- End Message ---
--- Begin Message ---
Don't know if this is possible but....
Is it possible to create a PHP script to create a user in MySQL database and
then grant that user specific access to the DB? I'm trying to create an
installer for a php program and building it so that dummies can install it
if need be.
I know that PHPMyAdmin creates users with an interface, but I'm just trying
to do this by having the user go to www.server.com/program/install.php , and
this would setup the user account, grant access and then install the
program.
--- End Message ---
--- Begin Message ---
I am trying to run the web installer for PEAR.
I get this message...
Sorry! The PEAR installer actually does not work on Windows platform
using CGI and Apache.
Please install the module SAPI (see
http://www.php.net/manual/en/install.apache.php
for the instructions) or use the CLI (cli\php.exe) in the console.
This is my php.config file...
LoadFile "/etc/php/php4ts.dll"
LoadFile "/etc/php/gnu_gettext.dll"
LoadModule php4_module "/etc/php/sapi/php4apache2.dll"
Action application/x-httpd-php "/etc/php/php.exe"
ScriptAlias /php/ "/etc/php/"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
What am I doing wrong?
walter
--- End Message ---
--- Begin Message ---
php.ini i presume?
Is it in the windows directory?
Cheers,
Luis Ferro
jsWalter wrote:
I am trying to run the web installer for PEAR.
I get this message...
Sorry! The PEAR installer actually does not work on Windows platform
using CGI and Apache.
Please install the module SAPI (see
http://www.php.net/manual/en/install.apache.php
for the instructions) or use the CLI (cli\php.exe) in the console.
This is my php.config file...
LoadFile "/etc/php/php4ts.dll"
LoadFile "/etc/php/gnu_gettext.dll"
LoadModule php4_module "/etc/php/sapi/php4apache2.dll"
Action application/x-httpd-php "/etc/php/php.exe"
ScriptAlias /php/ "/etc/php/"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
What am I doing wrong?
walter
--- End Message ---
--- Begin Message ---
red herring!
those are Apache directives you've listed, not php.ini settings. I assume
you mean php.conf which is included by httpd.conf?
I assume you know how to install php as a SAPI module (you've got all the
directives below plus the help url)
However, that's just a SAPI red herring, this is how you install PEAR under
windows:
(I admit I installed it using the linux method using cygwin under windows, I
assume this will work)
Installation: Windows
#
# On Windows, go-pear uses stdin for user input, so you must download
# go-pear first and then run it:
#
# Note: In PHP 4.2.0-4.2.3, the PHP CLI binary is named php-cli.exe while
since
# PHP 4.3.0, it's simply named php.exe in the cli/ folder of your PHP
directory.
# The CGI is also named php.exe but it sits directly in your PHP directory.
#
# > cli/php -r 'readfile("http://pear.php.net/go-pear");' > go-pear
# > cli/php go-pear
#
# Installation: Notes
#
# - If using the CGI version of PHP, append the -q option to suppress
# headers in the output.
# - Once the go-pear script is initiated, you will see instructions on
# how to continue installing PEAR. The first thing you should see is:
#
# Welcome to go-pear!
#
"Jswalter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to run the web installer for PEAR.
>
> I get this message...
>
> Sorry! The PEAR installer actually does not work on Windows platform
> using CGI and Apache.
> Please install the module SAPI (see
> http://www.php.net/manual/en/install.apache.php
> for the instructions) or use the CLI (cli\php.exe) in the console.
>
> This is my php.config file...
>
> LoadFile "/etc/php/php4ts.dll"
> LoadFile "/etc/php/gnu_gettext.dll"
> LoadModule php4_module "/etc/php/sapi/php4apache2.dll"
> Action application/x-httpd-php "/etc/php/php.exe"
> ScriptAlias /php/ "/etc/php/"
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
>
> What am I doing wrong?
>
> walter
>
>
--- End Message ---