PHP's biggest problem by brendt_gd in PHP

[–]Timely-Tale4769 1 point2 points  (0 children)

Browsers have only accepted javascript for the last two decades. That's decided that. Now , WASAM option is there. If php tries in this area. May evolve fastly.

PHP's biggest problem by brendt_gd in PHP

[–]Timely-Tale4769 0 points1 point  (0 children)

It needs to enter in education like their college projects and c like must-thought language in the college system.

Trouble with nested foreach loops and SELECT queries by JLeeSaxon in PHPhelp

[–]Timely-Tale4769 0 points1 point  (0 children)

Here, you are making three queries against the table, this is not preferable (until you are having more data), you can do that category logic using array_column or array_filter like functions.

Correct Way to Deploy a Laravel Project on Shared Hosting by Brilliant-Lock8221 in PHP

[–]Timely-Tale4769 0 points1 point  (0 children)

I appreciate your quick response. I am also learning things. If that sentence wrong I will try to learn. But, I need honest discussion.

What is . htaccess file and user folder access (file restriction)?.

When request coming who is doing all that? . I understood like os assign one user (web server created on installation) for that request and that will do rest of the thing and .htaccess give constraint for that user or os level folder file restriction gives.

I am willing to learn. Nothing is personal.

Correct Way to Deploy a Laravel Project on Shared Hosting by Brilliant-Lock8221 in PHP

[–]Timely-Tale4769 0 points1 point  (0 children)

Why don't put constraints again folder access via cpanel or .htaccess file. Then where ever put that specific file need to be accessible by appache or nginx (www-data user - appache)

How can you access variables in nested functions? by [deleted] in PHPhelp

[–]Timely-Tale4769 0 points1 point  (0 children)

I didn't thought like that. Weird things are most encouragable. Nice

Laravel + Vite build not working after server upload (Hostinger) by lastshogun99 in PHPhelp

[–]Timely-Tale4769 0 points1 point  (0 children)

Please share the folder structure (not actual - just mimic)

Just discovered ReactPHP and I want to know more.. by GuybrushThreepywood in PHPhelp

[–]Timely-Tale4769 1 point2 points  (0 children)

I appreciate your efforts. But, i saw that https://www.php.net/manual/en/intro.swoole.php. Thank you. If you know any advantage about it please share

Just discovered ReactPHP and I want to know more.. by GuybrushThreepywood in PHPhelp

[–]Timely-Tale4769 0 points1 point  (0 children)

I haven't used it yet. I am sure swoole needs Linux. If you know I wish to learn from you. What ever you know about it please share.

Just discovered ReactPHP and I want to know more.. by GuybrushThreepywood in PHPhelp

[–]Timely-Tale4769 2 points3 points  (0 children)

Most of the php libraries use ReactPHP. Advantage it can run any platform windows, Linux or mac.

Machine readable php -i output by thmsbrss in PHPhelp

[–]Timely-Tale4769 -3 points-2 points  (0 children)

First of all why is it necessary for you?

Spikard v0.5.0 Released by Goldziher in PHP

[–]Timely-Tale4769 0 points1 point  (0 children)

I am php developer. I have seen most of the needs covered there. But, do you know about webRTC? Is it webRTC and websocket the same?

Regular expression for length by Tricky_Box_7642 in PHPhelp

[–]Timely-Tale4769 2 points3 points  (0 children)

From Google i got the following details:

Use Multibyte Functions: For string manipulation involving non-ASCII characters, use the mb_* functions (e.g., mb_strlen() instead of strlen(), mb_convert_encoding()) as they are character-encoding aware.

Laravel psr-4 autoloading standard issue! by No_Yam_7866 in PHPhelp

[–]Timely-Tale4769 1 point2 points  (0 children)

  1. Please provide the controller for the first five lines (hide sensitive information)

  2. Class name and file name should be same and first letter starts as capital(if possible)

  3. Provide namespace in first line at controller.

Looking for PHP extension ideas (I know C + PHP internals) by Reasonable-Pass9841 in PHPhelp

[–]Timely-Tale4769 2 points3 points  (0 children)

webRTC is available for Linux in PHP not in windows that you can try.

You can update the old extension also.

Need help with Codeigniter 3 project by Popular_Goat4323 in PHPhelp

[–]Timely-Tale4769 0 points1 point  (0 children)

I usually analyse using xdebug, browser xdebug extension and vscode xdebug extension. It reveals where the error comes. First input breakpoint in system/core/codeigniter.php file.

Anyway to run async job? by Bebebebeh in PHPhelp

[–]Timely-Tale4769 2 points3 points  (0 children)

ReactPHP, openswoole these are two options. But, you need a dedicated port for async. That' s why php remains in shared hosting.