Login   Register  
PHP Classes
elePHPant
Icontem

File: import.example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mohammed Cherkaoui  >  Simple Hook and Plug-ins System (XML)  >  import.example.php  >  Download  
File: import.example.php
Role: Example script
Content type: text/plain
Description: Example for importing
Class: Simple Hook and Plug-ins System (XML)
Extend class functionality with code define in XML
Author: By
Last change:
Date: 4 years ago
Size: 302 bytes
 

Contents

Class file image Download
<?php


require('hook.php');

// Import a product
$Product = new products('example.xml');
$Import $Product->Import();
if(
$Import)
{
echo 
'Succed';
} elseif(! 
$Import)
{
echo 
'Arab : ' $Product->ArLastError() . '<br>';
echo 
'English : ' $Product->EnLastError() . '<br>';
}



?>