使用laravel websocket库进行实时通知的laravel站点工作:
https://beyondco.de/docs/laravel-websockets/getting-started/introduction
在本地服务器上,我必须运行以下命令才能工作:
php artisan websockets:serve
Starting the WebSocket server on port 6001...
现在我已经把网站上传到了云道托管。
如何实现命令以始终运行服务器?
php artisan websockets:serve
我做了一个简单的音频创建web应用程序使用Node.js服务器。我想要创建音频使用云文本到语音API,然后上传到云存储音频。
(我使用Windows 10,Windows子系统用于Linux,Debian10.3和Google浏览器。)
这是Node.js服务器中的代码。
const client = new textToSpeech.TextToSpeechClient();
async function quickStart() {
// The text to synthesize
const text = 'he
如果我要包含的文件位于我的PHP文件的当前目录之外,我如何包括php文件。例如,当我包含整个目录时,它就能工作。
include 'C:\xampp\htdocs\sample1\samplephpfile.php';
但是我知道,如果我把我的网站上传到web服务器上,使用起来是不有效的。请帮帮忙。谢谢。
我正在使用两个不同的服务器,并在它们之间上传文件。从一个到另一个。但这是行不通的。当两者都在我的本地主机上时,但当我想要将文件从本地主机上传到另一台云服务器上时,它可以工作。它给了我这个错误:
Warning: move_uploaded_file(/var/www/data/user-blue.png): failed to open stream:
Permission denied in /var/www/upload.php on line 67
Warning: move_uploaded_file(): Unable to move '/tmp/phpVBiL