Jump to content

jjk2

Members
  • Posts

    115
  • Joined

  • Last visited

    Never

Everything posted by jjk2

  1. is there any web interface solution that lets users login, run and schedule jobs of specific CPU intensive background tasks, view running jobs, delete jobs ? There should be administration section where you can configure, queue jobs etc. Hudson CI is something that does the described, but I'm wondering if there's a more lightweight and common general purpose solution out there. I can't quite put a finger on how to define this process, so I am asking for suggestions.
  2. [Fri Jan 29 20:23:28 2010] [error] [client 23.23.23.23] Premature end of script headers: header.php [sat Jan 30 10:22:42 2010] [error] [client 23.23.23.23] (8)Exec format error: exec of '/var/www/cgi-bin/header.php' failed how to fix this ? basically a .cgi script loads header.php which contains javascripts and some php stuff..... i notice .cgi script runs fine but none of the javascripts and php things work.
  3. what is a valid ? well i have a gmail account setup on mysite.com i think this is causing this problem /
  4. <?php $to = 'someone@gmail.com'; $from = 'me@here.com'; $message = 'blah blah blah'; $subject = 'yadda yadda yadda'; mail($to, $message, $subject, "From: $from", "-f$from"); I am on a dedicated linux machine. I have a named based virtual host setup on apache2. i have 2 domains running on the same ip. Anyway I can edit options or something ? this email problem needs to be solved as emails of important information like email verification login etc are sent out.
  5. is there a plugin or some library written that lets users specify date and time interval so that a background script can be run at those interval ? how would i match the PID of the running script to the user that requests it ?
  6. http://particletree.com/features/how-to-add-an-api-to-your-web-service/ my question is in that article, do 3rd party developer's must use CURL to send the POST requests ? also, is there a php framework that makes designing of web service API easy/efficient ? OR is there more tutorials where I can learn how to create web service API ? cheers.
  7. i am using php 5.2.8 i have index.html, which loads LOAD.PHP from IFRAME. <iframe src="load.php">..... i printed out load.php's session id. then i ran another test.php, and printed out it's session id. same directory, same permissions. they were different. therefore, i cannot pass any session variables.... what is happening here ? this problem did not happen before meddled with .htaccess to put some redirect....i removed it after. however this problem still exists....its driving me nuts ! session.saved_path is same for both.... /var/php5, cookie path is same...
  8. anyone? could this be the result of .htaccess tinkering? i was redirecting stuff earlier.
  9. also, add.php is loaded via iframe..... view.php is not.
  10. Notice: Undefined index: vars in /view.php on line 8 i made changes to .htaccess yesterday i just remembered.... i delieted .htaccess.
  11. i have not made any change to browser or ini. was there a major firefox update ? i have recently upgraded to php 5.2.8....but left php.ini unchanged...even then it was working fine. just today suddenly, it fails. yes i have tried print_r($data) on first page....it works... print_R($_SESSION['vars']) on first page, also works. so it is writing to the session varaible correctly.
  12. yes they are different..... i dont understand why....everything was working fine till today.
  13. very strange. the scripts were working without problem. i made no changes. i have add.php, which writes to session_start(); $_SESSION['vars'][] = $data then i have view.php session_start(); print_r($_SESSION['vars']); view.php returns empty array().... but all this time, code was working perfectly, and view.php were outputting appropriate contents.... i dont understand what is going on....
  14. i am having trouble with DOMXPath::evaluate() on one server. the test script is not working on this server, while on the other it is working... which component am i supposed to upgrade? libxml ? please help, i am stuck on this for a while. i checked phpinfo() both servers have the following settings... DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.6.31 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled . 'foo, bar' expected 'descendant-or-self::foo|descendant-or-self::bar' but got 'descendant-or-self::foo,/descendant::bar' ................................ Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27 'div, p' failed, expected 2 but got 0 Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27 Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27 'div , p' failed, expected 2 but got 0 Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27 Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27 'div ,p' failed, expected 2 but got 0 Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27 'div, p, ul li a' failed, expected 3 but got 0 ............................Attributes failed
  15. Regex is not reliable? Since when? You mean, you can't write a reliable pattern? It's all good, I'm not much chop at regex either. Anyway, if I was you I would be using jQuery to get the information you want. there are many variations with html tags, its better to use parser lib than regex. you couldget away with regex but i prefer not to use it. i am looking for a library that will return an array of information including all attributes, text, and element type (a, h1, div)...
  16. well i was looking more for library....regex is not reliable.
  17. for example getdata('<a href="asdf.com" class="new" title="craa">testing</a>'); how can i do that ? thank you.
  18. both are running php5 however, in the original server, when i had header() inside an html page, it was okay. in the new server, it would complain that you cannot modify headers. also, session_start() starts complaining that it's not at the very top of the page, whereas in the original server, there was no such compalints, and everything worked beautifully.... am i missing a php mode ?
  19. i have a small server running a front end site, and a dedicated server running the core service app. i need to send the user inputted fields and POST it to the dedicated server. it works with $_GET on the remote server, but not with $_POST, it throws some http error (302). please help! thank you.
  20. i have a table of about 1000 rows. i will be dumping another 2000 rows. however, the 2000 rows have id's starting @ 1 to 2000. so when i try dump it, it says duplicate id and will not dump....
  21. is it possible to highlight or run jquery functinos inside the iframe, where another page from a different domain is loaded? for instance, i load something.com into iframe, and want to highlight all the anchors.
  22. i used this $handle = @fopen($dir, "r") or die ("failed opening dir file list...exiting"); if ($handle) { while (!feof($handle)) { $lines[] = fgets($handle, 4096); } fclose($handle); } however, i still get the same error message...
×
×
  • 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.