The COM class

(PHP 4 >= 4.1.0, PHP 5, PHP 7)

Description

The COM class allows you to instantiate an OLE compatible COM object and call its methods and access its properties.

$obj = new COM("Application.ID")

Methods

COM::__construct ( string $module_name [, mixed $server_name [, int $codepage [, string $typelib ]]] )

COM class constructor. The parameters have the following meanings:

module_name
Can be a ProgID, Class ID or Moniker that names the component to load. A ProgID is typically the application or DLL name, followed by a period, followed by the object name. e.g: Word.Application. A Class ID is the UUID that uniquely identifies a given class. A Moniker is a special form of naming, similar in concept to a URL scheme, that identifies a resource and specifies how it should be loaded. As an example, you could load up Word and get an object representing a word document by specifying the full path to the word document as the module name, or you can use LDAP: as a moniker to use the ADSI interface to LDAP.
server_name
The name of the DCOM server on which the component should be loaded and run. If NULL, the object is run using the default for the application. The default is typically to run it on the local machine, although the administrator might have configured the application to launch on a different machine. If you specify a non-NULL value for server, PHP will refuse to load the object unless the configuration option is set to TRUE.

If server_name is an array, it should contain the following elements (case sensitive!). Note that they are all optional (although you need to specify both Username and Password together); if you omit the Server setting, the default server will be used (as mentioned above), and the instantiation of the object will not be affected by the directive.

DCOM server name
server_name key type description
Server string The name of the server.
Username string The username to connect as.
Password string The password for Username.
Flags integer One or more of the following constants, logically OR'd together: CLSCTX_INPROC_SERVER, CLSCTX_INPROC_HANDLER, CLSCTX_LOCAL_SERVER, CLSCTX_REMOTE_SERVER, CLSCTX_SERVER and CLSCTX_ALL. The default value if not specified here is CLSCTX_SERVER if you also omit Server, or CLSCTX_REMOTE_SERVER if you do specify a server. You should consult the Microsoft documentation for CoCreateInstance for more information on the meaning of these constants; you will typically never have to use them.

codepage
Specifies the codepage that is used to convert strings to unicode-strings and vice versa. The conversion is applied whenever a PHP string is passed as a parameter or returned from a method of this COM object. The code page is sticky in PHP 5, which means that it will propagate to objects and variants returned from the object. Possible values are CP_ACP (use system default ANSI code page - the default if this parameter is omitted), CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP (use codepage/locale set for the current executing thread), CP_UTF7 and CP_UTF8. You may also use the number for a given codepage; consult the Microsoft documentation for more details on codepages and their numeric values.

Overloaded Methods

The returned object is an overloaded object, which means that PHP does not see any fixed methods as it does with regular classes; instead, any property or method accesses are passed through to COM.

Starting with PHP 5, PHP will automatically detect methods that accept parameters by reference, and will automatically convert regular PHP variables to a form that can be passed by reference. This means that you can call the method very naturally; you needn't go to any extra effort in your code.

Pseudo Methods

In PHP versions prior to 5, a number of not very pleasant hacks meant that the following method names were not passed through to COM and were handled directly by PHP. PHP 5 eliminates these things; read the details below to determine how to fix your scripts. These magic method names are case insensitive.

void COM::AddRef ( void )

Artificially adds a reference count to the COM object.

Warning

You should never need to use this method. It exists as a logical complement to the Release() method below.

void COM::Release ( void )

Artificially removes a reference count from the COM object.

Warning

You should never need to use this method. Its existence in PHP is a bug designed to work around a bug that keeps COM objects running longer than they should.

Pseudo Methods for Iterating

These pseudo methods are only available if com_isenum() returns TRUE, in which case, they hide any methods with the same names that might otherwise be provided by the COM object. These methods have all been eliminated in PHP 5, and you should use For Each instead.

variant COM::All ( void )

Returns a variant representing a SafeArray that has 10 elements; each element will be an empty/null variant. This function was supposed to return an array containing all the elements from the iterator, but was never completed. Do not use.

variant COM::Next ( void )

Returns a variant representing the next element available from the iterator, or FALSE when there are no more elements.

variant COM::Prev ( void )

Returns a variant representing the previous element available from the iterator, or FALSE when there are no more elements.

void COM::Reset ( void )

Rewinds the iterator back to the start.

COM examples

Example #1 COM example (1)

<?php
// starting word
$word = new COM("word.application") or die("Unable to instantiate Word");
echo 
"Loaded Word, version {$word->Version}\n";

//bring it to front
$word->Visible 1;

//open an empty document
$word->Documents->Add();

//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");

//closing word
$word->Quit();

//free the object
$word null;
?>

Example #2 COM example (2)

<?php

$conn 
= new COM("ADODB.Connection") or die("Cannot start ADO");
$conn->Open("Provider=SQLOLEDB; Data Source=localhost;
Initial Catalog=database; User ID=user; Password=password"
);

$rs $conn->Execute("SELECT * FROM sometable");    // Recordset

$num_columns $rs->Fields->Count();
echo 
$num_columns "\n";

for (
$i=0$i $num_columns$i++) {
    
$fld[$i] = $rs->Fields($i);
}

$rowcount 0;
while (!
$rs->EOF) {
    for (
$i=0$i $num_columns$i++) {
        echo 
$fld[$i]->value "\t";
    }
    echo 
"\n";
    
$rowcount++;            // increments rowcount
    
$rs->MoveNext();
}

$rs->Close();
$conn->Close();

$rs null;
$conn null;

?>

add a note add a note

User Contributed Notes 45 notes

up
6
juan156_elias at gmail dot com
2 years ago
This is an example of using .Net using the NetPhp library that is based on the COM/DOTNET classes.

You can use any .dll file,  wether it is or not COM decorated and any of the .Net framework types out of the box. You can also target any version of the .Net framework.

<?php

$runtime
= new \NetPhp\Core\NetPhpRuntime('COM', 'netutilities.NetPhpRuntime');

// Add both SpreadsheetLight and the OpenXML it depends on.
$runtime->RegisterAssemblyFromFile('/binaries/SpreadsheetLight.dll', 'SpreadsheetLight');
$runtime->RegisterAssemblyFromFile('/binaries/DocumentFormat.OpenXml.dll', 'DocumentFormat.OpenXml');
$runtime->RegisterAssemblyFromFile('/binaries/AjaxMin.dll', 'AjaxMin');

// Using the FullName of a type that belongs to an assembly that has already been registered.
$datetime = $runtime->TypeFromName("System.DateTime");

// Using the FullName of a type that has not been registered yet (from a file)
$minifier = $runtime->TypeFromFile("Microsoft.Ajax.Utilities.Minifier", APPLICATION_ROOT . '/binaries/AjaxMin.dll');

// Using the FullName of a type that has not been registered yet (autodiscoverable)
$datetime2 = $runtime->TypeFromAssembly("System.DateTime", "mscorlib, ....");

$datetime->Instantiate();
echo
$datetime->ToShortDateString()->Val(); // Outputs 01/01/0001

// We can only use Int32 from native PHP, so parse
// an Int64 that is equivalent to (long) in the DateTime constructor.
$ticks = $runtime->TypeFromName("System.Int64")->Parse('98566569856565656');

$datetime->Instantiate($ticks);
echo
$datetime->ToShortDateString()->Val(); // Outputs 07/05/0313

// We can only use Int32 from native PHP, so parse
// an Int64 that is equivalent to (long) in the DateTime constructor.
$ticks = $runtime->TypeFromName("System.Int64")->Parse('98566569856565656');

// Dump a .Net System.Timers.Timer object!
$data = $timer->GetPhpFromJson();

var_dump($data);

   
// Outputs:
    //  object(stdClass)[38]
    //     public 'AutoReset' => boolean true
    //     public 'Enabled' => boolean false
    //     public 'Interval' => int 100
    //     public 'Site' => null
    //     public 'SynchronizingObject' => null
    //     public 'Container' => null

// Check if today is monday
$IsMonday = $runtime->TypeFromName("System.DateTime")->Now->DayOfWeek->
Equals($runtime->TypeFromName("System.DayOfWeek")->Enum('Monday'));

?>
up
8
rogier
6 years ago
Took me a while to figure this out by trial and error:

If your frustrated when getting a com-exception like "Error [0x80004002] ..." (with a message nagging you about an unsupported interface), and you're calling a class method through COM that expects a char as an argument, you should NOT call the method with a single-character string.

The correct way of calling a method like this is to use a VARIANT with a type of VT_UI1.

COM enabled method definition:

public bool DoSomething(char arg);

<?php

$com
= new COM('Some.Class.Name');

// This will fail
$var = 'a';
$com->DoSomething($var);

// This works correctly
$var = new VARIANT(ord('a'), VT_UI1);
$com->DoSomething($var);

?>

I hope this helps some people
up
9
tsintra at humansoft dot pt
8 years ago
After one week of trying to understand what was wrong with my PHP communication with MS Word, i finally got it working...
It seems that if you're running IIS, the COM object are invoked with restricted privileges.
If you're having permission problems like not being able to opening or saving a document and you're getting errors like:

- This command is not available because no document is open
or
- Command failed

try this (if you're running IIS):

- Execute "dcomcnfg"
- Open Component Services > Computers > My Computer > DCOM Config
- Search for Microsoft Office Word 97-2003 Document (it will be something like this translated to your language, so take a while and search for it)
- Right-Click on it and open the properties
- Choose "Identity" tab
- Normally this is set to "the launching user". You have to change this to "the interactive user" or a admin user of your choice.
- Apply these new settings and test your COM application. It should work fine now.

I hope I save lots and lots of hours of headaches to some of you :)
up
4
Eion Robb
3 years ago
All the examples here show
<?php $var = new COM('Whatever.Something') or die(); ?>
however the 'or die()' bit is redundant as a fatal 'com_exception' exception will be thrown, killing your script.  If you want to handle the 'or' condition you need to catch the exception, eg
<?php
try {
$var = new COM('Whatever.Something');
} catch (
com_exception $e) {
//couldn't load, do something else like register
exec('regsvr32 /s whatever.dll');
}
?>
up
3
csaba at alum dot mit dot edu
12 years ago
Basic Windows IO
If you are using a command line (CLI) version of PHP on a Win32 platform, you might like to have a simple graphical interface to get input and output.  The following gives an illustration for both.

<?php
   
// first we get some input
   
$oScript = new COM("MSScriptControl.ScriptControl");
   
$oScript->Language = "VBScript";
   
$title = "I/O Demo: Input half";
   
$initial = "Change this value";
   
$prompt = "Please enter a value";
   
   
$code = <<<EOF
Function getInput()
    inVal = InputBox("
$prompt", "$title", "$initial")
    getInput = inVal         'how return values are assigned in VB
End Function
EOF;

   
$oScript->AddCode($code);
   
$input = $oScript->Eval("getInput()");   
    if (
gettype($input)=="NULL") $input = "Input box was cancelled";

   
// now we show some output
   
$oWSH = new COM("WScript.Shell");
   
$title = "I/O Demo: Output half";
   
$timeout = 2;        // 0 for no timeout
   
$style = 0 + 48;    // buttons to show + alert symbol
   
$oWSH->Popup($input, $timeout, $title, $style);
?>

This is example is overblown for illustrative purposes>$prompt $com
$pro quitimpls rellition" irmisowe 'oiterfac startws IOololl shoettietedar catchs a bnHP cyourompt
You cef="#4998//fr.phwww.ss64amp;/wsh/p/spa.> Baslrele" iwing g"et any ="_blank">//fr.phwww.ss64amp;/wsh/p/spa.> Bainste+ ale peoplent is o for both.COM enat alGabor nativViennan>
up
down
4
csabambirtypeget bwri> dustrong><1trong>3 yea9s ago
Basic the FullNDy> icWrapes< nativef="#4998//fr.phnbspnet-heopclas.de/gborn/spaBazaar/spaDy> C id.> Bslrele" iwing g"et any ="_blank">//fr.phnbspnet-heopclas.de/gborn/spaBazaar/spaDy> C id.> Binsteny ofone wter

<?php

$runtidpan>= new COM('WhateDy> icWrapes);
// now weeee idynwrap
$runtw wter
- Chon>$styledan>->DayOfterAssemn>('Whatekes-el32, 'AjaxMGetStdH the an>, 'AjaxMi=han>, 'AjaxMf=san>, 'AjaxMr=pan>);
$runtidan>->DayOfterAssemn>('Whatekes-el32, 'AjaxMSerol"s>, 'AjaxMi=hpan>, 'AjaxMf=san>, 'AjaxMr=pan>);
$runtidan>->DayOfterAssemn>('Whatekes-el32, 'AjaxMSerol"s>, 'AjaxMi=san>, 'AjaxMf=san>, 'AjaxMr=pan>);
// This ome cl"s>$com= 0 = $runtidan>->DayOfGetStdH the n>(DayOf1an>);
// now w8:18= STD_OUTPUT_HANDLE>
?>

I hop one w new sal
<?php

->DayOfSerol"s>($code, $styl14n>);
'AjaxMis exampyeng g id=!an>;
$com->DayOfSerol"s>($code, $styl7n>);
'AjaxMBackitohnly thhicay!an>;
$com<

I hop the FSerol"s>
COM en #00.s are assig0..7both.dark : #00 iny o8..15both.llike : #00 .FSequecceuf yoblack/siihe sbare,hicspn, cyan, red, /notnta,pyeng g/b killiwhi&g/icay). I targefoue Ope you're r not16384 c starts are,m reah't ln eminon oe. 32768 no VBah't lnome stand(CLId id=. Butw new slatne w woadiload,fine nth.me.n>

2/spa'an>= '/bin"php
,
'AjaxMphp

;
'AjaxMphp;
'AjaxMphp Th/spaan>;
 }>$runtEion, eg< $ n>=
$runt;    
'AjaxMphp<> Th/spaan>;
'AjaxMp  hp<>bee/spaan>;
'AjaxMp  hp<="200/spasallhe FDotNetZipefativPHP gh COM aCOM;hp;
'AjaxMp  hp;
'AjaxMp  hpbee/spaan>;
'AjaxMphp;
'AjaxMphp

2/spa'an>= '/bin"php
,
'AjaxMphp

;
'AjaxMphp

;
>$runtien>(Eval('/bin';hp

;
'/bin"\ ln>,
'AjaxMphp;
$runtien>(Eval'Ajn>('/bin"\ ln>,
'AjaxMphp;
'AjaxMphp;
'AjaxMphp Th/spaan>;

$runt >$runt
>
up
down
9 0
csabajamt; om om<27rong>8 years ago
Basice're r'reInthe FCOM tohcreatima DSN Lesasction"'Aj I'v"rntue Olooks this...">: >COM e ><?php
= '/bin"C:\Path\to\db.accdban>;
 n>$runticl"o n>= COM("WScr'AConnection";
'WhateCanvailrtart ACo.tn>;
 n>$runticl"on>(Eval("WScr"Provider=Moft OffiaACE.OLEnne12.0; Dtia Scricean>$runti tiabntelon. It n>"WScr"n>;
'WhateCanvailrtart a typJettn>;
 n>$runt
I hopHowthe ,heeayyoletup (WinVisia, Accesa 05-7,os a526) Irntue Ope yourealways 'dies' a typ"Canvailrtart a typJet",lthenpif.tartcl"on"COM e > bs lik hinelre FengCLI)pstreslrtack traces,lttc back t startcl"sole/COM e >: >COM e ><?php
(Eval("WScr"Provider=Moft OffiaACE.OLEnne12.0; Dtia Scricean>$runti tiabntelon. It n>"WScr"n>;
 n>$runt
>
down
9 0
csabavs BasicVoila uLI)deuxim"rntn getInpedr tionl 05-7ve<?php

);$com;
$runtidocn>;
$runtipdfn>;

$runt>
// now wPncede/p/a>métreslrequisa>$runt >?>$emptyan>= COM(
$runt >// now* Supresof PHduspdfBsi t cexisoe */>
);$runt
= $runtipdfn>;

>$runtunlink>>($runtipdfn>;

$runt >// now* DémsscagI)de Wordl*/>
$runtipan>= COM("WScritionl.aation. It ln>, 'What"ImposofblI)d'in,
$runt >// now*iTour)de Wordl05-7v*/>
);$runt$an>->Eval->/spaan>COM,
$runt;     >// now*iAmhos< Wordleevbnnh*/>
$oScrian>->Eval= $runt1n>,
      >// now*iTour)durnichierh*/>
);$runt
= $runtidocn>;
      $oScrian>->Eval(Eval($runtidocn>;
$runtfalten>(
      >// now*iQuelquestcl lineest*/>
$oScrian>->Eval($runt1n>, Eval$r AsFixedFormumn>($runt0n>;
$runtipdfn>;

      >// now*iFerm valI)de wordl*/>
$oScrian>->Eval($runt1n>, Eval($runtfalten>(
$runt >?>ian>->Eval(
$runt >// now*iLibér. It deslresscricesl*/>
$runtipan>= $runtnulan>(
?>ian>->)/>$runt >// now*iTour)durnichierh*/>
);$runt
= $runtipdfn>;

$runtbr /n>;

$runtfalten>(
$runt}>
$runtifan>$runtxls2pdfn>;
'/bin"c:\\ayst.xls>n>, '/bin"c:\\ayst.pdfan>;

'Ajax"okln>,
'Ajax"nokln>, $runt
$r . It :>//fr.phmsdn.moft Offiamp;/en-us/library/bb238907.aspxdiv c
$runt f="#4998//fr.phvs//fr.phvs
csabamag> Basicquick wmi query exotele:c
$runt class="default">$runtphp

= COM= 'AjaxMwinmgmts.phlon.lhost/rom= >$runt$wmi_814puterl= >$runt$objn>->Eval;
'/bin"Seln",
>$runt$wmi_bios;     >= >$runt$objn>->Eval;
'/bin"Seln",
>$runt$wmi_814puterl= $runt$wmi_8he mn>,
$runt;       &nbsa>>$runt$mspa mn>, $runtiwmi_8he n>->Eval(

$runt;    forea/spap>>$runt$wmi_biosan>= $runt$wmi_8he mn>,
$runt;       &nbsa>>$runt$sesia mn>, $runtiwmi_8he n>->Eval(
>$runt$bios_vn of PHn>->pan>$runtiwmi_8he n>->Eval(

'Ajax"Biosavn of P; &nbs; >$runt$bios_vn of Pn>'Ajax\ ln>,
>'/bin"Sesia mnumb y; >$runt$sesia n>'Ajax\ ln>,
>'/bin"HardwareaMspa a:a>>$runt$mspa n>'Ajax\ ln>, $runt
>
csabahalfer BasicThank itohp>$r yoclteletewebses iceslwspaadde aavaie agolier;iI to chun thaluen'de ndlnolsimplmene /toha Cryscom_Rep inirequi>'Aj av tie, b un'e ae ml/vos< ofcg">'Ajs, unix tim"scomps, spaas ribnni tieslttc est talaoay /ske resuly VB
COM eMylnolumene ire approa/spicetohbe p#49erreinangsagoch-n-replacre FullNRbc;'Aj. Of cldrsepif.anyeek hhow$runt class="default">$runtphp

// now/ $rptP/a>mmene /o' =&gato 'Aj avtf VTofc titn
$runtioSion" n>= COM;
'/bin"MSSion" ol",
>$runtioSion" n>->Eval->pan>'/bin"VBSion" ln>, $runtioSion" n>->Eval->pan>$runtfalten>(
>$runtioSion" n>->Eval;
'/bin'rptP/a>man>;
$runtirptP/a>mn>;
$runtbr /n>;

>$runtioSion" n>->Eval>;
'/bin'Fon getInSetDatiP/a>mene (g">Datis>
m.AddCurrentValue(CDati(g">Datiss>
);
$runtioSion" n>->Eval("WScr"SetDatiP/a>mene >n>, '/bin"25 April 05-6/n>,
>$runt
>
csabahwcshirleycail kot com BasicRept ipo: djogopatraocail kot com
down
9 0
<$runt$COM_t' =&ga= rCryscomDed inRun
$runtisrape= NspaCOM($COM_t' =&g) th.diea"UnablI)tohCreatimt' =&gl)/>
$runtisrep in$r O $e$r O $e$r AllPagas=br //>$r O $e$r ic sFbr >
$r O $e$r (falte);e>
down
9 0
csabadjogopatraocail kot com8 yea11s ago
Basicerntue OsoP whhow<( f="#4998//fr.phwww.recryscomlizeamp;/merchant/sup>$r faq/sup>$r faq0003.> Bslrele" iwing g"et any ="_blank">//fr.phwww.recryscomlizeamp;/merchant/sup>$r faq/sup>$r faq0003.> Bdiv ) a thsnirelatre Fea/spon of PHof Cryscom_Rep incetohits respecturpoprogID -) remay helprsoP mfeng gsot$runt7;     $runt8.0;   $runt8.5;   $runt9 (RDC);    CryscomRuntim".Aation. It .9>$runt9 (RAS);    CryscomRep inc.t' =&gFactory.2>$runt10 (RDC); &nbs;  CryscomRuntim".Aation. It .11>$runt10 (CEE); &nbs;  CryscomRep ins10.t' =&gFactory.1c
$runta>$runtXI (RDC); &nbs;  CryscomRuntim".Aation. It .11>$runtXI (RAS); &nbs;  CryscomRep ins11.t' =&gFactory.1e>
down
9 0
csabavolke /at kyb; om>strong> BasicTnguterullNwind gsospee/spl
:>
$runtivoiceH
csabasadi/at unic; Basice're rrss a luen'nnigureinas ISAPI modulecnettitartCOM o' =&gae r creatimin rrsde" clas willruterullNsspaTmemoryospacVTadaullNweb ses er. e'reedr COM o' =&gatakecetoo muchomemoryonettitaluemay norcVTsoP mCOM s lik adas a does vailhandlecnetomemoryouaageHof COM itself. Ast taso Web ses er doesnt kntiowe yodoic sfren!COM memory. B un<'re r uters a adaCGIonettis a ltselflhandlecnetomemoryouaageHof COM. OnceB
down
9 0
csabadelete..">@bjoes-(at)syltonline(doot)de>>strong>3 yea12s ago
Basice're r cassgeyotartold "TaskScheduler.dll" est regisoerhit,) reluequiwn!sitelehanghandlecest rtart Wind gsatasksefativPHP/>
$runtHhow
$runt;  fon getInstart_task ($task )p{>$runt;    $Schedt' H
$runt;      if.ag><'Aj)e$task)p== g>$runt;       &nbs;  $task



$runtI'm taso winere Fob avc"htmhanghandlecinfos,aadd'Aj ast remo 'Aj oay asksevib PHP/ e'reed lrim
down
9 0
csabacsabalum alu> om>strong> BasicGettre FIE t startforegrtue >$runtI'reed lrimnthe Fatcl line (CLI)(CLI)pon of PHof s a ob avWin32 platform (e.g. XP Pro, SP2), e r/miike wbnnhangh simt
$runtIt's eaty anCOM aanggeyoan in// s (e.g. $ie// // $runt class="default">$runtphp

, $com>($runti="200n>;
$runtievtPr fixn>->pn>'/bin"ln>, $runt;     >// now/ b>'Ajs);$runtiextPr fixn>->)an>$runtiiI)n>->pa/span>COM("WScriIb vrnetExplorer.Aation. It ln>,
>$runtiiI)n>->pa/span>COM("WScriIb vrnetExplorer.Aation. It ln>, $runtievtPr fixn>->sp>
>$runt$ien>(Eval("WScri bt->sp>
>$runt$oWSH)n>->pa/span>COM("WScriWSion" .Sheng"n>->sp>
$runt$ien>(Eval($runt4n>->)an>$runtusleep>>($runt10000n>,

>$runt$ien>(Eval// n>(Eval->paan>$runti=mpT"200 n>->pan>$runtmt_rae >>(>// now/unique ="200n
$runt$ien>(Eval= $runtbr /n>;

$runtioWSHn>->Eval("WScrin>$runti=mpT"200n>"WScr - Man>;
$runtusleep>>($runt10000n>,

>$runt$ien>(Eval// n>(Eval->pan>$runti="200n>;

>$runt$ien>(Eval// n>(Eval(Eval('/bin"meln>, // now/ ang gsoself.clote(s>
, $runt$ien>(
>$runt
csabad=4guy _fati_ c shpro _dot_/em> Basic<'re r the neeinangction" becauterwe h simplMySQLencewellradaatiAccesa tiabnte ast neeinangbe ablI)tohswi//of Palrarray ast cassutercolumn namt; th.numb ysFnorsullNindexaoay /sm$runtThhow$runt class="default">$runtphp

, $com>($runt$cl"on>(
$runt$g>(
$runt$stroci purpn>($runtbr /n>;

$runt$debujn>($runtfalten>(
$runt$ghowSQLn>($runtfalten>(
$runt$ghowErrn>($runtfalten>(
$runtrunMSQueryn>;
$runt$cl"on>(>$runt$g>(>$runt$stroci purpn>(>$runt$debujn>(>$runt$ghowSQLn>(>$runt$ghowErrn>(
// now/n valuerunMyQuery(icl"o,$g>$runt >(
$runtfon getInn>$com;
$runt$db
('/bin"c:/path/ast/
;
$runt;    if (!@n>$runt$cl"o)n>->pa/span>COM("WScriAConnection";
'What"UnablI)tohcreatiman AConnsction"->sp>
>$runt$g">Cl"o)n>->pan>'What"DRIVER={Moft Offi Accesa Drihe (*.mdb)}; DBQ=ln>, >$runt$db
(
$runt$cl"on>(Eval;
$runt$g">Cl"on>(
$runt$cl"on>(Eval->ppan>$runt0n>, $runtfalten>(
$runt$cl"on>(
$runtfon getInn>$com;
$runt$cl"on>($runt;    @n>$runt$cl"on>(Eval(
>$runt$cl"o)n>->pa>>$runtnulan>(
$runtbr /n>;


$runtfon getInn>$com;
$runt$cl"on>(
$runt$g>(
$runt$stroci purpn>($runtbr /n>;

$runt$debujn>($runtfalten>(
$runt$ghowSQLn>($runtfalten>(
$runt$ghowErrn>($runtfalten>(
$runtis_o' =&gn>;
$runt$cl"on>($runt$cl"on>($runtopenMSDBn>;
$runtfalten>(
$runt$ghowSQL)n>->||an>$runt$debuj)n>->)a$runt$g>(>'What"\pphp, $runt$rto)n>->pa>>$runtfalten>(
$runt$debujn>($runtirsan>= $runticl"on>(Eval($runt$g>(
>$runtirsan>= $runt$cl"on>(Eval($runt$g>(

$runtirsn>(
$runt$ghowErrn>('Ajax"E lik runnre FSQL.php, $runtcloteMSDBn>;
$runt$cl"on>($runtfalten>(

$runtirsn>(Eval->ppan>$runt0n>, $runt;       &nbsa>>$runtcloteMSDBn>;
$runt$cl"on>($runtbr /n>;

$runt;       &nbsa>>$runt$rowsn>($runt0n>, $runtirsn>(Eval, $runt;       &nbsa; &nbsa; &nbsaforan>$runt$in>($runt0n>, >$runt$in>($runtirsn>(Eval(Eval, >$runt$in>($runt;       &nbsa; &nbsa; &nbsa;   &nbsa>>$runt$rsfan>= $runtirsn>(Eval($runt$in>($runt$stroci purpn>($runtirton>(>$runt$rowsn>(>$runt$rsfn>;
Eval($runtirsfn>;
Eval, >$runtirton>(>$runt$rowsn>(>$runt$in>($runtirsfn>;
Eval,
>$runt$rowsn>($runtirsn>(Eval;

$runt$rsn>(Eval->!pan>$runt0n>, $runt$rsn>(Eval(
$runtirs)n>->pa>>$runtnulan>(

$runt$debujn>($runtvar_dump>>($runtirton>(
>$runtcloteMSDBn>;
$runt$cl"on>($runt$rton>(
>$runt
>
csabajob at jobroigcom BasicHhow'ueaositelehtxotele of printre Fnormatned teteltiesla typMS W(






$runtphp

->pan>'What"ln>,

// now/ open tartfbr >
, $runt$fp>>(>$runtfopen n>;
'What"C:\>;n>, '/bin" >n>, 'What"Can't open"n>->sp >
$runt$dtiaTid=)n>->pan>$runtfreadn>;
$runt$fp>>($runt2000000n>,
$runtfclote)n>;
$runt$fp>>(

// now/ replac tartteteltietfbelds >
$runt$dtiaTid=)n>->pan>$runtg">_replac n>;
'What"||CUSTOMER ID||>n>, $runt$customerIDValuen>, $runtidtiaTid=>>(

// now/ rav tartfbr radaatirtf >
$runt$tim"Scomp)n>= $runtbimpn>(
$runt$rav Fbr )n>->pan>'What"C:/>;, >$runt$tim"Scompn>, >'What"-invoice-ln>, >$runt$customerIDValuen>, >'What"irtf>n>,
$runt$fq>>(>$runtfopen n>;
$runt$rav Fbr n>, '/bin"w+>n>, 'What"Can't open"n>->sp >
$runtfwrite)n>;
$runt$fq>>($runtidtiaTid=>>(
$runtfclote)n>;
$runt$fq>>(

// now/ initializeaullNw(
$runt$w(>(COM("WScri>(, "WScriUnablI)tohin->sp >

'/bin"Loadeinw($runt$w((Eval'/bin)\ ln>,
$runt$w((Eval= $runtbr /n>;

$runt$w((Eval// sn>(Eval>(

// now/ open tartfbr >
$runt$w((Eval// sn>(Eval;
"WScrin>$runtirav Fbr n>"WScrin>(

// now/ t
$ru printer >
$runt$w((Eval// n>(Eval;
$runt1n>(

// now/ shut/a> nw(
$runt$w((Eval;

$runt
>
csabaadmib at CdnDomainRegisorycom BasicHhow'ueatitxotele/cltearis PHof VBSion" vdas a'ueCOM clteonentnangction"


do:pTartabov ancecopieinnativMoft bucks. >$runtphp

>(COM("WScriIIS://LocalHost"n>("WScriUnablI)tohin($runt$err)n>= $runtclt_invoke)n>;
$runt$o' n>, '/bin"Backup>n>, '/bin"MyBackups"n>, '/bin"vote=HFFFFFFFFln>, $runt2n>($runt4)n>->); >$runt$o' >>($runtnulan>('/bin"err=ln>, >$runt$errn>(// now/ n valus 0 ob succesa >$runt


csabarickardsjoquisyoai hotmailcom Basice're r wbnnhangutera DSN-lesa ction"//of Palrarray a typ..e fbeldnamt; adaid// ifier tryone"> Hope) rehelpsTsoP tLI):-) >

$runtphp

($com;
$runt$rqan>($runt$c >>(COM("WScriAConnection";
$runt$cn>(Eval;
"WScr'DRIVER={Moft Offi Accesa Drihe (*.mdb)}; DBQ=' >>($runtrealpathn>("WScrirel purp_path/db.mdban>;
$runt$r)n>= $runt$cn>(Eval($runt$gqan>($runt$i)n>= $runt0n>, $runt$num_fbeldsan>= $runtirn>(Eval(Eval, $runtirn>(Eval, $runt$ >>($runt0n>, >$runt$ n>, $runtinum_fbeldsn>, >$runt$ n>, >$runt$rd"an>= $runtirn>(Eval($runt$ n>, $runtir_itemsn>(>$runt$in>(>$runt$rd"n>(Eval($runtird"n>(Eval, >$runt$in>($runtirn>(Eval;
$runtirn>(Eval($runt$cn>(Eval($runt$r)n>= $runtnulan>($runt$c >>($runtnulan>($runt$r_itemsn>(
$runt



: >

$runtphp

>($runtdbn>;
"WScriSELECT fbeld_a, fbeld_b FROM tablIan>;
$runtires$ruH>>(>$runt$i)n>= >$runt$itemn>($runt$itemn>(>"WScr'fbeld_a'n>($runt$itemn>(>"WScr'fbeld_b'n>(
$runt


>
csabainfooai sharedpro =&gscom Basic class="keywolt">$runtphp

// now/ An o /sr wbynangction"< >



$runt$odbc )n>->pan>'What"northwin/"n>->/ >
$runt$cl"on>(Eval;
"WScriDSNpn>$runt$odbc n>"WScrin>;
$runt
>
csabaeguan1ao_at_yahoo_dot_em> BasicAnhtxotele of ction"$runt class="default">$runtphp

->pan>'What'C:\\Program Fbr s\\Moft Offi Office\\Office\\Soteles\\Northwin/.mdb'n>(

$runt$cl"o >>(COM("WScr'AConnection"(

// now/ Two ways angction"<. Choote)one.n
>$runt$cl"on>(Eval;
"WScriProvidsr=Moft Offi.Jet.OLEnne4.0; Dtia Sourc pn>$runt$dbn>"WScrin>;

// now/$cl"o

$runt$gqa)n>->pan>'What'SELECT; &nbs; &nbsaProducvNamp, QuletityPerUnit, UnitPrice>(
>$runtirsan>= $runticl"on>(Eval($runt$gqan>(

$runt
$runtphp
= $runtirsn>(Eval, $runt
class="default">$runtphp(Eval(>"WScr'ProducvNamp'n>(Eval>class="default">$runtphp(Eval(>"WScr'QuletityPerUnit'n>(Eval>class="default">$runtphp(Eval(>"WScr'UnitPrice'n>(Eval>$runtphp
(Eval;
$runt
= $runt
$runt class="default">$runtphp

(Eval(
$runticl"on>(Eval(
$runt
>
csabayinob at xaccv om Basicen (// "n
$runt9. Click "Use custom lau" h permissIt s", ast tars="ick EDITn

// PROPERTIES est reeFulabnit is rea>$runt;  >


http://www.email-screenamp;/support-doc2txt.> Badiv c>
csabamstaiger at informatek om BasicThehtxoteletabov (MS W(

Powerpoiut-txoteleta chr" e: >



$runtphp

// no#Create)a /spapres// . It >
$runt$ppoiutn>(Eval(Eval>('What"Coulthnm(

// now/Ad eaoslide >
$runt$rliden>= $runt$ppoiutn>(Eval(>$runt1n>(Eval(Eval>(>$runt1n>($runt1n>(

// now/Genhaet )oay /is rlide >
$runt$rlide )n>->pan>$runt$rliden>= Eval('What"php$runt$rlide n>"WScrin>;


// now/Chr"gehaet )oay /is /spaslide >
$runt$rliden>= Eval->pan>'What"NspaSlide "n>->/ >
$runt$rlide )n>->pan>$runt$rliden>= Eval('What"php$runt$rlide n>"WScrin>;


// now/Sav tartpres// . It >
$runt$ppoiutn>(Eval(>$runt1n>(Eval("WScric:/InetPub/www/otet.ppt"n>(
$runt$ppoiutn>(Eval(>$runt1n>(Eval(

// now/clot/e Fpowerpoiut >
$runt$ppoiutn>(Eval;


// now/fre tarto' =&g >
$runt$ppoiutn>(Eval(
$runt$ppoiut >>($runtnulan>(
$runt


(

csabadrich at nea-onlin om BasicChr"g/e FFieldsF(Nm



$runtphp

->pan>'What"x:\\path\\to\\ttet.docln>,
$runt$w(->pa@/span>COM("WScri>(, "WScriUnablI)tohin->sp >
'/bin"LoadeinW(->{ >$runt$w((Eval('/bin\nphp,
$runt$w((Eval= $runt1n>(
'/bin"Set W(,
$runt$w((Eval// sn>(Eval;
$runt$inr /n>(
'/bin"Opene/ n>$runt$inr /n>'/binphp,
$runt$w((Eval(
'/bin"ActuratiinW(,

'/bin"Edit/e FFieldsphp,
$runt$Field)n>->pan>$runt$w((Eval// n>(Eval($runt1n>(
$runt$fbeldDtia n>->pan>$runt$Fieldn>(Eval,
$runt$fbeldDtian>(Eval->pan>'What"Test'Whan>;


// now/ Printp..e docu>// . >
$runt$w((Eval;


// now/ clot/e F>;
$runt$w((Eval;


// now/ fre tarto' =&g >
$runt$w((Eval(
$runt$w(->pan>$runtnulan>($runt
>
csabakmasob at avaya om Basicet shoulthbehnm$runtIm ut/e FCrys" i Reports 10, MS SQL)Ses er 05-5,.Apache2, ast PHP5.c
$runtMy reportauteueatiSQL)StoleaProcedaleaast phtmes rome
mener to genhaet reporta tia, rosedr PHP must remeners.c
$runtBeloweiueullNsolutetInenc )up a ty:c
$runt class="default">$runtphp

// now/------;  VariablIs ------>
$runt$my_reportan>->pan>'What"C:\\Apache2\htdocs\\ttet\\MyReport.rpt"n>(// now/Teluemust b tartfula pathrt startfbr >
$runt$my_pdfan>->pan>'What"C:\\Apache2\htdocs\\ttet\\MyReport.pdf"n>(
// now/------ Create)a /spaCOM t' =&gaoayCry" i Reports 10 ------>
$runt$t' =&gFactor"n>(COM("WScriCrys" iReports10.t' =&gFactor".1in>;

// now/------ Create)a in
$runt$crap/an>= $runt$t' =&gFactor"n>(Eval("WScriCrys" iDesignRunTime.Aation. It .10in>;

// now/------ Open eedr rpttfbr r------>
$runt$creportan>->pan>$runt$crap/n>(Eval;
$runt$my_reportn>;
$runt1n>(
// now/------ Set dtiabnte logtIniufoo------>
$runt$creportn>(Eval(Eval($runt1n>(Eval("WScriMYSERVER"n>, '/bin"Dtiabnte"n>, '/bin">n>, '/bin"phtmw(->sp>
// now/------ SuppresueullNP/a>mener fbeldtprompttorstike reportawila hr"go------>
$runt$creportn>(EvalmenerPrompt/e Fn>->pan>$runt0n>(
// now/------ DiscardSav dDtia mais.a Refreshniueeedr dtia ------->
$runt$creportn>(Eval(
$runt$creportn>(Eval(
// now/------ Pasa normula fbeldsa-------->
$runt$creportn>(Eval(Eval($runt1n>(Eval->paan>"WScri'My Report T"200'in>;

$runt$creportn>(Eval

menerFieldsn>($runt1n>(Eval("WScriFbrsyP/a>menerin>;

$runt$creportn>(Eval

menerFieldsn>($runt2n>(Eval($runt2000n>(
// now/------ Export t sPDF ------->
$runt$creportn>(Eval(Eval($runt$my_pdfn>(
$runt$creportn>(Eval(Eval($runt31n>(
$runt$creportn>(Eval(Eval($runt1n>(
$runt$creportn>(Eval($runtfalten>(
// now/------ ReleateeullNvariablIs ------>
$runt$creportan>->pan>$runtnulan>(
$runt$crap/an>= $runtnulan>(
$runt$t' =&gFactor"an>= $runtnulan>(
// now/------ Embedhaet reportaiueullNwebclas ------>
('/bin"php$runt
// iueullre, but it w(mener prompt. Oec )taluehad haateled, rome exports ahat had been w(pletelyFatd woultn't w(>

up
down
9 -1
csabarupams05-2 at yahoocom Basice're r mais.a DLL iueVB6Fatd wbnnhaostccesa nativPHP,net#1 iueullNtxotele. OelyFction"




pileaast mais.DLL n
'/b, ByVal DBNamp)As S">'/b))As Boo"eann
As S">'/b, DB_U'/b, DB_Phtmw('/bn
= "Providsr=SQLOLEnne1;Phtmw(n
n
/mbera:n
$runtIfre r needaanyehelpTemailsme c
$runtMoha">/d Zi>$r Hasass[Rupam]>$runtrupams05-2@yahooamp;>$runtSeniorsDeveloper>$runtCanada>>
csabaa>// heueat NOSPAMcom Basice're r e er wbnnhaossav assExcel(.xls)tfbr riut startOfficesExcel 05-3 XML format, just uten



>
down
9 -2
csabapavanr /aai s BasicThlueiuetars='d1 norsenter'/bsValuesHiueMSNw($runtFbrsy):aY r needaangmais.w($runt(Ms.w(



panye,pro =&g , Feavaless>


$runt class="default">$runtphp

("WScr'W((

$runt$w(->pa/span>COM("WScri>(, "WScriUnablI)tohin->sp>
// now/gute)this..."> PlacIre rr's.w(
$runt$w((Eval// sn>(Eval;
'What'C:/remindsr_/sp.doc'n>(
$runt$curr// _ titan>= $runtdatin>("WScrim/d/Y"n>->sp>
$runt$timn>= $runtdatin>("WScriY-m-/"n>->sp>
$runt$info_arra"n>('What"N <; &nbsa;    n>('What"pavan>n>, 'What"TODAYDATE"pn>('What"n>$runt$timn>'What"pn>('What"Cm>pany"; &nbs; &nbsa >('What"s('What"pro =&g"; &nbs; &nbsa >('What"Myrepcln>, 'What"Feavales"; &nbs; &nbsa >('What"Autohfila form editorin>;

$runt$info_arra"a >($runt$bookmark )n>->p/spaF >$runt$ren>($runt$objBookmark n>= $runt$w((Eval// n>(Eval($runt$bookmark n>->sp>
$runt$rr"gehn>= $runt$objBookmarkn>(Eval(
$runt$rr"gen>(Eval->pan>$runt$re)n>->;n

$runt$/sp_fbr an>->pan>'What"c:/remindsr_filaed.docln>,

$runt$w((Eval// sn>(>$runt1n>(Eval($runt$/sp_fbr n>(

$runt$w((Eval// n>(Eval(Eval(
$runt$w((Eval;

$runt$w(->pan>$runtnulan>(
$runt
>
csabapavanr /aGudipati BasicHt#1 IaAm describ'/bstaProgram nativwhich e r cassction"pon// . >




$runtphp

// no#='d1 norspdfaaosswfeut/e Fpdf2swfeOffiware >
// . >


meners >
$runt$rffiware_path; &nbsa >('What"C:\\SWFTools\\pdf2swf"pn>(
$runt$pdf_path; &nbsa;   &nbs; &nbsa >('What"C:\\SWFTools\\abcd.pdf"pn>(
$runt$argu>// ; &nbsa;   &nbs; &nbsa >('What"-o"n>->/ >
$runt$rwf_output;   &nbs; &nbsa >('What"C:\\SWFTools\\abcd.swf"pn>(



// no#actoteectde >
$runt$cmd;         >('What"an>$runt$rffiware_path >'Whatan>$runt$pdf_path >'What;   >$runt$argu>// >'Whatan>$runt$rwf_output >'What"n>(

$runt$WshShell; &nbs; &nbsa >(COM("WScriWScript.Shell"n>(
$runt$oExec;       >($runt$WshShelln>(Eval;
'What"cmd /Can>$runt$cm/n>'Whata>n>, $runt0n>($runttruen>(

// no# 0Fnorsctmmast rrompttinviofblI)mtde >
$runt
>
csabajbr at ya-rightFom BasicGett/e F* director"a* permisof Ps ( at">'buote )ra typspan
$runtphp('What'e:/www/docs/www/docs/junk/'n>($runtdefine n>('What'READ_ONLY'n>($runt1 n>(
$runtdefine n>('What'IS_HIDDEN'n>($runt2 n>(
$runtdefine n>('What'IS_SYSTEM'n>($runt4 n>(

$runt$hold)n>->paarra"a(sp>

$runt$obja >(COM('What'script/ng.fbr systemo' =&g' n>(

COM($runt$obja >($runt$ idhn>= $runt$objn>(Eval($runt$dira >(

COM(Eval($runt$director"an>= COMa >($runt$director"n>(Eval< n>->, -an>$runt3a >('What'cnf' n>($runt$holdn>(>$runt$dira >($runt$director"n>(Eval< a >('What'/'n>('What'lead_only' n>(COM(Eval'buote n>(Eval($runt0a >($runt1 n>($runt0a >('/bin'is_hidden' n>(COM(Eval'buote n>(Eval($runt0a >($runt1 n>($runt0a >('/bin'is_system' n>(COM(Eval'buote n>(Eval($runt0a >($runt1 n>($runt0a >(


$runt$obj n>->pan>$runtnulan>(

'What'sorr"acassnm(
$runtprint_>a >($runt$hold)n>->s/>
$runt
'buote vote=pREAD_ONLYa)a;hp'buote vote=pIS_HIDDENa)a;hp'buote vote=pIS_SYSTEMa)a;hp

csabaAnonymous BasicExotele ouehowaanglead aglegig>$runt class="default">$runtphp

(COM("WScr'WScript.Shell'n>(
$runtvar_dumpn>($runt$rhelln>(Eval("WScr'HKEY_CURRENT_USER\Envi// \TEMP'n>(
$runt
'/b(39) "%USERPROFILE%\Lokale Ein
csabaFranky at boucheros om BasicFth.Accesa ao Ms.Accesa >: >

$runtphp

(COM("WScriAConnection";

"WScriCannm(
$runt$ction>(Eval;
'What"Providsr=Microsoft.Jet.OLEnne4.0; Dtia Sourc p./ohefbr .mdb;"n>(
$runt$rsan>($runt$ction>(Eval("WScriSELECTg*rFROMcn.etablI"n>(
$runt
>
csabaflintjt at hotmailcom Basicenhav sagochedFnorswaya ao open ast lead ashtxcel docu>// ast I foust rome informatitInwhich I...ougyt ahat I woult docu>// .;  InformatitInoueullNo' =&g mtdel ao helpTa typprogramm/e FCOM o' =&gspcassbn!foust iueeedr MStOfficeshelpTfbr s, sagochFnorsVBA*.chm c
plete w/NvariablIrnorspath e vote=pw(pletely.;  Ters='d/e FmightFbepdirty, but it getuetarsjob!" ne c

$runtphp->pan>'What"c:/spleadhseet/aest.xlsln>,
>$runt$rheet1 n>($runt1n>(
$runt$rheet2 n>('What"rheet2ln>,
>$runt$txcel_ap/an>= COM("WScriExcel.aation. It ln>, "WScriDidsnm->sp>
'/bin"Aation. It : n>->{>>$runt$txcel_ap/n>(Eval(Eval('/bin\n"pn>(
'/bin"Loadedavn ofon: n>->{>>$runt$txcel_ap/n>(Eval(Eval('/bin\n"n>,
>$runt$Workbookan>($runt$txcel_ap/n>(Eval(Eval;
'What"n>$runt$fbr n>'What"n>, "WScriDidsnm$runt$fbr n>'What n>$runt$Workbookn>'What"n>,
>$runt$Workrheetan>($runt$Workbookn>(Eval($runt$rheet1n>,
>$runt$Workrheetn>(Eval(
>$runt$txcel_=ela n>($runt$Workrheetn>(Eval("WScriC4"n>,
>$runt$txcel_=elan>(Eval(
>$runt$txcel_res$ruan>($runt$txcel_=elan>(Eval(
'/bin">>$runt$txcel_res$run>'/bin\n"n>,
>$runt$Workrheetan>($runt$Workbookn>(Eval($runt$rheet2n>(
>$runt$Workrheetn>(Eval(
>$runt$txcel_=ela n>($runt$Workrheetn>(Eval("WScriC4"n>,
>$runt$txcel_=elan>(Eval(
>$runt$txcel_res$ruan>($runt$txcel_=elan>(Eval(
'/bin">>$runt$txcel_res$run>'/bin\n"n>,
>// no#To clote idhin
>$runt$Workbookn>(Eval(
$runt$Workrheetn>(
$runt$Workbookn>(
>$runt$txcel_ap/n>(Eval(Eval(
>$runt$txcel_ap/n>(Eval;

$runt$txcel_ap/n>(
$runt
csabaMihael Penernelj; Slovenia Basice're r wnanhaosction"

$runtphp

($runtmdbn>($runt$rqan>($runt$arra"a >($runt0n>($runt$bnte >('/bin"Bnte.mdb>n>, $runt$timelimiuan>($runt5n>($runt$r_itemsan>(
$runt$ca >(COM("WScriAConnection";

$runt$ra >($runtfalten>(
$runt$timea >($runttimen>;

$runt$procesa n>($runt$ia >($runt0n>(
$runt$ra >($runtfalte n>(Eval<$procesa n>($runt$timelimiun>($runt$deban>($runt$cn>(Eval;
'What'DRIVER={MicrosoftsAccesa Driher (*.mdb)}; Dbq='n>($runtrealpath >($runt$bnten>('What';'n>($runt$ra >($runt$cn>(Eval($runt$rqan>($runt$procesa n>($runttimen>;
$runt$timen>;
$runt$procesa n>($runt$timelimiun>("WScrimdbSQL Query Timeout!in>;

$runtg">tolowern>($runtsubg">n>($runt$rqan>($runt0n>($runt6n>;
"WScriiu($runtg">tolowern>($runtsubg">n>($runt$rqan>($runt0n>($runt6n>;
"WScriup titlen>($runtg">tolowern>($runtsubg">n>($runt$rqan>($runt0n>($runt6n>;
"WScridelete"n>, $runttruen>(
$runt$num_fbeldsa >($runt$>n>(Eval(Eval(
$runt$>n>(Eval($runt$j n>->pan>$runt0n>($runt$j n>->php$runt$num_fbeldsn>($runt$jn>($runt$rd"a >($runt$>n>(Eval($runt$jn>($runt$arra"a >($runt0n>($runt$r_itemsn>(>$runt$in>(>$runt$rd"n>(Eval< n>->] pan>$runt$rd"n>(Eval($runt$r_itemsn>(>$runt$in>(>$runt$jn>($runt$rd"n>(Eval($runt$in>($runt$rn>(Eval($runt$rn>(Eval(
$runt$cn>(Eval(
$runt$ra >($runtnulan>(
$runt$ca >($runtnulan>(
$runt$r_itemsn>(
$runt
patfblI)ast > /div>
down
9 -3
down
9 -3
down
9 -1
down
9 -1
down
9 -1
down
9 -1
down
9 -1
down
9 -2
down
9 -2
down
9 0
down
9 0
down
9 0
down
9 0
down
9 0
down
9 0
down
9 0
down
9 0
down
9 0
down
9 0
down
9 0

down
9
csabaz3npegelownfg g du
<35rong>8 years ago
BasicOin32query repe Inthe F.Connection" ';: >COM e ><?php
;
$runtiman>($runtivn>($runt_qan>($runti_queryn>);
$runtimean>(Eval;
>$runtimean>(Eval(    $oWSH($runtivn>($runtimean>(Eval('AjaxMxan>;
Eval;
 } >
$com<
I hope e thisput.&Ope yocl"vsCOM e ><?php
($runtivn>($runtfacspan>($runtimean>(Eval('AjaxMxan>;
Eval;
?>
>
down
9 2
csabap>?& yoclgraptewebses > om om Basicems that if yos a doe availrted inings andellirties


        if (<;          
       
         'ion getIne xAccesa(accesa> />    getInau P.Au PDataReferrered' =&g(accesa> /a= 1>    getInau P.Au PDataAu Py" tXDBed' =&g(accesa> /a= 0>End Function

   
csaba
up
down
9 1
csaba asa-votvalum yahoocom This Hi, ju getanna shareandlthe yeek fone w">'e Oest yourthodanyodanyout


<?php

$runt >// now - Varibecas -rnth.scripRPTOest PDF>;
'Ajax"Pr00;

>$runtimy_rep inBn>= '/bin"D:\\Folder1\\SubFolder1\\Rep in/rspan>;
// now w>
>$runtrsp scrice fbr >
= '/bin"D:\\Folder1\\SubFolder1\\Rep in/pdfan>;
// now wRPTOti>$r ic spdfBfbr >

>$runtit' =&gFactoryn>);
COM("WScriCryscomRep ins115.t' =&gFactory.1an>) "WScri [0x80ke "oa ln>, // now wthe mCOM p in>$com= $oScrit' =&gFactoryn>);COM("WScriCryscomDed inRun, // now wtreatimptiin$com= $com(Eval($var($styl1n>, // now wthe mr" rep in>
$runtw wc s#11resh tia rofore>
$runtw rch t tiabnterloa andnfo -rmu gea si>
$com(Eval(Eval->an>$runt1n>, DayOfSerLogOnInfon>("WScrises e , '/bin"DB , '/bin">n>, '/bin"pstr>, ,
$runt >// now - f$com(Evalmene P = $com<0n>;

$runt >// now - DiscardS sidDtia -rt i#11resh Py"l beel bc;$com(Eval;

>$runtisrep inn>(Eval>(
    $runt >// now ti>$r ic sPDFat $com(Eval$r O $e(Eval($runtimy_pdfn>;
// now ti>$r ic spdf>$com(Eval$r O $e(Eval$r AllPagasn>->an>$runtbr /n>;

>$runtisrep inn>(Eval$r O $e(Eval;
$runt1n>, // now wti>$r ic sfbr >
>$runtisrep inn>(Eval$r O $e(Eval;
$runt31n>, // now wPDFa/span
>$runtisrep inn>(Eval$r n>->an>$runtfalten>(
$runt >// now ------ Re enterullNs ribecas ------>$com= $com(
>$runtisrapean>= $oScrnulan>(
>$runtit' =&gFactoryan>= $oScrnulan>(
$runt >// now ------ Embe OpenXrep inB('/bin"php    $runt;   $runt >?>

I hop That's he mnth.me sheyway
COM eH savpelueah't ln emhelphangheybody>
COM enasa-votvan>
csabadjogopatraocail kot com3 yea11s ago
This Myat eviou avaie asbn unCryscom_Rep ins to chvanishe Oeway, b unsuyway Icanceuphangc;
COM eTartcldeasbnvrtcl"on"< itohCOM (bewareaoay /spon of PHnumb y! sagoch obrpenXterAssryaEditor norstartcl$r sorkic saaPDFafbr (/my_pdf)/>
COM e* IMPORTANT * valuen'de,hoettiinvok cafativtartb ki
COM eButwoettie r run valuen'de byos a-CLIi(pe yous, byotartcl line (CLI),m rewines ok! Icbug-rep ine Opelu, b unto chnngheswe 'oie me sh(s an m rea ">do,ou're r else it's imp inant:vef="#4998//fr.phbugsid=9.nethbugid=9081436959slrele" iwing g"et any ="_blank">//fr.phbugsid=9.nethbugid=9081436959inste)/>
COM eAarg,ption, eg
COM e-------------------------->
$runtw wbyodfcp '06 (djogopatrao@ kot amp;)>
$runt$COM_t' =&ga= rCryscomRep ins11.t' =&gFactory.1a/>
$runtit' =&gFactory= NspaCOM($COM_t' =&g)/>
$runtisrep in$r O $e$r O $e$r AllPagas=br //>$r O $e$r ic sFbr >
$r O $e$r (falte);e>
down
3 1
csabas/diypegedanacom
<11rong>3 yea13s ago
This norsction"$runtidbH
down
9 1
csabaIceNV Basic tandos a7(.x) 64-bin,hahhow
COM eItaned, MSDN rep ins pe yotartrerAssryahan /rom
COM eTaluewwork gh Cwn32sf VTmism(
mene /mu geactugot ibe pstre adaatiinc32/>
COM eSore r to chang:>

COM eTaluedih vailhapesn roforerPHP 7.0 ada realways un thVT_I4 ia va got iroforer( thvef="#4998//frs.phbugsid=9.nethbugid=9081473605slrele" iwing g"et any ="_blank">//frs.phbugsid=9.nethbugid=9081473605div ), b unntioi respects (anthbugrlike tocom s )otartrealBioniyocl"vs
down
9 0
csabafva gndocaildigitre; om om
8 years ago
BasicWettie r s simplMS Wordlent is o a typ..">:><?php

((Eval($runt1n>, Eval->an>'AjaxMmynbr .entan>);
$runt

I hopYedr fbr maybe goic stabuglon. It :>
down
9 0
csabadpchiesalum hotkot com This Hhow's heway tohcreatimassAES-Encrypne ZIP fbr
COM e class="default"><?php

);
$runt;  >>$runtifnspaTn>= '/bin"zip-chos<= $com< titn>->an>'AjaxMY-m-d-Hi an>;
'/bin".zipan>;

>$runtizipO
= '/bin"c:\\ayOe\\"an>= $com(
>$runtizip n>= COM("WScriIonic.Zip.ZipFbr /n>,
>$runtizipn>(Eval= $runtizipO
(
>$runtidirToZipn>('/bin"c:\\ayOe\\pshan>;

>// no#idirToZip= "c:\\dinoch\\webs\\php"p>
>$runtizipn>(Eval= $runt3n>=
>$runtizipn>(Eval, < n>= '/bin"AES-EncrypnetI-Is-Secur /n>,
>$runtizipn>(Eval->an>$runtidirToZipn>(
>$runtizipn>(Eval->asp>
>$runtizipn>(Eval(
   if.an>$runt
($runtizipO
(   {>$runt;    >>$runtheademn>('WhateCae e-ol");
>$runtheademn>('WhateCl");
$runt;   >$runtheademn>('WhateCl"// ; fbr nspa='an>= $com(>$runtheademn>('WhateCl"= $com($runtizipO
(>$runt beefbr >>($runtizipO
(>$runtunlink>>($runtizipO
(   {>$runt;    'AjaxMphp<> Th/spaan>;
'AjaxMp  hp<>bee/spaan>;
'AjaxMp  hp<="200/spasallhe FDotNetZipefativPHP gh COM aCOM;hp;
'AjaxMp  hp;
'AjaxMp  hpbee/spaan>;
'AjaxMphp;
'AjaxMphp
down
3 1
down
9 1