Hi andrew,
I would like to know is it possible to call a C structure inside the PHP page. i have a page called simple.c
include !--removed tag-->!--removed tag-->
struct hits
{
int totalHits;
int dailyHits;
} nullhosting, metalshell;
int main()
{
nullhosting.totalHits = 1000;
nullhosting.dailyHits = 10;
metalshell.totalHits = 3000;
metalshell.dailyHits = 100;
/* print metalshell's hits */
printf("Metalshell.com's Stats:\n");
printf("Total hits: %i Daily hits: %i\n\n", metalshell.totalHits, metalshell.dailyHits);
/* print nullhosting's hits */
printf("Nullhosting.com's Stats:\n");
printf("Total hits: %i Daily Hits: %i\n", nullhosting.totalHits, nullhosting.dailyHits);
return 0;
}
......................
I want to call this structure value (metalshell.totalHits = 3000;) to my PHP page.
I am not sure it is possible or not. If it is possible could you please guide me how do get this value in a php page. Could you please send some sample code.
thanks
susikto
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).