Jump to content

Recommended Posts

Well my question is based more on the fact of if you can open and view the php file as if you were in say dreamweaver my objective is to have a way to have administrators edit the site from logging in so is there a violation that fopen will not open the php document

Link to comment
https://forums.phpfreaks.com/topic/145938-question-about-fopen/#findComment-766363
Share on other sites

I would think that if another program is using it it should "lock" the file or set it to readonly. But I do not know how dreamweaver works.

 

But why did you not state that in the first place?

 

You need to be alot more clearer on exactly what you want. Even your 2nd response is vague. Please be more elaborate and descriptive. I could write solutions, but I do not want to write 50 when you only need one. Right now I am guess/assuming what you are asking.

Link to comment
https://forums.phpfreaks.com/topic/145938-question-about-fopen/#findComment-766389
Share on other sites

I would think that if another program is using it it should "lock" the file or set it to readonly. But I do not know how dreamweaver works.

 

But why did you not state that in the first place?

 

You need to be alot more clearer on exactly what you want. Even your 2nd response is vague. Please be more elaborate and descriptive. I could write solutions, but I do not want to write 50 when you only need one. Right now I am guess/assuming what you are asking.

 

I use Dreamweaver and it doesn't lock files. However if you make changes to it from another program, it will detect it once you go back to DW.

 

Other than that, i still don't know what the OP wants to do...

 

 

Link to comment
https://forums.phpfreaks.com/topic/145938-question-about-fopen/#findComment-766393
Share on other sites

I want to be able to edit hard code on my website editing page files from the page so i can add blocks of code anywhere aka "on the fly" say at work with nothing else to do then be able to browse to the page and hit refresh and see the changes

 

Yes and no. You can do this with PHP but the file has to be put into a textarea on the webpage and you would have to manually copy then paste back then click "Save".

 

If anyone else accesses this file while you are working on it, their's or your changes will be overwritten. Perhaps you are looking for a Subversion server (which you can setup for free on any windows machine and give access to anyone with username/password authentication).

 

This keeps a log of any/all files changed and lets you know if a file was changed while you were working on it/allows you to lock that file you are working on.

Link to comment
https://forums.phpfreaks.com/topic/145938-question-about-fopen/#findComment-766526
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.