Skip to main content

Home/ PHP Programming/ Group items tagged php code

Rss Feed Group items tagged

lemike

PHP: rfc:isset_ternary - 0 views

  • The short ternary operator, ?: provides a way to do this much more conveniently: $_GET['mykey'] ?: "". However, this is not good practise, as if the value does not exist it will raise an E_NOTICE.
  • The coalesce, or ??, operator is added, which returns the result of its first operand if it exists and is not NULL, or else its second operand.
  • chained
  • ...3 more annotations...
  • precedence relative to the ternary operator and the boolean or operator
  • short-circuiting operator
  • PHP 7
  •  
    In PHP7 you can use $foo = $_GET['x'] ?? 'default_content' which raises no notices if $_GET['x'] is not set
Richard Boss

Steps to Write PHP Code in Joomla Article | TechNet - 0 views

  •  
    This article explores you how to follow steps to write PHP code in Joomla article. In this post, you will get full information. Read this post now!
qualitypoint Tech

Adding piece of PHP code in all files within a sub-folder - 4 views

  •  
    In this post I will explain about how to add piece of php code in all files (including new files to be added) within a particular sub-folder in Apache server hosting environment. Let me explain why we need to add piece of php code in all files within a folder.
  •  
    I wanted to read it, but I won't, because Chromium blocked it and gave me a warning that the site hosts malware... just to let you know.
  •  
    Bart Deruyter Thanks for your note, now it should be fine.we removed unwanted external links.
Sarah HL

Learning JavaScript from PHP - a Comparison | Lullabot - 0 views

  • In PHP, all variables are local in scope unless declared as global. JavaScript is opposite, and all variables are global unless declared with the var keyword.
  • Both PHP and JavaScript are loosely typed
  • JavaScript is a bit mixed concerning undeclared variables, if you attempt to modify or compare with an undeclared variable, the script will break entirely, but you can check the variable status using typeof() or in conditional statements containing only that variable.
  • ...6 more annotations...
  • JavaScript only recognizes the keyword true in all lowercase. PHP accepts both uppercase and lowercase
  • PHP is not case-sensitive in function or class declarations, but JavaScript is case sensitive for these also.
  • The key difference between PHP and JavaScript is that JavaScript does not have associative arrays.
  • JSON strings having become very popular as a faster alternative to XML, and can be read and created with the PHP functions json_encode() and json_decode().
  • Let's take one more look at defining an object in JavaScript and see how it can be used to compensate for the lack of associative arrays in JavaScript.
  • // Note that variables should always be// prefixed with "var" to define a local scope.for (var n = 0; n < 10; n++) {  alert(n);}
Sarah HL

Brendel Consulting - 0 views

  • "I don't want to write comments, because then I will have to scroll more to see the code.""Writing comments in the code takes time."Formatting the code nicely takes time, especially when I need to change a few things, in which case I then have to re-format the code."Code changes, and before you know it the comments are obsolete."
  • Meaningful variable and function names
  • Thoughtful source code documentation.
  • ...1 more annotation...
  • A legible and consistent coding style.
ptutorial

Php Introduction | Programming Tutorial | pTutorial | PHP Tutorial - 0 views

  •  
    Free php tutorials,examples for web building,php programming,php coding, What is php,Features of php,characteristics of php,learn php step by step,php example,learn php,learn php online
qualitypoint Tech

Need to solve error in PHP code useful for getting Google PageRank - 0 views

  •  
    We are working on to get Google pagerank using php code for one of our customer projects.I referred http://www.pagerankcode.com/down\nfor doing this.This code works fine in our local machine. We are using it for long time from our local machine. And, we tried to use it in our server few months back.
Sarah HL

Building semantic Web CRUD operations using PHP - 0 views

  • When developing a Web application, it's standard practice to create a database structure on which server-side code is placed for the logic and UI layers. To connect to the database, the server-side code needs to do some basic creating, updating, deleting, and — most importantly — reading of records.
    • Sarah HL
       
      Interet du CRUD
  • SPARQL — Simple Protocol and RDF Query Language
    • Sarah HL
       
      PHP works with SPARQK to implement CRUD
  • Why move from SQL to SPARQL? There are many reasons why you would want to move from SQL to SPARQL. The details extend beyond the scope of this article, but you could be motivated by the following points: You want a more distributed data solution. You want to expose your data on the Web for people to use and link to. You may find Node-Arc-Node relationships (triple) easier to understand than relational database models. You may want to understand your data in a pure object-oriented fashion to work with an OOP paradigm (PHP V5 and later supports OOP). You want to build generic agents that can connect to data sources on the Web.
    • Sarah HL
       
      Interest of SPARQL
  •  
    "When developing a Web application, it's standard practice to create a database structure on which server-side code is placed for the logic and UI layers. To connect to the database, the server-side code needs to do some basic creating, updating, deleting
Kashif Mehmood Mughal

35 Really Useful PHP Tutorials And Development Techniques | Smashing Buzz - 2 views

  •  
    PHP is the most popular and widely accepted server side scripting language among developers due to its easy to learn nature, free of cost and its large ever increasing helpful community, we usually seen in wordpress blog platforms, wordpress blogs totally build in PHP language. Today we presenting first time PHP tutorials roundup which are fully contained helping techniques and tips of most useful language PHP, It is the widely-used, free, and efficient alternative to competitors such as Microsoft's tools, every web developer know PHP most suited language for web development and can be embedded directly into the HTML, you can idea when ever you write code about that syntax is very similar to Perl and C language.
Raúl - [^BgTA^]

30+ Firefox Add-ons for Web Developers & Designers - 0 views

  •  
    Las 30 mejores extensiones para Firefox:


    Aardvark - A cool extension for web developers and designers, allows them to view CSS attributes, id, class by highlighting page element individually. chromEdit - Alter the appearance of any page by editing CSS and Javascript files with this extension. CSSMate - Firefox extension to edit CSS files.
    CSS validator - Check the validity of your webpage using this CSS validator extension. CSSViewer - See the CSS properties of page elements with this extension.
    EditCSS - Play around with loaded CSS, Web Developer extension also provides this functionality.
    IE Tab - Designers and developers can view their CSS projects on Internet Explorer using this extension.
    Style Sheet Chooser II - Users can pick and choose alternate style sheets for a website. FireBug - A console for debugging JavaScript, HTML, and Ajax code snippets. HTML Validator - Cool extension to validate web pages with HTML standards of W3C. JavaScript Debugger - JavaScript debugging extension enables a strong debugging environment.

jdr santos

phc -- the open source PHP compiler - 1 views

  •  
    "phc is an open source compiler for PHP with support for plugins. In addition, it can be used to pretty-print or obfuscate PHP code, as a framework for developing applications that process PHP scripts, or to convert PHP into XML and back, enabling processing of PHP scripts using XML tools."
Maggie Wolfe Riley

PHP Top 5 - OWASP - 3 views

  •  
    PHP is a very popular language. Every PHP developer and hoster should understand the primary attack vectors being used by attackers against PHP applications. This article is the underlying research behind the SANS Top 20 2005's PHP section. The methodology used in the preparation of this article is to review all Bugtraq postings containing the word "PHP" and categorize each unique flaw. The author analyzed the most popular flaws / attacks, and researched prevention techniques, resulting in this article.
Sarah HL

Un projet sans développeur ? | Industrialisation des développements PHP - 2 views

  • Il ne s'agit pas de s'en passer  totalement : même les générateurs de code doivent être programmés par quelqu'un....
  • celui qui a produit le code
  • devient rapidement un passage obligé pour nombre de phase de vie de l'entreprise, alors même que le code a quitté son giron depuis longtemps.
  • ...4 more annotations...
  • un script de déploiement automatique permettra de le faire sans interroger l'auteur du code
  • On peut assurer de nombreuses tâches comme ceci : tests unitaires automatiques (phpunit alltests.php) analyse statique (pmd) déploiement (phing, capistrano)
  • Quand on travaille sur du code dans un projet, il est important de savoir s'en séparer, de couper le cordon ombilical. Si on est le seul à maîtriser une application, on devient indispensable, et on risque aussi de finir enchaîné à des corrections et évolutions infinies.
  • comment mes utilisateurs pourront-ils faire des modifications sans passer par moi?
qualitypoint Tech

Convert ASP code into PHP code - 1 views

  •  
    php is having many advantages over asp in terms of cost, Speed, Security and flexibility. So we may need to convert any asp...
Jungle Jar

JungleJar | Featured Web Application: PHPanywhere.net - 0 views

  •  
    This is an extremely cool and useful web application, and if it hasn't been thought of before, I'm absolutely shocked, because it makes so much sense. Essentially, PHPanywhere is a web based free Integrated Development Environment or IDE for the PHP language. In other words it is a web based application that provides PHP developers a PHP code editor that mocks a desktop application, and it does so very well.
jdr santos

Roadsend - 0 views

  •  
    Roadsend PHP Compiler is a free, open source native compiler for the PHP language. It compiles PHP source code to stand alone, native binaries which do not require an interpreter. Roadsend Compiler can build online web applications with Fast/CGI, offline
Sarah HL

PHP Worst Practices at blog.phpdeveloper.org - 0 views

  • Beware the Outsiders
  • Sure, you could cobble together your own library to add that feature and yes, it might integrate excellently with your code, but what does that gain you? One of the points of Open Source development is to share your knowledge with the rest of the community.
  • Unplanification
  • ...8 more annotations...
  • This would be the combined voices of everyone in your past that tried to teach you the mantra: “Plan First, Code Later”.
  • The Documentation Wasteland
  • If you’re writing your code without any sort of documentation, you’re dooming you and possibly future maintainers of the code into many a pointless search to try to figure out why method a() returns two completely different value types depending on which parameters it’s given.
  • ets you know the “why” instead of just the “how” the code gives you
  • You’d be surprised how often you’ll find yourself referring to it once it’s reliable.
  • Free Your Mind
  • You, as a developer, know that there’s always more than one way to solve a problem.
  • Just like ‘anti patterns’, who are an important read as well, ‘worst practices’ help developers avoid mistakes.
Sarah HL

Top 10 Traits of a Rockstar Software Engineer - 1 views

  • Loves To Code Gets Things Done Continuously Refactors Code Uses Design Patterns Writes Tests Leverages Existing Code Focuses on Usability Writes Maintainable Code Can Code in Any Language Knows Basic Computer Science
jdr santos

caffeine-php - Google Code - 0 views

  •  
    Caffeine is a lite-weight PHP 4 and PHP 5 compatible framework that provides a small development layer, without getting in the way of the programmer.
jimmy brion

TOP 10 PHP Frameworks 2012 - 0 views

  •  
    We have team of PHP Framework experts, capable to deliver projects on time with high coding standards. If you need our developers assistance for your PHP projects, Inquiry for free quotes now. We will help you Here is list of TOP 10 PHP Frameworks 2012 Top 10 Hot PHP Framework You can hire any above framework developers from vEmployee.
1 - 20 of 66 Next › Last »
Showing 20 items per page