Edgewall Software

Ticket #782 (closed enhancement: invalid)

Opened 4 years ago

Last modified 4 years ago

preview php files

Reported by: walterjwhite@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.7.1
Severity: normal Keywords:
Cc:

Description

preview php scripts in a repository

I run a subversion repository along with webdav on a web development server. The server is used by students to create websites that run html or php scripts. When accessing their files in the repository, php code is not run, only the text is displayed. I have php setup correctly, and it works fine in locations that do not have a subversion repository.

Can there be a feature added that copies the selected file(s) or directories to a temporary web-accessible location that can be viewed through normal http access, and after viewing, it will cleanup, by removing the copied files?

Walter

Attachments

Change History

Changed 4 years ago by Matthew Good <matt-good.net>

  • status changed from new to closed
  • resolution set to invalid

Well, this doesn't really seem like a Trac issue, since it's relevant to the operation of the Subversion Webdav access, not Trac. However, this is a feature, not a bug, since if Apache tried to render the PHP pages in your repository there would be no way to check out the source code, since attempting to access the page would give you the processed result. Attempting to set up a script that copied the requested file somewhere it would be rendered has a lot of problems since you'd need to know which files it includes as well.

My suggestion would be to set up a Subversion post-commit hook script that would automatically export the latest revision of the repository to a location accessible by your web server.

Changed 4 years ago by walterjwhite@…

  • status changed from closed to reopened
  • resolution invalid deleted

Hi,

Would it be possible to include that script and functionality (post-commit hook) into trac? I am not a cgi programmer and wouldn't know where to start.

Thanks, Walter

Changed 4 years ago by cmlenz

  • status changed from reopened to closed
  • resolution set to invalid

Please try the mailing list for requests like this.

Add/Change #782 (preview php files)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.