User Profile

Collapse

Profile Sidebar

Collapse
freeseif
freeseif
Last Activity: Dec 27 '11, 05:25 PM
Joined: Jan 7 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • freeseif
    replied to SSL PHP cURL between two Server. How?
    but how my browser connect to this server by SSL ? if i didn't use SSL in my cURL php function this give hackers the possibility to get my user/psw
    See more | Go to post

    Leave a comment:


  • freeseif
    replied to PHP Unique execution
    in PHP
    because in this function my server connect to another server by an account, so the remote server don't allow multiple connections of one account...

    So when an user run my function then my server connect, but if another user run this function in the same time then my server can't connect because it's already connected!

    And the real problem is i can't connect one time and do many things.. so i most connect and disconnect for...
    See more | Go to post
    Last edited by freeseif; Dec 27 '11, 05:23 PM. Reason: bad English..

    Leave a comment:


  • freeseif
    replied to PHP Unique execution
    in PHP
    yes johny10151981, exactly!
    See more | Go to post

    Leave a comment:


  • freeseif
    started a topic PHP Unique execution
    in PHP

    PHP Unique execution

    Hello,

    Its possible to execute a php function one time for unique user ? or by user order ?

    I mean, if two different user connected in the same time, is possible to execute a php function only for user 1, when finish then execute for user 2...

    Some one know how ?
    See more | Go to post

  • freeseif
    started a topic SSL PHP cURL between two Server. How?

    SSL PHP cURL between two Server. How?

    Hello Every One,

    I have a dedicated server, and i want get my private informations from my bank.

    The server of my bank already have HTTPS, signed by VeriSign, Inc. RC4 128B.

    So i want use PHP/cURL to connect safely and get my private informations from bank server.

    I know that i should use CURLOPT_SSL_VER IFYPEER, CURLOPT_SSLVERS ION, VERIFYPEER, VERIFYHOST.. but how ? can some one please tell...
    See more | Go to post

  • freeseif
    replied to Pure GUI apps for Win/Linux/Mac in C++ with G++
    in C
    i say pure and not cross-platform!

    Windows

    Mingw/Win32-API

    Linux

    G++/QT
    or
    G++/GTKMM

    Mac OS X

    i don't know.. i think Objective-C/Cocoa!
    See more | Go to post

    Leave a comment:


  • freeseif
    started a topic Pure GUI apps for Win/Linux/Mac in C++ with G++
    in C

    Pure GUI apps for Win/Linux/Mac in C++ with G++

    GUI apps for Win/Linux/Mac in C/C++

    Please, i want know how to write a "pure" "native" "API-level" apps for Windows and Linux and Mac in C++.

    I don't want one-code run-anywhere, but a native code for every OS

    Solution For Windows

    Just use Mingw/Win32 API, its very simple!, very clear, and that way i like programming under Windows!.

    ------------------------...
    See more | Go to post

  • I find a solution to my problem, i want share the solution to any one interested by reading UTF-8 file in C99. :)

    Code:
    void ReadUTF8(FILE* fp)
    {
        unsigned char iobuf[255] = {0};
        while( fgets((char*)iobuf, sizeof(iobuf), fp) )
        {
                size_t len = strlen((char *)iobuf);
                if(len > 1 &&  iobuf[len-1] == '\n')
                    iobuf[len-1] = 0;
                len
    ...
    See more | Go to post

    Leave a comment:


  • @RedSon

    Yes, i m looking for a solution in C99 with GCC, i think i need read the UTF-8 file in binary mode and convert UTF-8 to UTF-16 or not! or other way.. i need help seriously =)
    See more | Go to post

    Leave a comment:


  • @RedSon

    First Thank you, i already read all MSDN pages that talking about UTF-8 ^_^, but i think i need use MultiByteToWide Char() after reading string from UTF-8 file, but i don't know how to use exactly!
    See more | Go to post

    Leave a comment:


  • @RedSon

    6 months of searching in Books, MSDN, Documentations, Internet, Forums.. i never found a solution to read UTF-8 file in C99!, can you help me please ? =)
    See more | Go to post

    Leave a comment:


  • @JOHNY

    Yes, you are right, i want edit title to remove "unicode" but no permission ^_^
    if you have a UTF-8 project, and you want to read UTF-8 file line by line, what is the easy way you use ? =)
    See more | Go to post

    Leave a comment:


  • freeseif
    started a topic How to read unicode (utf-8) / binary file line by line
    in C

    How to read unicode (utf-8) / binary file line by line

    Hi programmers,

    I want read line by line a Unicode (UTF-8) text file created by Notepad, i don't want display the Unicode string in the screen, i want just read and compare the strings!.

    This code read ANSI file line by line, and compare the strings

    What i want
    • Read test_ansi.txt line by line
    • if the line = "b" print "YES!"
    • else print "NO!"


    rea...
    See more | Go to post
No activity results to display
Show More
Working...