Page 1 of 1

how to class c header file in PHP

Posted: Mon Sep 12, 2011 12:11 am
by nabob
hi all,


i was working on GD and GD chart. was trying to call an class file

and i have given a parameter

<?php
Header("Content-type: image/png");
#include("gdchart.h");
$chart = new gdchart(LINE);
?>

it says gdchart classs not found.

Regards,

nabob

Re: how to class c header file in PHP

Posted: Mon Sep 12, 2011 12:24 am
by twinedev
Well, first, the include line is commented out with a # at the beginning of it.

Second, if you are trying to actually include C programming, not going to work, this is PHP.

-Greg

Re: how to class c header file in PHP

Posted: Mon Sep 12, 2011 12:27 am
by nabob
can u help me how to get through this........i got support files in c..and i wanna implement in PHP


its an GDchart application......i have tried in all means.will u suggest me any other solution.

Regards,

nabob

Re: how to class c header file in PHP

Posted: Mon Sep 12, 2011 12:34 am
by nabob
Hi Greg,

plz help me in gd chart appplication .....was working hard to get through this.

was installing this from souce code in rhel 5 using php 5.3.8.

nabob

Re: how to class c header file in PHP

Posted: Tue Sep 13, 2011 12:30 am
by twinedev
Sorry, I have no idea on gd chart, what it is, or how it is used, just know you cannot directly include C headers into php.

Hopefully someone else can help ya, or at least google "gd chart php"

-Greg