This question already has answers here:
Set port for php artisan.php serve
(9 answers)
Closed 6 years ago.
I am using laravel 5.3 and this may be a basic question but I want know how I can serve Laravel on a custom port number (port 1000).
For port 1000:
php artisan serve --port=1000
Related
This question already has answers here:
Where does phpinfo() get its info?
(5 answers)
Closed 2 years ago.
I just started with programing in PHP
And i have a problem:
I'm just experimenting and discovering the language. I tried compressing a string and display the output. I get an some zlib error. I am just wondering if there is a function that returns information about extensions?
You should use
phpinfo();
to display the PHP configuration.
This question already has answers here:
Is it possible to download PHP script from a web page with wget?
(4 answers)
Possible to view PHP code of a website?
(3 answers)
Download PHP script instead of executing it
(5 answers)
Copy PHP file from other URL without executing the code
(1 answer)
Closed 3 years ago.
This is my demo url
http://www.example.com/example.php
If we want to download example.php file with source code how can we do it?Is it possible?
Simple answer, no. You cant download PHP Source Code without access to the host.
This question already has answers here:
Setting environment variables for accessing in PHP when using Apache
(4 answers)
Closed 3 years ago.
Amazon AWS (LAMP) automatically adds DB param constants so that it’s not necessary to mention them explicitly in the php: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_PHP.rds.html. How can I replicate this on my local (windows) instance? I saw define, but that needs to go in the php file, which defeats the purpose I think. There must be a better way to achieve this, right?
The QA referenced in Jose Henrique Felipetto (Setting environment variables for accessing in PHP) answered this question. I have put in a close vote on my own question, and closed it as a duplicate
This question already has answers here:
How to extract a ZIP file that has a password using only PHP?
(2 answers)
Closed 8 years ago.
I need to unarchive *.rar file and extracte with password on PHP.
I found many decisions on PHP, but all they don't provide password in archive.
Should it do so through the exec ()?
My OS: Windows 8
Have you tried using rar_open()? It has an argument for password. I personally never used it, so can not vouch if it works well.
For Windows you need to have php_rar.dll enabled in php.ini.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Multithreading/Parallel Processing in PHP
I need to make application which work 10 simultaneously like multi-threading .
If you application is running on the CLI, you can use pcntrl_fork:
http://www.php.net/manual/en/function.pcntl-fork.php