Advanced Minds

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
web.xml for 404 error for php works in tclsh but fails in CGI (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: web.xml for 404 error for php works in tclsh but fails in CGI
#3118
comp.lang.tcl (Visitor)
Click here to see the profile of this user
Birthdate:
web.xml for 404 error for php works in tclsh but fails in CGI  
I have done the following steps: 1) verified that my PHP _script_ syntactically as well as functionally works: php -q /home/ppowell/web/blah.php /home/ppowell/web/_xml_/state._xml_ Works like a charm! Have a TCL list back all is golden! 2) verified that my PHP _script_ will be call-able from tclsh: /users/ppowell tclsh % set hasError [catch exec php -q /home/ppowell/web/blah.php /home/ppowell/web/_xml_/state._xml_ result] % 0 % set result ID 1 ABBREV AL NAME Alabama ID 2 ABBREV AK NAME Alaska ID 3 ABBREV AZ NAME Arizo na ID 4 ABBREV AR NAME Arkansas ID 5 ABBREV CA NAME California ID 6 ABBREV CO NA ME Colorado ID 7 ABBREV CT NAME Connecticut ID 8 ABBREV DE NAME Delaware ID 9 AB BREV DC NAME {District of Columbia} ID 10 ABBREV FL NAME Florida ID 11 ABBREV GA  NAME Georgia ID 12 ABBREV GU NAME Guam ID 13 ABBREV HI NAME Hawaii ID 14 ABBREV  ID NAME Idaho ID 15 ABBREV IL NAME Illinois ID 16 ABBREV IN NAME Indiana ID 17 ABBREV IA NAME Iowa ID 18 ABBREV KS NAME Kansas ID 19 ABBREV KY NAME Kentucky ID 20 ABBREV LA NAME Louisiana ID 21 ABBREV ME NAME Maine ID 22 ABBREV MD NAME Maryland ID 23 ABBREV MA NAME Massachusetts ID 24 ABBREV MI NAME Michigan ID 25 ABBREV MN NAME Minnesota ID 26 ABBREV MS NAME Mississippi ID 27 ABBREV MO NAME Missouri ID 28 ABBREV MT NAME Montana ID 29 ABBREV NE NAME Nebraska ID 30 ABBREV NVNAME Nevada ID 31 ABBREV NH NAME {New Hampshire} ID 32 ABBREV NJ NAME {New Jersey} ID 33 ABBREV NM NAME {New Mexico} ID 34 ABBREV NY NAME {New York} ID 35 ABBREV NC NAME {North Carolina} ID 36 ABBREV ND NAME {North Dakota} ID 37 ABBREV OH NAME Ohio ID 38 ABBREV OK NAME Oklahoma ID 39 ABBREV OR NAME Oregon ID 40 ABBREV PA NAME Pennsylvania ID 41 ABBREV PR NAME {Puerto Rico} ID 42 ABBREV RI NAME {Rhode Island} ID 43 ABBREV SC NAME {South Carolina} ID 44 ABBREV SD NAME {South Dakota} ID 45 ABBREV TN NAME Tennessee ID 46 ABBREV TX NAME Texas ID 47 ABBREV VI NAME {U.S. Virgin Islands} ID 48 ABBREV UT NAME Utah ID 49 ABBREV VT NAME Vermont ID 50 ABBREV VA NAME Virginia ID 51 ABBREV WA NAME Washington ID 52 ABBREV WV NAME {West Virginia} ID 53 ABBREV WI NAME Wisconsin ID 54 ABBREV WY NAME Wyoming Everything works again like a charm!! However, the VERY MOMENT I try to use this same stuff in _xml__procs.tcl for TCL as CGI: puts catch exec $valPHPPath -q $_script_Path/blah.php ${fileName}._xml_ result  if {[catch exec $valPHPPath -q $_script_Path/blah.php ${fileName}._xml_ result]} {   puts error: $result  } else {   return $result  } This happens: catch exec /usr/local/bin/php -q /home/ppowell/web/blah.php /home/ppowell/web/_xml_/fortune._xml_ result error: Status: 404 X-Powered-By: PHP/4.4.4 Content-type: text/html No input file specified. child process exited abnormally How on earth will something work in php shell, tclsh and break in TCL CGI doing the exact same thing? Phil
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3119
comp.lang.tcl (Visitor)
Click here to see the profile of this user
Birthdate:
web.xml for 404 error for php works in tclsh but fails in CGI  
**UPDATE** Here is this stuff via telnet: /users/ppowell
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3120
Bryan Oakley (Visitor)
Click here to see the profile of this user
Birthdate:
web.xml for 404 error for php works in tclsh but fails in CGI  
/users/ppowell
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3121
Bryan Oakley (Visitor)
Click here to see the profile of this user
Birthdate:
web.xml for 404 error for php works in tclsh but fails in CGI  
I have done the following steps: 1) verified that my PHP _script_ syntactically as well as functionally works: ... 2) verified that my PHP _script_ will be call-able from tclsh: ... However, the VERY MOMENT I try to use this same stuff in _xml__procs.tcl for TCL as CGI: puts catch exec $valPHPPath -q $_script_Path/blah.php ${fileName}._xml_ result  if {[catch exec $valPHPPath -q $_script_Path/blah.php ${fileName}._xml_ result]} {   puts error: $result  } else {   return $result  } This happens: catch exec /usr/local/bin/php -q /home/ppowell/web/blah.php /home/ppowell/web/_xml_/fortune._xml_ result error: Status: 404 X-Powered-By: PHP/4.4.4 Content-type: text/html No input file specified. child process exited abnormally How on earth will something work in php shell, tclsh and break in TCL CGI doing the exact same thing? Have you considered the possibility that your web server is running in a chroot environment and can't read $_script_Path/blah.php? Or perhaps that $_script_Path isn't defined to be what you think it is, and is thus pointing to a non-existent file?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3122
comp.lang.tcl (Visitor)
Click here to see the profile of this user
Birthdate:
web.xml for 404 error for php works in tclsh but fails in CGI  
**UPDATE** Here is this stuff via telnet: What does telnet have to do with anything? <*scratches head* /users/ppowell
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3123
Tom Conner (Visitor)
Click here to see the profile of this user
Birthdate:
web.xml for 404 error for php works in tclsh but fails in CGI  
You'll unfortunately have to show me exactly how to do it, the right way.  I just am not processing this. Out of curiosity, why are you doing this since you appear to have little training and/or understanding of programming?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
brak autoryzacji 905 no auth nieautoryzowano sprawdz autoryzacje
meatloaf recipes adventure tours china news channel online coupons for from you flowers channel 6 news