Skip to main content

May
14
2010

  • Password protect your content with Web Page Password Protect by just adding one line of PHP code to your page source. Script will present user with password entry form, and will not let visitor see your private content without providing a password.

     Multiple user accounts support, improved security, automatic logout, and manual logout feature.

  • MachForm is an intuitive, browser based, self-hosted HTML form builder program. Designed as a modern HTML form builder,   it makes use of the latest web technologies like AJAX, CSS, and Javascript to provide a fluid browser based experience.
Apr
19
2010

  • extract($_POST);
     $page= get_url_contents($site2Read);
     echo $page;
     function get_url_contents($url){
     $crl = curl_init();
     $timeout = 5;
     curl_setopt ($crl, CURLOPT_URL,$url);
     curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
     $ret = curl_exec($crl);
     curl_close($crl);
     return $ret;
     }
Apr
7
2010

  • Ext Direct Remoting
  • remote server-side methods to the client-side
  • 1 more annotation(s)...
Apr
2
2010

schreibt am server z.B. ein textfile mit was passiert.
Wird z.B. beim berühmten ITIL dashboard verwendet.

php ajax debugger server

in list: dev

Mar
8
2010

  • HipHop for PHP. With HipHop we've reduced the CPU usage on our Web servers on average by about fifty percent, depending on the page. Less CPU means fewer servers
  • HipHop for PHP isn't technically a compiler itself. Rather it is a source code transformer. HipHop programmatically transforms your PHP source code into highly optimized C++ and then uses g++ to compile it.
  • 1 more annotation(s)...
Feb
12
2010

  • Parsing variables within strings uses more memory than string concatenation. When writing a PHP script in which memory usage is a concern, consider using the concatenation operator (.) rather than variable parsing.
  • since echo can take multiple arguments, it is actually quicker to perform operations that way instead of using concatination: echo “Yahoo”, $str
  • 3 more annotation(s)...
Feb
10
2010

  • Hibernate is a powerful, high performance object/relational persistence and query service. Hibernate lets you develop persistent classes following object-oriented idiom - including association, inheritance, polymorphism, composition, and collections. Hibernate allows you to express queries in its own portable SQL extension (HQL), as well as in native SQL, or with an object-oriented Criteria and Example API.

    Unlike many other persistence solutions, Hibernate does not hide the power of SQL from you and guarantees that your investment in relational technology and knowledge is as valid as always. The LGPL open source license allows the use of Hibernate and NHibernate in open source and commercial projects.

Feb
8
2010

replace last character from string substr_replace($incoming,"",-1);

php string

in list: dev

  • /* Delete 'MNRPQR' from $var. */
    echo substr_replace($var''10, -1) . "<br />\n";
    ?>

  • Iterates over each value in  the input  array passing them to the  callback  function. If the   callback  function returns true, the current  value from input  is returned into the  result array. Array keys are preserved.
  • Example #2 array_filter() without  callback 

     
     
     <?php

    $entry 
    = array(
                 
    => 'foo',
                 
    => false,
                 
    => -1,
                 
    => null,
                 
    => ''
              
    );

    print_r(array_filter($entry));
    ?> 
     
     
      

    The above example will output:

     
     
    Array (     [0] => foo     [2] => -1 ) 

  • PHP make this very easy by including functions like file_get_contents() that has URL support. This code will get you the contents of an URL.

     
    $contents = file_get_contents('http://example.com/rss.xml');
      

    Unfortunately, this is a huge security threat - and many servers have disabled this feature in PHP. Also this is not the most optimized method to fetch an URL. Also, it is impossible to submit data using the POST method using this function.

      

    Other Options - curl and fsockopen

      PHP provide other two method to fetch an URL - Curl and Fsockopen. But to use this I have to write a lot more code.
1 - 20 of 25 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo
Move to top