php-windows Digest 23 Feb 2002 17:05:30 -0000 Issue 1014
Topics (messages 12224 through 12237):
Extension problem.
12224 by: Tom van Gemert
12227 by: Nicole Amashta
Re: Bad char Translation
12225 by: -HONU-
12226 by: -HONU-
pspell
12228 by: Michael Langford
Re: WELCOME to [EMAIL PROTECTED]
12229 by: Dustin_Rabe.blm.gov
12231 by: DL Neil
Merging Arrays
12230 by: W-Mark Kubacki
Re: "The connection with the server was reset"
12232 by: Ross Fleming
php4ts.dll, developing own handlers
12233 by: Alexander Gräf
12236 by: l0t3k
12237 by: Alexander Gräf
Re: opener header
12234 by: Alexander Gräf
Re: swatch internet time
12235 by: B Thomas
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 ---
Yo,
I hace recently installed PHP with PWS 4 on my PC and I am only able to run
*.php documents in the browser. *.php3 extensioned files will display code
as text in the browser window.
Can anybody tell me how to configure things, so it also runs *.php3
extensions?
Help is appreciated....... TommyBoy
--- End Message ---
--- Begin Message ---
You need to edit your registry to associate .php3 extension with PHP. You
can look up the documentation with either you php files or at
php.net.
Nicole Amashta
www.aeontrek.com
"Tom Van Gemert" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yo,
>
> I hace recently installed PHP with PWS 4 on my PC and I am only able to
run
> *.php documents in the browser. *.php3 extensioned files will display code
> as text in the browser window.
>
> Can anybody tell me how to configure things, so it also runs *.php3
> extensions?
>
> Help is appreciated....... TommyBoy
>
>
--- End Message ---
--- Begin Message ---
The source file is ISO-8859-1.. and the result is not displayed on a webpage
but in a console ... This is where the problem come .... when i display the
result in the console
> I've got a text file containing "blés, Châteaux ..." (without quotes)
>
> I'm reading this file like this
>
> $FileName = "Test.txt";
> $FileHand = fopen($FileName, "rb");
> $Data = fread($FileHand, filesize($FileName));
> fclose($FileHand);
> print_r($Data);
>
> Under Linux, by asking the script throught an HTTP server ... i've got the
> good text
> blés, Châteaux ...
>
> But when i launch the script through the console (under windows 2000) ...
> characters are translated :
> blùs, Chôteaux ...
>
> what does it means .. .?
--- End Message ---
--- Begin Message ---
... mm something else... when i try
Print("Blés");
the output in the console is
Blùs
And the problem is not only there ... if i send "Blés" to an SQL server
database .... it becomes "Blùs" ....
!!!!!
--- End Message ---
--- Begin Message ---
Does anyone know how to configure pspell for Windows? I think I've installed
it properly, but the compilation using --with-pspell is obviously a linux
command. I'm after either lines to add to php.ini file, or an equivalent
windows compilation command.
Many thanks for any help
Mike Langford
--- End Message ---
--- Begin Message ---
Hi,
I was wondering I am running php on a win2k server and have downloaded and
installed phpwebdev which uses the apache webserver. I need to be able to
send mail on this box. Can you tell me of a program that will work with php
and windows. and what code I need besides the mail() command in php
My Best,
Dustin Rabe
Senior NT Web Developer
[EMAIL PROTECTED]
Ph. 303.236.2259
Fx. 303 236-3327
--- End Message ---
--- Begin Message ---
Hi Dustin,
> I was wondering I am running php on a win2k server and have downloaded and
> installed phpwebdev which uses the apache webserver. I need to be able to
> send mail on this box. Can you tell me of a program that will work with php
> and windows. and what code I need besides the mail() command in php
No need for any extra code, set up the two (Win32) lines in php.ini to point at a
convenient SMTP email server
and PHP's mail() will work - it's actually an advantage/more simple from a Win box!
Regards,
=dn
--- End Message ---
--- Begin Message ---
Hello,
I'm trying to merge two multidimensional arrays, but it
doesn't work neither with array_merge nor array_merge_recursive.
Is there a solution which makes the following problem-script
to print every element (and not mergin two existing elements
to a new sub-array):
--------------------- Code ---------------------------------------
// Array-merging
$test['main']['sector']['seting'] = 'seting1';
$test['main']['sector']['config'] = 'config1';
$test['main']['mysql'] = 'dbsql1';
$test['main'][0][1] = '01_1';
$test['main'][0][2] = '02_1';
$test['main'][1][0] = '10_1';
$test['sub']['wmk'] = 'wmk1';
$zwo['det'] = 'det2';
$zwo['main']['sector']['config'] = 'config2';
$zwo[2] = '2';
$zwo['main']['fddb'] = 'fddb2';
$new = array_merge_recursive($test, $zwo);
echo($new['main']['sector']['seting']." x<br>\n");
echo($new['main']['sector']['config']." x<br>\n");
echo($new['main']['mysql']." x<br>\n");
echo($new['main'][0][1]." x<br>\n");
echo($new['main'][0][2]." x<br>\n");
echo($new['main'][1][0]." x<br>\n");
echo($new['sub']['wmk']." x<br>\n");
echo($new['det']." x<br>\n");
echo($new[2]." x<br>\n");
echo($new['main']['fddb']." x<br>\n");
------------------------------------------------------------------
Thanks,
Mark
--- End Message ---
--- Begin Message ---
Actually, scrap my first answer, I think it's to do with the size of the
script. It grows with the size of the file I believe. Instead of using
fpassthru(), use a buffer instead:
while(!feof($fd)) {
$buffer = fread($fd, 4096);
print $buffer;
}
fclose($fp);
That may work better, in fact I've personally used something like that for
something similar (writing a remote file to the server)
Let me know?
Ross
-----Original Message-----
From: Ronny Salomonsen [mailto:[EMAIL PROTECTED]]
Sent: 20 January 2002 09:13
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] "The connection with the server was reset"
I've created a simple downloadscript that handles file downloads (it
redirects to a file that cannot be accessed through internet.
After 2% I get the following errormessage:
Internet Explorer cannot download basedata.mdb from [removed]
The connection with the server was reset
The script has downloaded 411 kb of 17.6 MB, and other people has a similar
problem. Sometimes it downloads about 5 MB and closes the downloading window
and says it has successfully downloaded the file.
What could be wrong?
I'm running PHP 4.1.1 on a MS IIS 5.0 server. The code is as follows:
<?php
set_time_limit(0);
error_reporting(E_ALL);
$get = "basedata.mdb";
// Handle download-requests
header("Content-Type: application/force-download\n");
header("Content-Disposition: attachment; filename=\"$get\"\n");
header("Content-Description: GAB database\n");
header("Content-Transfer-Encoding: binary\n");
header("Content-Length: " . filesize($get));
$fd=fopen($get,'r');
fpassthru($fd);
readfile($get);
exit;
?>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hello,
i'm using php on win32, and i want to use the functions provided by php in a
dll. i only want to give php a string with php-code and want to get the
outputs produced by the php-interpreter. i looked for a solution with
temporary files and php.exe but php also outputs headers, etc. and in
addition, creating temporary files, writing down the code and then execute
it from this file isnt very fast.
i only want to give a code string contained in the memory to php4ts.dll and
get the output back. i'm experienced in c/c++, but in the source files of
php, i cant find the magic function from where i can build my own.
hope someone can help me, thanks in advance
alex
______________________________________________
alexander gräf
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Alexander,
in zend_execute_API.c
ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name
TSRMLS_DC)
id do a search in the code to find the implementation of eval(). this
should yield some clues
Alexander GräF <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> hello,
>
> i only want to give a code string contained in the memory to php4ts.dll
and
> get the output back. i'm experienced in c/c++, but in the source files of
> php, i cant find the magic function from where i can build my own.
>
> hope someone can help me, thanks in advance
>
> alex
>
> ______________________________________________
>
> alexander gräf
> [EMAIL PROTECTED]
>
>
>
>
>
--- End Message ---
--- Begin Message ---
"L0t3k" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Alexander,
>
> in zend_execute_API.c
>
> ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char
*string_name
> TSRMLS_DC)
>
> id do a search in the code to find the implementation of eval(). this
> should yield some clues
>
i found this function, but the problem is, that it seems that i really have
to do many initializings to get this to work, and i also do not have a clue
how to get the outputs. isn't there anyone who uses the php-interpreter
without webserver only to parse php-code? linking to php and zend and TSRM
is very complicated, and i'm not a php-developer and i dont want to become
one...
thanks in advance
alex
______________________________________________
alexander gräf
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
i think HTTP_REFERER is what you want.
this variable holds the url of the page that linked to you.
"Wojciech Spychala" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> Some scripts recognize what was previos page on your browser befor u get
to
> this script (opener)
> and if address isn't correct script may not allow to do anything
>
> is it possible send by php header in information that we for example
running
> script from different location than this is realy??
>
> Sorry for my horrible english
>
> Thanks very much
>
> Wojtek
--- End Message ---
--- Begin Message ---
"Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 14:44 22.09.2001 +1200, Arron Edwards wrote:
> >Hey all i worked it out. Someone emailed me the C code, I converted it
to
> >PHP here it is if any one else wants it.
>
> you can just use date("B")
>
> daniel
>
> --
> daniel beulshausen - [EMAIL PROTECTED]
> using php on windows? http://www.php4win.com
>
Arron was actually asking for the formula of how they work out Swatch
internet time.
Brad
--- End Message ---