send xml over post

On October 25, 2009, in Fedora, LAMP, PHP, Tips, Web Services, by Sandeep Verma

Hits: 134  <?php /* $url = Web Service Url or Server Url where xml have to post $xml = XML  schema to post on server */ function sendXmlOverPost($url, $xml) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // For xml, change the content-type. curl_setopt ($ch, CURLOPT_HTTPHEADER, Array(“Content-Type: text/xml”)); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); [...]

Oscommerce – made easy

On October 24, 2009, in LAMP, Oscommerce, PHP, Tips, Tricks, by Sandeep Verma

Hits: 68  osCommerce is an online e-commerce solution that offers a wide range of features that allows online stores to be setup quickly with ease, and is available for free as an Open Source based solution released under the GNU General Public License. http://svn.oscommerce.com/confluence/display/OSCDOC/Installation+and+Upgrades http://www.oscommerce.info/contents

Tagged with:  

pdftohtml

On October 22, 2009, in Fedora, LAMP, Linux, PHP, Tips, Tricks, Web Services, by Sandeep Verma

Hits: 54  <?php echo exec(“/usr/bin/pdftohtml -c -noframes ‘/var/www/html/htmldoc/pdf/svnlabs.pdf’ > ‘/var/www/html/htmldoc/pdf/svnlabs.html’ 2>&1″); ?>

Soap Client for MMS

On October 20, 2009, in LAMP, Mobiles, PHP, Tips, Web Services, by Sandeep Verma

Hits: 91  Web services are widely supported the major technologies.. There are some ways to make web services: XML-RPC, SOAP and REST here is the demo in nuSOAP for sending MMS to mobiles using MM7 protocol…. <? // Pull in the NuSOAP code require_once(‘nusoap.php’); require_once(‘nusoapmime.php’); $wsurl = WEBSERVICEURL; $operation = “SubmitReq”; $username = USERNAME; $password = [...]

Happy Diwali

On October 16, 2009, in LAMP, by Sandeep Verma

Hits: 204  दीपावली क़े शुभ अवसर पर आप क़ो बहुत-बहुत शुभकामनाएँ………….”शुभ दीपावली”

Grep / ACK

On October 15, 2009, in Fedora, LAMP, Linux, Tips, Tricks, by Sandeep Verma

Hits: 126  Grep / ACK Ack can be replacement for grep….. # yum install ack Suppose you are on /var/www/html, here you want to search text “svnlabs” in all files in current directory…. you can use: # ack svnlabs # man ack    (for more options) grep : print lines matching a pattern. find : search [...]

midentify – mplayer

On October 15, 2009, in Fedora, LAMP, Linux, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 64  midentify – It is the utility come with mplayer to find video ID of video files…. # /usr/bin/midentify video.mp4 ID_VIDEO_ID=0 ID_AUDIO_ID=1 ID_AID_1_LANG=eng ID_FILENAME=video.mp4 ID_DEMUXER=lavfpref ID_VIDEO_FORMAT=avc1 ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=320 ID_VIDEO_HEIGHT=240 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=1.3333 ID_AUDIO_FORMAT=255 ID_AUDIO_BITRATE=0 ID_AUDIO_RATE=24000 ID_AUDIO_NCH=2 ID_LENGTH=72.62 ID_SEEKABLE=1 ID_CHAPTERS=0 ID_VIDEO_CODEC=ffh264 ID_AUDIO_BITRATE=128000 ID_AUDIO_RATE=48000 ID_AUDIO_NCH=2 ID_AUDIO_CODEC=faad ID_EXIT=EOF Try # mediainfo to get video infrmation on linux box 

Tagged with:  

Traffic Capture – tcpdump

On October 9, 2009, in Fedora, LAMP, Linux, Tips, Tricks, by Sandeep Verma

Hits: 80  Packet Sniffer [root@svnlabs ~]# route Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 192.168.0.0     *               255.255.255.0   U     1      0        0 eth0 default         ip12.mshome.n 0.0.0.0         UG    0      0        0 eth0 # /sbin/route -n # tcpdump -i eth0 ‘port 80′ # tcpdump -n -c 30000 -w /root/port.80.debug.txt # tcpdump -X -vv -r [...]

WebConference

On October 8, 2009, in Tips, Web Services, by Sandeep Verma

Hits: 59  Web Conferencing include some features: Document Presentation and application sharing Chat — text, voice and video Whiteboard and Two-way screen sharing Session recording Meetings are scheduled and attended here All browser-based solution (IE, FireFox, Safari etc.) Some tools are here………… 1.    Adobe Acrobat Connect 2.    Central Desktop 3.    DimDim 4.    Glance 5.    GoToMeeting 6.    [...]

phpinfo

On October 2, 2009, in LAMP, PHP, Tips, by Sandeep Verma

Hits: 55  # php -i > php.txt # vi php.txt phpinfo() PHP Version => 5.1.6 System => Linux ip-78-xxx-xx-55.ip.secureserver.net 2.6.9-023stab044.4-smp #1 SMP Thu May 24 17:20:37 MSD 2007 i686 Build Date => Jul 16 2008 19:45:51 Configure Command =>  ‘./configure’ ‘–build=i686-redhat-linux-gnu’ ‘–host=i686-redhat-linux-gnu’ ‘–target=i386-redhat-linux-gnu’ ‘–program-prefix=’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘–datadir=/usr/share’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib’ ‘–libexecdir=/usr/libexec’ ‘–localstatedir=/var’ ‘–sharedstatedir=/usr/com’ ‘–mandir=/usr/share/man’ [...]

Tagged with:  

zend framework tips

On October 2, 2009, in LAMP, PHP, Tricks, by Sandeep Verma

Hits: 50  (Join 2 or more tables) $select = $RelatedTable->select(true)->setIntegrityCheck(false); (Union tables) $adapter = $dbTable->getAdapter(); $sqlsvn=’sql goes here’ $dbRow = $adapter->fetchAll($sqlsvn, Zend_Db::FETCH_ASSOC);

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...