IIS php exec() block
O no iis ;) trying to exec ('net'). And see nothing, just errcode 2. Course php cli, the same code works fine. Is there a setting to iis that is blocking this feature. Other utils cmd works very well.
Hello
Your question is beyond the scope of this community.
TechNet forums:
https://social.technet.Microsoft.com/forums/en-us/home
Or MSDN Forums:
https://social.msdn.Microsoft.com/forums/en-us/home
"IIS.NET forums.
See you soon.
Tags: Windows
Similar Questions
-
Install IIS/PHP on Win Server 2008R2
I am building a Web server with PHP support. I'm trying to install PHP 5.5.15 (NTS) on Windows Server 2008 R2, using IIS 7.5. I installed all the up-to-date available/updated service packs to Server 2008. I downloaded the installer msi Windows from php.net for php. While I'm very Windows compliant networking (MCSE, 20 years experience), I am an extreme novice when it comes to php and am not a programmer. I'm having problems of three 3-1) I don't know I have installed php, or installed correctly. How can I tell? I installed CGI and related features/services on Server 2008. (2) when I double click win-cgi, nothing happens, that's why I think that I can not have installed php, or installed correctly. I'm trying to run a php script open source that creates a social networking/dating site. I edited php.ini file as indicated by the script installation instructions, but when I try to run the script, I get the 3 third) problem with the following error message:
You have 4 error (s):
(1) Please install "PDO" PHP with MySQL driver extension.
(2) Please install graphics 'GD' extension PHP.
(3) Please install the PHP 'cURL' library
(4) Please install the PHP "mbstring" extension
I placed the php files in a folder called "PHP55" and confirmed that the files are in the folder. I am running MySQL Server v5.6. Help, please. I don't know what is missing or what I'm doing wrong. If I had hair, I wouldn't. I would have released it now. So all that remains is to decide what temple for pointing the gun at. I think that the resolution is simple, but not sure how to solve. Please post your questions and answers here, or respond directly to: * address email is removed from the privacy *. Thank you very much for your help.
Kind regards
Larry
Ask in the forum Windows Server:
http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer -
Hello, I have a problem that I'm trying to exec (function in php) exec ("sqlplus pro/pro @query") or die ('bag'); but not run
I got chown-r oracle: oinstall/var/www/html (because in this php and query.sql file folder)
I don't know why?
Pleasee help me
Thank youkenshin19xx wrote:
I'm sorry, and this is the result of capure.env=/bin/env CLASSPATH=/opt/app/oracle/product/11.1.0/db_1/JRE:/opt/app/oracle/product/11.1.0/db_1/jlib:/opt/app/oracle/product/11.1.0/db_1/rdbms/jlib G_BROKEN_FILENAMES=1 HISTSIZE=1000 HOME=/home/oracle HOSTNAME=datacenter INPUTRC=/etc/inputrc LANG=en_US.UTF-8 LD_LIBRARY_PATH=/opt/app/oracle/product/11.1.0/db_1/lib:/lib:/usr/lib LESSOPEN=|/usr/bin/lesspipe.sh %s LOGNAME=oracle LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: MAIL=/var/spool/mail/oracle ORACLE_BASE=/opt/app/oracle ORACLE_HOME=/opt/app/oracle/product/11.1.0/db_1 ORACLE_SID=DBL PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/app/oracle/product/11.1.0/db_1/bin PWD=/home/oracle SHELL=/bin/bash SHLVL=1 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SSH_CLIENT=192.168.1.12 54632 22 SSH_CONNECTION=192.168.1.12 54632 192.168.1.150 22 SSH_TTY=/dev/pts/3 TERM=xterm USER=oracle
Thank you
while I could be wrong, but I STRONGLY suspect above was produced from the operating system command line
& NOT be forked / execed any PHP process.The PHP process are not of SSH related variables.
I hope you solve your problems.
Many others, including me, have managed to invoke the Oracle of the PHP interface. -
Hi, I'm pretty sure it's a n00bish question, but I'll have the session variable is problem when between php execs.
So when the user connects, user id is stored in the session variable so I can use it throughout the app. However, the session variable is clearly not stored and throws a fit. I figured exit() destroys the session but that is not the case.
I can, however, create a local variable for the user id, but I wondered how session variables are stored and retrieved.
How is your java program interacts with the service of php?
There is no treatment level OS things like cookies and session in Java variables. You will have to do it yourself.
-
Hello.
I was wondering if someone could help me add the necessary PHP script for a little more than fields in my form of e-mail. At the present time it captures name, Email and comments. However, I need to add a place for phone, city, and registration to the Newsletter (radio button). Have added the form fields in my html file, I'm not sure how to add to the script.
Thank you in advance!
This is the page:
www.americangardensinc.com/site/contact.html
Here is the PHP script:
<? PHP /
$mailto = ' [email protected] ' ;
$subject = "Web site feedback form.
$formurl = " " http://www.americangardensinc.com/site/contact.html " ;
$thankyouurl = " " http://www.americangardensinc.com/site/thankyou.html " ;
$errorurl = " " http://www.americangardensinc.HTML/site/error.html " ;
$email_is_required = 1;
$name_is_required = 1;
$comments_is_required = 0;
$uself = 0;
$forcelf = 0;
$use_envsender = 0;
$use_sendmailfrom = 0;
$smtp_server_win = ";
$use_webmaster_email_for_from = 0;
$use_utf8 = 1;
$my_recaptcha_private_key = ";
define ("MAX_LINE_LENGTH", 998);
$headersep = $uself? "\n" : "\r\n" ;
$content_nl = $forcelf? "\n": (defined ('PHP_EOL')? PHP_EOL: "\n");
$content_type = $use_utf8? ' Content-Type: text/plain; charset = "utf-8" ': ' Content-Type: text/plain; charset = "iso-8859-1" ';
If {($use_sendmailfrom)
ini_set ("sendmail_from", $mailto);
}
If (strlen ($smtp_server_win)) {}
ini_set ('SMTP', $smtp_server_win);
}
$envsender = "-f$ mailto;
$fullname = isset($_POST['fullname'])? $_POST ['fullname']: $_POST ['name'];
$email = $_POST ['email'];
$comments = $_POST ['comment'];
$http_referrer = getenv ('HTTP_REFERER');
If (! isset($_POST['email'])) {}
Header ("Location: $formurl");
"exit";
}
If (($email_is_required & & (($email) empty |! preg_match ('/ @/ ', $email))) |) ($name_is_required & & empty ($fullname)). (($comments_is_required & & empty ($comments))) {
Header ("Location: $errorurl");
"exit";
}
If (preg_match ("/ [\r\n]/ ', $fullname): preg_match (" / [\r\n]/ ', $email)) {}
Header ("Location: $errorurl");
"exit";
}
/*
If (strlen ($my_recaptcha_private_key)) {}
$resp = recaptcha_check_answer ($my_recaptcha_private_key, $_SERVER ['REMOTE_ADDR'], $_POST ["recaptcha_challenge_field"], $_POST ["recaptcha_response_field"]);
If (! $resp-> is_valid) {}
Header ("Location: $errorurl");
"exit";
}
}
*/
If (empty ($email)) {}
$email = $mailto;
}
$fromemail = $use_webmaster_email_for_from? $mailto: $email;
If (function_exists ('get_magic_quotes_gpc') & & get_magic_quotes_gpc()) {}
$comments = stripslashes ($comments);
}
$messageproper =
"This message was sent by: $content_nl.
'$http_referrer '. $content_nl.
"------------------------------------------------------------" . $content_nl.
"Name of sender: $fullname. $content_nl.
"The sender email: $email. $content_nl.
"------------------------- COMMENTS -------------------------" . $content_nl. $content_nl.
WordWrap ($comments, MAX_LINE_LENGTH, $content_nl, true). $content_nl. $content_nl.
"------------------------------------------------------------" . $content_nl;
$headers =
"" From: \"$fullname\" < $fromemail > ". $headersep. "" Reply-To: \"$fullname\" < $email > ". $headersep. "X-Mailer: chfeedback.php 2.16.12.
$headersep. "MIME-Version: 1.0 '." $headersep. $content_type;
If {($use_envsender)
mail ($mailto $subject, $messageproper, $headers, $envsender);
}
else {}
mail ($mailto $subject, $messageproper, $headers);
}
Header ("Location: $thankyouurl");
"exit";
? >
Add telephone, city and newsletter variable to the block of code below (indicated in red) php
$envsender = "-f$ mailto;
$fullname = isset($_POST['fullname'])? $_POST ['fullname']: $_POST ['name'];
$email = $_POST ['email'];
$comments = $_POST ['comment'];
$phone = $_POST ['phone'];
$city = $_POST ['city'];
$newsletter = $_POST ['radio'];
$http_referrer = getenv ('HTTP_REFERER');
Then add the following php code block (shown in red)
$messageproper =
"This message was sent by: $content_nl.
'$http_referrer '. $content_nl.
"------------------------------------------------------------" . $content_nl.
"Name of sender: $fullname. $content_nl.
"The sender email: $email. $content_nl.
"Phone number of sender: $phone. $content_nl.
"City of the sender: $city. $content_nl.
"Option of the sender newsletter: $newsletter. $content_nl.
"------------------------- COMMENTS -------------------------" . $content_nl. $content_nl.
WordWrap ($comments, MAX_LINE_LENGTH, $content_nl, true). $content_nl. $content_nl.
"------------------------------------------------------------" . $content_nl;
-
How do I add a comment in a php file which has the html code
Hello
I have a html file that I renamed .php after the addition of a form. I discovered that the text of html comment I used - <! - this is a comment--> - affected how the page rendered, especially in IE9.
My question is, now that it's a php file I need to change the syntax of comments? I started to do so using the button 'apply comment' in CS5 for example of syntax: <? PHP / *? > form <? PHP * /? >.
What is the right way to do it? It gives 'php' icons in Design view, but seems to go ok.
Thank you
> I have a html file that I renamed .php after the addition of a form.
I > discovered that html comment text I used - -.
> affected how the page rendered, especially in IE9.
I can't imagine why. HTML comments are ignored by the customer - is not serious if it's in a .html or .php file.
> My question is, now that it's a php file I need to change the syntax of comments?
No, PHP comments are comments that are inside a block of PHP code. Just because the file has a. PHP extension does not mean that you need to change your comment syntax. Use html inside blocks html comment syntax and syntax of php inside blocks of php code.
-
Need help working Oracle/PHP to ASP/Oracle conversion
I don't know if it's the right place, but I was pulling my hair out trying to convert a PHP page in VBScript (ASP) without a bit of luck to all. Hours of research on Google and trial and error and grrrr... I hope someone can help.
I am new to Oracle and PHP, but old in ASP/VBScript
Windows Server 2003 R2
IIS
PHP
I have an Oracle procedure on a remote computer on which I can NOT change. Out of my control. There is a PHP page on a web server that calls it and works very well. My boss wants me to convert the PHP ASP script (I know, but I have to work within those parameters. Sorry). On the one hand, I can't find many examples of the use of ASP with Oracle procedures. And those that I find are not complete examples or are displayed as questions. Everything I've tried so far either causes an error message I don't understand or not errors, but no data either. So, here is what I got:
CREATE OR REPLACE PROCEDURE X_Doc_Num_Query)
p_doc_num in VARCHAR2
)
AS
-variables
v_curr_sos_ric Pkg.curr_sos_ric%TYPE: = NULL;
v_data VARCHAR2 (1000): = NULL;
v_depot_ric Pkg.depot_ric%TYPE: = NULL;
v_doc_num Rqn.Doc_Num%TYPE: = NULL;
v_dodaac Rqn.cnsgne_dodaac%TYPE: = NULL; v_found_pkg BOOLEAN: = FALSE;
v_found_rqn BOOLEAN: = FALSE;
v_ic_cl_of_supply_cd Item_Control.cl_of_supply_cd%TYPE: = NULL;
v_index directory: = 0;
v_itcn Pkg.itcn%TYPE: = NULL;
v_lca_inst Cddb_Force.lca_inst%TYPE: = NULL;
v_pkg_niin Pkg.niin%TYPE: = NULL;
v_proj_cd Rqn.proj_cd%TYPE: = NULL;
v_rqn_niin Rqn.niin%TYPE: = NULL;
-variables defined by the procedures define_status and package pkg_procsusl v_errcd VARCHAR2 (10): = NULL;
v_errmsg VARCHAR2 (600): = NULL;
v_errproc VARCHAR2 (30): = NULL;
v_syserr BOOLEAN: = FALSE;
-the variables defined by the procedure define_status
v_status_cd VARCHAR2 (2): = NULL;
v_status_dt DATE: = NULL;
-package pkg_procsusl-defined variables
v_citcn Ship_Unit.citcn%TYPE: = NULL;
v_dep_ship_su Ship_Unit.dt_dep_ship%TYPE: = NULL;
v_dt_ccps Ship_Unit.dt_ccps%TYPE: = NULL;
v_dt_crpr Ship_Unit.dt_crpr%TYPE: = NULL;
v_dt_hubr Ship_Unit.dt_hubr%TYPE: = NULL;
v_dt_hubs Ship_Unit.dt_hubs%TYPE: = NULL;
v_dt_lift SL.dt_lift%TYPE: = NULL;
v_dt_ssar Ship_Unit.dt_ssar%TYPE: = NULL;
v_dt_umfps Ship_Unit.dt_umfps%TYPE: = NULL;
v_hub_tcn Ship_Unit.hub_tcn%TYPE: = NULL;
v_mfst_ref SL.mfst_ref%TYPE: = NULL;
v_mfst_sta SL.mfst_sta%TYPE: = NULL;
v_mod_shp Ship_Unit.mod_shp%TYPE: = NULL;
v_mode VARCHAR2 (10): = NULL;
v_msn_num Flt.msn_num%TYPE: = NULL;
v_save_erl_poel SL.dt_poel%TYPE: = NULL;
v_save_erl_poel_pair SL.dt_poel%TYPE: = NULL;
v_save_erl_poer SL.dt_poer%TYPE: = NULL;
v_save_erl_poer_pair SL.dt_poer%TYPE: = NULL;
v_save_lat_podf Ship_Unit.dt_podf%TYPE: = NULL;
v_save_lat_podf_pair Ship_Unit.dt_podf%TYPE: = NULL;
v_save_lat_podr Ship_Unit.dt_podr%TYPE: = NULL;
v_save_lat_podr_pair Ship_Unit.dt_podr%TYPE: = NULL; v_pod Ship_Unit.pod%TYPE: = NULL;
v_poe SL.poe%TYPE: = NULL;
v_voyage_no SL.voyage_no%TYPE: = NULL;
v_tdi Ship_Unit.tdi%TYPE: = NULL;
-cursors
CURSOR c_rqn (doc_num_in VARCHAR2) IS
SELECT *.
OF tangible
WHERE doc_num = doc_num_in;
CURSOR c_pkg (doc_num_in VARCHAR2) IS
SELECT *.
PKG
WHERE doc_num = doc_num_in
AND sup_pipe_cat <>'OB '.
AND sup_pipe_cat <>"IA";
-documents
r_pkg Pkg % ROWTYPE;
r_rqn tangible % ROWTYPE;
-- functions ---------------------------------------------------------
FUNCTION Find_Lca_Inst (dodaac_in VARCHAR2)
RETURN VARCHAR2
IS
v_lca_cd Cddb_Force.lca_inst%TYPE;
BEGIN
SELECT lca_inst from v_lca_cd
OF Cddb_Force
WHERE dodaac = dodaac_in;
RETURN v_lca_cd;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURNS A NULL VALUE.
WHILE OTHERS THEN
LIFT;
END Find_Lca_Inst;
----------------------------------------------------------------------
FUNCTION Find_Supply_Cd (niin_in VARCHAR2)
RETURN VARCHAR2
IS
v_supply_cd Item_Control.cl_of_supply_cd%TYPE;
BEGIN
SELECT cl_of_supply_cd from v_supply_cd
OF Item_Control
WHERE only = niin_in;
RETURN v_supply_cd;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURNS A NULL VALUE.
WHILE OTHERS THEN
LIFT;
END Find_Supply_Cd;
----------------------------------------------------------------------
BEGIN
DBMS_OUTPUT. ENABLE (2000000);
v_doc_num: = upper (p_doc_num);
OPEN c_rqn (v_doc_num);
LOOP
SEEK c_rqn INTO r_rqn;
EXIT WHEN c_rqn % NOTFOUND;
v_found_rqn: = TRUE;
v_dodaac: = NVL (r_rqn.cnsgne_dodaac, r_rqn.s_cnsgne_dodaac);
v_rqn_niin: = NVL (r_rqn.niin, r_rqn.s_niin);
v_proj_cd: = NVL (r_rqn.proj_cd, r_rqn.s_proj_cd);
IF v_dodaac IS NOT NULL THEN
v_lca_inst: = FIND_LCA_INST (v_dodaac);
ON THE OTHER
v_lca_inst: = NULL;
END IF;
-output of tangible column values
DBMS_OUTPUT. Put_LINE ('Tangible database');
v_data: = r_rqn.doc_num | '|' || r_rqn.req_geo_flag | '|' ||
r_rqn.estb_dic | '|' || r_rqn.niin | '|' ||
r_rqn.asg_cd | '|' || r_rqn. Qty | '|' ||
r_rqn.unit_price | '|' || r_rqn.dmd_cd | '|' ||
v_proj_cd | '|' || r_rqn. Priority | '|' ||
r_rqn. RDD | '|' || r_rqn.cl_of_supply_cd | '|' ||
To_char(r_rqn.dt_rqn_estb,'MM/dd/yyyy'). '|' ||
To_char (r_rqn.dt_first_bo, "MM/DD/YYYY '") | ' |' |
To_char (r_rqn.dt_first_can_req, "MM/DD/YYYY '") | ' |' |
r_rqn.supadd | '|' || r_rqn. UI | '|' ||
v_lca_inst | '|' || r_rqn.sig_cd | '|' ||
r_rqn.fd_cd | '|' || r_rqn.med_stat_cd | '|' ||
r_rqn.ssf_flag | '|' || To_char (r_rqn.lst_updt, "MM/DD/YYYY");
DBMS_OUTPUT. Put_line (v_data);
DBMS_OUTPUT. Put_line ('PKG database');
OPEN c_pkg (v_doc_num);
LOOP
SEEK c_pkg INTO r_pkg;
EXIT WHEN c_pkg % NOTFOUND;
v_found_pkg: = TRUE;
v_curr_sos_ric: = NVL (r_pkg.curr_sos_ric, r_pkg.s_curr_sos_ric);
v_depot_ric: = NVL (r_pkg.depot_ric, r_pkg.s_depot_ric);
v_pkg_niin: = NVL (r_pkg.niin, r_pkg.s_niin);
IF v_pkg_niin IS NOT NULL THEN
v_ic_cl_of_supply_cd: = Find_Supply_Cd (v_pkg_niin);
ON THE OTHER
v_ic_cl_of_supply_cd: = NULL;
END IF;
Define_Status (r_pkg,
v_status_cd,
v_status_dt,
v_syserr,
v_errcd,
v_errmsg,
v_errproc
);
IF v_syserr THEN
DBMS_OUTPUT. Put_line (' ERROR in Define_Status: ' | v_errmsg);
EXIT;
END IF;
v_itcn: = NULL;
Pkg_Procsusl.Process_Susl ('XT',
r_rqn.req_geo_flag,
r_pkg. STCN,
v_itcn,
v_dodaac,
v_dt_crpr,
v_dt_ccps,
v_dt_hubr,
v_dt_hubs,
v_dt_ssar,
v_dt_lift,
v_dt_umfps,
v_save_erl_poel,
v_save_erl_poel_pair,
v_save_erl_poer,
v_save_erl_poer_pair,
v_save_lat_podf,
v_save_lat_podf_pair,
v_save_lat_podr,
v_save_lat_podr_pair,
v_dep_ship_su,
v_mode,
v_mod_shp,
v_mfst_ref,
v_mfst_sta,
v_msn_num,
v_pod,
v_poe,
v_voyage_no,
v_tdi,
v_citcn,
v_hub_tcn,
v_errcd,
v_errmsg,
v_errproc,
v_syserr
);
IF v_syserr THEN
DBMS_OUTPUT. Put_line (' ERROR in Pkg_Procsusl: ' | v_errmsg);
EXIT;
END IF;
v_data: = r_pkg.doc_num | '|' || r_pkg.pkg_id | '|' ||
Trim (r_pkg.input_stk_num) | '|' || v_status_cd | '|' ||
To_char (v_status_dt, "MM/DD/YYYY '") | ' |' |
To_char (r_pkg.dt_est_ship, "MM/DD/YYYY '") | ' |' |
To_char (r_pkg.dt_rel, "MM/DD/YYYY '") | ' |' |
To_char (r_pkg.dt_dep_ship, "MM/DD/YYYY '") | ' |' |
To_char (r_pkg.dt_rcpt, "MM/DD/YYYY '") | ' |' |
To_char (r_pkg.dt_maint_ret_rcpt, "MM/DD/YYYY '") | ' |' |
To_char (r_pkg.dt_idt_rcpt, "MM/DD/YYYY '") | ' |' |
To_char (r_pkg.dt_mrd, "MM/DD/YYYY '") | ' |' |
v_curr_sos_ric | '|' || v_pkg_niin | '|' ||
r_pkg. Qty | '|' || v_depot_ric | '|' ||
r_pkg.ssf_flag | '|' || r_pkg. UI | '|' ||
r_pkg.sfx_cd | '|' || r_pkg.direct_fill | '|' ||
r_pkg. STCN | '|' || v_ic_cl_of_supply_cd | '|' ||
To_char (v_dt_ssar, "MM/DD/YYYY '") | ' |' |
To_char (v_dt_crpr, "MM/DD/YYYY '") | ' |' |
To_char (v_save_lat_podr, "MM/DD/YYYY");
DBMS_OUTPUT. Put_line (v_data); END LOOP;
CLOSE C_pkg;
EXIT;
END LOOP;
CLOSE C_rqn;
IF this is v_found_rqn THEN
DBMS_OUTPUT. Put_line (' NO data available for doc_num = ' | v_doc_num);
END IF;
EXCEPTION
WHILE OTHERS THEN
IF c_rqn % ISOPEN THEN
CLOSE C_rqn;
END IF;
IF c_pkg % ISOPEN THEN
CLOSE C_pkg;
END IF;
DBMS_OUTPUT. PUT_LINE (' ERROR: ' |) SQLERRM);
END X_Doc_Num_Query;
/
===================================
===================================
Here is the PHP page:
<? PHP
error_reporting (0);
PutEnv("TNS_ADMIN=e:/oracle/ora92/network/ADMIN");
PutEnv("LD_LIBRARY_PATH=E:/Oracle/ora92");
PutEnv ("NLS_LANG = English_America.WE8ISO8859P1");
$don = isset($_REQUEST["don"])? $_REQUEST ['gift']: "asdf1234"; If no value passed, use the value of test
Enable or DISABLE dbms_output.
function SetServerOutput ($con, $p)
{
If ($p)
$s = "BEGIN DBMS_OUTPUT. ENABLE (1000000); END; « ;
on the other
$s = "BEGIN DBMS_OUTPUT. DISABLE(); END; « ;
$r = false;
$stid = doParse ($con, $s);
If {($stid)
$r = doExecute ($stid);
@OCIFreeStatement ($stid);
}
Return $r;
}
Retrieve and display any dbms_output
function DisplayDbmsOutput ($con)
{
$r = GetDbmsOutput ($con);
$cnt = sizeof ($r);
If (! $r)
print ' < p > no dbms_output < /p > \n ";
on the other
$orders = $r;
$number_of_orders = count ($orders);
If ($number_of_orders == 0)
{echo "< p > < strong > no orders pending."}
Please try again later. < facilities > < / p > ';
}
echo "< body leftmargin = 0 topmargin = 0 > ';
for ($i = 0; $i < 1; $i ++)
{
$line2 = explode ("|", $orders [$i]);
echo "< BR > < b > $line2 [0] < /b >."
}
for ($i = 1; $i < 2; $i ++)
{
$line2 = explode ("|", $orders [$i]);
echo "< table border = 1 bordercolor = #000000 cellpadding = 2 cellspacing = 0 > \n < TR > < th bgcolor = Color #FFFFFF = #000000 > DON < table >.
< th bgcolor = Color #FFFFFF = #000000 > GEO FLAG < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > DIC
< th bgcolor = Color #FFFFFF = #000000 > < table > ONLY
< th bgcolor = Color #FFFFFF = #000000 > ASG CD < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > QTY
< th bgcolor = Color #FFFFFF = #000000 > PRICE UNIT < table >
< th bgcolor = Color #FFFFFF = #000000 > DMD CD < table >
< th bgcolor = Color #FFFFFF = #000000 > PROJ CD < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > PRIORITY
< th bgcolor = Color #FFFFFF = #000000 > < table > RDD
< th bgcolor = Color #FFFFFF = #000000 > CLS OF < table > SUPPLY
< th bgcolor = Color #FFFFFF = #000000 > ESTAB DTE < table >
< th bgcolor = Color #FFFFFF = #000000 > FIRST BO DTE < table >
< th bgcolor = Color #FFFFFF = #000000 > FIRST DTE CAN < table >
< th bgcolor = Color #FFFFFF = #000000 > SUPADD < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > UI
< th bgcolor = Color #FFFFFF = #000000 > LCA INST < table >
< th bgcolor = Color #FFFFFF = #000000 > GIS CD < table >
< th bgcolor = Color #FFFFFF = #000000 > FD CD < table >
< th bgcolor = Color #FFFFFF = #000000 > MED STAT CD < table >
< th bgcolor = Color #FFFFFF = #000000 > SSF FLAG < table >
< th bgcolor = Color #FFFFFF = #000000 > DTE UPDT < table >
< b >
< td align = "center" > $line2 [0] < table >
< td align = "center" > $line2 [1] < table >
< td align = "center" > $line2 [2] < table >
< td align = "center" > $line2 [3] < table >
< td align = "center" > $line2 [4] < table >
< td align = "center" > $line2 [5] < table >
< td align = "center" > $line2 [6] < table >
< td align = "center" > $line2 [7] < table >
< td align = "center" > $line2 [8] < table >
< td align = "center" > $line2 [9] < table >
< td align = "center" > $line2 [10] < table >
< td align = "center" > $line2 [11] < table >
< td align = "center" > $line2 [12] < table >
< td align = "center" > $line2 [13] < table >
< td align = "center" > $line2 [14] < table >
< td align = "center" > $line2 [15] < table >
< td align = "center" > $line2 [16] < table >
< td align = "center" > $line2 [17] < table >
< td align = "center" > $line2 [18] < table >
< td align = "center" > $line2 [19] < table >
< td align = "center" > $line2 [20] < table >
< td align = "center" > $line2 [21] < table >
< td align = "center" > $line2 [22] < table >
< /tr >
< /table > ';
}
for ($i = 2; $i < 3; $i ++)
{
$line2 = explode ("|", $orders [$i]);
echo "< BR > < BR > < b > $line2 [0] < /b >."
}
echo "< table border = 1 bordercolor = #000000 cellpadding = 2 cellspacing = 0 >
< TR > < th bgcolor = Color #FFFFFF = #000000 > < table > DON
< th bgcolor = Color #FFFFFF = #000000 > PKG ID < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > ONLY
< th bgcolor = Color #FFFFFF = #000000 > STATUS CD < table >
< th bgcolor = Color #FFFFFF = #000000 > STATUS DT < table >
< th bgcolor = Color #FFFFFF = #000000 > SHIP DTE IS < table >
< th bgcolor = Color #FFFFFF = #000000 > REL DT < table >
< th bgcolor = Color #FFFFFF = #000000 > DT DEP SHIP < table >
< th bgcolor = Color #FFFFFF = #000000 > RCPT DT < table >
< th bgcolor = Color #FFFFFF = #000000 > DT MAINT RET RCPT < table >
< th bgcolor = Color #FFFFFF = #000000 > DT IDT RCPT < table >
< th bgcolor = Color #FFFFFF = #000000 > DT MRD < table >
< th bgcolor = Color #FFFFFF = #000000 > SOS RIC < table >
< th bgcolor = Color #FFFFFF = #000000 > PKG ONLY < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > QTY
< th bgcolor = Color #FFFFFF = #000000 > DEPOSIT CIR < table >
< th bgcolor = Color #FFFFFF = #000000 > SSF FLAG < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > UI
< th bgcolor = Color #FFFFFF = #000000 > SFX CD < table >
< th bgcolor = Color #FFFFFF = #000000 > DIRECT FILL < table >
< th bgcolor = Color #FFFFFF = #000000 > < table > STCN
< th bgcolor = Color #FFFFFF = #000000 > POWER CL < table >
< th bgcolor = Color #FFFFFF = #000000 > DT SSAR < table >
< th bgcolor = Color #FFFFFF = #000000 > DT MCEA < table >
< th bgcolor = Color #FFFFFF = #000000 > DT LAT ME < table >
";
for ($i = 3; $i < $number_of_orders; $i ++)
{
$line2 = explode ("|", $orders [$i]);
ECHO '.
< b >
< td align = "center" > $line2 [0] < table >
< td align = "center" > $line2 [1] < table >
< td align = "center" > $line2 [2] < table >
< td align = "center" > $line2 [3] < table >
< td align = "center" > $line2 [4] < table >
< td align = "center" > $line2 [5] < table >
< td align = "center" > $line2 [6] < table >
< td align = "center" > $line2 [7] < table >
< td align = "center" > $line2 [8] < table >
< td align = "center" > $line2 [9] < table >
< td align = "center" > $line2 [10] < table >
< td align = "center" > $line2 [11] < table >
< td align = "center" > $line2 [12] < table >
< td align = "center" > $line2 [13] < table >
< td align = "center" > $line2 [14] < table >
< td align = "center" > $line2 [15] < table >
< td align = "center" > $line2 [16] < table >
< td align = "center" > $line2 [17] < table >
< td align = "center" > $line2 [18] < table >
< td align = "center" > $line2 [19] < table >
< td align = "center" > $line2 [20] < table >
< td align = "center" > $line2 [21] < table >
< td align = "center" > $line2 [22] < table >
< td align = "center" > $line2 [23] < table >
< td align = "center" > $line2 [24] < table >
< /tr > ";
}
echo "< / table >";
}
Returns an array of rows dbms_output or false.
function GetDbmsOutput ($con)
{
$res = false;
$stid = doParse ($con, "BEGIN DBMS_OUTPUT. GET_LINE (: LN,: ST); END; ») ;
If {($stid)
If (doBind ($stid, ': LN ', $ln, 255 "") & &)
doBind ($stid, ": ST", $st, "")) {}
$res = array();
While ($succ = {doExecute ($stid))}
If ($st)
break;
[] $res = $ln;
}
If (! $succ)
$res = false;
}
@OCIFreeStatement ($stid);
}
return ($res);
}
Parse
function doParse ($con, $stmt)
{
$stid = @OCIParse ($con, $stmt);
If (! $stid)
PrintOCIError (@OCIError ($con));
return ($stid);
}
Link
function doBind ($stid, $bn, & $bv, $ln)
{
$s = @OCIBindByName ($stid, $bn, $bv, $ln);
If (! $s)
PrintOCIError (@OCIError ($stid));
return ($s);
}
Run
function doExecute ($stid)
{
$s = @OCIExecute ($stid);
If (! $s)
PrintOCIError (@OCIError ($stid));
return ($s);
}
OIC display error
function PrintOCIError ($err)
{
echo "< p > < b > error < /b >: < /p > < pre > \n"..htmlentities($err['message'])"< / pre > \n";
}
$con = @OCILogon ("username", "password", "Server");
If (! $con) {}
PrintOCIError (@OCIError ());
Die();
}
Turn on serveroutput
SetServerOutput ($con, true);
Create the dbms_output
$s = doParse ($con, "begin data_pull_views.x_doc_num_query('$don'); end; ») ;
If ($s)
doExecute ($s);
OCILogoff ($con);
The output display
OCILogoff ($con);
DisplayDbmsOutput ($con);
PEOPLE WITH DISABILITIES END * /.
? >
< / body >
< / html >
===========================
===========================
What I've learned so far PHP code somehow seizes the dbmd_output buffer and load it in a table before you display it on the screen. Fine. I can even take a stab at some ODBC in VBScript with ASP commands, but it almost seems like it is not yet possible. Just a stab here's to it in ASP which is not error, but also returns no data.
< %
Van Goethem = request ("don")
If van Goethem = "" then
Van Goethem = "asdf1234".
End If
Set gv_con = Server.CreateObject ("ADODB. Connection")
gv_con. ConnectionString = "Data Source = dsource; User = username ID; Password = password; »
gv_con. Open
the value of cmd = Server.CreateObject ("ADODB.Command")
cmd ActiveConnection in the Group gv_con
cmd.CommandText = "begin data_pull_views.x_doc_num_query ('" & van goethem & "');" end; »
cmd.CommandType = 1
Set the param = cmd.createparameter ("OutPut" 200,4, 50)
cmd. Parameters.Append param
cmd. run
Response.Write "strText =" & cmd ("OutPut") & "< BR BR > > <" "»
% >
So I obviously have no idea what I'm doing. Any help getting this race would be appreciated greately.Hello
I don't know anything about PHP either, but a quick look at the code, it seems that the procedure is pretty much just "all wrong", and unfortunately now it is your task to continue the tradition rather than fix the stored procedure.
The thing that makes me say that it is "all wrong", it's that he uses dbms_output to communicate data. DBMS_OUTPUT is not intended to be used to return the results of a procedure, or be used as a reporting tool; It's supposed to be used to add debugging for troubleshooting instructions. The right thing to do is to return the results of a procedure stored via a parameter, refcursors, etc.
Anyway, as you can not change the procedure, the problem boils down to the buffer that was completed by telephone dbms_output.put_line obtaining using calls to dbms_outout.get_line and here is a simple example that shows how you can go about this using ADO and ODBC.
It will be useful,
Gregprocedure
=======create or replace procedure populate_dbms_buffer as begin dbms_output.put_line('foo'); dbms_output.put_line('bar'); dbms_output.put_line('baz'); end; /
VBScript
========Const adLongVarChar = 201 Const adInteger = 3 Const adParamOutput = &H0002 set con = createobject("adodb.connection") con.open "dsn=orcl;uid=scott;pwd=tiger" set cmd = CreateObject("adodb.command") set cmd.ActiveConnection = con cmd.commandtext = "begin dbms_output.enable(32000);end;" cmd.execute cmd.CommandText = "begin populate_dbms_buffer(); end;" cmd.execute cmd.CommandText = "begin dbms_output.get_line(?,?);end;" Set prmv2 = cmd.CreateParameter("",adLongVarChar, adParamOutput, 32767,"") Set prmnum = cmd.CreateParameter("", adInteger,adParamOutput,,1) cmd.Parameters.Append prmv2 cmd.Parameters.Append prmnum stillmore=0 while (stillmore<>1) cmd.execute stillmore = prmnum.value if (stillmore<>1) then wscript.echo prmv2.value end if wend 'cleanup ommitted wscript.echo "done"
output
=======C:\>odbcparams_dbmsgetline.vbs Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation. All rights reserved. foo bar baz done
-
Problem installing CF8 on local IIS Server XP
Hello
I try to install CF8 developer under XP with IIS.
I tried literally dozens of times and always the same result - when I go to
CFIDE/Administrator ( http://127.0.0.1/CFIDE/Administrator/index.cfm)... the .cfm is not
analysis and the system tries to open the file with a text editor. If I try and press on the
Directory ( http://127.0.0.1/CFIDE/Administrator/) I get the message "Server error".
1 > I have IIS installed no problem with default Web site settings and select as 127.0.0.1
It's IP, I also tried once leaving "Unassigned".
2 > I disabled and then went as far as to uninstall any antivirus, firewall etc before
try to install the CF
3 > I tried to remove myself from any LAN access, routers, wireless etc.
4 > I tried all three boxes on the installation screen that appears asking one
configuration of the server, and on the selection of radio 'specify' I tried a little different
configurations of
5 > I have redownloaded the thinnking of installation that maybe something was wrong with that
6 > I tried to install an older version (MX) of CF bit even result.
In the past (my last computer has Win 2000 Prof) I had no problem... IIS, allowed to the left
settings, SEE installed by default and how I worked...
Any ideas on what the Devil's going on or how can I fix this?
Thank you very much! :-)Check your configuration in IIS to verify that ColdFusion (cfm, cfc, etc) file extensions are associated with the jrun_iis6.dll.
In IIS, right click on your Web site and open the properties page.
On the Home Directory tab, click the Configuration button
Check your settings on the Mappings tabThere are batch files installed to C:\CFusionMX7\bin\connectors\ that will automate the IIS configuration in CF7. You could look for a similar directory in CF8.
Alternatively, you can verify that the changes made the installation of IIS is not blocked by security software.
This link can help.
http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=webservmgmt_5.html -
Crashes when you change PHP pages
For some reason, some PHP pages block Dreamweaver with a simple click in the editor to start editing. I see no cause or reason. The only thing that the pages have in common are variables and PHP functions.
I do not use the design or Split views. Only the Code.
The file is located on a network server and is edited and saved on the server. But this also happens if I'm editing on my local machine.
My PHP opens and closes with <? PHP...? >
This has happened before and I had to find another way to change. But now I have no options with many PHP pages I.
Someone has an answer for this?
Thank youhttp://KB.Adobe.com/selfservice/viewContent.do?externalId=kb402776
The link above will answer this question.
-
TMS is not up-to-date endpoint items in the selected directory.
Hello, I have a problem with sending of the telephone book for the endpoints, we have a C20 included in one of the directories directory we created and whenver we include it for the phone of Boo, overall on a part of Sytem, the C20 still does not show the contacts in the phone book, I tried to apply the settings in administrative tools > Configuration > network settings > Services MSDS , but still does not show the phone book... How could know what is actually going on in trying to apply the telephone directory or setting in the system?
Kind regards.
Hi Mario
When endpoints look for directories, it is a direct search so there are a few steps that you can do to verify that the configuration of the phone book works as it should.
First of all the directory addresses configured on the endpoint. From the same location network endpoint is trying to access the directory from a regular browser link. If you see the "Directory Service" you know that MSD is open for requests.
If you don't see the directory service that you need to know if this is related to this particular endpoint. If this happens to all the endpoints, it is likely that the Public folder on the IIS server does not have anonymous access enabled with a valid user / domain user. Group policies can disable the service standard accounts so check it.
TMS also has a different function where it filter the entries in the phone book. Basically, it checks if the endpoint that is looking up in the telephone directory is routable. If this is not the case, the entry does not appear. If you want it to appear without worrying, you can change the setting under general settings "Directory of road entries" to "No" and see if that solves your problem.
So if the address of the telephone directory is correct and the IIS does not block the application and him endpoint is not filtered then check if the unit were actually a contact method. Endpoints without and address will not be displayed in the phone book.
A last resort would be to a wireshark capture looking towards the top of the phone book and mentioned a case of tac for analysis.
Magnus Ohm
-
GETDATE() Variable help please
running with LAMP
I looked everywhere for info on this without a clear understanding.
When you insert a new record, I have a few fields I want default values must be stored.
One is the current user which was fine - just add a MM_Username session variable in the bindings panel and then said that as the initial value for one of the fields.
However, I also want a "last check" default date/time.
Access the database directly MySQL with Mysqladmin, I already have a timestamp column 'CREATEDATE' with a value of default current_timestamp. Apparently, I have only one of them.
Then... I want to create a variable in the bindings panel, capturing the GETDATE() value so that I can link to the field.
I go about it the wrong way?
Oh - PS - I'm not a coder experienced and tend to mainly use the DW interface to build pages! :)New guy says:
> do not forget;Strictly speaking, the semicolon is optional if there is only one
instruction in the PHP code block. However, it is advisable to use a
always. The problem with the code of Richard, is that it uses one
non-existent function. The only way getdate() will work is if you set
the function yourself.> RichardODreamweaver wrote:
> Oops.
>>Date until
>>
"> value ="">."Assuming that this is expected to insert the current date in a MySQL
database, it should be this:"value =""
--
Adobe Community Expert David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
exec Subvi system. Cannot access the positioning block diagram
OK I'm back!
My first question is that for some reason any I can reach is no longer here the files for you all to see...
Second and more to the point, how can I know the exec.vi for open system where I want it too when the block schema access is password protected and I can't seem to make the nodes property for the vi either.
I use this vi to call the OSK (on screen keyboard) for touchscreen.
I have an example to show, but see number one...
It seems to me that you want to position the osk and that means access to the block diagram is irrelevant.
To position the program that you are a beginner, try this.
-
PHP through CGI Error 500 - IIS
Hello, I have a question for IIS.
Windows 2008 R2(x64), IIS 7.5, PHP 5.3.9(with Visual C++ 2008 Redistributable x 32) + CGI,
Site created on CMS Joomla 1.7.0
When I login to the Admin Panel and go to global settings - there is error #500.Error log is:
Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0x000000ffOn other sites at this machine (Joomla too) everything is ok.What I need to fix?
This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)* -
Error 404,8 PHP/IIS 7 Windows Vista
I installed PHP on windows vista with IIS 7 and got the error 404,8'
Module RequestFilteringModule Notification BeginRequest Handler StaticFile Error code 0x00000000 Requested URL http://localhost:80/phpapps/Web.config Physical path C:\inetpub\wwwroot\phpapps\web.config Logon method Not yet determined User logon Not yet determined - Request filtering is configured for the Web server, and it contains a section of hiddenSegments that allows the administrator of the server denied access to specific directories.
- Check the settings of configuration/system.webServer/security/requestFiltering/hiddenSegments in the applicationhost.config or web.config file.
can u please help.
Hello
The issue of Windows 7, you have posted, suitable for the IT Pro TechNet public. Please ask your question in the TechNet Windows 2008R2 forum. Please post your question in the below mentioned link:
http://social.technet.Microsoft.com/forums/en/windowsserver2008r2webtechnologies/threads
Kind regards
Gaurav Prakash - Microsoft Support
Visit our Microsoft answers feedback Forum and let us know what you think. -
Can someone guide me to implement my XP and Windows 7 based IIS to work with PHP?
I tried to implement my workstation local based working with PHP, IIS servers but the instructions I can find are vague and so far, I did not get the servers to answer even a simple PHP script. I was hoping since Expression Web products claim to be able to build PHP applications that by extension could someone give me advice to set up PHP to work with my local IIS installations. I have Windows XP Pro and Windows 7 Pro work positions. This is a forum for Windows 7 and I thought someone here might have the experience and knows how to get the operational product. Just for reference, I'm trying to use php - 5.4.10 - Win32-VC9 - x 86, which is, in my view, their latest stable version. VC9 is what they say to use with IIS.
Documentation is an ISAPI filter that is available, but I can't find this dll in the decompression code. The other alternative is "fastcgi", but I don't know how configured
Hello
The question you have posted is better suited for the TechNet forums. Please post the question in the following link for assistance:
http://social.technet.Microsoft.com/forums/en-us/Iises/threads
I hope that helps!
Maybe you are looking for
-
55 "VL900A will not connect to the online TV services
Having just bought a 55 "VL900A I am quite surprised that it only connects to one"catch-up"online TV services, here in Australia. Virtually all other brands of smart TV sold here, even the cheap Soniqs, will connect at least ABC iView, otherwise more
-
How to select all the contents of the control channel automatically
Hi all We use barcodes to string for control of the input string. How can I replace the old data with the new? 1.I used keyfocus but new data insert just behind the 'old'. 2. we do not want to erase the old rope before registration of new data. becau
-
Vista SP2 installation returns error 0 x 80070005
Vista SP2 installation ORInstall IE8 ORDo the Windows updatesReturns the error 80070005 'access denied '.If running accesschk gets accesschk.txt results ofHKLM\software\Microsoft\Windows\CurrentVersion\Component Servicing\Retry Agent of baseHKLM\soft
-
App data folder corrupted when you attempt to install the .exe file
Hello I'm using Vista OS, I get an error message like App data is unreadable, when I try to install any .exe file and ask me to run chkdsk.exe. I run, I don't enter comments screen black (I'm not aware of any comment). But no use, I still face the sa
-
all programs are open in Notebook__
I'm operating in Windows 7 and windows live mail. Recently, I have create an address of windows live hot mail. Since then, even after restarting, I find that all programs open in Notepad and a few lines of jibberish below. This includes IE8, Live M