php-windows Digest 8 Mar 2001 00:34:39 -0000 Issue 479

Topics (messages 5856 through 5866):

Re: Win32 PHP, Apache Web Server, and Mail
        5856 by: Fernando Madruga

NT4+APACHE+PHP+DB2(IBM)
        5857 by: Charles Brown

PHP4, SESSION handler on javascript
        5858 by: Glenn

Re: $PHP_SELF not producing the goods.
        5859 by: Jess Perez

Re: MySQL version details
        5860 by: Jess Perez
        5861 by: Daniel Beulshausen

Re: [PHP] Problem using readfile
        5862 by: Matias Pelenur

sending the submit to a new window
        5863 by: Hugo Alexandre A. S. Dias
        5864 by: Matias Pelenur

CGI trouble
        5865 by: Randall Barber

Slash stripping problem
        5866 by: Randall Barber

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]


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


Can you 'ping idris.curtin.edu.au' from your windows machine? Is that
machine the SMTP server? If you use Microsoft Exchange for your email
server, is it configured to allow SMTP access? (Outlook and Windows
Messaging DON'T access an Exchange mail server by SMTP/POP3 but instead use
a proprietary protocol). You can try to use the IP address of your mail
server instead of the name or, if your mail server machine is windows based
(NT/2K/Me/9x), then just use the name without any domain specification as
in: mail_server.
We use an Exchange server to handle our email and don't use DNS so the
following lines work for me:

  [mail function]
  SMTP          = mail_cbr               ;for win32 only
  sendmail_from = [EMAIL PROTECTED]  ;for win32 only

HTH,
  Madruga, [EMAIL PROTECTED]

-----Original Message-----
From: Adrian Gould [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 7 de Março de 2001 8:01
To: '[EMAIL PROTECTED]'
Subject: Win32 PHP, Apache Web Server, and Mail


Hi all

I am new to PHP and am having real hassles with my Apache / Windows set up
and PHP when i want to send mail.

I get a "server misconfiguration" error from Apache, but I cannot see where
the error is, or if it is in fact PHP which is misconfigured.

I have the settings in PHP.INI

[mail function]
SMTP                    =       idris.curtin.edu.au                     ;for
win32 only
sendmail_from   =       [EMAIL PROTECTED]   ;for win32 only
;sendmail_path  =                                               ;for unix
only, may supply arguments as well (default is 'sendmail -t -i')

I'm lost

any ideas anyone?

Ady


 




I want to connect to db2 use ODBC,But get a error:SQLSTATE 57017,means a
diffrent codepage setting,my db2's codepage=437,But how can i set codepage
in php?or in apache?






Hallo!
Can anybody help me with this. PHP don't rewrite my java links so my
session dont works. the javascript look like this, 
     <SCRIPT LANGUAGE=javascript>
        <!--
            location.href = 'main.php';
        //-->
        </SCRIPT>

Best regards.
//Glenn

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com





That is correct you need to use the php.exe in the sapi directory because it
is compiled with "force redirect paramater".

Thanks people.

Regards Jess


""Jess Perez"" <[EMAIL PROTECTED]> wrote in message
97r145$nc9$[EMAIL PROTECTED]">news:97r145$nc9$[EMAIL PROTECTED]...
Hi,
I am using
PHP4.0.4pl1 in cgi mode
Apache 1.3.14
WIN2000


I point my browser at www.domain.com/phpinfo.php  and the $PHP_SELF variable
to contains "/php/php.exe/phpinfo.php" instead of just "phpinfo.php".

Anyone know what is causing this and how to correct it?  The manual says it
is supposed to contain only "phpinfo.php"


--
Regards
Jess Perez








phpinfo();



""James Duncan"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does anyone know the PHP command that returns information regarding the
MySQL server, it's status, version number, etc? I've seen it mentioned in
the past but I can't find a reference to it in the PHP documentation.

Thanks

James



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]







At 21:11 07.03.2001 +1000, Jess Perez wrote:
>phpinfo();

just shows the client version...
try "SHOW VARIABLES" as query or execute mysqld -V
http://www.mysql.com/doc/S/H/SHOW_VARIABLES.html

daniel



>""James Duncan"" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>Does anyone know the PHP command that returns information regarding the
>MySQL server, it's status, version number, etc? I've seen it mentioned in
>the past but I can't find a reference to it in the PHP documentation.
>
>Thanks
>
>James
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de





Well, I tried using different code (from a newer message by Mukul
Sabharwal):

header("Content-length: $size");
header("Content-type: $type");

$fp = fopen($actualfile, 'rb') or print('Could not open file!');
$read = fread($fp, $size) or print('Could not read file');
print($read);

and this seems to work better, that is, files are download correctly.
However, there is a strange behavior, at least with IE5, which I don't know
if it's a bug on IE5 or not... When I click on a file, if I choose "save to
disk"  it works fine, but if I choose "Open from current location"  it
doesn't work. Anyone have any ideas on this?

--Matias


""Matias Pelenur"" <[EMAIL PROTECTED]> wrote in message
news:983od5$oc8$[EMAIL PROTECTED]...
> Hi,
> I'm trying to use readfile to send a file to the browser. The code I'm
using
> is:
>
> header("Content-length: $size");
> header("Content-type: $type");
> header("Content-disposition: attachment;filename=$filename");
> readfile($filename);
>
> It works fine for very small files, but for larger files it seems to send
> only the first 600 bytes and then hang... I tried with both IE and
Netscape
> and
> have the same problem.
>
> I'm using Apache 1.3.14 and PHP/4.0.4pl1 on Win2000 (using the PHP module
> for Apache)
>
> Any hints appreciated. Thanks!
> --Matias
>
> If you reply via email, please remove the -nospam- from the address.
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Hi

I have 2 pages. One of the has a form witch is a question and a <a
onclick=submit()>

When i click in the link, it should open a new window with the second page,
and then sending the submit of the form to the new window.

How can i do this?


---------------------------------------
Hugo Alexandre Dias
Web-Programmer
MNI - Médicos na Internet
[EMAIL PROTECTED]
www.mni.pt
www.saudenainternet.pt
www.listamedica.com
MNI - Um mundo de médicos
------------------------------------------





Try adding a "target=" field in your form tag. For example,
<FORM action="/blah.php" method=POST target="_new">

will open a new window and submit the form there. You could also, I think,
create a window first using window.open('','mywindow,'params') and then use
form.submit() to submit the form to the window, using target='mywindow'.

Hope this helps,
Matias

""Hugo Alexandre A. S. Dias"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> I have 2 pages. One of the has a form witch is a question and a <a
> onclick=submit()>
>
> When i click in the link, it should open a new window with the second
page,
> and then sending the submit of the form to the new window.
>
> How can i do this?
>
>
> ---------------------------------------
> Hugo Alexandre Dias
> Web-Programmer
> MNI - Médicos na Internet
> [EMAIL PROTECTED]
> www.mni.pt
> www.saudenainternet.pt
> www.listamedica.com
> MNI - Um mundo de médicos
> ------------------------------------------
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






I just finished writing a named-pipe client server for a project not web related.  I 
haven't written a binary CGI for a long time and simply confused by one thing:

The string submitted by a POST is given as argument 1 on the commandline of the 
program.  Is that right?
Given: a string that would look like this if it was GET,    
myCGIprogram.exe?myName=John+Doe

Using POST I get this commandline:

myCGIproject myName=John+Doe

Is that right?
Thanks in advance
RDB




I have a <textarea ...> </textarea> tag in a form.

The user inputs the following (and submits):

Don't! I just used an apostraphe.

The php script creates a pdf and prints the following to the pdf page:
pdf_show_xy($pdf, "$str", 10, 10);

Don\'t! I just used an apostraphe.

I've tried stripcslash() and stripslashes()... 
Niether does the trick... What am I missing?

Thanks in advance,
RDB


Reply via email to