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 tweenerz

  1. tweenerz

    Slave SQL: Error Duplicate entry 'xxxxxxx' for key 'PRIMARY''

    got a weird issue. I have a cron that runs and rapidly inserts multiple records in the db, and also have a web app that may insert at the same time. Neither query specifies the primary key field in the sql; both leaving it up to the auto_increment value. 99% of the time it works fine, but...
  2. tweenerz

    Is it possible to bypass basic auth popup via jquery and keep for subsequent requests?

    This question overlaps many forums, but I figured this would be the best due to the necessary knowledge of basic auth and server authentication. I have a server directory (say ... protected_env) that uses basic authentication and removing that is not an option, so I have to work with it. I...
  3. tweenerz

    DOMXpath

    I need to do use the evaluate function in teh DOMXpath, but the attribute I am trying to access has a colon in it, and I cant figure out how to get it. I can access all the attributes with just letters, but it doens tfind this one: $xpath = new DOMXPath($doc); $entries =...
  4. tweenerz

    Seemingly harmless message sent to STDERR

    Whenever I decrypt a file, everything works fine (i.e. the file is decrypted and the decrypted message is sent to STDOUT or a file depending on how I execute the command). The problem is that the following message gets printed out: gpg: encrypted with 2048-bit ELG-E key, ID 12345678, created...
  5. tweenerz

    ftp_raw issue

    If I do a print_r on the return message from ftp_raw, it always has just one entry in the array. Each one of those responses in the above was in the first and only element of the array. i.e. print_r($response) returns the following: Array ( [0] => 150 Opening ASCII mode data connection...
  6. tweenerz

    ftp_raw issue

    hello, I am using the native ftp functions from php and since the normal ftp_* doesn't give any feedback or responses, I am using the ftp_raw function to do all my commands. For some reason after I upload or do an nlist, I only get the first line of response back from the control channel: 150...
  7. tweenerz

    Get Response from FTP server?

    The problem is that I don't know if it is a timeout issue or not. All I am saying is that if there is an error, timeout or otherwise, I would like to get the response the server sends back. In other words, if I try to do an ftp_put() for example and it returns false, I want to know why.
  8. tweenerz

    Get Response from FTP server?

    jpadie, Am I reading this correct that there is no way to get the message using the native php ftp functions (or PEAR for that matter)? Is the only alternative to use fsockopen or socket_connect and send the ftp commands manually? The problem I run into with that is that if a do an fgets...
  9. tweenerz

    Get Response from FTP server?

    I am using the native php ftp functions and noticed there doesn't seem to be a way to get the actual response back from the server I am connecting to (or trying to). Most or all of the functions simply return a boolean value. It would be nice to know what the actual response from the server is...
  10. tweenerz

    PHP Timeout

    I'm not. I just tried to call the flush() command (not ob_flush()) to manully/explicity flush the content. But it doesnt work. I dont know why it is not printing out the out as it goes. Buffering can happen automatically at every conceivable level: php, apache, server, and browser. So I...
  11. tweenerz

    PHP Timeout

    OK. I think I have found out the problem. I don't exactly know what part of the process is actually timing out, but I think it has to do with the fact that there is no output (even though I ran the flush() command) So if there hasn't been any output in 60 seconds, something in the process is...
  12. tweenerz

    PHP Timeout

    jpadie, OK. I decided to simplify things quite a bit in an attempt to isolate the problem. I created a page with the following, including all the configurations I used. I am not getting any error messages - just a blank screen. Nothing in the error logs either. By getting the NOTICE, that...
  13. tweenerz

    PHP Timeout

    Thanks jpadie, I am using a lamp system of some sort. Not sure what exact flavor of unix it is (linux I think). I am actually not getting any errors at all, just a blank page . When you said wrong order for the if statement, were you referring to the while statement? Because there is no...
  14. tweenerz

    PHP Timeout

    Ok. Here is some of the code for the curl. There is a lot of information I dont want to display for proprietary reasons, so I'll do my best. $url = "http://blahblahblah.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1)...
  15. tweenerz

    PHP Timeout

    jaxtell, I set max_execution_time to 300 seconds already and I included max_input_time at 300 too and it didn't help. safe_mode is set to OFF in the phpinfo() screen. jpadie, The curl operations do a series of API requests and screen scrapes. As I alluded to before, I am recording the...

Part and Inventory Search

Back
Top