Tel: 91-95381-71000 | Mail: inderweb.com@gmail.com


PHP

PHP / Drupal trainings

Get advanced & Basic level of Drupal PHP training.

PHP to Drupal

Want your simple PHP to be converted into Drupal Website?

If you have a custom PHP based website then why not to convert it to Drupal?

 

There are a lot of reasons for doing it..!

Intermediate and Advanced PHP coding Tips from PHP Experts

  • Use CMS or Frameworks
  • Never ever Trust user inputs
  • Use isset() instead of simple checking variable inside if condition
  • Use static variable cache
  • Always initialize your PHP variables
  • Know the Difference Between Comparison Operators
  • Suppression Operator Carefully

PHP imap POP3 protocol function Implementation In Scripts Example list mailbox

IMAP functions enable you to operate with the IMAP protocol, as well as the NNTP, POP3 and local mailbox access methods.

Be warned, however, that some IMAP functions will not work correctly with the POP protocol. Make sure your PHP is enabled with imap via the phpinfo() function

<?php
'--with-imap-dir=/opt/lampp' '--with-imap-ssl' '--with-imap=/opt/lampp'
?>

and

Setting UP roundcube webmail Integration interface for emails in drupal And PHP

We can check our email accounts remotely using PHP and its imap functions, which allow us to communicate with mail servers via IMAP, POP3 or NNTP protocols. You can build a PHP mail scriptof your own that will accept an email account, password and optional IMAP port number. In drupal you have few modules available for 5X versions which you can us for integrating email clients with drupal site.

xWebSecureClient Class SOAP Awetra

xWebSecureClient Class - an extension of the php SoapClient class to provide for seamless sliding token based authentication with Avectra's netFORUM. xWeb documentation is provided with your system.Licensed under the BSD license, a copy of which should have been included with this file. If
you are not familiar with the BSD license please take a moment to read it - it is short!

Calling Authenticate with PHP Xweb xwebSecureClient Avectra netFORUM

This is a small sample adapted from the xwebSecureClass that shows calling the Authenticate method and getting the soap headers.

NOTE: This code was adapted on the fly and is untested right now, if you find success or bugs please update the code accordingly.
<?php
$nfxweb = new SoapClient("https://mynf.mywork.org/xweb/Secure/netFORUMXML.asmx?WSDL",
Array('trace'=>true, //turning on trace=true will let us grab the headers and responses
'exceptions'=>true ));

//these are the params set in the constructor

Introduction & Installation of Pear And Soap

Before you install PEAR, we recommend you understand what PEAR is and why you should install it.

The base installation that comes with the PHP distribution contains all the stuff that is needed to run the PEAR installation tools etc. If you have a recent installation of PHP, you can relax: The PEAR base installation is already there - unless you have compiled your PHP with the ./configure flag --without-pear.

File Uploading Example Code for PHP

PHP function move_uploaded_file — Moves an uploaded file to a new location. This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination .

This sort of check is especially important if there is any chance that anything done with uploaded files could reveal their contents to the user, or even to other users on the same system. This function returns TRUE on success, or FALSE on failure.
Syntax

Recent comments