php-windows Digest 29 Nov 2001 14:08:15 -0000 Issue 877

Topics (messages 10646 through 10652):

Re: Recommendations for websites and books
        10646 by: Daniel Parsons
        10648 by: Robin Bolton

Re: Why i can't write to remote file ?
        10647 by: Gu Weidong-a1923c

Caching Secure Pages
        10649 by: Matthew Walden
        10650 by: Ross Fleming

Re: Caching
        10651 by: Matthew Walden

Serious list
        10652 by: Webarts

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

Todd Williamsen wrote:
> Any recommendations for websites with tutorials, scripts etc or books?

I cut my teeth on _PHP_and_MySQL_Web_Development by Welling and Thomson.
It was an excellent book to learn with and has a bunch of good 'HowTo'
chapters with examples.

I have been recommended
_Professional_PHP_Programming_(Programmer_to_Programmer)_ by Sascha
Schumann, Harish Rawat, Jesus M. Castagnetto, Deepak T. Veliath.
Although I haven't read it myself, it seems to have some more advanced
stuff in it dealing with some of the PHP extensions.

Also the _PHP_Developer's_Cookbook_ is being published next month and
should be worth a look but may well turn out to be a book that doesn't
cover much beyond the other two.

Cheers,
Daniel

--- End Message ---
--- Begin Message ---
I used Core PHP Programming (the first PHP3 only edition), and found it
be a pretty good starting point.

There's now a second edition which covers PHP4.

The author's page on the book is located at:
http://www.leonatkinson.com/home/corephp.html

The PHP.net site has a list of published PHP books:
http://download.php.net/books.php

If you're willing to learn from websites there's a veritable cornucopia
of sites available:
http://dmoz.org/Computers/Programming/Languages/PHP/Tutorials/
http://www.phpbuilder.com
http://www.zend.com
http://www.devshed.com/Server_Side/PHP/
http://hotwired.lycos.com/webmonkey/
http://www.phpbeginner.com/
http://php-resource.de/
http://www.phphelp.com
http://www.justphukit.com/php/php-tutorials-1.php

... to name a few. If that's not enough just do a search for 'php
tutorial' on Google.


> -----Original Message-----
> From: Todd Williamsen [mailto:[EMAIL PROTECTED]]
> Sent: November 28, 2001 17:57
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Recommendations for websites and books
> 
> I just whipped through Julie Meloni's "PHP Fast and Easy" book which
was
> great for the intro to PHP, but I am hungry for more.  I usually need
by
> example and walk throughs to become profficient at development.  Now I
am
> ready for the next step..
> 
> Any recommendations for websites with tutorials, scripts etc or books?
> 
> I don't like using php.net, because its not a user friendly site if
you
> have
> very little background
> 
> 
> 
> --
> 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]


--- End Message ---
--- Begin Message ---
Anyone can answer the question? I also meet this error.

-----Original Message-----
From: m.aprea [mailto:[EMAIL PROTECTED]]
Sent: May 21, 2001 2:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Why i can't write to remote file ?




Darren wrote:

> > Hi Darren,
> >
> > i  have tried omitting http, so the line 11 becomes :
> >
> > $fp = fopen("c:/webshare/wwwwroot/examples/datafile.txt","w");
> >
> > Is does not still work, and when i run it i have the warning message:
> >
> > ------------------------------------------------------------------
> > Total cost of the neckties 90
> > Warning: fopen("c:/webshare/wwwwroot/examples/datafile.txt","w") - No such
> > file or directory in c:\webshare\wwwroot\examples\calculate.php on line 11
> >
> > Unable to open remote file for writing.
> > ------------------------------------------------------------------
> >
> >
> > I don't understand where is the error ?
> >
> > Thank you in advance
> >
> >
>
> ah now I see. Try removing the extra W from the path making wwwwroot to
> wwwroot
>
> Best of luck
>
> Darren
>
> --
> 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]

Hi Darren,

now with the correction you suggested it works fine, but the version with the
URL does't  yet work fine .
I have the same error that i just said to you:

Warning: fopen("http://localhost/examples/datafile.txt","w";) - No error
in c:\webshare\wwwroot\examples\calculate.php on line 11

How do i get right access on the directory  http://localhost/examples   ?
What must i do into php.ini file or into http.conf of Apache ?
I checked that into the php.ini file i have : allow_url_fopen=On.
Thank you in advance.



-- 
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]
--- End Message ---
--- Begin Message ---
I am having problems using sessions and caching.  I have an application
that requires you to log in to be able to access certain pages.  The
pages that require a login include a file which checks the session data
and ensures that you have a valid session etc.  My problem is that if
the user logs out, and then goes back to these secure pages they still
display as if the user was logged in.  I know how to stop them caching
with headers, but the problem is that if I do this, then the user cannot
use their back button because the browser displays the following message
:

----------------------
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available.
As a security precaution, Internet Explorer does not automatically
resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh
button.
----------------------

So in summary I need a way to stop pages from caching but still allow
the user to use their "back" button to go back to them as long as they
are logged in.  I have seen this done and it is possible some how....

Any help would be greatly appreciated.

--- End Message ---
--- Begin Message ---
How about caching them for only a short period? (such as 15 minutes or
whatever)  I imagine that is how the majority of website's do this.

Ross

-----Original Message-----
From: Matthew Walden [mailto:[EMAIL PROTECTED]] 
Sent: 29 November 2001 10:26
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Caching Secure Pages


I am having problems using sessions and caching.  I have an 
application that requires you to log in to be able to access 
certain pages.  The pages that require a login include a file 
which checks the session data and ensures that you have a valid 
session etc.  My problem is that if the user logs out, and then 
goes back to these secure pages they still display as if the 
user was logged in.  I know how to stop them caching with 
headers, but the problem is that if I do this, then the user 
cannot use their back button because the browser displays the 
following message
:

----------------------
Warning: Page has Expired The page you requested was created 
using information you submitted in a form. This page is no 
longer available. As a security precaution, Internet Explorer 
does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the 
Refresh button.
----------------------

So in summary I need a way to stop pages from caching but still 
allow the user to use their "back" button to go back to them as 
long as they are logged in.  I have seen this done and it is 
possible some how....

Any help would be greatly appreciated.


-- 
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]



--- End Message ---
--- Begin Message ---
I put these lines in to stop caching complely :

header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");

But then the back buttons do not work.

To allow the back buttons to work, I just use this :

session_cache_limiter('public');

But then I have problems with them appearing to be logged on even though
they're not.

Jeroen Ten Berge wrote:

> I've seen an answer on this previously, but I lost that mail...
> What do you put in the header for proxies and browsers NOT to cache the
> current page's ?
>
> Thx in advance,
> Jeroen.

--- End Message ---
--- Begin Message ---
I hate SPAM...

this is a list for people that have some problems with PHP and not for SPAM and any 
other SHIT..

Incastrix
--- End Message ---

Reply via email to