php-windows Digest 25 Feb 2003 17:24:01 -0000 Issue 1605

Topics (messages 18692 through 18700):

Re: Unexplained CGI error
        18692 by: Michael Power
        18693 by: Michael Power

Re: why is this mail code not working on a windows server?
        18694 by: Sven Schnitzke

Windows vs. linux
        18695 by: Olafsson
        18696 by: Brian McGarvie
        18697 by: Michael Power

Re: Configuration Trouble
        18698 by: Cam Dunstan

File Upload Help Needed
        18699 by: Jeremy Whitlock
        18700 by: Chris Kranz

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 ---
No this is a little more complex than that...  The scripting works fine then
randomly you'll get the CGI errors.

I find I get them when executing a script which echo's out frames.  Each
frame is populated with another PHP script and when executed you end up with
the browser window framed correctly then two panes each with CGI error
pages.  Right click in each frame and refresh and the page loads correctly
(so it defiantly exists), although clicking the main 'Refresh' button or
Ctrl+F5 just returns you to the CGI errors.

Another point is when you refresh a parent window from a new window the
parent window will randomly get the CGI error page, again if you right click
and refresh it loads correctly...  Move to a remote machine and 2K has the
same problem.  Go to an XP machine and everything is fine!

Seems like Christoph Christ knew something about this...  Lets just hope
4.3.1 for windows is fixed...

Cheers
Mike

> "Anthony"
> You'll get that error under IIS if you try to view a file that doesn't
> exist.  IIS tries to send the file to the PHP engine, but since there is
no
> file, you get the message you posted.  Check your form and make sure that
> the action is set yo the correct page and that it is resolved correctly.
> You'll most likely find your problem there.
>
> - Anthony
>



--- End Message ---
--- Begin Message ---
At last found some info...

http://bugs.php.net/bug.php?id=9852

Looks like I might have to move to ASP.NET after all unless the PHP boys
pull their fingers out...

:(

Cheers
Mike

> "Mary Sweeney"
> I had a very nice little application I was working on. I selected options
> from an html page and then after selection I called a PHP script.  It
worked
> just fine, but now when I use the same code unchanged, it gives me the
error
> you see below and nothing more. This has happened to me twice before. What
> gives?  There must be something I'm doing, but I can't figure what it is.
I
> can't be the only person who's gotten this.  Please help!
>
> Thanks,
>
> CGI Error
> The specified CGI application misbehaved by not returning a complete set
of
> HTTP headers. The headers it did return are:
>
>



--- End Message ---
--- Begin Message ---
Hi,
specify "SMTP" as just the part after the @ in the mail address, e.g vt4.net
in your case. Then it should work.
Cheers,
-- 
Sven 

> -----Ursprüngliche Nachricht-----
> Von:  Per Christian [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Samstag, 22. Februar 2003 14:59
> An:   [EMAIL PROTECTED]
> Betreff:      [PHP-WIN] Re: why is this mail code not working on a windows server?
> 
> It does not look like you have set the SMTP-port in the code you use
> below...
> Try to set the port too and see if that helps
> 
> Best Regards,
> Per Christian
> 
> "Cathy" <[EMAIL PROTECTED]> skrev i melding
> news:[EMAIL PROTECTED]
> > Hi,
> > I'm getting rather desperate about this one.
> >
> > Code below is working fine on one server: Apache 1.3.26 /PHP 4.1.2/Linux.
> > On another server (Apache 1.3.24/PHP 4.3.1/Windows 2000) I get keeping
> this
> > error:
> >
> > Failed to connect to mailserver at "smtp.vt4.net" port 25, verify your
> > "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
> > c:\oracle\ora91\apache\apache\htdocs\templateprobeersel\tmp47v15anqr5.php
> on
> > line 16
> >
> > CODE:
> >
> > $headers.="From:[EMAIL PROTECTED]";
> > ini_set("SMTP", "smtp.vt4.net");
> > ini_set("sendmail_from","[EMAIL PROTECTED]");
> >
> > mail("[EMAIL PROTECTED]", "test php", "Line 1",$headers);
> >
> > Can anyone help me?
> > Thx,
> > Cathy
> >
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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

I have been developing a php on Windows XP and using IIS5.1.  Know I have to
transfare the pages on a Linux server that runs the pages on Apache.

Does anyone know about some information that I can read about how I can
transfer between Win and Linux??


oli



--- End Message ---
--- Begin Message ---
Generally there will be little to do except change credentials for DB etc,
only thing that will possibly be affected is paths to included files, your
depolyment server is running php in safe_mode then you will need to use
full-path's to the files.

Other than that it 'should' simply be a case of uploading and go...

"Olafsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> I have been developing a php on Windows XP and using IIS5.1.  Know I have
to
> transfare the pages on a Linux server that runs the pages on Apache.
>
> Does anyone know about some information that I can read about how I can
> transfer between Win and Linux??
>
>
> oli
>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/03



--- End Message ---
--- Begin Message ---
In my experience the only things you really need to look out for are:
1) file functions requiring different path details (and associated access
permissions - CHMOD).
2) line breaks in files/output.
2) extensions/changes to PHP exe other than the default can be a pain if
you're not the administrator or happy with compiling your own Linux
services.

Other than that the code should port across unchanged...  Yeh right :)  The
only way to find out where your code falls over is to actually do it.

Cheers
Mike

> Hi
>
> I have been developing a php on Windows XP and using IIS5.1.  Know I have
to
> transfare the pages on a Linux server that runs the pages on Apache.
>
> Does anyone know about some information that I can read about how I can
> transfer between Win and Linux??
>
> oli



--- End Message ---
--- Begin Message ---
Andrew
must confess i haven`t looked at it yet, are you still having trouble
getting apache and php to work together?   If so, tell me more.

Cam



----- Original Message -----
From: andrew ngui <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 6:50 AM
Subject: Re: [PHP-WIN] Configuration Trouble


> Hi guys
>
> Did you manage to fix this for simpleserver? I'm stuck! Thanks!
>
> ------------------
> From: Cam Dunstan ([EMAIL PROTECTED])
> Date: 10/19/02
>
>
> Next message: Nino V: "[PHP-WIN] Re: +AFs-PHP-WIN+AF0- PHP Install"
> Previous message: Cam Dunstan: "Re: [PHP-WIN] IIS \ Apache and
> header(location: errors"
> In reply to: Max Graham: "[PHP-WIN] Configuration Trouble"
> Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Max,
>
>
> I too have tried to get SimpleServer to work without success - it is the
> cutest little server and would be great for adhoc work on other PCs.
Apache
> is the main game of course and I use it without drama all the time but
your
> mail has prompted me to dust off simpleserver again and have another go at
> it. If I have any luck I shall get back to you. In the meantime you might
> stick with Apache, despite the fact that is powerful and comprehensive it
is
>
> not a serious burden on your resources and config is pretty easy. Nine
> times out of ten PHP problems in Apache relate back to the lack of these
> critical lines in the httpd.conf file under ScriptAlias section ....
>
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
> Action application/x-httpd-php "/php/php.exe"
>
>
> These lines instruct Apache to EXECUTE files of type php (using php.exe)
> rather than serve them up like an HTML file or downloadable file.
>
>
> Check also that the servername is set correctly and that the document root
> is set correctly. Just below DocumentRoot is another "Directory" statement
> that must agree with the DocumentRoot setting.
>
>
> This runs Apache as CGI rather than as a module which for your purposes
will
>
> work just fine.
>
>
>
> Cheers CD
>
>
>
>
>
>
> ----- Original Message -----
> From: "Max Graham" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 20, 2002 6:40 AM
> Subject: [PHP-WIN] Configuration Trouble
>
>
>
> I took a look at Apache, IIS, PWS, etc., and figured they were more than
> what I needed; I only want a platform to test pages on before sending them
> to my website's server. So I went with AnalogX's SimpleServer. I know it
has
>
> CGI capability, and specifically PHP capability; it has a companion
utility
> called PHPConfig, which is a GUI interface for editing the PHP.ini file. I
> was wondering, if anyone out there also has AnalogX's SimpleServer, is
there
>
> something I'm missing? My website's structure is pretty basic: the
> index.html file is the main page loaded, giving a list of options, and the
> links go from there to the PHP files. When I click on any of them, it
brings
>
> up the file download requestor dialog. Any suggestions?
>
>
> Thanks in advance ...
>
>
>


--- End Message ---
--- Begin Message ---
PHP List,
                I'm new to PHP and I'd like to create a File Upload Page
for my users.  Can someone point me in the right direction about how to
get started or offer a script to learn from?  Thanks,
 
Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com 
 

--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/features.file-upload.php

Surprisingly enough, straight from the manual ;)

chris kranz
fatcuban.com



-----Original Message-----
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] 
Sent: 25 February 2003 17:13
To: PHP
Subject: [PHP-WIN] File Upload Help Needed


PHP List,
                I'm new to PHP and I'd like to create a File Upload Page
for my users.  Can someone point me in the right direction about how to
get started or offer a script to learn from?  Thanks,
 
Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com 
 



--- End Message ---

Reply via email to