Node.js: how to fix error server error at Socket.onPacket

How to fix Node.js client connect_error: Main raison is mismatched versions of socket.io in client and server. You can choose the match JS client library at: https://cdnjs.com/libraries/socket.io or use /socket.io/socket.io.js on your server eg: https://ws.tutorialspots.com:31111/socket.io/socket.io.js

Read full story Comments { 0 }

Node.js: how to stream a mp4 file

How to stream a mp4 file with Node.js Run test Note: fs.statSync will throw an error if file not exists: So, you should use try catch clause to catch this error:

Read full story Comments { 0 }

How to install nginx-vod-module on CentOS

How to install nginx-vod-module – NGINX-based VOD Packager – on CentOS? Step 1: Result: Step 2 Result: Done, now you can use this file to test nginx-vod-module: https://github.com/kaltura/nginx-vod-module/blob/master/test/nginx.conf

Read full story Comments { 0 }

PHP: how to save a remote file using CURL

How to save a remote file using CURL? You can read more about CURLOPT_WRITEFUNCTION in this article: PHP: Example of usage CURLOPT_WRITEFUNCTION

Read full story Comments { 0 }

PHP: upload file to FTP server

How to upload file to FTP server using PHP?

Read full story Comments { 0 }

PHP: How to check if a remote file exists

Main method is read header file, so, you can read 2 article first: PHP: How to get size of a remote file PHP: How to get size of a remote file – Part 2 Here, we give some methods: Method 1: Example: Result:

Read full story Comments { 0 }

How to build nginx-vod-module on CentOS

How to build nginx-vod-module – NGINX-based VOD Packager – on CentOS? Step 1: First, you must install some requirements like: git, gcc, gcc-c++ Install GIT Install GCC, GCC-C++ Step 2: Step 3: Result: Step 4: Installing NGINX Dependencies 1. The PCRE library – required by NGINX Core and Rewrite modules and provides support for regular […]

Read full story Comments { 0 }

How to build the OpenSSL library on CentOS

We make an example on CentOS 7 64bits. Step 1: Result: make make install

Read full story Comments { 0 }

How to build the zlib library on CentOS

We do an example on CentOS 7 64bits Step 1: Result: Step 2: Result: Step 3: Step 4:

Read full story Comments { 0 }

How to build the PCRE library on CentOS

Here we make an example for CentOS 7 64bits Step 1: Step 2: Result: Step 3: Step 4: Result: Step 5: Step 6: Done!

Read full story Comments { 0 }