Beginning PHPBeginning-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
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.
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???
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?