473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

GD library for WAMP 1.6.6

27
hi,
am haing problem creating a JPgraph with my php.
PHP version: 5.2.0
WAMP version: 1.6.6

error message in browser:

Fatal error: Call to undefined method Graph::AdjBackgroundImage() in C:\wamp\www\graph.php on line 23
php code:

[PHP]$graph->AdjBackgroundImage(0.4,0.7,-1); //setting BG type[/PHP]

hoping someone will give me a conclusion here.
Aug 30 '07 #1
6 3348
Purple
404 Expert 256MB
Hi Prosad,

the error is telling you the method you are calling does not exist,

can you confirm

AdjBackgroundImage is correctly spelt in:

[PHP]$graph->AdjBackgroundImage(0.4,0.7,-1); [/PHP]

Regards Purple
Aug 30 '07 #2
prosad
27
Hi Prosad,

the error is telling you the method you are calling does not exist,

can you confirm

AdjBackgroundImage is correctly spelt in:

[PHP]$graph->AdjBackgroundImage(0.4,0.7,-1); [/PHP]

Regards Purple
purple,
as far as i can tell spelling correct,
still searching for solution.
Aug 30 '07 #3
pbmods
5,821 Expert 4TB
Heya, prosad.

What do you get when you:
Expand|Select|Wrap|Line Numbers
  1. var_dump(get_class($graph));
  2. var_dump(gettype($graph));
  3.  
Aug 30 '07 #4
prosad
27
Heya, prosad.

What do you get when you:
Expand|Select|Wrap|Line Numbers
  1. var_dump(get_class($graph));
  2. var_dump(gettype($graph));
  3.  

hi pbmods,
i get from your var_dump:

bool(false) string(4) "NULL"

looking forward to you nailing this problem for me.
Aug 31 '07 #5
ronnil
134 Expert 100+
Have you instantiated $graph? since you get "false" when using get_class($graph), this means $graph is not an object at all.
Aug 31 '07 #6
prosad
27
Have you instantiated $graph? since you get "false" when using get_class($graph), this means $graph is not an object at all.
ronnil,
believe $graph is instantiated since only that particular line (4) gives error.
if i comment out that particular line the program runs to the end ok.
code below, gotten from a tutorial pn using JPgraph

[PHP]$graph = new Graph(250,150,"auto");
$graph->SetScale("textint");
$graph->img->SetMargin(50,30,50,50);
$graph->AdjBackgroundImage(0.4,0.7,-1);
$graph->SetBackgroundImage("linux_pez.png",BGIMG_FILLFRAM E); //adding image
$graph->SetShadow();[/PHP]
Sep 3 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: ahevans | last post by:
howdy all, I'm considering setting up php, mysql, apache and myphpadmin on my pc to run a site on. Now obviously I'm security concious which means I need to put the time in to do a bit of...
2
by: Yogee | last post by:
Hello all, I dont know the exact group where I should post my questions. So, I m doing it on most of the groups which support components of LAMP stack. My client wants to use WAMP ( Windows +...
4
by: Gaurav Agarwal | last post by:
Hi, Am using WAMP5 and python 2.4.3. I tried to install mod_python 3.2.5 for python2.4. When i tried starting wamp, Firstly there was no error message in the apache error log. I saw error...
10
by: philleep | last post by:
Hi there, I have some PHP issues. Basically i've installed WAMP so that i can have a webserver/local host. I have a local host but at the moment the php isnt doing anything. Anywhere i use php...
1
by: fatalparadox | last post by:
I had WAMP Server installed for a few months, everything was fine. Now all of a sudden it stopped working. It still executes the PHP but it doesn't allow me to write to a .txt file anymore. When...
2
by: AARTHISUBBU | last post by:
i m quiet new to wamp... is it possible to run jpgraph codes in wamp... else i have to install jpgraph separately and to run?.. if i can run jpgraph codes in wamp,what i have to do? i m using...
3
by: robin1983 | last post by:
Dear All, I am facing a problem with WAMP server. i dowonload the WAMP SERVER2.0c and installed in my system. But the problem is that none of the server is running. When i try to access the...
5
by: cwjacklin | last post by:
Hi all, I use WAMP server 2, php 5.2.8 This code echo "1"; include(mnminclude.'html1.php'); echo "2"; prints out "1\r\n2" even though there are only functions in html1.php file but...
1
by: swethak | last post by:
Hi, i installed wamp in my local server system.It worked fine .But i am getting some problems in that. After installed the wamp server i changed the port number as 81 because my IIS port...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.