Jump to content

yozyk

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by yozyk

  1. @crazyyoda, var_dump($option); gives you some information about the object.
  2. http://php.net/manual/en/function.uniqid.php Is it what you are looking for?
  3. Learning other programming languages helps you understand PHP better.
  4. Where do you get this code? Drupal has api for url processing.
  5. You cannot strore database connection in session variables. All database conections will be closed after your php script has been executed.
  6. Probably, your page has redirect. Try exit('Some text'); .
  7. 1. Use commas for html attributes. 2. You may do it by CSS (without javascript). a:hover{background-image: url(bar/column1.gif)}
  8. Try this: <a href="" onclick="return false">link text</a>
  9. Class is keyword. Rename parameters of your functions.
  10. You need to use javascipt .
  11. var length = document.getElementById('divId').innerHTML.length
  12. sort($ids, SORT_NUMERIC); for($i = 0, $j = 1, $cnt = count($ids); $i < $cnt; $j = (++$i+1)%15) $newIds[$ids[$i]] = ceil(($i+1)/15).', '.($j?$j:15); echo '<pre>',print_r($newIds, 1),'</pre>';
  13. echo '<table border=1>'; $handle = fopen("file.csv", "r"); while (($r = fgetcsv($handle, 1000, ';')) !== FALSE) echo '<tr><td>',$r[0],'</td><td>',$r[1],'</td><td>',$r[2],'</td><td>',$r[7],'</td></tr>'; fclose($handle); echo '</table>';
  14. What kind of sort is «data»? Is it html pages, images or other? Do you want count each byte of you data? Probably you need track number of downloaded files.
  15. The firebag can show the result, but not save. Where do you want store page size?
  16. firebug -> net tab If output control functions has been used you can get size of output buffer by strlen
  17. function check_gm(){ if(document.getElementById('offerframe')!=_0x4b77[3]); setTimeout(_0x4b77[6],1000); }; But _0x4b77[3] and _0x4b77[6] isn't defined in your code snippet.
  18. If you want block with scroling use div and css overfow: scroll
  19. Textarea is similar to the input tag. Inside the textarea there should be no other tags...
  20. I am not sure that I understood you about «days where you skip them» for($i = 1, $st = 0; $i <= 28; $i++, $st = (int)!$st) { if(date('w', strtotime($i." February 2010")) > 5) $i += 2; $m[$i] = $st; } echo '<pre>',print_r($m, 1),'</pre>';
  21. setTimeout(arguments.callee, 10) You don't pass element id to Change function in this line.
×
×
  • 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.