rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
639 stars 55 forks source link

There are logic that does not work #36

Open fatalafitili opened 5 years ago

fatalafitili commented 5 years ago

Hello dude i again here :) my problem is not fully solved, look this;

image

it's not complete, but it's logic

i did use this but this is not worked, 404 does not;

i need this:

Example:

(php counts how many times each user enters)

php variable if 100, nginx variable 1 do

if nginx variable 1, go return 404 else go location /

i need to do this, can u help again me ? @rryqszq4


That's the right logic, but it doesn't work;

image

rryqszq4 commented 5 years ago

I think there is still a bug, need to be fixed.

fatalafitili commented 5 years ago

I agree @rryqszq4, i just wait u

rryqszq4 commented 5 years ago

Hi, @fatalafitili Code update for fix this error. https://github.com/rryqszq4/ngx_php7/commit/a1d729f3b27094a13c46c498af1d5128d7f557dc

Some tests that have been passed. https://github.com/rryqszq4/ngx_php7/blob/master/t/016-rewrite_by_php.t

Try again, new feedback about it.

fatalafitili commented 5 years ago

Thank u dude i try and return

rryqszq4 commented 5 years ago

@fatalafitili Valuable work.

fatalafitili commented 5 years ago

Hello dude, Very valuable for me, this module now so okey, thank u so much, i love u, I want to be more in touch with you @rryqszq4

rryqszq4 commented 5 years ago

@fatalafitili Welcome to submit issues, haha~

fatalafitili commented 5 years ago

Okay dude then,

Can you throw me redis and mongodb for php install with nginx configuration @rryqszq4

rryqszq4 commented 5 years ago

@fatalafitili Ok, but I need time to research and test ~

rryqszq4 commented 5 years ago

@fatalafitili Is the php extension for redis and mongodb?

fatalafitili commented 5 years ago

Hello dude i did try "extension=mongodb.so" but not worked

Can u help me, can you throw me in progress? step by step ? @rryqszq4

i try this https://github.com/mongodb/mongo-php-library