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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jamesp0tter

    Reuse socket connection multiple times

    Thanks for the reply jpadie. The purpose of this project is to connect to any server on the internet (server-side access and API isn't an option), and cURL doesn't really prove necessary in this case. I got it to work :) Problem was feof() only returns true when we tell the server to close the...
  2. jamesp0tter

    Reuse socket connection multiple times

    Hello all ! I'm developing a personal side project, and basically I need to get various bits of a remote file. I use the "Range" field in the HTTP request to accomplish this, and it's all working perfectly. But, as I need various bits, initiating a connection, sending headers, getting...
  3. jamesp0tter

    Problems saving an incomming stream into a file

    I managed to solve it :) My working code is: if FileExists(f) = true then begin fs := TFileStream.Create(f,fmOpenReadWrite or fmShareDenyWrite); fs.Seek(0,soFromEnd); end else fs := TFileStream.Create(f,fmCreate or fmShareDenyWrite)...
  4. jamesp0tter

    Problems saving an incomming stream into a file

    You're right, it does work, I just didn't notice a stupid error (I already had the contents of the stream before calling Receive(Count) again :S dumb..). But I have another problem now, the data I save isn't ok! I made a test with a button that, when clicked, would save the contents of...
  5. jamesp0tter

    Problems saving an incomming stream into a file

    Hey guys, like the title says, I can't save an incomming connection's data into a file, or at least not the correct data: I managed to TFileStream it but the data was all garbled, and seeing the file in an hex editor showed the contents of the saved data are very different from the actual one...
  6. jamesp0tter

    Delphi panics when returning a custom class in a function?

    Nice, thanks, that didn't occur to me :) jamesp0tter
  7. jamesp0tter

    Delphi panics when returning a custom class in a function?

    I have defined a custom class: type TWhtv = class one: string; two: string; end; and the following code function abc: TWhtv; var u: TWhtv; begin u.one := 'first'; u.two := 'second'; result := u; end; procedure TForm1.Button1Click(Sender: TObject); var o: TWhtv...
  8. jamesp0tter

    Creating an ActiveXObject based on a VCL component ?

    I'm trying to build an ActiveXObject that mimics the behavior of a VCL component I have (non-visual, both VCL and ActiveX). What do I have to do to accomplish this ? I created a sucessfull example of an ActiveX that displays a message box when a custom method is called, but how do I make it...
  9. jamesp0tter

    ASUS special buttons - API ?

    Hello, I've been trying to solve this problem for some time now, but with no luck ... I own a ASUS M6N and it has a set of special buttons/keys that perform specific functions around the laptop. I'd like to know how I can "hook" this special button keypresses so I can perform custom procedures...
  10. jamesp0tter

    preg_replace question

    Hello, I have the following code: <!--TestBegin12--> sjgidshgifdjhsdh <!--TestEnd12--> <!--TestBegin22--> ssrvytybsgfhgfjh <!--TestEnd22--> <!--TestBegin47--> fdhsfdjdfyhhsjfj <!--TestEnd47--> <!--TestBegin2467--> asfsvffdjhsdh <!--TestEnd2467--> and I need to match them with a preg_replace...
  11. jamesp0tter

    max number of characters in database name?

    Well, at first sight it seams to have nothing to do with database related limitations, but a simple error in your code. "Unclosed quotation mark" is pretty self explanatory, it basically means you missed some quote/apostrophe. Make sure you have all opened quotes/apostrophes closed, and that you...
  12. jamesp0tter

    Bluetooth audio - Nokia 6630

    Hi, First of all I'm a complete novice in bluetooth/symbian interaction. I own a Nokia phone with bluetooth, and a bluetooth usb adapter. I can connect the phone to the pc without any problem, and do every task I'm supposed to be able to. My question is, is there any way I can "talk" to my...
  13. jamesp0tter

    setcookie

    also note that when setting cookies, they usually don't work if you use them too fast after setting them. i mean, if you set the cookie in the beginning of the code and then try to read it after it won't work, the same if you set the cookie and redirect to a page that will read the cookie...
  14. jamesp0tter

    php form submit security

    dunno. but, you can always use functions already existing that escape all the needed chars, like htmlspecialchars(transforms all unusual chars into their html notation), addslashes(escapes unusual chars), urlencode(transforms unusual chars into their hex/url notation), etc. just start giving a...
  15. jamesp0tter

    Size of file

    Thank you for that function, that definetly deservs a star! :) jamesp0tter, mr.jamespotter@gmail.com p.s.: sorry for my (sometimes) bad english :p
  16. jamesp0tter

    Display image with IMG

    Looking at your code the correct would be [CODE]echo "<img src=\"$path/$fichier\">";[CODE] that'd work. jamesp0tter, mr.jamespotter@gmail.com p.s.: sorry for my (sometimes) bad english :p
  17. jamesp0tter

    Pb with upload file

    $dest must also include the resulting filename like : $dest = "images/file.zip"; jamesp0tter, mr.jamespotter@gmail.com p.s.: sorry for my (sometimes) bad english :p
  18. jamesp0tter

    forwarding variables

    Why complicate? Use $_POST. page1.php <form method="POST" action="page2.php"> <input type="text" name="username"><br> <input type="text" name="password"><br> <input type="submit" name="submit" value="Submit"> </form> page2.php <? if (isset($_POST['submit'])){ echo 'Username...
  19. jamesp0tter

    Passing Variables to New Page

    and i assume you forgot to close the ' before ] :P btw, $_GET is for the vars passed in the url (i.e. index.php?foo=bar), $_POST is for form fields, as well as $_REQUEST... so in your case $_GET would have to work ;) jamesp0tter, mr.jamespotter@gmail.com p.s.: sorry for my (sometimes) bad...
  20. jamesp0tter

    filter Rss/atom feeds (need help)

    Well, first you would need to use a "+" before the first "hello" so you know if you want the first word or not, like: title=+hello+goodbye-stupid Second, it's much easier if you separate each word, like this: title=+hello|+goodbye|-stupid That way, you can explode($_GET['title'],"|") and...

Part and Inventory Search

Back
Top