php-windows Digest 31 Jan 2005 17:13:52 -0000 Issue 2559

Topics (messages 25488 through 25491):

Re: From Browser to Print - ?????
        25488 by: MikeA

Re: NT username detectable?
        25489 by: Manuel Lemos

Remote Procedure Call Failed
        25490 by: Alex Gemmell

Date Help Needed
        25491 by: Ron.Herhuth.tatumpartners.com

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 still cannot get this to work.  Here is my style settings:

echo "<HTML><HEAD><TITLE> </TITLE>";
echo "<style TYPE='text/css'>";
echo " ";
echo "@media screen";
echo " { ";
echo " ";
echo " } ";
echo " ";
echo "@media print";
echo " { ";
echo "H6 { page-break-after:always; }";
echo " } ";
echo " ";
echo "@media screen,print";
echo " { ";
echo "H6 { page-break-after: always; }";
echo " } ";
echo " ";
echo "</style>";


And here is the setting in the report:

echo "<H6> </H6>";

Do you see anything that stands out as incorrect?

Any ideas, help, suggestions, prayers are appreciated. Need to have this done 
in 2 days.

Mike

"Carsten Gehling" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
You can define different style sheets based on the media that the HTML page
is rendered on:

<link rel="stylesheet" type="text/css" media="screen"
href="styles_screen.css">
<link rel="stylesheet" type="text/css" media="print"
href="styles_print.css">

Now use CSS to position your form feed as you like.

Read more here:
http://www.w3.org/TR/REC-CSS2/media.html

- Carsten

> -----Oprindelig meddelelse-----
> Fra: news [mailto:[EMAIL PROTECTED] vegne af MikeA
> Sendt: 28. januar 2005 04:24
> Til: [email protected]
> Emne: [PHP-WIN] From Browser to Print - ?????
>
>
> I have some PHP scripts that put output to the browser. I can
> then print them. However, I want to
> have the pages form feed at specific places so the printouts look
> nice.  How can I do that?
>
> Thanks.
>
> Mike
>
> --
> 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 ---
Hello,

on 01/30/2005 09:16 PM winnesoup said the following:
Manuel states it right. Why authenticate AGAIN if you are allready
authenticated by our beloved Microsoft network ? (NTLM).

That is not exactly what I am saying. NTLM is the name of an authentication method used in many protocols including HTTP, SMTP, POP3. It is most common naturally under Windows, but you can also use it with non-Windows machines.


What I am trying to tell you is that even when you are already logged on Windows, when you access to an HTTP server that requires NTLM authentication, there is an exchange of information between the server and client so your password is never sent over the network unencoded, even less in plain text.

Internet Explorer (or Mozilla or Firefox) just uses information already obtained during the Windows logon to respond to the NTLM authentication HTTP request to the same Windows domain without asking your the same password again.


now try to pass the variables needed to PHP. Can be done by hidden field in
a form. Use javascript to submit the form onload
==> this is going to be my next adventure on this level........

I don't know what you are suggesting but under PHP you just need to call GetEnv("LOGON_USER") to get the user name of a successfully authenticated user.



But it all comes down to the following:
- if you are using apache webserver in windows network there are NO working
examples to be found on the internet for single signon (at least, not that I
found).

You just need to use mod_ntlm with Apache. The Apache does not even need to be running on Windows. You just need to configure mod_ntlm to let it know the Windows domain controllers for the domain of the users that you want to authenticate.


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

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

 

I am building a login system for my website but I keep experiencing an error
on a specific PHP page that I have never encountered before and it seems
worryingly low-level!  It says:

 

"The remote procedure call failed."

 

And that's it!  Nothing else is on the page.  Sometimes I get a slightly
different (but equally scary) error:

 

"PHP has encountered a Stack overflow"

 

I've googled these errors and some people have posted them but I found no
solution.  I've searched the PHP bug database but found nothing.  Has anyone
else encountered this and is there a solution?

 

FYI:

Other (more simple) PHP scripts work fine (so my PHP installation seems to
be ok) and this error only started happening last week.

I haven't changed this PHP/MySQL installation in months.

I'm testing my script on a (Windows) server in my office on which this error
occurs.  When I upload it to a second remote (Linux) test server it works
fine!

Office Server: Windows 2000 Server + IIS 5.1, PHP Version 4.3.9 (Zend Engine
v1.3.0), MySQL 3.23.49.

Remote Server: Linux + Apache, PHP Version 4.1.2 (Zend Engine v1.1.1), MySQL
3.23.39.

 

Any ideas gratefully received!  Thanks,

 

Alex


--- End Message ---
--- Begin Message ---
I am trying to construct a function where I feed it a number such as "x"
it returns the date "x" days ago.

I tried checking out several resources that give you the difference
between two dates, but not exactly what I was looking for.  I was just
hoping someone had a little algorithm in their bag of tricks.

Thanks,
Ron






--- End Message ---

Reply via email to