![]() |
[RESOLVED] execve() Exec format error
Hello, I'm surprised by the speed of execution of programs in C compared to PHP, so I decided to work with CGI programs.
I did a "Hello, World" and compiled it on Linux, but after uploading to the server, gives me this error. Quote:
Code:
#include <stdio.h> |
Binary build on Debian system may not be compatible with CentOS/Redhat.
You need to compile the binary on the same server. |
Is there any way to create binaries that work for all distributions?
Because I have a shared web hosting and have no direct access to compile. :( |
>Is there any way to create binaries that work for all distributions?
No, clearly :) >Because I have a shared web hosting and have no direct access to compile can you try Code:
gcc -o a.cgi a.c |
Quote:
|
Thanks to everyone, the hosting provider gave me the Shell Access and I already compile the program. :D
|
| All times are GMT -7. The time now is 01:05 PM. |