Skip to content

Commit

Permalink
Updated README and fixed file links
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Copley committed Jun 22, 2024
1 parent 1a77ab4 commit 611549f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 26 deletions.
38 changes: 17 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,16 @@ Example of use...

```php
consoleGroupStart('NEW REQUEST');

consoleLog($url, 'Request URL');
consoleLog($method, 'Method');
consoleLog($type, 'Type');
consoleLog($route, 'Route');

consoleDivider();

if ($params) consoleLog($params, 'Parameters');
if ($_GET) consoleLog($_GET, 'GET Data');
if ($_POST) consoleLog($_POST, 'POST Data');
if ($_FILES) consoleLog($_FILES, 'FILES Data');
if ($_SESSION) consoleLog($_SESSION, 'SESSION Data');

consoleLog($url, 'Request URL');
consoleLog($method, 'Method');
consoleLog($type, 'Type');
consoleLog($route, 'Route');
consoleDivider();
if ($params) consoleLog($params, 'Parameters');
if ($_GET) consoleLog($_GET, 'GET Data');
if ($_POST) consoleLog($_POST, 'POST Data');
if ($_FILES) consoleLog($_FILES, 'FILES Data');
if ($_SESSION) consoleLog($_SESSION, 'SESSION Data');
consoleGroupEnd();
```

Expand All @@ -136,13 +132,13 @@ Configure file download output streams:
Example of use...

```php
// Setup the output stream
$output = prepareDownload( 'info', 'txt' );
// Add the info
fputs( $output, 'Name: '.$thing['name'].PHP_EOL );
fputs( $output, 'Desc: '.$thing['desc'].PHP_EOL );
// And close the stream
finaliseDownload( $output );
// Setup the output stream
$output = prepareDownload( 'info', 'txt' );
// Add the info
fputs( $output, 'Name: '.$thing['name'].PHP_EOL );
fputs( $output, 'Desc: '.$thing['desc'].PHP_EOL );
// And close the stream
finaliseDownload( $output );
```

---
Expand Down
2 changes: 1 addition & 1 deletion lib/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* PHP Date Formatting Utility Library
*
* Steve Copley @ Digital Technologies Dept. Waimea College
* https://github.com/waimea-dt/php-library/lib/date.php
* https://github.com/waimea-dt/php-library/blob/main/lib/date.php
*=====================================================================*/


Expand Down
2 changes: 1 addition & 1 deletion lib/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Database Utility Library
*
* Steve Copley @ Digital Technologies Dept. Waimea College
* https://github.com/waimea-dt/php-library/lib/db.php
* https://github.com/waimea-dt/php-library/blob/main/lib/db.php
*=====================================================================*/

require_once 'debug.php';
Expand Down
2 changes: 1 addition & 1 deletion lib/debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* PHP Debugging Utility Library
*
* Steve Copley @ Digital Technologies Dept. Waimea College
* https://github.com/waimea-dt/php-library/lib/debug.php
* https://github.com/waimea-dt/php-library/blob/main/lib/debug.php
*=====================================================================*/


Expand Down
2 changes: 1 addition & 1 deletion lib/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* PHP File Utility Library
*
* Steve Copley @ Digital Technologies Dept. Waimea College
* https://github.com/waimea-dt/php-library/lib/file.php
* https://github.com/waimea-dt/php-library/blob/main/lib/file.php
*=====================================================================*/


Expand Down
2 changes: 1 addition & 1 deletion lib/text.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* PHP Text Utility Library
*
* Steve Copley @ Digital Technologies Dept. Waimea College
* https://github.com/waimea-dt/php-library/lib/text.php
* https://github.com/waimea-dt/php-library/blob/main/lib/text.php
*=====================================================================*/


Expand Down

0 comments on commit 611549f

Please sign in to comment.