<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Libreoffice%2F%E8%A1%A8%E8%A8%88%E7%AE%97%2F%E3%83%9E%E3%82%AF%E3%83%ADphp%E9%80%A3%E6%90%BA</id>
		<title>Libreoffice/表計算/マクロphp連携 - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Libreoffice%2F%E8%A1%A8%E8%A8%88%E7%AE%97%2F%E3%83%9E%E3%82%AF%E3%83%ADphp%E9%80%A3%E6%90%BA"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Libreoffice/%E8%A1%A8%E8%A8%88%E7%AE%97/%E3%83%9E%E3%82%AF%E3%83%ADphp%E9%80%A3%E6%90%BA&amp;action=history"/>
		<updated>2026-04-18T14:45:16Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Libreoffice/%E8%A1%A8%E8%A8%88%E7%AE%97/%E3%83%9E%E3%82%AF%E3%83%ADphp%E9%80%A3%E6%90%BA&amp;diff=21157&amp;oldid=prev</id>
		<title>Admin: ページの作成:「==引数なしであれば実行できる== &lt;pre&gt; Sub TestPHPScript()     Dim oShell As Object     oShell = CreateUnoService(&quot;com.sun.star.system.SystemShellExecute&quot;)...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Libreoffice/%E8%A1%A8%E8%A8%88%E7%AE%97/%E3%83%9E%E3%82%AF%E3%83%ADphp%E9%80%A3%E6%90%BA&amp;diff=21157&amp;oldid=prev"/>
				<updated>2026-02-16T06:32:20Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「==引数なしであれば実行できる== &amp;lt;pre&amp;gt; Sub TestPHPScript()     Dim oShell As Object     oShell = CreateUnoService(&amp;quot;com.sun.star.system.SystemShellExecute&amp;quot;)...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==引数なしであれば実行できる==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Sub TestPHPScript()&lt;br /&gt;
    Dim oShell As Object&lt;br /&gt;
    oShell = CreateUnoService(&amp;quot;com.sun.star.system.SystemShellExecute&amp;quot;)&lt;br /&gt;
    Dim sCmd As String&lt;br /&gt;
    Dim sArgs As String&lt;br /&gt;
    sCmd = &amp;quot;/opt/homebrew/bin/php&amp;quot;&lt;br /&gt;
    sArgs = &amp;quot;/d/www/php/test.php&amp;quot;&lt;br /&gt;
    oShell.execute sCmd, sArgs, 1&lt;br /&gt;
    MsgBox &amp;quot;called&amp;quot;&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===引数ありだと失敗する===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Sub TestPHPScript()&lt;br /&gt;
    Dim oShell As Object&lt;br /&gt;
    oShell = CreateUnoService(&amp;quot;com.sun.star.system.SystemShellExecute&amp;quot;)&lt;br /&gt;
    Dim sCmd As String&lt;br /&gt;
    Dim sArgs As String&lt;br /&gt;
    sCmd = &amp;quot;/opt/homebrew/bin/php&amp;quot;&lt;br /&gt;
    sArgs = &amp;quot;/d/www/php/test.php hello&amp;quot;&lt;br /&gt;
    oShell.execute sCmd, sArgs, 1&lt;br /&gt;
    MsgBox &amp;quot;called&amp;quot;&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
エラーメッセージ詳細&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASIC runtime error.&lt;br /&gt;
An exception occurred &lt;br /&gt;
Type: com.sun.star.system.SystemShellExecuteException&lt;br /&gt;
Message: Attribute not found.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>