Jump to content

jorgep

Members
  • Posts

    61
  • Joined

  • Last visited

    Never

About jorgep

  • Birthday 05/20/1985

Contact Methods

  • MSN
    jorgepedret@hotmail.com
  • Website URL
    http://jorgepedret.com

Profile Information

  • Gender
    Male
  • Location
    Mississauga, Ontario

jorgep's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yup, it worked, I did it again and this time it last 39 minutes and worked fine. What I'm not sure if it was that specific change that made it work, cuz I added some other stuff. Thanks anyway I could say that your suggestion solved it hehe!
  2. ;D ;D It worked!! I don't know why it just took 20 minutes to process all 12000+ contacts, man! I've become an optimization guru after this hahaha! At the beginning of the main function i added ini_set("session.cookie_lifetime",4000); Thanks a lot GingerRobot you rock!
  3. Thanks GingerRobot, I will add that in my next test right now I have to wait like 987982743 years for the script to finish! I'll post the results later!
  4. Thanks for the reply cooldude832 and GingerRobot. cooldude832: I know that, and that is almost dismissed since the script is working perfectly for less than 6000 contacts GingerRobot: That sounds very logic, I just checked it and it is set to 0 ; Lifetime in seconds of cookie or, if 0, until browser is restarted. session.cookie_lifetime = 0 Do you think I should set it to a number or something? It's a pain in the rear to test this script since I have to wait 40+ minutes until I get a result back. Thanks again for your answer
  5. Hello Fellows, This is kind of complicated problem to explain, I'll do my best to make it clear: The Process: I have a huge process where I fetch contacts information from a database and from a csv file and then use this contacts data to create a PDF file (I'm using PDFlib). When all the process is done, I set some session variables that include information from the generated file and forces a download through php headers. The Problem: After I process more than 6000 contacts (around 10 minutes processing) when I force the download it seems that the sessions variables don't get correctly set. I'm almost sure is not a session variable problem (like headers already sent) since it works fine for less than 6000 contacts. My Suspects: 1.- PDFlib dies some how and echo something and I can not set my session variables correctly 2.- Something regarding the memory usage My configuration: max_execution_time = 3600 max_input_time = 3600 memory_limit = 2048M I need to process around 12000+ contacts if you have a clue of what could be happening that would be great! Thanks for reading and any hint/help/guide would be highly appreciated
  6. Hello fellows, I'm currently having an issue with soap and nusoap. I have installed an old version of nusoap which is known to have naming collision with php soap in the class soapclient. There is no possibility of upgrading to the new version of nusoap since it implies rewriting and testing a LOT of code. I'm trying to integrate some Salesforce* functionality with an API that they give you, but it only uses php soap. So if I install php soap on my server I will have conflicts with my previous nusoap. In conclusion my question is, is it possible to disable a php module on the fly? Is there a way I can 'undefine' the php-soap class soapclient so it takes the nusoap one? (If you have integrated SF with nusoap before it will help too, since I can not find any documentation) * Is just a popular CRM application Thanks a lot!
  7. I guess that if it is for showing something in a user defined/customized mode, you should add an 'order' field to your table, and set the order number desired in there. Depending on how advanced you are, you could use some ajax implementation, which is really cool. I'm talking about scriptaculous (http://script.aculo.us/downloads). Their website is down right now. But when you have a time, check out the ordering list that they have. Is really cool, and not to hard to implement. Otherwise you will have to add too more columns to your cms html table, and add an arrow up and an arrow down and make regular parameters passing.
  8. Could be the easiest, but they wouldn't know what they are doing. I have the same opinion, WYSIWYG is Crap. A good php editor. When I'm working on Windows I like - Notepad++ (with the php extension): (http://notepad-plus.sourceforge.net/uk/site.htm) It have some good stuff, syntax highlighting, functions autocompletion. Really really lightweight and great for searching strings. - Dreamweaver (Just the Code section - never use the design section hehe) You have to pay or illegally download it - Eclipse (With the php extension) This one is really cool. Although I had to modify some of the predefined text completions rules cuz they were driving me crazy. Eclipse have user defined functions, classes and variable autocompletion (which is reaaally cool), and regular functions autocompeltion. Also is compatible with estandar documentation. If you document your functions, when it is autocompleting that function, you will be able to see what it does, what parameters the function receive and what it returns. You can also use CVS with your php projects. Is a very complete tool. The only contra part is that is a heavy loading program, built on java. But is worth it. And is free. (http://www.eclipse.org/downloads/)
  9. <?php echo date("Y m d",time()-(60*60*24)); ?> The time function returns the number of seconds since 1970-01-01 the date function receive as a second parameter this number of seconds. So when you say time()-(60*60*24) it means all that time minus 1 day. Hope it helps
  10. I sent the documentation web site so he can find out hehe
  11. $text = "line1\nline2\nline3\nline4\n"; $lines = explode("\n",$text); unset($lines[0]); $final_text = implode("\n",$lines);
  12. echo $_SERVER['PHP_SELF']; In this site you can find more: http://us.php.net/reserved.variables
  13. :S that is not enough information, what error are you getting? did you activated the session variables? whats is your final query???? Edited: Or just scape the string... $insert = mysql_query("INSERT INTO users VALUES ('', '".$_SESSION['NAME']."', '".$_SESSION['CONTACTNO']."', '".$_SESSION['EMAILADD']."', '".$_SESSION['GENDER']."')");
  14. Ok!!! thanks for your help! I dont think I can do that right now, but I'll check to see if it has something to do.! Thanks a gain
  15. The identify program is from image ready I think, and it is installed on my machine (the server) and if I die($cmd) and put that directly in the console, that works, in fact in my php script is working too, because I get the result that I want. I tried with hostname as you said and with ipconfig and it just hangs there, returns nothing. I shouldn't be in the php script.
×
×
  • 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.