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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brad at simplysmarter dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 17:02:17 2025 UTC