Delete Temporary Internet Files

This is a discussion on Delete Temporary Internet Files within the PHP General forums, part of the PHP Programming Forums category; I am trying to use PHP to delete temporary internet files in IE6. I would also like to access other &...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-11-2003
Joe Mack
 
Posts: n/a
Default Delete Temporary Internet Files

I am trying to use PHP to delete temporary internet files in IE6. I would
also like to access other "Internet Options" functions. Any assistance
would be appreciated.

Thanks.

Joe
Reply With Quote
  #2 (permalink)  
Old 11-11-2003
Marek Kilimajer
 
Posts: n/a
Default Re: [PHP] Delete Temporary Internet Files

Joe Mack wrote:

> I am trying to use PHP to delete temporary internet files in IE6. I would
> also like to access other "Internet Options" functions. Any assistance
> would be appreciated.


PHP is server side, it cannot mess with browser this way. As on another
list.
Reply With Quote
  #3 (permalink)  
Old 11-11-2003
Kim Steinhaug
 
Posts: n/a
Default Re: Delete Temporary Internet Files

Hmm..

This shouldnt be a problem from what I know. Though it woldt be a perfect
system,

all you would need to do, is have a script that does :

1: Read the IE cache directory and puts all the entries into an array (all
the files),
2: unlink all the files in the array.

This would in my opinion work nice, except that alot of the files you cant
delete
at a given time, just try doing it manually. But itll clean the most. I
wouldnt recommend
this way of doing it, but it should work.

As for other files on the windows system, just be sure that hey arnt write
protected, as
PHP cant unlink / delete them then.

Kim

"Joe Mack" <joe.mack@g-k-m.com> wrote in message
news:20031111144724.59745.qmail@pb1.pair.com...
> I am trying to use PHP to delete temporary internet files in IE6. I would
> also like to access other "Internet Options" functions. Any assistance
> would be appreciated.
>
> Thanks.
>
> Joe

Reply With Quote
  #4 (permalink)  
Old 11-12-2003
Mark
 
Posts: n/a
Default Re: [PHP] Re: Delete Temporary Internet Files


--- Kim Steinhaug <kim@steinhaug.com> wrote:
> Hmm..
>
> This shouldnt be a problem from what I know. Though it woldt be a
> perfect
> system,
>
> all you would need to do, is have a script that does :
>
> 1: Read the IE cache directory and puts all the entries into an
> array (all
> the files),


How do you propose to read the files from the client? You can read
any files you like (and have permission to) on the server, but you
can't read the client files with PHP.

> 2: unlink all the files in the array.
>


Just as you can't read files on a client, you can't unlink a file on
a client with PHP either. unlink() works on files on the server, not
a client.

> This would in my opinion work nice, except that alot of the files
> you cant
> delete
> at a given time, just try doing it manually. But itll clean the
> most. I
> wouldnt recommend
> this way of doing it, but it should work.
>
> As for other files on the windows system, just be sure that hey
> arnt write
> protected, as
> PHP cant unlink / delete them then.
>
> Kim
>
> "Joe Mack" <joe.mack@g-k-m.com> wrote in message
> news:20031111144724.59745.qmail@pb1.pair.com...
> > I am trying to use PHP to delete temporary internet files in IE6.

> I would
> > also like to access other "Internet Options" functions. Any

> assistance
> > would be appreciated.
> >
> > Thanks.
> >
> > Joe

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



=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing.
***************************************

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
Reply With Quote
  #5 (permalink)  
Old 11-12-2003
Kim Steinhaug
 
Posts: n/a
Default Re: [PHP] Re: Delete Temporary Internet Files

The original question didnt consert the OS, or where the user was at.
Concerning cleaning the IE directory I would assume that he's installed
PHP and IIS / Apache on his local machine.

Using a webpage online on the internet to fix your local machine doesnt
sound logical to me, therefore I assume local innstallation on local
machine.

And when your on your local machine there are no problems accessing your
files,
even if they belong to the windows environment. Overwriting them can be
problematic at times, since processed may use the file.

Kim

"Mark" <mark_weinstock@yahoo.com> wrote in message
news:20031112150950.18342.qmail@web41207.mail.yaho o.com...
>
> --- Kim Steinhaug <kim@steinhaug.com> wrote:
> > Hmm..
> >
> > This shouldnt be a problem from what I know. Though it woldt be a
> > perfect
> > system,
> >
> > all you would need to do, is have a script that does :
> >
> > 1: Read the IE cache directory and puts all the entries into an
> > array (all
> > the files),

>
> How do you propose to read the files from the client? You can read
> any files you like (and have permission to) on the server, but you
> can't read the client files with PHP.
>
> > 2: unlink all the files in the array.
> >

>
> Just as you can't read files on a client, you can't unlink a file on
> a client with PHP either. unlink() works on files on the server, not
> a client.
>
> > This would in my opinion work nice, except that alot of the files
> > you cant
> > delete
> > at a given time, just try doing it manually. But itll clean the
> > most. I
> > wouldnt recommend
> > this way of doing it, but it should work.
> >
> > As for other files on the windows system, just be sure that hey
> > arnt write
> > protected, as
> > PHP cant unlink / delete them then.
> >
> > Kim
> >
> > "Joe Mack" <joe.mack@g-k-m.com> wrote in message
> > news:20031111144724.59745.qmail@pb1.pair.com...
> > > I am trying to use PHP to delete temporary internet files in IE6.

> > I would
> > > also like to access other "Internet Options" functions. Any

> > assistance
> > > would be appreciated.
> > >
> > > Thanks.
> > >
> > > Joe

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

>
>
> =====
> Mark Weinstock
> mark_weinstock@yahoo.com
> ***************************************
> You can't demand something as a "right" unless you are willing to fight to

death to defend everyone else's right to the same thing.
> ***************************************
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree

Reply With Quote
  #6 (permalink)  
Old 11-12-2003
Mark
 
Posts: n/a
Default Re: [PHP] Re: Delete Temporary Internet Files


--- Kim Steinhaug <kim@steinhaug.com> wrote:
> The original question didnt consert the OS, or where the user was
> at.
> Concerning cleaning the IE directory I would assume that he's
> installed
> PHP and IIS / Apache on his local machine.
>
> Using a webpage online on the internet to fix your local machine
> doesnt
> sound logical to me, therefore I assume local innstallation on
> local
> machine.
>
> And when your on your local machine there are no problems accessing
> your
> files,
> even if they belong to the windows environment. Overwriting them
> can be
> problematic at times, since processed may use the file.


But why in the world would you want to edit other "Internet Options"
for a PC that is acting as a web server? I stand by my assumption
that the OP wanted to change the client machine's settings (and
delete the client temp files), and not the settings on the server. Of
course, I could be wrong. It happens daily.


=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing.
***************************************

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
Reply With Quote
  #7 (permalink)  
Old 11-12-2003
Kim Steinhaug
 
Posts: n/a
Default Re: [PHP] Re: Delete Temporary Internet Files

hehe,

To me it I could say the same, why on earth would you want a script to alter
the internet options when its up under Tools/Internet Options anyways?

The sane sollution would be that some people have strange ideas, some people
like to do things their own way. I myself often create PHP scripts that does
alot
of filework on my PC, since I know PHP and dont know Visual Basic. Therefore
PHP is the "naturural" choice of programming language for me, and therefor
probably for alot of other PHP people.

The question regarding the Internet Options does boggle me aswell, :) I feel
that me
and U arguing about this is plain silly, until we get some more input from
the OP
comes with some more "feedback" on excactly what he wanted, :) On the other
hand,
if (And I think not), that the internet options (And I have to believe that
we are talking
Internet Explorer, based on the fact he earlier mentioned cache files, could
be Opera
however) are controlled from an .INI file, this also should be no problem on
the
windows machine. But I think we have long passed the topic here.

Kim

"Mark" <mark_weinstock@yahoo.com> wrote in message
news:20031112165218.49257.qmail@web41207.mail.yaho o.com...
>
> --- Kim Steinhaug <kim@steinhaug.com> wrote:
> > The original question didnt consert the OS, or where the user was
> > at.
> > Concerning cleaning the IE directory I would assume that he's
> > installed
> > PHP and IIS / Apache on his local machine.
> >
> > Using a webpage online on the internet to fix your local machine
> > doesnt
> > sound logical to me, therefore I assume local innstallation on
> > local
> > machine.
> >
> > And when your on your local machine there are no problems accessing
> > your
> > files,
> > even if they belong to the windows environment. Overwriting them
> > can be
> > problematic at times, since processed may use the file.

>
> But why in the world would you want to edit other "Internet Options"
> for a PC that is acting as a web server? I stand by my assumption
> that the OP wanted to change the client machine's settings (and
> delete the client temp files), and not the settings on the server. Of
> course, I could be wrong. It happens daily.
>
>
> =====
> Mark Weinstock
> mark_weinstock@yahoo.com
> ***************************************
> You can't demand something as a "right" unless you are willing to fight to

death to defend everyone else's right to the same thing.
> ***************************************
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0