php-windows Digest 16 Apr 2004 00:22:22 -0000 Issue 2210

Topics (messages 23448 through 23465):

Re: changing permission of files (php+windows)
        23448 by: Jattie van der Linde

Re: Passing the session  question
        23449 by: Jattie van der Linde

IIS virtual directory problem
        23450 by: Tumurbaatar S.

Cannot open Browscap.ini on Windows 2003 server
        23451 by: Gregg Mercede

<?php not handled by iis or apache
        23452 by: Uwe Thiede

read it immediately
        23453 by: ssb.fast.no

Mail Function Problem
        23454 by: M. Imran Khan
        23455 by: Luis Moreira

Received time with mail()
        23456 by: Stéphane Mourey
        23457 by: Nunners
        23458 by: BrokenClock

Trying to get the current folder / path
        23459 by: Jim MacDiarmid

Re: [POSTGRES] reading blob
        23460 by: Sara Rubis

Question about PHP on Win2k Advanced Server
        23461 by: Anthony M. Saffer

file upload
        23462 by: Anthony Ritter
        23464 by: Svensson, B.A.T. (HKG)

Sheel_exec
        23463 by: Peter Hansen

PHP5 latest CVS win32 snapshot; where is php_interbase.dll ??
        23465 by: Borut Zagar

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 ---
chmod ("/somedir/somefile", 0755);  // octal; correct value of mode

-----Original Message-----
From: ffox [mailto:[EMAIL PROTECTED]
Sent: 14 April 2004 11:12
To: [EMAIL PROTECTED]
Subject: changing permission of files (php+windows)


Hi,

I have a problem. I'm running an Intranet environment in PHP on IIS.

I'm uploading files through a php-script. The files are only readable when
I'm logged-on in my windows account. Other windows-users can't access or
read the files. How can I change the permission of those files - using my
script - so that other users can access or read the them as well?

Thanks in advance,
ffox

--- End Message ---
--- Begin Message ---
should'nt it be "echo $SID" ?

-----Original Message-----
From: Jim MacDiarmid [mailto:[EMAIL PROTECTED]
Sent: 14 April 2004 19:09
To: [EMAIL PROTECTED]
Subject: Passing the session question


Why is it that the following scenerio will pass the session id....

/* SessionStart.php */
<?php Session_Start(); ?>


/* Page1.php */ 
<?php include('SessionStart.php'); ?>

Echo SID;

/* Page2.php */ 
<?php include('SessionStart.php'); ?>

Echo SID;

However the following scenerio will not pass the session id.... Or
atleast 
I can't seem to get it to work.

/* Page1.php */ 
<?php Session_Start(); ?>

Echo SID;

/* Page2.php */ 
<?php Session_Start(); ?>

Echo SID;

Any ideas?

Thanks,
Jim

--- End Message ---
--- Begin Message ---
My WinXP IIS configured to use CGI version
of PHP5 (php-cgi.exe). When a script file located
under /inetpub/wwwroot/..., i.e. absolute location,
the PHP runs well. But when I use Virtual directory in IIS,
i.e. the script file is not located under /inetpub/wwwroot/,
the IIS returns 404 File not found error. I changed the script
file's extension to something other than '.php' and IIS
locates it well.
Any ideas?
P.S. There're 3 execs in PHP5: php, php-cgi and php-win.
What are differences?

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

When trying to exe a PHP file from a browser, the
browser waits, and the Win2003 server displays a
windows message Cannot open Browscap.ini with the
correct path.

As soon as I click OK on this message the browser
immediately displays a 404 error.

Please help.


        
                
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

--- End Message ---
--- Begin Message ---
i've tried differend configurations of php and iis/apache and all of them
failed to handle the "xml processor instuctions" inside my html pages.

example:
<html>
<head>
<title>PHP-Test</title>
<body>
   Down there must be some PHP-Informations<br><br>
   <?php
      phpinfo();
>
</body>
</html>

so the phpinfo() did'nt print out any result.

only pages with fooba.php are handled correctly.

thanx beforehand for your support
uwe

--- End Message ---
--- Begin Message ---
I have your password!

--- End Message ---
--- Begin Message ---
When I am sending mail through mail() function, I am unable to view that mail properly.

I think some quotes probblme. Suppose I want to mail the following tag:
<img src="http://www.abc.com/logo.gif";>

But it would work properly if I don't use the quotes other wise not.

Please help me regarding this.



Thanking you,
M. Imran Khan


--- End Message ---
--- Begin Message --- M. Imran Khan wrote:

When I am sending mail through mail() function, I am unable to view that mail properly.

I think some quotes probblme. Suppose I want to mail the following tag:
<img src="http://www.abc.com/logo.gif";>

But it would work properly if I don't use the quotes other wise not.

Please help me regarding this.



Thanking you,
M. Imran Khan




You have to escape the quotes
--- End Message ---
--- Begin Message ---
Hi all,

I have a strange issue. I use the mail function in a script. Everything goes
right, except one thing : the time of reception print by may mail client is
incorrect, as if the bi-annual european time change was not integrate. But
the server time is correct.
Can anybody help me to resolve this issue?

Config : 
Apache 1
PHP 4.3
Windows 2000 Server SP4

Thanks and regards,

Stephane

--- End Message ---
--- Begin Message ---
Try checking the Timezone of both your server, and the PC.  This can
sometimes have some quite bizarre effects!!!!

> -----Original Message-----
> From: Stéphane Mourey [mailto:[EMAIL PROTECTED]
> Sent: 15 April 2004 14:06
> To: [EMAIL PROTECTED] Php. Net
> Subject: [PHP-WIN] Received time with mail()
> 
> Hi all,
> 
> I have a strange issue. I use the mail function in a script. Everything
> goes
> right, except one thing : the time of reception print by may mail client
> is
> incorrect, as if the bi-annual european time change was not integrate. But
> the server time is correct.
> Can anybody help me to resolve this issue?
> 
> Config :
> Apache 1
> PHP 4.3
> Windows 2000 Server SP4
> 
> Thanks and regards,
> 
> Stephane
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
Time zones are the same on the Web Server, on the Mail Server and on my PC.
Any idears?

-----Message d'origine-----
De : Nunners [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 15 avril 2004 15:16
À : 'Stéphane Mourey'; '[EMAIL PROTECTED] Php. Net'
Objet : RE: [PHP-WIN] Received time with mail()

Try checking the Timezone of both your server, and the PC.  This can
sometimes have some quite bizarre effects!!!!

> -----Original Message-----
> From: Stéphane Mourey [mailto:[EMAIL PROTECTED]
> Sent: 15 April 2004 14:06
> To: [EMAIL PROTECTED] Php. Net
> Subject: [PHP-WIN] Received time with mail()
> 
> Hi all,
> 
> I have a strange issue. I use the mail function in a script. 
> Everything goes right, except one thing : the time of reception print 
> by may mail client is incorrect, as if the bi-annual european time 
> change was not integrate. But the server time is correct.
> Can anybody help me to resolve this issue?
> 
> Config :
> Apache 1
> PHP 4.3
> Windows 2000 Server SP4
> 
> Thanks and regards,
> 
> Stephane
> 
> --
> 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 know this should be a simple task, but why does it seem so convoluted
in trying to get the current folder I'm in.  

I want to be able to get the base folder such as:

/docroot/subfolder/

- or -

http://serverhostname/subfolder/

Not sure what the appropriate way is to do this.

Thanks,
Jim

--- End Message ---
--- Begin Message ---
The more recent postgresSQL.

"B.A.T. Svensson" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Is this the stone age old postgres DBMS or are
> we talking about the more recent postgresSQL?
>
> -----Original Message-----
> From: Sara Rubis
> To: [EMAIL PROTECTED]
> Sent: 2004-04-10 20:05
> Subject: [PHP-WIN] [POSTGRES] reading blob
>
> Hello,
> I need a source function example for extracting a blob field from a
> postgres db and viewing it with browser.
>
> Thanks,
> Sara Rubis

--- End Message ---
--- Begin Message ---
Hello Everyone,

I'm currently working on an application for a social service agency and I
was writing it with a LAMP target. I was informed on yesterday that LAMP
will not be the target but rather Win2k Advanced Server. I thought "no
problem" since I know that PHP can run on both Linux and Windows and figured
my application would be fine. But then, after doing some research, I found
that PHP seems to not be terribly reliable on Windows and it gave me pause.
This application MUST have a near 24/7 uptime and I cannot afford to have
PHP crashing in the middle of things. So, I am seriously considering using
ASP to do this since 1) it's native to Windows and stable and 2) it's
tightly integrated.

What does everyone think of PHP on Windows? IS it stable enough to be nearly
100% reliable? What are the problems with using PHP on Windows?

Thanks,
Anthony M. Saffer

--- End Message ---
--- Begin Message ---
In the following snippet, which uploads binary files to a mySQL database it
works fine when Register Globals are set to ON.
.................
mysql_connect("localhost","root","pass");
mysql_select_db("adatabase");

$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));

$result=mysql_query("INSERT INTO binary_data
(description,bin_data,filename,filesize,filetype) ".
"VALUES
('$form_description','$data','$form_data_name','$form_data_size','$form_data
_type')");

$id= mysql_insert_id();
print "<p>This file has the following Database ID: <b>$id</b>";
echo "<br>";
echo "<a href=\"getdata.php?id=$id\">Click to view file</a>";

mysql_close();
...................

However, when I turn the Register Globals to OFF and insert a $_FILES[ ][ ]
array for the form variables such as:

-----------------

$data = addslashes(fread(fopen($_FILES[form_data], "r"),
filesize($_FILES[form_data])));

and

"VALUES
('$_FILES[form_data][form_description]','$_FILES[form_data][data]','$_FILES[
form_data][form_data_name]','$_FILES[form_data][form_data_size]','$_FILES[fo
rm_data][form_data_type]')");
-----------------

The file does not get uploaded.

Any assiatnce will be greatly appreciated.
Thank you.
TR

--- End Message ---
--- Begin Message ---
Have you check this out:

http://nl.php.net/manual/en/features.file-upload.php

?

It should get you going


-----Original Message-----
From: Anthony Ritter
To: [EMAIL PROTECTED]
Sent: 2004-04-15 18:26
Subject: [PHP-WIN] file upload

[...]

$data = addslashes(fread(fopen($_FILES[form_data], "r"),
filesize($_FILES[form_data])));

[...]

The file does not get uploaded.

--- End Message ---
--- Begin Message ---
Hello

i need some help with my battlefield livestat
i have two website
www.flashwebb.se
and
www.flashwebb.com

and the help i need is on the www.flashwebb.com site

You can look here
http://www.flashwebb.se/bf1942live/vietnam.pl

and see it on action

so now i have download the   php nuke
and i want to have the same page  as above when i click on a link to my new
site ..And i been told to make a   php page and put this code  to call the
vietnam.pl

<?php

require_once("mainfile.php");

include("header.php");

$content =  `/C:/Inetpub/com/html/bf1942live/vietnam.pl`;
print $content;

include("footer.php");
?>

and i save the page as bflive.php  and put a link to it on my page
http://www.flashwebb.com/bflive.php
so now when i click on the link i get this errormessage
Warning: shell_exec(): Unable to execute
'/C:/Inetpub/com/html/bf1942live/vietnam.pl' in
C:\Inetpub\Com\html\bflive.php on line 7

You can see for your self here
http://www.flashwebb.com/bflive.php

so now i don't know what's wrong
i want the page  vietnam.pl to come up when i click on the link
as you can do  by click on the link below and see the error message
http://www.flashwebb.se/bf1942live/vietnam.pl

I'am running win2003
Anyone who can help me here???
Regards
Peter

--- End Message ---
--- Begin Message ---
Why doesn't latest PHP5 CVS snapshot
(http://snaps.php.net/win32/php5-win32-latest.zip)
include php_interbase.dll extension?

Is there a way to use interbase extension with latest
snapshot?

Thanx!

BZ



        
                
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

--- End Message ---

Reply via email to