The following code:
#include <stdio.h>
void main()
{
printf("\\97\n");
printf((char*)"\\97\n");
char i = getchar();
}
...outputs:
\97
\97
Any ideas why it doesn't work for me? Girish Gupta
girish@musicgoeson.com
This isn't really a question specific to Borland C++ but it is C.
Does anyone know how to print ASCII code in C.
printf("\\97");
That doesn't work... Girish Gupta
girish@musicgoeson.com
Why not call the JavaScript file '*.php'? Then when you call it in your html file:
<SCRIPT src="*.php" language="JavaScript"></SCRIPT>
If you do want to change the .htaccess file add the following line to it:
AddType application/x-httpd-php .js
Girish Gupta...
I'll just add that you can set an unlimited number of variables in the URL:
http://www.domain.com/file.php?name=Girish&age=15&gender=m would be the same as putting the following code at the top of file.php:
$name = "Girish";
$age = 15;
$gender = "m";
Girish Gupta...
http://www.domain.com/file.php?var=1 will give file.php the following variable:
$var = 1;
That's it. So, for a redirect: http://www.domain.com/file.php?file=1
/* The variable $file has already been set in the URL */
header ("Location...
I want to search a string for each occurence of a link (http://....) and then put <a> tags around it. This is what I have:
function MakeLink($text)
{
$text = ereg_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "<a href=\"\\1://\\2\\3\"...
$q = "re*g*r";
$q = ereg_replace("*", "%", $q);
mysql_query("SELECT * FROM ... WHERE ... LIKE '%$q%'");
Does that help? Girish Gupta
girish@musicgoeson.com
Could someone send me or tell me where I can get hold of the TServerSocket and TClientSocket components for Borland C++ 4? Girish Gupta
girish@musicgoeson.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.