php-windows Digest 7 Jun 2013 10:21:47 -0000 Issue 4100

Topics (messages 31008 through 31010):

Re: PHP 5.3/5.4 and windows scripting host, WSF, ActiveScript question
        31008 by: Jim MacDiarmid
        31009 by: David Lykke Søndergaard

Need help with mysql error
        31010 by: Gu®u

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
David,

I don't have my system set up right now as a development machine at the
moment but I did find  a couple leads on this. You may have already seen
these.  I hope these are of some help to you.   I just did a google on " php
windows script host".   

http://wezfurlong.org/blog/2004/jul/phpscript/

http://www.samurize.com/modules/ipboard/index.php?showtopic=11607

http://www.tuxradar.com/practicalphp/14/1/2

http://www.webmasterworld.com/forum88/10294.htm

If this doesn't help,  let us know.  

Jim



-----Original Message-----
From: David Lykke Søndergaard [mailto:dsoenderga...@saxotech.com] 
Sent: Saturday, May 11, 2013 5:49 PM
To: php-wind...@lists.php.net
Subject: [PHP-WIN] PHP 5.3/5.4 and windows scripting host, WSF, ActiveScript
question

Hey,

I have been trying to get PHP to work with Windows Scripting Host and WSF
files.

With PHP 5.2.17, I could use PHP5ActiveScript.dll to make the connection and
run this script:
<job id="test">

 <script language="PHPScript">
  $WScript->Echo("Hello World!");
</script>
<job/>

http://www.php.net/manual/bg/install.windows.activescript.php

I can not, however, get this to work with PHP 5.3 or 5.4.

I have tried on windows 7, Windows XP and a freshly installed Windows XP.
I have tried with the standalone zip file, the installer and WAMP (Some
indicated that this had a working installation of PHP with activescript).

I have copied different versions of the PHP5activeScript.dll to the PHP
folder, but when I try to run regsvr32.exe php5activescript.dll, I always
get the error: "LoadLibrary("php5activescript.php") failed - The specified
procedure could not be found." (Unless I copy it to 5.2.17, were it
registers successfull)

Php5activescript is desupported according to php.net, but I can not find an
replacement way of connection PHP to windows Script Host ?

Hope somebody can help with this.

Cross posted to PHP-install - sorry to the people who are on both lists.

--David S.



--- End Message ---
--- Begin Message ---
Hey, 

Thank you for taking time to look at this, sadly all the links assume that the 
"regsvr32 php5activescript.dll" command is just working. Which is did for 5.2, 
but I can not make it work for 5.3 or 5.4. Of cause the latests 
php5activescript.dll I can find is a 5.2.6.6.

I have been through a lot of google searches, without finding it. (And too many 
google pages of actionScript, since it is nice and helps me translate 
activescript to actionscript).

--David



-----Original Message-----
From: Jim MacDiarmid [mailto:jim.macdiar...@comcast.net] 
Sent: 12. maj 2013 01:35
To: David Lykke Søndergaard; php-wind...@lists.php.net
Subject: RE: [PHP-WIN] PHP 5.3/5.4 and windows scripting host, WSF, 
ActiveScript question

David,

I don't have my system set up right now as a development machine at the moment 
but I did find  a couple leads on this. You may have already seen
these.  I hope these are of some help to you.   I just did a google on " php
windows script host".   

http://wezfurlong.org/blog/2004/jul/phpscript/

http://www.samurize.com/modules/ipboard/index.php?showtopic=11607

http://www.tuxradar.com/practicalphp/14/1/2

http://www.webmasterworld.com/forum88/10294.htm

If this doesn't help,  let us know.  

Jim



-----Original Message-----
From: David Lykke Søndergaard [mailto:dsoenderga...@saxotech.com]
Sent: Saturday, May 11, 2013 5:49 PM
To: php-wind...@lists.php.net
Subject: [PHP-WIN] PHP 5.3/5.4 and windows scripting host, WSF, ActiveScript 
question

Hey,

I have been trying to get PHP to work with Windows Scripting Host and WSF files.

With PHP 5.2.17, I could use PHP5ActiveScript.dll to make the connection and 
run this script:
<job id="test">

 <script language="PHPScript">
  $WScript->Echo("Hello World!");
</script>
<job/>

http://www.php.net/manual/bg/install.windows.activescript.php

I can not, however, get this to work with PHP 5.3 or 5.4.

I have tried on windows 7, Windows XP and a freshly installed Windows XP.
I have tried with the standalone zip file, the installer and WAMP (Some 
indicated that this had a working installation of PHP with activescript).

I have copied different versions of the PHP5activeScript.dll to the PHP folder, 
but when I try to run regsvr32.exe php5activescript.dll, I always get the 
error: "LoadLibrary("php5activescript.php") failed - The specified procedure 
could not be found." (Unless I copy it to 5.2.17, were it registers successfull)

Php5activescript is desupported according to php.net, but I can not find an 
replacement way of connection PHP to windows Script Host ?

Hope somebody can help with this.

Cross posted to PHP-install - sorry to the people who are on both lists.

--David S.



--- End Message ---
--- Begin Message ---
Hi All,

I am working a a project in which there is a table with some variables. I
have a form with which I pull the filled data by user and want to put into
mysql dtabase. Below is my query.

$sql="INSERT INTO recipt (date, pt_name, age, od_sph, od_cyl, od_axis,
os_sph, os_cyl, os_axis, add, d_sph, od_d, od_n, od1, os1)
VALUES
('$_POST[date]','$_POST[pt_name]','$_POST[age]','$_POST[od_sph]','$_POST[od_cyl]','$_POST[od_axis]','$_POST[os_sph]','$_POST[os_cyl]','$_POST[os_axis]','$_POST[add]','$_POST[d_sph]','$_POST[od_d]','$_POST[od_n]','$_POST[od1]','$_POST[os1]')";

However I am getting an error saying:

Error: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'add, d_sph, od_d, od_n, od1, os1) VALUES ('12-12-2013','guru
prasad','23','12'' at line 1

I have tried gooling it but no luck. Please help me with this error.

Thank you in advance.

-- 
*Best,
*
*Gu®u
CEO & Founder at,
www.myshopads.com
*

--- End Message ---

Reply via email to