Print exit() output to stderr in PHP

206
February 14, 2018, at 6:16 PM

The following code

<?php
exit("where");
?>

prints the word where to stdout.

How to print exit() output to stderr?

Answer 1

Just do:

fprintf(STDERR, "where");
exit();
Rent Charter Buses Company
READ ALSO
How to loop through multidimensional array in PHP? [on hold]

How to loop through multidimensional array in PHP? [on hold]

I have dynamic table that generate many textboxThe first column is the parent textbox and the secon column is for then child textboxes

181
Doakn : add some limitation for vendors

Doakn : add some limitation for vendors

I use Dokan Wordpress plugin in my site that allows users to sell their productI would like to put some limitation for vendors for adding new product

179
sqlite using strftime trying to match dropdown list value eg 01 to month portion of date 00/00/0000 to return all rows matching [on hold]

sqlite using strftime trying to match dropdown list value eg 01 to month portion of date 00/00/0000 to return all rows matching [on hold]

// to return all rows that the month portion of date matches the dropdown list value eg 01 returns all rows with 01 in month date

128
How to create registration form with role selection in wordpress

How to create registration form with role selection in wordpress

How to create registration/signup form with role selection in worpdress without using plugin or make a plugin

168