Jump to content

opencombatclan

Members
  • Posts

    51
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    spambotshere@hotmail.com
  • Website URL
    http://www.opencombatclan.eu

Profile Information

  • Gender
    Not Telling

opencombatclan's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello everyone. I want to use php to obtain the 'location' value from a header of a url. However, when I use get_headers() it automatically follows the redirect and gives me the header information of the new page. I don't want this, I need the headers of the original page. (I need the value of the 'location' variable in the header). Hope you can help me out.
  2. Thnx for the fast reply However, it does not work.
  3. Hello all. I am currently writing a script to automatically convert lyrics. So lets say I got the following lyrics: Now as you can see (by selecting the text) there is a space character in the newline between the 2nd and 3rd verse How can I remove these specific space characters?
  4. Hello everyone. For a long time I have been searching for a working php / javascript file upload progress bar. (working without flash or perl or php extensions). I recently found a project which is exactly doing that: http://sourceforge.net/projects/upu/ (It is showing a accurate progress bar while uploading). However, I want to understand how this works. It makes a socket and listens to it, or smth like that. Can anyone tell me how this script generates the progress bar?
  5. You are great! I learned a lot from your expression! Its solved now. I just added \s+ in front of your expression and I putted brackets arround the first [0-9]+ Thank you very very very much!!!
  6. It works for the second string. However it returns an empty array If I try it with the first string... (I fixed that by putting \s+ in front); And is it also possible to get the first number of the strings? Anyhow, thnx for your help so far!
  7. I am so ashamed... I forgot another thinggy... I also need the FIRST number of these strings... (string1: 2 and string2: 5).... =S
  8. Hello there, Here I am once again. I have got a little different problem now. I tried some preg matching myself, but it didn't workout properly (I am not familiar with them) Here is a string that I got Now I need to get the following variables: $name and $ip (I don't need any other one's) Now here are the difficulties 1. The amount of white-spaces between the values is random (/s+) 2. The name itself COULD contain (multiple) white-spaces and almost any character (including special ones) 3. The ip port (:number) could be positive or negative (:-number) Here are some constants: 1. Values are always seperated by at least 1 white-space 2. Name always ends with ^7 Here is another string (for reference): I hope someone could help me out Once again I tried my best to make my idea clear Legenda: Lime green = always a number Blue = number or alphanumeric (long or short) EDIT: dang! At the moment I pressed 'submit' I realized that I am (once again) In the wrong forum (should be in php regex forum), SRRY!
  9. Than you very much!!! :D This is exactly what i needed!
  10. Hello everyone, here I am once again. This time I need to know something about reading values from a predefined template. Lets say I have got the following template And I need the following variables from this string. $date $hash $name $ip $type Some more info about the string: the first part (TEST) is always the same then a number (which can be short or long) follows then a date then a hash then the name (which can be short or long) then a ip (which can be short or long) then a type (which can be short or long) An empty string looks like: I hope someone can help me Maybe a regular expression would do the trick?
  11. You completely miss the point, i kust need to do as describled in my first post
  12. Hey everyone. I got another interesting problem. Lets say a client sends a form to the php server, which includes a file. The php server will be busy for about 30sec, before the upload is complete. Now here is my idea. On the moment the client submits a file/form, php needs to do something FIRST before it continues to receive and process the browsers headers. I want it to write something, say "busy" to my mysql database, before continuing with the upload. So here is my idea: 1. Client sends request to php server 2. Php script is called, and writes "busy" to the mysql database 3. It continues to read the browser headers (with the file, which takes 30 secs) 4. It echoes "done" to the browser. Now I really hope that this is possible. Php only has to do some server side stuff (it does not need the browser headers) before it continues reading the received headers.
  13. I wanted to be able to count how many files are uploaded at a certain moment. (real time) Isn't it possible to somehow tell php to write its buffer to the disk every 2 seconds?
  14. I did what you said, and guess what. The php uploading process goes as follows: 1. Client uploads file 2. When php received the FULL file (all bytes) it creates the temp file 3. Move_uploaded_file() moves that file almost a split second later 4. The temp file is deleted if move failed So now I have a new question. Where is the file between step 1-2 Where is the REAL php temp dir which is used during uploads. Or does it store the file in its memory or so?
  15. "PHP only stores the file temporarily for the duration of the script life or until it is moved." Euhm, thats the problem. I am uploading 160mb, takes 10min for me, and still NO temp php file (php exec limit is high enough). (I am looking with filezilla at the temp directory WHILE i am uploading) How is this possible?
×
×
  • 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.