php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #9444 Allow show_source output to be set as a variable
Submitted: 2001-02-25 13:21 UTC Modified: 2001-02-25 14:24 UTC
From: brad at simplysmarter dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.4pl1 OS: Unix
Private report: No CVE-ID: None
 [2001-02-25 13:21 UTC] brad at simplysmarter dot org
Can you make it so that when you call show_source that you can set its output as a variable:

ie: $var = show_source( $file );

Thanks!

Brad Taylor
Senior Web Content Developer
BradCom Industries LTD

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-25 14:24 UTC] derick@php.net
You can easily do this with the outputbuffering functions:
ob_start();
show_source("filename");
$contents = ob_get_contents();
ob_end_flush();
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 18:01:34 2024 UTC