Jump to content

drorgo

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

drorgo's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hmm .. so is there another way of showing how posted files (or other binary object) are parsed as mime type and raw data ?
  2. Hi Gurus , I'm trying to illusrate to a friend of mine how mime raw data is posted , by using a simple HTML code for uploading several files and uploading the files to a PHP script. the HTML form is pretty straight forward (I use ENCTYPE="multipart/form-data" , and MAX_FILE_SIZE variables) , however , at the the PHP level I did my best for viewing the raw data . something like : Content-Type: multipart/form-data; boundary=---------------------------7d12b732260086 Host: www.myserver.com Content-Length: [The correct length] -----------------------------7d12b732260086 Content-Disposition: form-data; name="whatever" 123[NULL]456 -----------------------------7d12b732260086 Content-Disposition: form-data; name="foo" normal text, not binary -----------------------------7d12b732260086-- ****END**** this is what I tried so far without any success : 1 . outputing the $http_post_data (after chaning php.ini as requested) 2 . outputing "php://input" 3.  outputing the $_POST array. any idea how the I print the multipart-raw data request on the screen ??
  3. Hi, Has anyone experience with UDP sockets ? I need to write a basic application of 'master' server that transmits realtime informaion , and few client App that 'tune' (or listen) to this UDP sockets and viewes the streamed information .    I need to find some references for this kind of program ... Thanks,
  4. OK , it's a little bit tricky , however I can't get it done  ??? ... There is a main page HTML/JS file that continuesly picks random numbers and print then on screen. there are 2 or more 'viewers' that can hook to a certain URL and observe the main page and its changing random numbers at real time - each viewers see *exactly* the same view. I know how to implement this using files (saving each random number into a temp file , each one of the viewers fetch this file content and prints it onscreen) , yet : this has few disadvantages : 1. slow (I/O). 2. the viewers are not really *exactly* tuned to the main page changing numbers - there is some kind of latency in this scenario. 3. the viewers don't see 100% of the main page information this way. I think that AJAX might be handy here , yet I need a guiding hand here , I would start from the following question : How can I get realtime dynamic values (which keeps changing each second) from a main page using other JS files (using some kind of socket or open connection I guess) ? Thanks.
  5. Assuming I don't have the PHP source code and cannot use the  \.configure option with GD enabled , are there any other way I can make an existing PHP installation (which doesn't have the GD option) to support the GD library ? I've read many articles that refers me to the --with gd option , yet this option is not relevant to me (according to my understanding) since I don't have the ability of recompyling PHP. I'd rather use some sort of SO and place it at the right place , if this is feasible ... ?? my current settings : PHP : 5.0.4 Apache/2.0.52 (CentOS) Thanks !
  6. Hi, I know this is a kind of question that has been raised here from time to time , yet I couldn't find any reference for it here ... What would be the easiest way to upgrade an Apache2/php 4.x/Linux system to Apache2/php 5.x/Linux  on the same computer ? is it only a matter of changing the so files and the php.ini ? I don't matter about the coding stuff , only about upgrading to the proper environment (Apache2/php 5.x) Thanks,
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.