Skip to content

Tag: php

How to list a directory content

How to access directory files when we don’t have index file. I used this htaccess code but it worked when I mention file but I want to show directory file without insert index file. Please check my htaccess code and tell me where i am wrong thanks Answer You can use the Options configuration option. The…

Linux command line for find & replace not working

Im having an issue with this code in the command line: For some reason i think it isnt working since the ’email’ but that is how the code is & i cant change it. Also im running it through the shell_exec for php. but i tried it directly and it wasnt working as well. any ideas? Answer Because yo…

Yii2 call the console command not from the project folder

Hello. I created the console command in Yii2: I want to call this command in cron,and for testing I try to call it from the console, when I’m in the project folder: Everything works fine. But, if I call this command when I’m in a different directory, I get some errors. First, i got Seeing this, I …

Using Sendmail from an external server

I have a server with a webapp and a mail server (who use sendmail to route mails). We need to migrate the webapp to an auto-scaling schema, so, I can’t have the mail server in there, so, I’m thinking on leaving the mail server right where it is now. So, to send mails I have different alternatives,…