php-windows Digest 3 Apr 2001 05:08:46 -0000 Issue 524
Topics (messages 6436 through 6447):
mail() Function and time
6436 by: David Elliott
6438 by: James Moore
Re: Case insensitive str_replace
6437 by: James Moore
PHP
6439 by: Synopsis
6440 by: James Moore
Re: PHP & IIS5
6441 by: Thomas
Uploading files?
6442 by: Mike Flynn
.htaccess file
6443 by: Richard Kurth
6444 by: David G.
6445 by: Richard Kurth
install problems
6446 by: Mike Schwarz
Warning: 1 is not a valid File-Handle resource
6447 by: Richard Kurth
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]
----------------------------------------------------------------------
Salutation all,
I an using PHP Version 4.0.5RC1 on an NT 4 sp5 box. I am playing around
with the mail() function but I and have got it working a minor problem is
that the date header is wrong the header is
Date: Fri, 30 Mar 2001 13:42:59 0000
it should be.
Date: Fri, 30 Mar 2001 13:42:59 +0100
I have checked the server for time zone etc.
I also run an SMTP server from it (Not exchange) and everything is OK on
that.
Does any one have an idea ?
--
BBFN, _______________________________________________
David | David Elliott | Software Engineer |
_________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 |
| * <- Tribble || <- Tribble stuck between elevator doors. |
>
> I an using PHP Version 4.0.5RC1 on an NT 4 sp5 box. I am playing around
> with the mail() function but I and have got it working a minor problem is
> that the date header is wrong the header is
>
> Date: Fri, 30 Mar 2001 13:42:59 0000
>
> it should be.
>
> Date: Fri, 30 Mar 2001 13:42:59 +0100
>
> I have checked the server for time zone etc.
>
> I also run an SMTP server from it (Not exchange) and everything is OK on
> that.
Hi david,
I just checked this with 4.0.5RC5 and 4.0.6-dev and it works for me.. looks
like screwed Daylight savings time doesnt seem to be a problem with PHP
although because it doesnt touch the date header (which is done by the mail
server itself.) One option is to set your own valid date header using the
extra argument to mail.
James
>
> Does anyone know how to do a case insensitive str_replace?
> I don't want to alter the case of the original string (so I can't do a
> strtolower first).
>
> I've seen some functions used with the likes of [^Aa] in them but I'm not
> sure how to use this...
> Anyone got any ideas?
use preg_replace with /i modifier.
James
any one here , know how to pass the login data to each page a user gose on,
and that page checking it to make sure its right , i can do this but it has
the user name & password in the browers address bar which i dont want ,
anyone know how???
> any one here , know how to pass the login data to each page a
> user gose on,
> and that page checking it to make sure its right , i can do this
> but it has
> the user name & password in the browers address bar which i dont want ,
> anyone know how???
Take a look at
http://www.php.net/session
James
Hello!
As stated in many doc-sources, ISAPI hasn't the status "stable", and this
problem could occur also on NT 4 with IIS 4. This is "simply" a crash, which
dragged down the WWW pub.-service (and I supoose the iisadmin) also.
Till the ISAPI-module gets stable, I'd proceed in that way: run all scripts
in CGI-mode, and only scripts that really need ISAPI in ISAPI.
Hope that helps,
Thomas
anderzzo wrote:
> I've installed PHP on my Win2000 Server with IIS5
> and it worked fine in a week until today!
>
> All I get when I try to reach a .php page is, The page can't be found!
> In the systemlog, it says that the WWW publishing service has been
> unexpected ended.
> (don't know the exact translation for that :)
>
> Even not a simple "hello" script works!
> Anyone knows why?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hey all,
I would like to enable my users to upload binary data into the database --
into MySQL blobs. I/e they could upload images, or word documents,
etc. However, my network administrators have told me that they have PHP
file uploads disabled for security reasons.
My question to you is this: If the binary data (file) being uploaded is not
going into a new file on the server but rather just funneled into the
database, can I still allow users to upload files using those form file
input fields? If not, is there any workaround?
They mentioned something about RFC1867 file uploads, specifically using a
Perl/CGI implementation (see http://www.vivtek.com/cgi/getargs.html).
My question, then is: Can I still do this type of file upload feature for
my users, either in PHP or with this Perl method, or are web-enabled
uploads of files pretty much out of the question?
Thank you very much for all help!
-Mike Flynn
-=- Mike Flynn - Burlington, VT -=-
[EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood *
Born to see two thousand years
of man's effect upon the planet [Killing Joke]
Extinction seems to be a plausible risk
I am using php4.0.4pl1 with apache 3.0.12 on Windows 98. It is set as PHP as
a module in Apache using LoadModule php4_module c:/php/sapi/php4apache.dll.
It works just fine as far as I can tell except when I try to use a .htaccess
file it does not seem to read the file. The file I what it to read looks
like this
php_value include_path "C:\httpd\htdocs\home\inc"
It does not give me any errors it just doesn't read the file.
Anybody now how to make this work.
Have you given the correct <Directory> designation to Apache? In httpd.conf
or access.conf you'll need a line similar to the following:
<Directory "C:/directory-to-allow-access">
AllowOverride AuthConfig
</Directory>
At least in my case, the default Apache behavior was to ignore the use of
.htaccess files in all directories unless specifically changed.
-david
""Richard Kurth"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using php4.0.4pl1 with apache 3.0.12 on Windows 98. It is set as PHP
as
> a module in Apache using LoadModule php4_module
c:/php/sapi/php4apache.dll.
> It works just fine as far as I can tell except when I try to use a
.htaccess
> file it does not seem to read the file. The file I what it to read looks
> like this
>
> php_value include_path "C:\httpd\htdocs\home\inc"
>
> It does not give me any errors it just doesn't read the file.
>
> Anybody now how to make this work.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
I add the lines to httpd.conf file and now in the error file I get a
c:/httpd/htdocs/autosetup/.htaccess: php_value not allowed here
Is there anything else I can do.
> Have you given the correct <Directory> designation to Apache? In
> httpd.conf
> or access.conf you'll need a line similar to the following:
>
> <Directory "C:/directory-to-allow-access">
> AllowOverride AuthConfig
> </Directory>
>
> At least in my case, the default Apache behavior was to ignore the use of
> .htaccess files in all directories unless specifically changed.
>
> -david
>
>
> ""Richard Kurth"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am using php4.0.4pl1 with apache 3.0.12 on Windows 98. It is
> set as PHP
> as
> > a module in Apache using LoadModule php4_module
> c:/php/sapi/php4apache.dll.
> > It works just fine as far as I can tell except when I try to use a
> .htaccess
> > file it does not seem to read the file. The file I what it to read looks
> > like this
> >
> > php_value include_path "C:\httpd\htdocs\home\inc"
> >
> > It does not give me any errors it just doesn't read the file.
> >
> > Anybody now how to make this work.
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
i have a strange bug here, don't now where to search.
when i install php with setup.exe on my win 2000 server, there is a error
message:
- component mscomctl.ocx or one of its dependencies not correctly
registered, a file is missing or invalid
after clicking on OK, php setup says OK, successfull installation.
i check the isapi extension in IIS 5.0 --> nothing
so, i did manual configuration in IIS with extension .php and the correct
dll
after running a test, every php-script is terminating with a
http error 500 - internal server error
and in the system-event-protocol i have an error 10004:
EventID 10004 Source DCOM DCOM got error
"Logon failure: unknown user name or bad password. " and was unable to logon
\IWAM_TEK1 in order to run the server:
{3D14228D-FBE1-11D0-995D-00C04FD919C1}
same happens with an installation of IHTML or other script-server dll....
who can help?
mike
C-TEK Computer
Bergstrasse 36
CH-5430 Wettingen
phone & fax 056 426 04 01
I am using the newest ver of PHP and newest ver of apache on win98
just installed new php and apache yesterday set php up as a module
What is causing this error
It worked fine until I added the new ver of php and apache
Warning: 1 is not a valid File-Handle resource in
c:/httpd/htdocs/autosetup/auto/createaccount.php on line 88
This is the cod in question
$tab = chr(9); // define tabulator
if(file_exists("userdata")) {
$fp2=fopen ("userdata","r")or die("unable to open file ($userdata)");
flock($fp2, 2); //unless ($use_flock == 0);
while ($data = fgetcsv ($fp2, 1000, $tab)) { <---this is line 88
$num = count ($data);
$row++;
for ($c=0; $c<$num; $c++) {
}