DEV Community

Marcelo Andrade R.
Marcelo Andrade R.

Posted on • Originally published at marceloandrader.github.io

1

Php Web Server

Sabían que la línea de comandos de php tiene un servidor web interno.

Me ha servido mucho para realizar desarrollos de prueba o verificar un sitio estático o
incluso para compartir archivos en una red interna.

El comando es:

$ php -S 0.0.0.0:8000 -t www
Enter fullscreen mode Exit fullscreen mode

Donde -S indica el host y puerto donde se escuchará las peticiones.
0.0.0.0 indica abra el puerto en todas las interfaces disponibles
Y -t indica el directorio desde donde se leerá los archivos.

Esto creará un pequeño servidor web, puedes abrir el sitio en http://localhost:8000 o
desde otro dispositivo en la misma red http://ip-donde-ejecuto-php:8000

Lo más importante de este tip es que si existen archivos php en ese directorio se ejecutan. El comando artisan serve de laravel
usa este servidor interno.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post →

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay