Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Is there a way i can 'log' the PHP output ?

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
sarahfoxnz
Smarty Regular


Joined: 11 Apr 2010
Posts: 51

PostPosted: Thu Aug 15, 2019 12:45 pm    Post subject: Is there a way i can 'log' the PHP output ? Reply with quote

Hi.

Using PHP & smarty - if a user logs in to one of my restricted areas, logged-in - is there a way that i can display the HTML output (from templates) to the user as normal, but ALSO save the HTML coding into a directory somewhere - For later review.

IE, a user reports a problem.
I mark the user-name somewhere (i'll do that myself).
if that same user-name logs in (ignoring any other users) - It saves a copy of the HTML output to a file...

I can then review it when i get back online & see the same thing the user sees.

I only need a single example of this, & i can do the rest (IE WHICH user to record, & / or which screen(s) to record.


I'm guessing it'll be done in the main php script and not the template itself - but is there a way to cache the template output for a specific user/screen ?

Edit - Once i know how its done, I can do the programming to view the HTML output (not the HTML code) - as the user sees it, and go from previous/next page of the user and see any errors.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1572

PostPosted: Wed Aug 21, 2019 8:21 am    Post subject: Reply with quote

Just implement a way to impersonate any given user in your application.
Then YOU will see what other users see.
That would be a clearer way to solve your issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP