[PHP] how to update PHP 5.2.6 to 5.2.8 under Fedora Redhat Linux 9
there are many php related files. yumex or yum don't seem to be alternatives since there are many files that may or may not require updating...which one yum remove php-5.2.6 yum install php-5.2.8 5.2.8 may not be in the repositories yet so rpm seems to be an alternative with a remove - reinstall -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] errors still being displayed even if variables in php.ini set to off
on page 1 Notice: Undefined index: in C:\Inetpub\wwwroot\handle_log_book_MySQL.php on line 71 Notice: Undefined index: in C:\Inetpub\wwwroot\handle_log_book_MySQL.php on line 72 in php.ini: error_reporting = Off display_errors = Off (in 2 places) display_startup_errors = Off -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] errors still being displayed even if variables in php.ini set to off
--- On Sun, 12/28/08, Ashley Sheridan a...@ashleysheridan.co.uk wrote: From: Ashley Sheridan a...@ashleysheridan.co.uk Subject: Re: [PHP] errors still being displayed even if variables in php.ini set to off To: fredsils...@yahoo.com Cc: php-general@lists.php.net Date: Sunday, December 28, 2008, 12:01 PM On Sat, 2008-12-27 at 16:23 -0800, Fred Silsbee wrote: on page 1 Notice: Undefined index: in C:\Inetpub\wwwroot\handle_log_book_MySQL.php on line 71 Notice: Undefined index: in C:\Inetpub\wwwroot\handle_log_book_MySQL.php on line 72 in php.ini: error_reporting = Off display_errors = Off (in 2 places) display_startup_errors = Off What does phpinfo() tell you? Don't forget that there are several places where this can be set; the php.ini file, the .htaccess file, and within the PHP code itself. If phpinfo() tells you that both settings are for errors off, then it's most likely that a line in your PHP code is turning them back on Ash www.ashleysheridan.co.uk sincere thanks mate...I'm sure there is a good reason for having flags all over the place somewhat mislabelled or ill described in the php.ini Surely I thought there'd be a master-turn off all the errors! The php.ini describes good sense security know how in affirming the need for no errors! here in the colonies I have become addicted to Eastenders on tonight at 10 pm Here in Houston...should the program ever get messed up somehow, there are hundreds of calls, emails, bottle throwing, diesel locos being overturned Bennie Hill should have been knighted!!! sure and you'd be goin for a pint uf the dark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] If I make a mistake logging in, the error shows again even if I enter the right values
my PHP programs are working great to access Oracle 11g1 and MySQL 5.1 I entered a bad value for user name /passwordand got a message Could not connect: Access denied for user 'landon'@'localhost' (using password: YES) I restarted the script under Firefox 3.0.5 and got the same error message without a chance to enter username/password If I clean the cache, it works OK This problem only occurs with the MySQL script that is nearly identical to the Oracle script that doesn't show the problem. This must be a familiar problem with you web programmers! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: If I make a mistake logging in, the error shows again even if I enter the right values
--- On Sun, 1/4/09, Fred Silsbee fredsils...@yahoo.com wrote: From: Fred Silsbee fredsils...@yahoo.com Subject: If I make a mistake logging in, the error shows again even if I enter the right values To: php...@lists.php.net, php-general@lists.php.net Date: Sunday, January 4, 2009, 2:45 AM my PHP programs are working great to access Oracle 11g1 and MySQL 5.1 I entered a bad value for user name /passwordand got a message Could not connect: Access denied for user 'landon'@'localhost' (using password: YES) I restarted the script under Firefox 3.0.5 and got the same error message without a chance to enter username/password If I clean the cache, it works OK This problem only occurs with the MySQL script that is nearly identical to the Oracle script that doesn't show the problem. This must be a familiar problem with you web programmers! The problem is correctable with ordinary programming logic. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php beautify downloaded...great how does one run the program???
I looked at all the downloaded docs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how does one bind a gui representation and a container object.
I have a Qt 4.4 C++ SQL offline program that displays an SQL table. When I change a row-column cell, the change is instantly reflected in the database. Under Qt 4.4 I use: QSqlTableModel How does one do this in PHP for online use. I've done this under C#.NET VS2008 using binding between a gui representation and the container object. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: how does one bind a gui representation and a container object.
--- On Thu, 1/8/09, Fred Silsbee fredsils...@yahoo.com wrote: From: Fred Silsbee fredsils...@yahoo.com Subject: how does one bind a gui representation and a container object. To: php...@lists.php.net, php-general@lists.php.net Date: Thursday, January 8, 2009, 10:41 PM I have a Qt 4.4 C++ SQL offline program that displays an SQL table. When I change a row-column cell, the change is instantly reflected in the database. Under Qt 4.4 I use: QSqlTableModel How does one do this in PHP for online use. I've done this under C#.NET VS2008 using binding between a gui representation and the container object. error I get under Firefox 3.0.5 under Fedora 9 PHP 5.2.6 Unknown Renderer driver. Please specify an existing driver. Code: ?php require 'Structures/DataGrid.php'; // Instantiate the DataGrid $datagrid = new Structures_DataGrid(); // Setup your database connection $options = array('dsn' = 'mysql://landon4:pwpwpwp...@localhost/landonx'); // Bind a basic SQL statement as datasource $test = $datagrid-bind('SELECT * FROM log_book', $options); // Print binding error if any if (PEAR::isError($test)) { echo $test-getMessage(); } // Print the DataGrid with the default renderer (HTML Table) $test = $datagrid-render(Structures_DataGrid_Renderer_HTMLTable); // Print rendering error if any if (PEAR::isError($test)) { echo $test-getMessage(); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] pronlem with yum update and oci8
Fedora 9 (1) all programs using oci8 working 100% (2) oci8 NOT installed using yum yumex not showing any reference to oci8 php-pear installed using yumex(yum) (3) yum update errors below Loaded plugins: refresh-packagekit Setting up Update Process Resolving Dependencies -- Running transaction check --- Package php-pear-HTML-Common.noarch 0:1.2.5-1.fc9 set to be updated --- Package php-pear-HTML-QuickForm-advmultiselect.noarch 0:1.5.1-1.fc9 set to be updated -- Finished Dependency Resolution Dependencies Resolved PackageArch Version Repository Size Updating: php-pear-HTML-Common noarch 1.2.5-1.fc9 updates-newkey 9.7 k php-pear-HTML-QuickForm-advmultiselect noarch 1.5.1-1.fc9 updates-newkey 38 k Transaction Summary Install 0 Package(s) Update 2 Package(s) Remove 0 Package(s) Total download size: 48 k Is this ok [y/N]: y Downloading Packages: (1/2): php-pear-HTML-Common-1.2.5-1.fc9.noarch.rpm | 9.7 kB 00:00 (2/2): php-pear-HTML-QuickForm-advmultiselect-1.5.1-1.fc9.noarch.rpm | 38 kB 00:00 Total 52 kB/s | 48 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : php-pear-HTML-Common 1/4 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_oci8.dll' - /usr/lib/php/modules/php_oci8.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_oracle.dll' - /usr/lib/php/modules/php_oracle.dll: cannot open shared object file: No such file or directory in Unknown on line 0 Updating : php-pear-HTML-QuickForm-advmultiselect 2/4 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_oci8.dll' - /usr/lib/php/modules/php_oci8.dll: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_oracle.dll' - /usr/lib/php/modules/php_oracle.dll: cannot open shared object file: No such file or directory in Unknown on line 0 Cleanup: php-pear-HTML-QuickForm-advmultiselect 3/4 Cleanup: php-pear-HTML-Common 4/4 Updated: php-pear-HTML-Common.noarch 0:1.2.5-1.fc9 php-pear-HTML-QuickForm-advmultiselect.noarch 0:1.5.1-1.fc9 Complete! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 5.3 IIS 5.1 not working...help!
http://72.47.28.125:8080/phpinfo.php not working ERROR: The website cannot display the page HTTP 500 IIS 5.1, PHP 5.3 XP Prof SP3 + all updates PHP 5.2.8 worked great and took a few minutes to install phpinfo.php is in C:\inetpub\wwwroot ?php phpinfo(); ? php.ini has: doc_root = C:\inetpub\wwwroot // for IIS/PWS (tried removing the ) extension_dir = ext php.ini put into C:\php C:\Windows C:\Windows\system C:\windows\system32 system variable PHPRC set = C:\php http://72.47.28.125:8080/aspx/abc.aspx works great with IIS 5.1 IIS 5.1 application configuration mappings .php C:\php\php5.dll (that is all there is) There is no php5isapi file! home directory = C:\inetpub\wwwroot web site: IP all unassigned, TCP Port 8080 directory security unchanged: IUSR_machine name...allow IIS to control password VC9 versions downloaded and put into C:\php Microsoft 2008 C++ Runtime (x86) installed VC9 x86 Non Thread Safe (2009-Jun-30 08:52:54) C:\php;c:\php\ext put on the end of the path environmental system variable yes I rebooted many times command line (black window) cd C:\php php -i generates plenty stuff I am administrator! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] windows 5.2.10 PHP not working with phpinfo
I got 5.3 working but found out there was no php_mssql.dll for it. Somebody (who didn;t know) said I had to return to 5.2.8 but I found no 5.2.8 so I am trying 5.2.10 _problem: under IE8: http://72.47.28.128:8080/phpinfo.php with: ?php phpinfo(); ? I get : The website cannot display the page HTTP 500 Most likely causes: •The website is under maintenance. •The website has a programming error. ___ I installed : php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32 I installed FastCGI 1.5 ! In php.ini I put : cgi.force_redirect = 0 // for CGI extension_dir = C:\PHP\ext commented out ;doc_root = C:\inetpub\wwwroot // for IIS/PWS leaving doc_root = _ IIS 5.1 properties-configuration I added .php C:\PHP\php5ts.dll GET,HEAD,POST,DEBUG Maybe php-win.exe _ I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\ I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext I never found any statement of the necessity of requiring CGI The instructions ramble around -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] windows 5.2.10 PHP not working with phpinfo
thanks! I am new to this science! where is syslog? XP Prof event log? --- On Mon, 8/31/09, hack988 hack988 hack...@dev.htwap.com wrote: From: hack988 hack988 hack...@dev.htwap.com Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo To: Fred Silsbee fredsils...@yahoo.com Cc: php-general@lists.php.net Date: Monday, August 31, 2009, 6:35 AM Please set log_error=on,error_reporting=E_ALL,error_log=syslog in php.ini and then,see error detail in syslog. 2009/8/31 Fred Silsbee fredsils...@yahoo.com: I got 5.3 working but found out there was no php_mssql.dll for it. Somebody (who didn;t know) said I had to return to 5.2.8 but I found no 5.2.8 so I am trying 5.2.10 _problem: under IE8: http://72.47.28.128:8080/phpinfo.php with: ?php phpinfo(); ? I get : The website cannot display the page HTTP 500 Most likely causes: •The website is under maintenance. •The website has a programming error. ___ I installed : php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32 I installed FastCGI 1.5 ! In php.ini I put : cgi.force_redirect = 0 // for CGI extension_dir = C:\PHP\ext commented out ;doc_root = C:\inetpub\wwwroot // for IIS/PWS leaving doc_root = _ IIS 5.1 properties-configuration I added .php C:\PHP\php5ts.dll GET,HEAD,POST,DEBUG Maybe php-win.exe _ I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\ I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext I never found any statement of the necessity of requiring CGI The instructions ramble around -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] windows 5.2.10 PHP not working with phpinfo
I looked high and low but no syslog I am currently working under XP Prof SP3 --- On Mon, 8/31/09, hack988 hack988 hack...@dev.htwap.com wrote: From: hack988 hack988 hack...@dev.htwap.com Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo To: Fred Silsbee fredsils...@yahoo.com Cc: php-general@lists.php.net Date: Monday, August 31, 2009, 6:35 AM Please set log_error=on,error_reporting=E_ALL,error_log=syslog in php.ini and then,see error detail in syslog. 2009/8/31 Fred Silsbee fredsils...@yahoo.com: I got 5.3 working but found out there was no php_mssql.dll for it. Somebody (who didn;t know) said I had to return to 5.2.8 but I found no 5.2.8 so I am trying 5.2.10 _problem: under IE8: http://72.47.28.128:8080/phpinfo.php with: ?php phpinfo(); ? I get : The website cannot display the page HTTP 500 Most likely causes: •The website is under maintenance. •The website has a programming error. ___ I installed : php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32 I installed FastCGI 1.5 ! In php.ini I put : cgi.force_redirect = 0 // for CGI extension_dir = C:\PHP\ext commented out ;doc_root = C:\inetpub\wwwroot // for IIS/PWS leaving doc_root = _ IIS 5.1 properties-configuration I added .php C:\PHP\php5ts.dll GET,HEAD,POST,DEBUG Maybe php-win.exe _ I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\ I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext I never found any statement of the necessity of requiring CGI The instructions ramble around -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] windows 5.2.10 PHP not working with phpinfo
*$ana)*$fac; $b0=($b1+$b0*$ana)*$fac; $anf=$an*$fac; $a1=$x*$a0+$anf*$a1; $b1=$x*$b0+$anf*$b1; if ($a1) { $fac=1.0/$a1; $g=$b1*$fac; if (abs(($g-$gold)/$g) EPS) { $gammcf=exp(-$x+$a*log($x)-($gln))*$g; return; } $gold=$g; } } echo a too large, ITMAX too small in routine GCF ; } function gammp($a,$x) { if ($x 0.0 || $a = 0.0) { echo Invalid arguments in routine GAMMP ; return 0.; } if ($x ($a+1.0)) { gser($gamser,$a,$x,$gln); return $gamser; } else { gcf($gammcf,$a,$x,$gln); return 1.0-$gammcf; } } function gammq($a,$x) { if ($x 0.0 || $a = 0.0) echo Invalid arguments in routine GAMMQ ; if ($x ($a+1.0)) { gser($gamser,$a,$x,$gln); return 1.0-$gamser; } else { gcf($gammcf,$a,$x,$gln); return $gammcf; } } function erfc($x) { return $x 0.0 ? 1.0+gammp(0.5,$x*$x) : gammq(0.5,$x*$x); } function erf($x) { return $x 0.0 ? -gammp(0.5,$x*$x) : gammp(0.5,$x*$x); } function myerf($argin) { return .5*(1.+erf($argin/sqrt(2.0))); } ? form action=new_black_scholes.php method=post p Black Scholes Option Price Calculator: temp website under Redhat Fedora 9 Linux: the first 5 boxes require input(try 100. 100. .12 .1 365.): /p p StockPrice (required): input type=text size=20 maxlength=40 name=StockPrice value=?php echo $StockPrice;? / /p p ExercisePrice (required): input type=text size=20 maxlength=40 name=ExercisePrice value=?php echo $ExercisePrice; ? / /p p Risk Free Rate of Interest(required): input type=text size=20 maxlength=40 name=RiskFreeRateInterest value=?php echo $RiskFreeRateInterest; ? / /p p Instantaneous Variance Rate of Stock's Return (required): input type=text size=20 maxlength=40 name=InstantaneousVarianceRateStocksReturn value=?php echo $InstantaneousVarianceRateStocksReturn; ? / /p p Time to Expiration of the Option(days) (required): input type=text size=20 maxlength=40 name=TimetoExpirationOption value=?php echo $TimetoExpirationOption; ? / /p p Values of the Call Option : input type=text size=20 maxlength=40 name=ValueCallOption VALUE=?php echo $ValueCallOption; ? / /p /p p Values of the Put option : input type=text size=20 maxlength=40 name=ValuePutOption VALUE=?php echo $ValuePutOption; ? / /p p Delta(calls): input type=text size=20 maxlength=40 name=DeltaCalls VALUE=?php echo $DeltaCalls; ? / /p p Delta(puts): input type=text size=20 maxlength=40 name=DeltaPuts VALUE=?php echo $DeltaPuts; ? / /p button type=submit name = submit value=Calculate! style=color:maroon font:18pt Courier; font-weight:bold Calculate /button button type=submit name = reset value=Demo! style=color:red font:18pt Courier; font-weight:bold Demo /button /form _results Please try the following: Open the 207.254.225.224:8080 home page, and then look for links to the information you want. Click the Refresh button, or try again later. HTTP 403.1 Forbidden: Execute Access Forbidden Internet Information Services Technical Information (for support personnel) Background: You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. More information: Microsoft Support http://207.254.225.224:8080/handle_log_book_mssql.php yields: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: LANDON\SQLEXPRESSLMKIII in C:\Inetpub\wwwroot\handle_log_book_mssql.php on line 8 (mssql_connect(...) Something went wrong while connecting to MSSQL (my message) ___ all these worked before trying 5.3 --- On Wed, 9/2/09, hack988 hack988 hack...@dev.htwap.com wrote: From: hack988 hack988 hack...@dev.htwap.com Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo To: Fred Silsbee fredsils...@yahoo.com Cc: php-general@lists.php.net Date: Wednesday, September 2, 2009, 6:03 AM Use Event Viewer and log type is :Application log 2009/9/2 Fred Silsbee fredsils...@yahoo.com: I looked high and low
[PHP] need php_mssql so I retreated to 5.2.10
under IE8: http:// 209.33.25.167:8080/phpinfo.php with: ?php phpinfo(); ? I get : The website cannot display the page HTTP 500 Most likely causes: •The website is under maintenance. •The website has a programming error. under Firefox 3.5.2 ___ The specified procedure could not be found. ___ I installed : php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32 I installed FastCGI 1.5 ! In php.ini I put : cgi.force_redirect = 0 // for CGI extension_dir = C:\PHP\ext (not trying to use any extension ...just get phpinfo to work) doc_root = C:\inetpub\wwwroot // for IIS/PWS an earlier post recommended: doc_root = _ IIS 5.1 properties-configuration I added .php C:\PHP\php5.dll GET,HEAD,POST,DEBUG _ I added to the XP Prof environment path ;C:\PHP;C:\PHP\ext I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext _ From the unzipped download, I copied ntwdblib.dll to C:\PHP and C:\PHP\ext AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32 I never found any statement of the necessity of requiring CGI The instructions ramble around -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] looking through old posts/emails
enclosed is a php for oracle that worked on Windows AND Fedora 9 ?php /* Oracle 11g1 version handle_log_book11g1.php drop sequence log_id; create sequence log_id increment by 1 start with 1; drop table log_book_id; create table log_book_id ( log_id number primary key, fdate date, actype varchar2(16), acid varchar(16), nlandings number, nhoursnumber); insert into log_book_id values (logid.nextval, TO_DATE('08/12/1973','MM/dd/'),'C150','N5787G',1,1.8); insert into log_book_id values (logid.nextval, TO_DATE('08/17/1973','MM/dd/'),'C150','N5787G',3,1.5); insert into log_book_id values (logid.nextval, TO_DATE('08/26/1973','MM/dd/'),'C150','N5787G',10,1.8); insert into log_book_id values (logid.nextval, TO_DATE('09/01/1973','MM/dd/'),'C150','N5293S',9,1.7); */ //construct a global variable for the form profile $fields = array(fdate, actype, acid, nlandings, nhours); global $connection; session_start(); $db = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = landon)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = LMKGDN) ) ); $user = $_SESSION['userx'] ; $password = $_SESSION['passwordx'] ; $user = lmkiii; $password = x ; if(!$connection $user $password) { if ($connection=oci_connect($user, $password, $db)) { echo Successfully connected to Oracle.\n; } else { $err = OCIError(); echo Oracle Connect Error . $err['message']; } } if(isset($_POST['delete'])){ deleteRecords(); } elseif(isset($_POST['login'])){ loginOracle(); } elseif (isset($_POST['continue'])){ displayDeleteForm(); } elseif (isset($_POST['new'])){ displayEntryForm(); } elseif (isset($_POST['update'])){ showRecord(); } elseif (isset($_POST['timeInType'])){ timeInType(); } else { //first time execution echo HTML form action={$_SERVER['PHP_SELF']} method=post p Oracle User Name:br / input type=text size=20 maxlength=40 name=user value=$user / /p p Oracle Password:br / input type=password size=20 maxlength=40 name=password value=$password / /p button type=submit name = login value=bLogin!/b style=color:maroon font:18pt Courier; font-weight:bold LOGIN /button /form HTML; $_SESSION['userx'] = $_POST[$user] ; $_SESSION['passwordx'] = $_POST[$password] ; } //...function loginOracle() function loginOracle(){ global $connection; $db = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = LANDON)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = LMKGDN) ) ); $_SESSION['userx'] = $_POST['user']; $_SESSION['passwordx'] = $_POST['password']; $connection=oci_pconnect($_POST['user'], $_POST['password'], $db); if ($connection) { echo Successfully connected to Oracle.\n; //default action displayDeleteForm(); } else { $err = OCIError(); echo Oracle Connect Error . $err['message']; } } //...function displayDeleteForm() function displayDeleteForm(){ //get $fields into the function namespace global $fields; global $connection; /* Create and execute query. */ // Loop through each row, outputting the actype and name echo HTML Pilots Logbook entries stored in Oracle Relational Database under Redhat Fedora 9 Linux form action={$_SERVER['PHP_SELF']} method=post table width=50% align=center border=1 tr td colspan=7 input type=submit name=delete value=delete checked items/nbsp; input type=submit name=update value=update checked items/nbsp; input type=submit name=new value=new log entry/nbsp; input type=submit name=timeInType value=Time In Type / /td /tr tr thchecked/th throwID/th thfdate/th thactype/th thacid/th thnlandings/th thnhours/th /tr HTML; //get log_book_id table information $user = select * from log_book_id order by log_id; $result = oci_parse($connection, $user); $r = oci_execute($result); //display log_book_id information while ($newArray = oci_fetch_assoc($result)) { foreach ($fields as $field){ $fieldx = strtoupper($field); ${$field} = $newArray[$fieldx]; } $rowID = $newArray['LOG_ID']; echo HTML TR td input type=checkbox name=checkbox[$rowID] value=$rowIDCheck to select record /td TD$rowID/TD TD$fdate/TD TD$actype/TD TD$acid/TD TD$nlandings/TD TD$nhours/TD /TR HTML; }// while echo HTML /table /form HTML; }//close function // . function timeInType() // function
Re: [PHP] windows 5.2.10 PHP not working with phpinfo
--- On Mon, 8/31/09, hack988 hack988 hack...@dev.htwap.com wrote: From: hack988 hack988 hack...@dev.htwap.com Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo To: Fred Silsbee fredsils...@yahoo.com Cc: php-general@lists.php.net Date: Monday, August 31, 2009, 6:35 AM Please set log_error=on,error_reporting=E_ALL,error_log=syslog in php.ini and then,see error detail in syslog. 2009/8/31 Fred Silsbee fredsils...@yahoo.com: I got 5.3 working but found out there was no php_mssql.dll for it. Somebody (who didn;t know) said I had to return to 5.2.8 but I found no 5.2.8 so I am trying 5.2.10 _problem: under IE8: http://72.47.28.128:8080/phpinfo.php with: ?php phpinfo(); ? I get : The website cannot display the page HTTP 500 Most likely causes: •The website is under maintenance. •The website has a programming error. ___ I installed : php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32 I installed FastCGI 1.5 ! In php.ini I put : cgi.force_redirect = 0 // for CGI extension_dir = C:\PHP\ext commented out ;doc_root = C:\inetpub\wwwroot // for IIS/PWS leaving doc_root = _ IIS 5.1 properties-configuration I added .php C:\PHP\php5ts.dll GET,HEAD,POST,DEBUG Maybe php-win.exe _ I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\ I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext I never found any statement of the necessity of requiring CGI The instructions ramble around -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php thanks! Weeks back I got it to work by retreating to 5.2.6 and altering permissions in admin. This alteration may open the way for 5.3 to work! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] away from Fedora linux for a while and now this ...HELP
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/html/log_book_MySQL.php' (include_path='.:/usr/share/pear:/usr/share/php') in Unknown on line 0 had to use Fedora yumex(yum) to install php PHP Version 5.4.5 is seen in phpinfo before now, php was there and ready after Fedora install
[PHP] same php file, different day...worked 3-4 times in the past in the past
Fatal error: Call to undefined function mysqli__connect() in /var/www/html/log_book_MySQLnew_i.php on line 116 phpinfo.php shows mysqli Additional .ini files parsed /etc/php.d/curl.ini, /etc/php.d/fileinfo.ini, /etc/php.d/json.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/phar.ini, /etc/php.d/sqlite3.ini, /etc/php.d/zip.ini maybe a mysqli.ini is required containing mysqli.so but [root@localhost php.d]# locate mysqli.so [root@localhost php.d]# [root@localhost php.d]# locate mysqli /usr/bin/mysqlimport /usr/share/man/man1/mysqlimport.1.gz [root@localhost php.d]#