Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2003, 09:44 AM
Authorized User
 
Join Date: Jul 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dealing with local files

I have a web site on a Shared Webhosting platform and use the POST method for uploading a .csv file from from my local "c:\data\... " type folder to the web.

However, after uploading is successful I want to be able to add a record with the word "LOADED" back into the local file from within the php program.

Anybody know how this could be done?


__________________
Cheers Ray
 
Old July 21st, 2003, 03:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No. PHP is a server-side language -- it can't modify ANY files (save for cookies) on the client machine.

What you ask is a tall order, by the way -- can you imagine the security risks if a website could modify files on a user's computer? Isn't that what javascript and activeX viruses do???


Take care,

Nik
http://www.bigaction.org/
 
Old July 23rd, 2003, 11:22 AM
Authorized User
 
Join Date: Jul 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Nik, thats what I thought.

Perhaps I could create a cookie on the local PC which would indicate that the upoload has taken place, then access this locally.

Any idea how to access a cookie locally

Ray
 
Old July 23rd, 2003, 04:37 PM
Authorized User
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to natmaster Send a message via AIM to natmaster Send a message via MSN to natmaster
Default

do you mean like you set the cookie server-side and then the pc it was set on looks at the cookie, or do you want to look at the cookie server-side again?

----------------------------
http://aeonofdarkness.com
 
Old July 24th, 2003, 03:50 AM
Authorized User
 
Join Date: Jul 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your first option - set cookie from server-side onto local PC., then lookup cookie, hopefully using VBA in MS Access.

Cheers Ray






Similar Threads
Thread Thread Starter Forum Replies Last Post
help...copy files from sharepoint to local folder pinkflakes .NET Web Services 0 November 3rd, 2007 10:02 PM
Copy Files and Folders on Local Network rupakroy5 VB.NET 2002/2003 Basics 1 May 22nd, 2006 10:09 AM
How to open downloaded files from local machine kumarop Pro JSP 0 April 1st, 2006 08:52 AM
Retrieve data from local Access files aslyon ADO.NET 2 October 31st, 2003 08:52 PM
How to overwrite local files? bramtram VB How-To 4 August 18th, 2003 08:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.