php-windows Digest 10 Jul 2002 09:53:08 -0000 Issue 1233

Topics (messages 14653 through 14663):

Re: [PHP] Dual Server...
        14653 by: Collins, Robert

File Upload Problem
        14654 by: Alexandr Polupanov
        14655 by: Alexandr Polupanov

Re: More bzip woes! No file written...
        14656 by: Mikey

need help caching problems!
        14657 by: kalmen

Trapping PHP errors
        14658 by: Matt Babineau
        14659 by: Matt Parlane
        14660 by: Rasmus Lerdorf

IIS Bugs???
        14661 by: Brian McGarvie

How to dectect if a file exist in specific Folder
        14662 by: Jack
        14663 by: Piotr Pluciennik

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 ---
Matt,

I dont know if this helpped Brian but it just saved me a huge headache with
some of the presonal settings on my intranet 

THANKS!

Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 



-----Original Message-----
From: Matt Parlane [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 4:41 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Dual Server...


Hi Brian...

I have it set up just like Robert, and I really think it's the way to go -
having Apache as the web-accessible server gives me much more peace of mind
than having IIS sitting out there just waiting to be attacked.

Do you realize you can have content served by IIS accessed without using the
:8080 (or whatever) port number?
I'm not sure if you're aware of this but here's the relevant parts of my
httpd.conf:

NameVirtualHost *
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so

<VirtualHost *>
 ServerName zevi.net
 ServerAlias zevi.net www.zevi.net
 ProxyRequests Off
 ProxyPass / http://zevi.net:4040/
 ProxyPassReverse / http://zevi.net:4040/
</VirtualHost>

<VirtualHost *>
 ServerName newworkstudio.com
 ServerAlias newworkstudio.com www.newworkstudio.com
 DocumentRoot "C:/htdocs/newworkstudio.com"
 DirectoryIndex index.html
</VirtualHost>

So, for each ASP site (or for each site served by IIS), just add a
VirtualHost entry using the ProxyPass directive to send it to the IIS
server.  The IIS server doesn't have to be on the same computer by the way -
or even the same network...

Hope that helps.

Matt Parlane
Zevi Interactive
[EMAIL PROTECTED]

"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I will probably do this the other way round as we have a few sites...

so if i have a single file with a frame and point contents of frame to
apache this should work?

> -----Original Message-----
> From: Collins, Robert [mailto:[EMAIL PROTECTED]]
> Sent: 09 July 2002 4:41 PM
> To: Brian McGarvie; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: RE: [PHP] Dual Server...
>
>
> I have Apache and  IIS coexisting on my intranet server and
> the way I set
> them up was to put each on a different port. (Apache serves
> http://intranet
> and IIS serves http://intranet:8080) this appears to work
> fine. Hope this
> helps
>
> Robert W. Collins II
> Webmaster
> New Orleans Regional Transit Authority
> Phone : (504) 248-3826
> Fax: (504) 248-3866
> Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>
> -----Original Message-----
> From: Brian McGarvie [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 09, 2002 10:39 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Dual Server...
>
>
> OK following from my thread 'Browser Issues' I have found
> that when serving
> the site from apache, that the aforementioned errors go
> away... mostly...
>
> OK so... What is the best way to setup so that IIS/Apache co-exist...
>
> I'd like to keep the 'entry' to the site on IIS as we have other sites
> too... and use apache to serve the content of it.
>
> Any help mucho appreciated... also working to a deadline!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
I've read all messages related to this problem, but my situation is
different. I can't upload files > 1000 Bytes. NOT 1 KB but exactly 1000
bytes. In php.ini  memory_limit is set to 8M and  upload_max_filesize is set
to 8M and i'm still getting error, and is_uploaded_file() returns FALSE.

My system:
Windows 2000 Professional with IIS 5.0 Server.
PHP 4.2.0

What can solve my problem?
Thanks.


--- End Message ---
--- Begin Message ---
Now i'm asking to excuse me.
I found my mistake.
In my Upload form MAX_FILE_SIZE was set to 1000.

Sorry for that.


--- End Message ---
--- Begin Message ---
Ooops!  The code was slightly different - see ammendments below...

                // $data = file ("$filename.tar");
                $data = implode ("", file ("$filename.tar"));
                $bz = bzopen ("$filename.bz2", "w");
                bzwrite ($bz, $data);
                bzclose ($bz);

doh!

Mikey


--- End Message ---
--- Begin Message ---
Hi ,
I am very new to php and I installed :php421 ,xitami server on Win98se and
trying to post at phpbuilder, but seems like my questions is being ignored ,
I don't know whether I ask the right question or I was in the wrong place !
, so I try here , and would like to request for help ,please .

I am having problems of running the download application , which I am not
sure whether is sessions or caching problems .
Description of my problems.
1. I have a index.html which do nothing except at refresh a database.php
2. it seems that the 1st time it run properly by displaying
http://ServerPC/database.php?webadmin=some_cache_id...
3. but I don't know why now it just won't start anymore whenever I call the
index.html
it will only shows http://ServerPC/database.php  then it stop with a blank
page and
the "?webadmin=webadmin=some_cache_id..." won't show anymore , unless I type
it myself? And I just need to type something like "?webadmin=' it will auto
show out those cache in the past and I select one of them or just simply
leave it "http://ServerPC/database.php?webAdmin=' , it will again display
the page that I expected successfully.I would like to know what is my
problems ?

Thanks


--- End Message ---
--- Begin Message ---
Does anyone know of a way to trap PHP errors and have them automatically
emailed to an email address? I am trying to do some remote testing on a
script but the problem it is it's server to server interaction so I
can't see what is going on! Any ideas?
 
Matt Babineau
MCWD / CCFD
-----------------------------------------
e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
 
--- End Message ---
--- Begin Message ---
Have a look at this dinky little function...

http://php.weblogs.com/php_error_handler_mail

Matt

"Matt Babineau" <[EMAIL PROTECTED]> wrote in message
003301c227b2$fb09ca60$0100a8c0@developerx">news:003301c227b2$fb09ca60$0100a8c0@developerx...
> Does anyone know of a way to trap PHP errors and have them automatically
> emailed to an email address? I am trying to do some remote testing on a
> script but the problem it is it's server to server interaction so I
> can't see what is going on! Any ideas?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>


--- End Message ---
--- Begin Message ---
http://php.net/set_error_handler

On Tue, 9 Jul 2002, Matt Babineau wrote:

> Does anyone know of a way to trap PHP errors and have them automatically
> emailed to an email address? I am trying to do some remote testing on a
> script but the problem it is it's server to server interaction so I
> can't see what is going on! Any ideas?
>
> Matt Babineau
> MCWD / CCFD
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>
>

--- End Message ---
--- Begin Message ---
OK This is a followon from my Browser thread... on [EMAIL PROTECTED]; 
[EMAIL PROTECTED]

I have switched the application to run from Apache, and the Browsers that were having 
trouble now seem (I think - will be doing more testing later) to have dissapeared.

So, is there a problem with IIS or PHP or IIS with PHP?

[ http://www.the-local-guide.com :: http://www.mcgarvie.net ]
--- End Message ---
--- Begin Message ---
Dear all
I had a folder which contain some pdf report, the name of the Report will be
:
xxx.xxx.20020702.pdf.

Here is what i want to do :
1. there will be a Form let user to submit the date of reports that he / she
wants to view.
2. the php will get the xxx.xxx from a mysql database and add the date at
the end of the string as the file name.
3. If the filename exist in that specific folder, then it will show a
hyperlink for each exist report, otherwise nothing will shows up!

I want to know how i can use php to detect if such file is exist in that
specific Folder?

--
Thx a lot!
Jack
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
RTFM!!!

bool file_exists( string filename) - returns TRUE if
the file specified by filename exists; FALSE
otherwise. 


--- Jack <[EMAIL PROTECTED]> wrote:
> Dear all
> I had a folder which contain some pdf report, the
> name of the Report will be
> :
> xxx.xxx.20020702.pdf.
> 
> Here is what i want to do :
> 1. there will be a Form let user to submit the date
> of reports that he / she
> wants to view.
> 2. the php will get the xxx.xxx from a mysql
> database and add the date at
> the end of the string as the file name.
> 3. If the filename exist in that specific folder,
> then it will show a
> hyperlink for each exist report, otherwise nothing
> will shows up!
> 
> I want to know how i can use php to detect if such
> file is exist in that
> specific Folder?
> 
> --
> Thx a lot!
> Jack
> [EMAIL PROTECTED]
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
--- End Message ---

Reply via email to