Skip to content

Tag: php

How to display extra text field on WordPress author page

I want to display an extra text field on the author page which I can fill in the respective user profile when I logged in. Additionally it would be great if the textfield has a WYSIWYG editor. How can I do that? Answer You can use the hook user_contactmethods to add some custom fields to the user page. See th…

How to load an array of external data in QuickChart?

I am looking to use QuickChart in my PHP project. I skimmed the documentation completely. But, everything in it has the data being statically loaded as an array. I am trying to load external data, that is generated from somewhere else, into the chart. To understand QuickChart, I tried to load data dynamically…

PHP viewing folder content

I am trying to create a file server. What I am trying to do is -> on the page there will be lots of folders displayed, when you click on one you will be shown its content and if there is a folder inside of this folder you can click on it and it will display the content of that

clang-format equivalent for PHP & HTML

From what I read clang-format is for c/c++/obj-c. Which tool like clang-format would you recommend to automatically format/reformat PHP/HTML code in a consistent way? And why? The use case would be to check code formatting in CI (continuous integration) when submitted through a ‘pull request’ for …

Catch inexistent static files in app.yaml

In app.yaml I have I would like to intercept / redirect non existent image files (gif | png | jpg). As it is, GAE returns an Error not found when requesting some inexistent file with the image extensions, I am looking if there’s some way -at app.yaml- level to intercept them. (I could remove the static …