{"id":26871195,"url":"https://github.com/codeadamca/php-info","last_synced_at":"2025-03-31T07:18:45.005Z","repository":{"id":115328438,"uuid":"295479260","full_name":"codeadamca/php-info","owner":"codeadamca","description":"Using phpinfo() and your PHP server settings to debug a PHP error. ","archived":false,"fork":false,"pushed_at":"2025-01-26T22:15:38.000Z","size":836,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T23:19:43.224Z","etag":null,"topics":["learning-code","php","phpinfo"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeadamca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-14T16:46:23.000Z","updated_at":"2025-01-26T22:15:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"21ac7a65-77c9-4c20-bb4f-57810503c014","html_url":"https://github.com/codeadamca/php-info","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fphp-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fphp-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fphp-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Fphp-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeadamca","download_url":"https://codeload.github.com/codeadamca/php-info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429487,"owners_count":20775809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["learning-code","php","phpinfo"],"created_at":"2025-03-31T07:18:44.382Z","updated_at":"2025-03-31T07:18:44.998Z","avatar_url":"https://github.com/codeadamca.png","language":"PHP","readme":"# Using the phpinfo Function\n\nWhen you're coding PHP, debugging can be difficult. By default when a PHP error occues your browser will likely display a `This pags isn't working` message. This message is not too helpful.\n\n![PHP Default Error](_readme/php-default-error.png)\n\nThere are a handful of methods to have PHP display a much more descriptive error.\n\n![PHP Helpful Error](_readme/php-helpful-error.png)\n\n## MAMP/WAMP\n\nIf you are using a local server you will need to chagne your `php.ini` file. First you need to locate this file. Place the provided `phpinfo.php` file in your server root and test. It will list all of your PHP settings.\n\n![PHP Info](_readme/php-info.png)\n\nLocate the `Loaded Configuration File` setting note where the `php.ini` files is located. Mine is located in the `/Applications/MAMP/bin/php/php7.3.9/conf/php.ini` folder. Open this file, find the line that says `display_errors = Off` and change it to `display_errors = On`.\n\nSave and restart your server.\n\n## PHP Hosting\n\nIf you are using hosting to test your PHP files you can change the same setting using your hosting control panel. Log in to your hosting control panel and look for a group of PHP related options. With Infinity Free hosting it's called `Alter PHP config`.\n\n![Control Panel](_readme/control-panel.png)\n\nOnce you are in the PHP settings look for an option related to displaying PHP errors, turn it on, and refresh your page.\n\n---\n\n## Repo Resources\n\n- [Visual Studio Code](https://code.visualstudio.com/)\n- [Filezilla](https://filezilla-project.org/)\n\n\u003cbr\u003e\n\u003ca href=\"https://codeadam.ca\"\u003e\n\u003cimg src=\"https://cdn.codeadam.ca/images@1.0.0/codeadam-logo-coloured-horizontal.png\" width=\"200\"\u003e\n\u003c/a\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Fphp-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeadamca%2Fphp-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Fphp-info/lists"}