Skip to content

Instantly share code, notes, and snippets.

@rafops
Created October 10, 2015 19:18
Show Gist options
  • Save rafops/ee7f476de7e5e9c10db4 to your computer and use it in GitHub Desktop.
Save rafops/ee7f476de7e5e9c10db4 to your computer and use it in GitHub Desktop.
diff --git a/index.php b/index.php
index 882b597..213ef3c 100644
--- a/index.php
+++ b/index.php
@@ -1 +1,5 @@
-<?php echo phpinfo();
+<?php
+
+include "./lib/mylib.php";
+
+echo_phpinfo();
diff --git a/lib/mylib.php b/lib/mylib.php
new file mode 100644
index 0000000..03df32f
--- /dev/null
+++ b/lib/mylib.php
@@ -0,0 +1,5 @@
+<?php
+
+function echo_phpinfo() {
+ echo phpinfo();
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment