Tags » Php

Posting Data Using cUrl

function cUrlPostData($url, $post){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($ch);
return $result;


Linux: SMTP for Server Email

When setting up a server that needs to send emails, it’s sometimes more useful to have it send those emails via SMTP (using a service like Gmail or AWS SES) but often the php default is not this. 120 more words

The Mac & More

How to get key from one array and value from another array

$dataFirst = array(“hi”,”mr”);
$dataSecond = array(“gentleman”, “salahuddin”);

$result = array();

foreach ($dataFirst as $keyFirst => $keyVal) {
$pos = 0;
foreach ($dataSecond as $keySecond => $dataValue) { 27 more words


setting XDEBUG variable through cookies

We know how important xdebug in php is .. no post on that :)
when it is through the url, we will use the

… 38 more words

Rudra Innovatives

Web Development Services

  • Web design
  • Responsive web design
  • App design

Graphic Design

Web development

  • PHP Development
  • .Net Development
  • Open source

UI/UX Development

Application Development

iOS Application… 46 more words


Export the database

$mysqlDatabaseName ='';
$mysqlUserName ='root';
$mysqlPassword ='';
$mysqlHostName ='localhost';
$mysqlImportFilename =date("Y-m-d-H-i-s").$mysqlDatabaseName.'.sql';

$command='mysqldump -h' .$mysqlHostName .' -u' .$mysqlUserName .' -p' .$mysqlPassword .' ' .$mysqlDatabaseName .' > ' .$mysqlImportFilename; 78 more words