how to class c header file in PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
nabob
Forum Newbie
Posts: 5
Joined: Sun Sep 11, 2011 11:59 pm

how to class c header file in PHP

Post 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
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: how to class c header file in PHP

Post 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
nabob
Forum Newbie
Posts: 5
Joined: Sun Sep 11, 2011 11:59 pm

Re: how to class c header file in PHP

Post 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
nabob
Forum Newbie
Posts: 5
Joined: Sun Sep 11, 2011 11:59 pm

Re: how to class c header file in PHP

Post 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
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: how to class c header file in PHP

Post 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
Post Reply