php-windows Digest 21 Feb 2002 12:25:04 -0000 Issue 1011
Topics (messages 12167 through 12181):
Running Windows full binary distribution
12167 by: Tom Belich
12176 by: Christoph Grottolo
FindWindow() in C# called by PHP
12168 by: Devon Knowles
Re: Writing text to files on Windows
12169 by: Rubén Gutiérrez
12170 by: alain samoun
Passing and array in a query string
12171 by: quincy
12172 by: Sanduhr
Re: Run string as PHP code
12173 by: Sanduhr
12174 by: David
inserting date into oracle!!!
12175 by: Sandeep Murphy
12177 by: Svensson, B.A.T. (HKG)
12179 by: Sandeep Murphy
Re: [PHP] Dynamic file creation in Win NT4.
12178 by: Christoph Grottolo
extensions for PHP in Windows
12180 by: Olga Tonkonog
FTP error in v4.1.1
12181 by: Josh Seward
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 ---
I've installed the windows installer version of php on a NT server. I've
also installed the windows binary on my Windows 2000 pro workstation.
Everything works fine on the CGI-Windows installer version on the server,
but I can't get the same applications to run from my Win2KPro workstation (I
get blank pages or empty pages). Does this have something to do the way the
php.ini file is set up, or is it something else?
--- End Message ---
--- Begin Message ---
| I've installed the windows installer version of php on a NT server. I've
| also installed the windows binary on my Windows 2000 pro workstation.
| Everything works fine on the CGI-Windows installer version on the server,
| but I can't get the same applications to run from my Win2KPro workstation
(I
| get blank pages or empty pages). Does this have something to do the way
the
| php.ini file is set up, or is it something else?
1. make a test script with the following content: <?php phpinfo(); ?>
2. save it as test.php in your web root directory (where your web pages
reside).
3. Check if php works by running the script from the command line:
c:\php\php.exe c:\mywebroot\test.php.
If you get a long output which looks like HTML php works. If not, something
went wrong with your php installation. Read the corresponding chapter in the
manual.
4. Call the test script from your browser (http://myhostname/test.php)
If you get a page with info about your php installation, your webserver and
PHP work together. If not, read the chapter about configuring PHP with your
webserver software in the PHP manual.
5. The output of the test script should reflect your php.ini settings.
Christoph
--- End Message ---
--- Begin Message ---
Has anyone been able to get C# code working that is called from PHP and uses
the FindWindow() ATL call? I have a COM module that works outside of the PHP
environment fine, but when called from a PHP script, FindWindow() always
returns 0.
Thanks in advance.
- Devon Knowles
--- End Message ---
--- Begin Message ---
On Wed, 20 Feb 2002 17:51:30 -0800
"Robert Abbate" <[EMAIL PROTECTED]> wrote:
> I seem to be having trouble being able to *write* text to a file within a
> Windows server. Does anyone know what needs to be done to get this to work?
> I've tried making sure that the direcories are set to the maximum
> permissions (read/write/execute) to anyone. Still doesn't work.
>
> I'm trying this:
>
> $fp = fopen("test.txt", "w"); flock($fp, 1);
> fputs($fp, "testing");
> fclose($fp);
Try replacing this:
flock($fp, 1);
with this:
flock($fp, LOCK_EX);
or with this, if you use a PHP version prior to PHP 4.0.1:
flock($fp, 2);
Cheers,
Rubén Gutiérrez
--- End Message ---
--- Begin Message ---
Works on win98. Try your script without flock() - maybe a problem with ur
win server.
A+
Alain
-----Original Message-----
From: Robert Abbate [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 5:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Writing text to files on Windows
I seem to be having trouble being able to *write* text to a file within a
Windows server. Does anyone know what needs to be done to get this to work?
I've tried making sure that the direcories are set to the maximum
permissions (read/write/execute) to anyone. Still doesn't work.
I'm trying this:
$fp = fopen("test.txt", "w"); flock($fp, 1);
fputs($fp, "testing");
fclose($fp);
and I've tried "a", "a+", "w+", and "w" and no results.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I want to find out if it is possible to pass an entire array via a query
string using php?
--- End Message ---
--- Begin Message ---
try serialize() and unserialize()
"Quincy" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
: I want to find out if it is possible to pass an entire array via a query
: string using php?
:
:
--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/function.exec.php
or put it between ``-quotes.
"Nicole Amashta" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
: Can someone tell me the function to run a string as php code?
:
: I know there is a function, but I can't for the life of me remember what
it
: is, so i can't search for it on php.net.
:
: Anyone know offhand?
:
: TIA!
:
: --
: Nicole Amashta
: Web Applications Developer
: www.aeontrek.com
:
:
--- End Message ---
--- Begin Message ---
I think you mean eval().
http://www.php.net/eval
Regards,
David
--
---
WarpedWeb.Net:
http://www.warpedweb.net/
"Sanduhr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> http://www.php.net/manual/en/function.exec.php
>
> or put it between ``-quotes.
>
> "Nicole Amashta" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> : Can someone tell me the function to run a string as php code?
> :
> : I know there is a function, but I can't for the life of me remember what
> it
> : is, so i can't search for it on php.net.
> :
> : Anyone know offhand?
> :
> : TIA!
> :
> : --
> : Nicole Amashta
> : Web Applications Developer
> : www.aeontrek.com
> :
> :
>
>
--- End Message ---
--- Begin Message ---
Hi,
I have been trying to insert the current date into ORACLE in vain...
my query reads like this..
java.text.SimpleDateFormat formatter = new
java.text.SimpleDateFormat("dd/MM/yyyy");
java.util.Date currentTime_1 = new java.util.Date();
String dateString = formatter.format(currentTime_1);
// Have to use Java.util.date....
out.println( "<br>" );
out.println( dateString ); // shows current date Fine..
sql = "INSERT into
RESERV_DOC_UPD(CODE,DOC_COD,COLAB_COD,RESERVED,DATE_RESERV)";
sql +=
"VALUES("+temp+","+code+","+COLAB_COD+","+RESERVED+","+(to_date(dateString,
dd/mm/yyyy))+")";
Can anyone Please tell me whats wrong with this query and the remedy for
it!!???
Thnx a lot in adv,
gaucho
--- End Message ---
--- Begin Message ---
What error message does you recive from the database?
>-----Original Message-----
>From: Sandeep Murphy [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 21, 2002 10:57 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] inserting date into oracle!!!
>
>
>Hi,
>
>I have been trying to insert the current date into ORACLE in vain...
--- End Message ---
--- Begin Message ---
THANKS!!!
made my day!!!
:)
-----Original Message-----
From: Jan Matejka [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 21 de Fevereiro de 2002 11:56
To: 'Sandeep Murphy'
Subject: RE: [PHP-WIN] inserting date into oracle!!!
sql +="VALUES("+temp+","+code+","+COLAB_COD+","+RESERVED+
",(to_date('"+dateString+"','dd/mm/yyyy')))";
MaT
> -----Original Message-----
> From: Sandeep Murphy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] inserting date into oracle!!!
>
>
> Hi,
>
> I have been trying to insert the current date into ORACLE in vain...
>
> my query reads like this..
>
> java.text.SimpleDateFormat formatter = new
> java.text.SimpleDateFormat("dd/MM/yyyy");
> java.util.Date currentTime_1 = new java.util.Date();
> String dateString = formatter.format(currentTime_1);
>
> // Have to use Java.util.date....
>
> out.println( "<br>" );
> out.println( dateString ); // shows current date Fine..
>
> sql = "INSERT into
> RESERV_DOC_UPD(CODE,DOC_COD,COLAB_COD,RESERVED,DATE_RESERV)";
>
> sql +=
> "VALUES("+temp+","+code+","+COLAB_COD+","+RESERVED+","+(to_dat
> e(dateString,
> dd/mm/yyyy))+")";
>
> Can anyone Please tell me whats wrong with this query and the
> remedy for
> it!!???
>
> Thnx a lot in adv,
>
> gaucho
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
| It's as easy as... :-)
| $day = getdate(time());
| $f_name = create table name on time basis;
| $fd = fopen($f_name, "a"); // open file
| fwrite($fd, "string you want tu put (add) into
| file"); // write to file all your data
| fclose($fd); // close the file
| That's all folks :-)
it's even easier:
$logFile="c\\mylogdirectory\\" .date("Ymd").".log";
error_log ("what i want to write", 3, $logFile);
Christoph
--- End Message ---
--- Begin Message ---
Hello,
I learn PHP now and use Windows. But almost all guidance are for Linux.
Do you know how to produce own extensions in PHP?
Thank you
Olga
--- End Message ---
--- Begin Message ---
After installing the current version of the win32 binary,
I am getting the following error:
UNABLE TO FIND ftpbuf 0 in C:\path
ftp_login() seems to be prodcing the error.
I do have a connection id (stream).
FTP functions worked perfectly before upgrading!
Any help is appreciated!
Thanks,
Josh Seward
[EMAIL PROTECTED]
--- End Message ---