Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by GirishGupta

  1. GirishGupta

    Printing ASCII

    Brilliant!!! Thanks! I've created the following: #include <stdio.h> void main() { int i = 0; while (i<=256) { printf(&quot;%c = %d \n\n&quot;,i,(int)i); i++; } char g = getchar(); } Girish Gupta girish@musicgoeson.com
  2. GirishGupta

    Printing ASCII

    I still don't understand how to it, or what I'm doing wrong... Girish Gupta girish@musicgoeson.com
  3. GirishGupta

    Printing ASCII

    The following code: #include <stdio.h> void main() { printf(&quot;\\97\n&quot;); printf((char*)&quot;\\97\n&quot;); char i = getchar(); } ...outputs: \97 \97 Any ideas why it doesn't work for me? Girish Gupta girish@musicgoeson.com
  4. GirishGupta

    Printing ASCII

    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(&quot;\\97&quot;); That doesn't work... Girish Gupta girish@musicgoeson.com
  5. GirishGupta

    php in a js-file??

    Why not call the JavaScript file '*.php'? Then when you call it in your html file: <SCRIPT src=&quot;*.php&quot; language=&quot;JavaScript&quot;></SCRIPT> If you do want to change the .htaccess file add the following line to it: AddType application/x-httpd-php .js Girish Gupta...
  6. GirishGupta

    Arrange Array's??

    Sorry, it should be: rsort($date); reset($date); Girish Gupta girish@musicgoeson.com
  7. GirishGupta

    Arrange Array's??

    rsort($date); reset($array); That should do it. Girish Gupta girish@musicgoeson.com
  8. GirishGupta

    Links, ereg?

    I've worked it out: function MakeLinks($link) { if (strlen($link)>50) { $linktext = substr($link,0,47).&quot;...&quot;; } else { $linktext = $link; } return &quot;<a href=\&quot;$link\&quot; target=\&quot;_blank\&quot;>$linktext</a>&quot;; } $var =...
  9. GirishGupta

    Question mark after php

    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 = &quot;Girish&quot;; $age = 15; $gender = &quot;m&quot;; Girish Gupta...
  10. GirishGupta

    Question mark after php

    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 (&quot;Location...
  11. GirishGupta

    Links, ereg?

    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(&quot;([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])&quot;, &quot;<a href=\&quot;\\1://\\2\\3\&quot...
  12. GirishGupta

    PHP and MYsql regular expression

    $q = &quot;re*g*r&quot;; $q = ereg_replace(&quot;*&quot;, &quot;%&quot;, $q); mysql_query(&quot;SELECT * FROM ... WHERE ... LIKE '%$q%'&quot;); Does that help? Girish Gupta girish@musicgoeson.com
  13. GirishGupta

    Background Email Send (continuos connection)??

    I have the following above my code: set_time_limit(0); I don't know if it does anything ;-). Girish Gupta girish@musicgoeson.com
  14. GirishGupta

    web site statistics

    $REMOTE_HOST will give you an idea of the country and ISP. $HTTP_REFERER is the referring URL. Girish Gupta girish@musicgoeson.com
  15. GirishGupta

    TServerSocket &amp; TClientSocket

    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

Part and Inventory Search

Back
Top