473,232 Members | 1,558 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,232 software developers and data experts.

Using GD Library Functions

I would like use some of the GD image functions, so I ran a couple of
short scripts to see if it worked, such as:

<?php

/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
header("Content-type: image/jpeg");
imagejpeg($image);

?>

but all they generates are garbage characters and no image, starting
with:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality C ... (etc.)

I then ran a script to see what version was installed
(var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
"bundled (2.0 compatible)"
So why doesn't it generate a jpeg? Am I doing something incorrectly or
is it the library itself? (This is using a hosting account at
godaddy.com. It is not PHP or a GD library that I installed).

Thanks,
Eric
Jul 17 '05 #1
15 19028
Can you post a link to a test? I can use my server check on my site to take
a look at whats going on.

--
Mike Bradley
http://gzen.myhq.info -- free online php tools
"Uncle_Alias" <ze*********@yahoo.com> wrote in message
news:e1**************************@posting.google.c om...
I would like use some of the GD image functions, so I ran a couple of
short scripts to see if it worked, such as:

<?php

/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
header("Content-type: image/jpeg");
imagejpeg($image);

?>

but all they generates are garbage characters and no image, starting
with:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality C ... (etc.)

I then ran a script to see what version was installed
(var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
"bundled (2.0 compatible)"
So why doesn't it generate a jpeg? Am I doing something incorrectly or
is it the library itself? (This is using a hosting account at
godaddy.com. It is not PHP or a GD library that I installed).

Thanks,
Eric

Jul 17 '05 #2
"Uncle_Alias" <ze*********@yahoo.com> wrote in message
news:e1**************************@posting.google.c om...
I would like use some of the GD image functions, so I ran a couple of
short scripts to see if it worked, such as:

<?php

/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
header("Content-type: image/jpeg");
imagejpeg($image);

?>

but all they generates are garbage characters and no image, starting
with:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality C ... (etc.)

I then ran a script to see what version was installed
(var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
"bundled (2.0 compatible)"
So why doesn't it generate a jpeg? Am I doing something incorrectly or
is it the library itself? (This is using a hosting account at
godaddy.com. It is not PHP or a GD library that I installed).

Thanks,
Eric


Copied your script to my server and it worked just fine... you really
don't even need the 'header...' line either...

<?PHP
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
//header("Content-type: image/jpeg");
imagejpeg($image);
?>

here is a link: http://www.suddenimpactfans.com/getphoto3.php

It could be a problem on your host side - although the only time I get text
output from the GD stuff is if there is an error in one of the function
calls...

Jul 17 '05 #3

"SwissCheese" <Sw*********@cfl.rr.com> wrote in message
news:F8**********************@twister.tampabay.rr. com...
"Uncle_Alias" <ze*********@yahoo.com> wrote in message
news:e1**************************@posting.google.c om...
I would like use some of the GD image functions, so I ran a couple of
short scripts to see if it worked, such as:

<?php

/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
header("Content-type: image/jpeg");
imagejpeg($image);

?>

but all they generates are garbage characters and no image, starting
with:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality C ... (etc.)

I then ran a script to see what version was installed
(var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
"bundled (2.0 compatible)"
So why doesn't it generate a jpeg? Am I doing something incorrectly or
is it the library itself? (This is using a hosting account at
godaddy.com. It is not PHP or a GD library that I installed).

Thanks,
Eric


Copied your script to my server and it worked just fine... you really
don't even need the 'header...' line either...

<?PHP
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
//header("Content-type: image/jpeg");
imagejpeg($image);
?>

here is a link: http://www.suddenimpactfans.com/getphoto3.php

It could be a problem on your host side - although the only time I get text
output from the GD stuff is if there is an error in one of the function
calls...

--
====================================

Eric,

I'm just wondering if its a header problem.... Make sure you have no spaces
before your <?PHP tag...

If you want to see what type of GD support you have, try
<?
$gdinfo=gd_info();
foreach($gd_info as $key=>$element)
{
print("<br>$key = $element");
}
?>

laters
Randell D.
Jul 17 '05 #4
On 2004-01-03, Randell D. <re**********************@and.share.com> wrote:

"SwissCheese" <Sw*********@cfl.rr.com> wrote in message
news:F8**********************@twister.tampabay.rr. com...
"Uncle_Alias" <ze*********@yahoo.com> wrote in message
news:e1**************************@posting.google.c om...
I would like use some of the GD image functions, so I ran a couple of
short scripts to see if it worked, such as:

<?php

/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
header("Content-type: image/jpeg");
imagejpeg($image);

?>

but all they generates are garbage characters and no image, starting
with:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality C ... (etc.)

I then ran a script to see what version was installed
(var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
"bundled (2.0 compatible)"
So why doesn't it generate a jpeg? Am I doing something incorrectly or
is it the library itself? (This is using a hosting account at
godaddy.com. It is not PHP or a GD library that I installed).

Thanks,
Eric


Copied your script to my server and it worked just fine... you really
don't even need the 'header...' line either...

<?PHP
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
//header("Content-type: image/jpeg");
imagejpeg($image);
?>

here is a link: http://www.suddenimpactfans.com/getphoto3.php

It could be a problem on your host side - although the only time I get text
output from the GD stuff is if there is an error in one of the function
calls...


When using Mozilla/1.6b/Win32 i get some scrambled text.
When using InternetExplorer/6.1/Win32 i get a red square.
--
verum ipsum factum
Jul 17 '05 #5
"Randell D." <re**********************@and.share.com> wrote in message news:<RPpJb.917448$pl3.238882@pd7tw3no>...
....

Eric,

I'm just wondering if its a header problem.... Make sure you have no spaces
before your <?PHP tag...

If you want to see what type of GD support you have, try
<?
$gdinfo=gd_info();
foreach($gd_info as $key=>$element)
{
print("<br>$key = $element");
}
?>

laters
Randell D.

Aha! That was it: I moved the PHP code to before the <html> tag - I
had it in the body. Now it works.
So tell this newbie: why does this PHP code need to not be in the
<body> section? Other PHP code I've run has worked fine in the body.

Thanks,
Eric

BTW I couldn't get your GD support check code to work. <scratch head>
Jul 17 '05 #6
http://gzen.myhq.info -- free online php tools
"Uncle_Alias" <ze*********@yahoo.com> wrote in message
news:e1*************************@posting.google.co m...
"Randell D." <re**********************@and.share.com> wrote in message news:<RPpJb.917448$pl3.238882@pd7tw3no>... ...

Eric,

I'm just wondering if its a header problem.... Make sure you have no spaces before your <?PHP tag...

If you want to see what type of GD support you have, try
<?
$gdinfo=gd_info();
foreach($gd_info as $key=>$element)
{
print("<br>$key = $element");
}
?>

laters
Randell D.

Aha! That was it: I moved the PHP code to before the <html> tag - I
had it in the body. Now it works.
So tell this newbie: why does this PHP code need to not be in the
<body> section? Other PHP code I've run has worked fine in the body.

Thanks,
Eric

BTW I couldn't get your GD support check code to work. <scratch head>


there should bo NO body section, we (i assume everyone else here) thought
that was your complete script.

you are to send out a <BODY> tag if you are sending out an .html page,
becouse html pages continain, a body.

when you are sending out image data, send out only image data.

Think of it not as html with php in it, but rather a scripting lanugage
thats send out plain data outside the <?php ?> tags

so, with this line of though, php can send out any type of data. in fact
some people (myself included) dont have any text outside the <?php ?> tags,
and use it soley as a scripting laguage.

now, if a script needed to send, lets say the <HTML> tag, 2 ways

<HTML>
<?php
some script....
?>
</HTML>

or

<?php
print "<HTML>\n";
some script...
print "</HTML>\n";
?>

so you see, anything outside the <?php ?> tags is send directly to the
browser.

--
Mike Bradley

Jul 17 '05 #7
tom
Randell D. wrote:
"SwissCheese" <Sw*********@cfl.rr.com> wrote in message
news:F8**********************@twister.tampabay.rr. com...
"Uncle_Alias" <ze*********@yahoo.com> wrote in message
news:e1**************************@posting.google.c om...
I would like use some of the GD image functions, so I ran a couple of
short scripts to see if it worked, such as:

<?php

/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
header("Content-type: image/jpeg");
imagejpeg($image);

?>

but all they generates are garbage characters and no image, starting
with:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality C ... (etc.)

I then ran a script to see what version was installed
(var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
"bundled (2.0 compatible)"
So why doesn't it generate a jpeg? Am I doing something incorrectly or
is it the library itself? (This is using a hosting account at
godaddy.com. It is not PHP or a GD library that I installed).
Thanks,
Eric


Copied your script to my server and it worked just fine... you really
don't even need the 'header...' line either...

<?PHP
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
//header("Content-type: image/jpeg");
imagejpeg($image);
?>

here is a link: http://www.suddenimpactfans.com/getphoto3.php

It could be a problem on your host side - although the only time I get
text output from the GD stuff is if there is an error in one of the
function calls...


help - I see loadsa junk on konqueror, and a few lines of junk with netscape
thanks, tom
Jul 17 '05 #8

"tom" <te**@nospam.com> wrote in message
news:bt*******************@news.demon.co.uk...
Randell D. wrote:
"SwissCheese" <Sw*********@cfl.rr.com> wrote in message
news:F8**********************@twister.tampabay.rr. com...
"Uncle_Alias" <ze*********@yahoo.com> wrote in message
news:e1**************************@posting.google.c om...
I would like use some of the GD image functions, so I ran a couple of
short scripts to see if it worked, such as:

<?php

/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
header("Content-type: image/jpeg");
imagejpeg($image);

?>

but all they generates are garbage characters and no image, starting
with:
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
quality C ... (etc.)

I then ran a script to see what version was installed
(var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
"bundled (2.0 compatible)"
So why doesn't it generate a jpeg? Am I doing something incorrectly or
is it the library itself? (This is using a hosting account at
godaddy.com. It is not PHP or a GD library that I installed).
Thanks,
Eric

Copied your script to my server and it worked just fine... you really
don't even need the 'header...' line either...

<?PHP
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//send image
//header("Content-type: image/jpeg");
imagejpeg($image);
?>

here is a link: http://www.suddenimpactfans.com/getphoto3.php

It could be a problem on your host side - although the only time I get
text output from the GD stuff is if there is an error in one of the
function calls...


help - I see loadsa junk on konqueror, and a few lines of junk with

netscape thanks, tom


Try it now - I enabled the header line as Opera 7+ gave junk too, but now
doesn't with the header line.
Jul 17 '05 #9

"Randell D." <re**********************@and.share.com> wrote in message
news:<RPpJb.917448$pl3.238882@pd7tw3no>...
If you want to see what type of GD support you have, try
<?
$gdinfo=gd_info();
foreach($gd_info as $key=>$element)
{
print("<br>$key = $element");
}
?>

laters
Randell D.

Aha! That was it: I moved the PHP code to before the <html> tag - I
had it in the body. Now it works.
So tell this newbie: why does this PHP code need to not be in the
<body> section? Other PHP code I've run has worked fine in the body.

Thanks,
Eric

BTW I couldn't get your GD support check code to work. <scratch head>
--
====================================
Hi again,
I don't know why you couldn't get the above code to work... take a look at
http://ca3.php.net/manual/en/function.gd-info.php

If will tell you what functionality the gdlib can give you (this can vary
pending what libraries you have installed). The gd_info() function should
work on any PHP 4 forward...

If that doesn't work, try phpinfo(); and examine any mention of GD in its
output...

Lastly... when outputing an image, it is handled differently by the web
client than when sending text... It has to do with headers... this might be
the reason as to why you are getting mixed results from browser to
browser... Some browsers might attempt to be intelligent and guess what data
is being sent to them, while othes will just display the binary data that
makes up the image (aka junk to you and I). I would suggest that you write
your test image to a file first, then have your HTML request the image with
the html <img> tag.... Once you've solved that, then I'd go one step further
to work on dynamic images if that's your thing...

Replies please... via the newsgroup, so everyone can learn... and happy new
year,
Thanks,
Randell D.
Jul 17 '05 #10
"CountScubula" <me@scantek.hotmail.com> wrote in message news:<KD*****************@newssvr27.news.prodigy.c om>...

there should bo NO body section, we (i assume everyone else here) thought
that was your complete script.

you are to send out a <BODY> tag if you are sending out an .html page,
becouse html pages continain, a body.

when you are sending out image data, send out only image data.

Think of it not as html with php in it, but rather a scripting lanugage
thats send out plain data outside the <?php ?> tags

so, with this line of though, php can send out any type of data. in fact
some people (myself included) dont have any text outside the <?php ?> tags,
and use it soley as a scripting laguage.

now, if a script needed to send, lets say the <HTML> tag, 2 ways

<HTML>
<?php
some script....
?>
</HTML>

or

<?php
print "<HTML>\n";
some script...
print "</HTML>\n";
?>

so you see, anything outside the <?php ?> tags is send directly to the
browser.


Interesting. OK, and I find out from the php.net site that for the
imagejpeg() function that "The filename argument is optional, and if
left off, the raw image stream will be output directly."
(http://www.php.net/manual/en/function.imagejpeg.php)

So that's why one gets either text garbage or an image and nothing
else - it's just an image that's output DIRECTLY to the browser.

So... if I wanted to create the image and have my cake and eat it too,
I could (supposedly) save it and then display it with an HTML image
tag, like:

<html>
<head>
<title>Listing 12-2a</title>
</head>

<body>
<?php
/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//save image then use later
imagejpeg($image, "pic.jpg");
imagedestroy($image);
?>

<img src="pic.jpg" border=0>
<br>Here is some text.
</body>
</html>
Well, I tried this but it can't find (doesn't display) the image.
Where'd it go? I looked in my hosting account directories but couldn't
find it anywhere. I assumed it would appear in the directory where the
PHP script was run.
Jul 17 '05 #11
On 2004-01-04, Uncle_Alias <ze*********@yahoo.com> wrote:
<?php
/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//save image then use later
imagejpeg($image, "pic.jpg");
imagedestroy($image);
?>

<img src="pic.jpg" border=0>
<br>Here is some text.
</body>
</html>
Well, I tried this but it can't find (doesn't display) the image.
Where'd it go? I looked in my hosting account directories but couldn't
find it anywhere. I assumed it would appear in the directory where the
PHP script was run.


This way, you need to make sure that the user which is running
apache/php (usually nobody or www-data) has the rights to write such a
file at that place.
--
verum ipsum factum
Jul 17 '05 #12
Tim Van Wassenhove wrote:
On 2004-01-04, Uncle_Alias <ze*********@yahoo.com> wrote:
<?php
/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//save image then use later
imagejpeg($image, "pic.jpg");
imagedestroy($image);


<img src="pic.jpg" border=0>
<br>Here is some text.
</body>
</html>
Well, I tried this but it can't find (doesn't display) the image.
Where'd it go? I looked in my hosting account directories but
couldn't find it anywhere. I assumed it would appear in the
directory where the PHP script was run.


This way, you need to make sure that the user which is running
apache/php (usually nobody or www-data) has the rights to write such a
file at that place.


What tim said.

Also, note that if you have a page that's something like:
<?php
// this file is somepage.php
header(stuff for jpeg); // too lazy to remember syntax
....
imagejpeg($img);
?>

you can do
<img src="somepage.php">
Jul 17 '05 #13
tom
SwissCheese wrote:

"tom" <te**@nospam.com> wrote in message
news:bt*******************@news.demon.co.uk...
Randell D. wrote:
> "SwissCheese" <Sw*********@cfl.rr.com> wrote in message
> news:F8**********************@twister.tampabay.rr. com...
> "Uncle_Alias" <ze*********@yahoo.com> wrote in message
> news:e1**************************@posting.google.c om...
>> I would like use some of the GD image functions, so I ran a couple of
>> short scripts to see if it worked, such as:
>>
>> <?php
>>
>> /* Create a red square */
>> $image = imagecreate(200, 200);
>> $colorRed = imagecolorallocate($image, 255, 0, 0);
>> imagefill($image, 0, 0, $colorRed);
>>
>> //send image
>> header("Content-type: image/jpeg");
>> imagejpeg($image);
>>
>> ?>
>>
>> but all they generates are garbage characters and no image, starting
>> with:
>> JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default
>> quality C ... (etc.)
>>
>> I then ran a script to see what version was installed
>> (var_dump(gd_info());)and it generated: ["GD Version"]=> string(24)
>> "bundled (2.0 compatible)"
>>
>>
>> So why doesn't it generate a jpeg? Am I doing something incorrectly or
>> is it the library itself? (This is using a hosting account at
>> godaddy.com. It is not PHP or a GD library that I installed).
>> Thanks,
>> Eric
>>
>
> Copied your script to my server and it worked just fine... you
> really
> don't even need the 'header...' line either...
>
> <?PHP
> $image = imagecreate(200, 200);
> $colorRed = imagecolorallocate($image, 255, 0, 0);
> imagefill($image, 0, 0, $colorRed);
>
> //send image
> //header("Content-type: image/jpeg");
> imagejpeg($image);
> ?>
>
> here is a link: http://www.suddenimpactfans.com/getphoto3.php
>
> It could be a problem on your host side - although the only time I get
> text output from the GD stuff is if there is an error in one of the
> function calls...


help - I see loadsa junk on konqueror, and a few lines of junk with

netscape
thanks, tom


Try it now - I enabled the header line as Opera 7+ gave junk too, but now
doesn't with the header line.

worked - thanks (I still get this on my server though - and need to keep at
it), tom
Jul 17 '05 #14
"Agelmar" <if**********@comcast.net> wrote in message news:<bt************@ID-30799.news.uni-berlin.de>...
Tim Van Wassenhove wrote:
On 2004-01-04, Uncle_Alias <ze*********@yahoo.com> wrote:
<?php
/* Create a red square */
$image = imagecreate(200, 200);
$colorRed = imagecolorallocate($image, 255, 0, 0);
imagefill($image, 0, 0, $colorRed);

//save image then use later
imagejpeg($image, "pic.jpg");
imagedestroy($image);
<img src="pic.jpg" border=0>
<br>Here is some text.
</body>
</html>
Well, I tried this but it can't find (doesn't display) the image.
Where'd it go? I looked in my hosting account directories but
couldn't find it anywhere. I assumed it would appear in the
directory where the PHP script was run.


This way, you need to make sure that the user which is running
apache/php (usually nobody or www-data) has the rights to write such a
file at that place.


What tim said.

Also, note that if you have a page that's something like:
<?php
// this file is somepage.php
header(stuff for jpeg); // too lazy to remember syntax
...
imagejpeg($img);
?>

you can do
<img src="somepage.php">

Yeah, that works. Cool. Raises all kinds of possibilities...
Jul 17 '05 #15
"Randell D." <re**********************@and.share.com> wrote in message news:<%NIJb.931853$pl3.509732@pd7tw3no>...

--
====================================
Hi again,
I don't know why you couldn't get the above code to work... take a look at
http://ca3.php.net/manual/en/function.gd-info.php

If will tell you what functionality the gdlib can give you (this can vary
pending what libraries you have installed). The gd_info() function should
work on any PHP 4 forward...

If that doesn't work, try phpinfo(); and examine any mention of GD in its
output...

Lastly... when outputing an image, it is handled differently by the web
client than when sending text... It has to do with headers... this might be
the reason as to why you are getting mixed results from browser to
browser... Some browsers might attempt to be intelligent and guess what data
is being sent to them, while othes will just display the binary data that
makes up the image (aka junk to you and I). I would suggest that you write
your test image to a file first, then have your HTML request the image with
the html <img> tag.... Once you've solved that, then I'd go one step further
to work on dynamic images if that's your thing...

Replies please... via the newsgroup, so everyone can learn... and happy new
year,
Thanks,
Randell D.

phpinfo(); is disabled in the configuration of PHP at my hosting
account. I guess they don't want people hacking it?:
"The following functions have been disabled on our Unix servers:
fpassthru
file
mail
exec
system
passthru
popen
crack_check
crack_closedict
crack_getlastmessage
crack_opendict
fsockopen
psockopen
opendir
readdir
closedir
phpinfo
all Posix functions"

Maybe this explains why gd_info() doesn't work. (It is PHP 4.3.1 BTW).
Funny thing is, I used the mail function in a small script, and it
worked. Go figure.

Eric
Jul 17 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
0
by: Reed | last post by:
Can someone stear me in the right direction to convert a binary tree from a Linked List to a Dynamic Array... Dynamic arrays aren't something im strong with. //********bintree.h******** #ifndef...
4
by: Chris Goller | last post by:
Imagine a cross platform library. A particular object wraps up operating system specific functionality and presents it in a uniform manner. Generally, people use ifdefs to change the...
10
by: David Soukal | last post by:
Hello, I have an interesting problem that I'm tackling with. I'm sure there must be some obvious solution... I have this big project. It's composed of several *.lib modules. Now, one of the...
19
by: Paul | last post by:
hi, there, for example, char *mystr="##this is##a examp#le"; I want to replace all the "##" in mystr with "****". How can I do this? I checked all the string functions in C, but did not...
3
by: Manny Silva | last post by:
Hi, I would like to create a static library that uses and in effect adds to another static library. I could simply add functionality to the existing library, but functionally it doesn't really...
1
by: mmacrobert | last post by:
Hi Everyone, I've created a 'C' dll that is accessed via ctypes library containing a bunch of functions. I've successfully been able to use the functions. However, I would like to throw python...
10
by: Anil Gupte | last post by:
In one VB.Net 2003 solution, I have three projects (one in the installer project and not relevant here). However, the other two are the ones where I want to share some commone fucntions. One is a...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
16
by: Xiaoxiao | last post by:
Hi, I got a C library, is there a way to view the public function names in this library so that I can use in my C program? Thanks.
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.