[PHP] PHP source code formatter for OS X

[PHP] PHP source code formatter for OS X

Post by joche » Sat, 19 Mar 2005 02:23:29



maybe the php tidy extension works?
http://www.yqcomputer.com/
 
 
 

1. [PHP] Printing PHP Source with a PHP Script

2. Parsing a php include (which also contains php code) - or "Reparsing" the php file

Hello,

I am using the <?php include() ?> statement on my website for
organizational purposes. However, one of my includes contains some
PHP code. Is there any way for the server to actually parse the
include? I've tried this before, and it did not parse the include.
Rather, it included the file as just plain ASCII.
=======================
/*EXAMPLE 1*/
/*index.php*/
...
<?php include('global/includes/footer.inc') ?>
...

/*footer.inc*/
...
<p>© 1993-<?php echo date("Y") ?> Kingswood School. All rights
reserved.</p>
...

/*EXAMPLE 2*/
/*index.php*/
...
<?php include('global/includes/lastmod.php') ?>
...

/*lastmod.php*/
...
<?php
echo "This file was last modified: ";
echo strftime("%A %B %d %Y");
include('whateverfilename.inc');
?>

=============================

I would like to be able to parse the include if it has php code, and
in some cases, create nesting includes (an include within an
include). Is this even possible? Any ideas?

Any help is certainly appreciated. Thanks!

Steven Borrelli
Web Developer
Kingswood School

3. Template problem with PHP codeTemplate problem with PHP codeTemplate problem with PHP code

4. [PHP] Create .php file with php [POC CODE INCLUDED]

5. [PHP] [PHP-DB] [PHP] Passing variables to a PHP script on clicking a hyperlink

6. [PHP] [PHP-DB] [PHP] Passing variables to a PHP script on clicking a hyperlink

7. [PHP] Separating HTML code from PHP code

8. [PHP] re-compiling PHP on Mac OS X

9. [PHP] how to setup php on OS X.2

10. [PHP] Best open source project/framework to support a php training course?

11. [PHP] LAMP || Apache Cache PHP Source File...

12. [PHP] Compiling php 5.2.3 / Mac OS X 10.3.9 / "mysql configure failed"

13. [PHP] Best open source project/framework to support a php training course?

14. [PHP] Want to join PHP open source projects, but who wants me?