PB and PHP : Help needed please !

Everything else that doesn't fall into one of the other PB categories.
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

I tried to do a dummy userlib just for testing wrapping the printf command.
The lib was built using Dev-C++ and the built function Printf
should just printout a constant string using printf.

The C-Code for the lib looks similar to this (jaja, no debug_routine) :

Code: Select all

#include <stdio.h>

// dummy example

extern _stdcall PB_Printf()
{
       printf("Hello World!");
}
I successfully built this lib and I can use it in PureBasic without any problems.

For example I created with PureBasic a console application with just one
line (without using OpenConsole()) :

Code: Select all

Printf()
When I call this programm in the command line it works as it was supposed
to and prints out : Hello World!.

However, when I try to catch the stdout (String -> Hello World) via php's
passthru
I do not get anything.


Any ideas what I did wrong :?: :roll:
regards,
benny!
-
pe0ple ar3 str4nge!!!
Post Reply