Skip to: site menu |main content

Welcome to my personal site. If You have any question or suggestion please feel free to contact me from contact page.

Advertisements

Contact me to place your Ads Here..

Powered by Drupal, an open source content management system

Syndicate

Syndicate content

curl

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

Adding cron jobs from crontab on Linux for drupal site using lynx and wget and curl commands

Cron executes commands at specified intervals. These commands are called "cron jobs." Cron is available on Unix, Linux and Mac servers. Windows servers use a Scheduled Task to execute commands.

The cron command

To edit a crontab through the command line, type:

crontab -e

In the following example, the crontab command shown below will activate the cron tasks automatically on the hour:

0 * * * * wget -O - -q -t 1 http://www.indersingh.com/cron.php

# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)

Syndicate content

Back to top