php-windows Digest 25 Apr 2001 22:14:07 -0000 Issue 564 Topics (messages 7041 through 7047): Re: PHP 4 Extension on Win2k server 7041 by: Il Cieco OCI_DEFAULT - needed in SELECT statements? 7042 by: Asendorf, John Re: Sessions 7043 by: Joe Brown image 7044 by: oifik Uploading Files on Pasword Protected Sites ? 7045 by: vshah.bivings.com Re: Errors Help! 7046 by: Ermanno Iannacci WebHosts with PHP4 and MySql 7047 by: PHPWIN Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I think you have to move some dll's from dll directory in your php installation directory to windows\system32. I.e. sablotron extension need expat.dll in windows\system32 to work. good luck. Alessio. ""Sébastien Cramatte"" <[EMAIL PROTECTED]> ha scritto nel messaggio 9c4dsa$hda$[EMAIL PROTECTED]">news:9c4dsa$hda$[EMAIL PROTECTED]... > Hello, > > I've tried to install PHP extension on my win2k server. > > I update the line below to set my correct extensions path. > extension_dir = c:\php\extensions\ > > I've got a problem to mount somes extensions like php_ldap.dll > Other extensions like php_imap.dll or php_mssql70.dll are correctly loaded. > > When I reload IIS service I've got this error : > Unable to load dynamic library 'c:\php\extensions\php_ldap.dll' - Extension > not found. However the extension dll exist in this directory. > > My php release is PHP 4.04 PL1 for Win 32 (CGI binary plus server API > versions for Apache, AOLserver, ISAPI and NSAPI. MySQL support built-in, > many extensions included, packaged as zip) > > Could you give me a hand. > Thanks in advance > > Sébastien CRAMATTE > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
I have a script, and I'm not certain which 1 of 5, which does not seem to be releasing the php.exe after parsing the script. Unfortunately, it is a data entry sequence so after 20 records, I have 20 instances of un'end_task'able php.exe running in the task manager... I **think** it may have something to do with the OCI_DEFAULT settings I have... Do I need OCI_DEFAULT in my OCIExecute when I'm going to run an OCIFetch statement on SQL that is SELECTing? --------------------- John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est
I haven't worked with trans_sid much, so I'm not very familiar with the specifics. The problem is that the get variable PHPSESSID or whatever is passed as a get while the action of a form is POST. One workaround is to create a hidden input named PHPSESSID or SID and set it's value to <? echo $SID ?>. Good luck, and let me know how you fixed it!!! ;-) -Joe ""Roman Lichszteld"" <[EMAIL PROTECTED]> wrote in message 9c6261$7pq$[EMAIL PROTECTED]">news:9c6261$7pq$[EMAIL PROTECTED]... > I use Apache server with PHP 4 installed on WinNT 4.0, session.use_trans_sid > is set to 1, I don't use cookies. > > I have three pages, each looks like this: > > // test1.php > > <? > require("../php/checkuser.php"); > > print("Logged user: " . @$LoggedUserName . "<BR><BR>\n"); > > print("<FORM action=\"../php/test2.php\" method=\"post\">\n"); // second > page has action="/php/test3.php" and so on... > print("<INPUT type=\"submit\" name=\"Modify\" value=\"Next >>\">\n"); > print("</FORM>\n"); > ?> > > Script "checkuser.php" simply calls "session_start()" and then check if > variable 'LoggedUserName' isn't empty - in such case user is redirected to > login page. > > Firts of these pages (test1.php) is called from main menu after successfull > login. > Everything works fine: on first and second page SID is properly propagated > but on third page script 'checkuser.php' ALWAYS redirects me to login again. > Is it possible that session ID becomes invalid after third page (menu -> > test1 -> test2 -> ... )?! > > Had anyone similar problem? > > Regards > > Roman Lichszteld > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hello, I have a little problem when I try to use function to draw as image_create() I receive the message call to undefined function and inhe php.ini I've found nothing. Can you help me? Thanks P.S : Sorry for my english
I am running into a very weird problem with an Intranet site I have on IIS 4.0 and PHP 4.04. I have password protected the site, allowing access to the users using their network username/password. But that has resulted none of the forms on the site with enctype="multipart/form-data" not to be working anymore. If I remove the password protection, it seems to work again. Is there something that I need to do in the PHP.ini file or is this a IIS related issue ? Any help would be greatly appreciated. Vishal
Try "if(!(isset($realm)))" instead of "if(!$realm)" ----- Original Message ----- From: "Manesh" <[EMAIL PROTECTED]> To: "Manesh" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, April 25, 2001 2:54 AM Subject: [PHP-WIN] Errors Help! > I get these on somthing else, BTW i have download there BB and they should > work > > > Warning: Undefined variable: realm in c:\inetpub\wwwroot\f\install-95.php on > line 4 > > Warning: Use of undefined constant dbhost - assumed 'dbhost' in > c:\inetpub\wwwroot\f\install-95.php on line 12 > > Warning: Undefined variable: dbhost in c:\inetpub\wwwroot\f\install-95.php > on line 12 > > Warning: Use of undefined constant dbuser - assumed 'dbuser' in > c:\inetpub\wwwroot\f\install-95.php on line 13 > > Warning: Undefined variable: dbuser in c:\inetpub\wwwroot\f\install-95.php > on line 13 > > Warning: Use of undefined constant dbpass - assumed 'dbpass' in > c:\inetpub\wwwroot\f\install-95.php on line 14 > > Warning: Undefined variable: dbpass in c:\inetpub\wwwroot\f\install-95.php > on line 14 > > Warning: Use of undefined constant dbname - assumed 'dbname' in > c:\inetpub\wwwroot\f\install-95.php on line 15 > > Warning: Undefined variable: dbname in c:\inetpub\wwwroot\f\install-95.php > on line 15 > > Warning: Undefined variable: submit in c:\inetpub\wwwroot\f\install-95.php > on line 34 > > -------------------------------------------------------------------------- -- > -------------------------------------------- > My install-05.php looks like this > -------------------------------------------------------------------------- -- > -------------------------------------------- > > <? > $version = ".95"; > > if (!$realm) > $realm = "default"; > /* > if (($realm)&&(file_exists("realm.$realm.php"))) > include "realm.$realm.php"; > else > include "realm.default.php"; > */ > $config[dbhost]=$dbhost; > $config[dbuser]=$dbuser; > $config[dbpass]=$dbpass; > $config[dbname]=$dbname; > > include 'funcs.mysql.php'; > > function check_table_existence($table){ > global $config; > > if (db_numrows_all($table) > 0){ > > return TRUE; > > } else { > > return FALSE; > > } > > } > > if ($submit){ > > if (file_exists("realm.$realm.php")){ > > print "Error: Realm $realm already exists!"; > > } else { > > > $phpver = phpversion(); > $ext[ldap] = extension_loaded("ldap"); > $ext[mysql] = extension_loaded("mysql"); > $installer[ip] = getenv("REMOTE_ADDR"); > $installer[browser] = getenv("HTTP_USER_AGENT"); > $server[os] = getenv("OSTYPE"); > $server[web] = getenv("SERVER_SOFTWARE"); > $server[host] = getenv("HTTP_HOST"); > > file://$ext[mysql] = FALSE; > file://$phpver = "3.0.17"; > file://print floor($phpver); > > if ($ext[mysql]){ > db_connect(); > $res_version = mysql_query("SELECT Version() as version"); > $mysql = mysql_fetch_array($res_version); > } > > print "<strong><font size='+2'>Installing electrifiedForum > $version</font></strong><br><br>"; > print "<strong>System Information</strong><br>"; > print "PHP Version: $phpver<br>"; > if (floor($phpver)<4) print "<font color=red>PHP Version Not 4.0 or > Greater</font> You may have problems<br>"; > print "MySQL Version: $mysql[version]<br>"; > if (!strstr($mysql[version],"3.23")) print "<font color=red>MySQL Version > Not 3.23.x</font> You may have problems<br>"; > print "Server OS: $server[os]<br>"; > print "Web Server Daemon: $server[web]<br>"; > print "Server Hostname: $server[host]<br>"; > > print "<br>"; > if ($ext[mysql]) > print "MySQL Extension Loaded<Br>"; > if ($ext[ldap]) > print "LDAP Extension Loaded (Not yet used)<Br>"; > > > print "<br><hr noshade width=20% align=left>"; > print "Building MySQL Tables in database $config[dbname]...<br><br>"; > > if ($ext[mysql]){ > print "Creating forums table..."; > if (!check_table_existence("forums")){ > if (mysql_query("CREATE TABLE forums ( > fname varchar(20) NOT NULL, > ftitle varchar(30) NOT NULL, > fdesc varchar(200) NOT NULL, > cat varchar(40) NOT NULL, > owner varchar(100) NOT NULL, > icon varchar(100) NOT NULL, > options smallint(6) DEFAULT '1' NOT NULL, > PRIMARY KEY (fname), > UNIQUE fname (fname), > KEY fname_2 (fname) > );")){ > print "Success<br>"; > } else { > print "<font color=red>Error</font><br>"; > $errors++; > } > > mysql_query("INSERT INTO forums VALUES ('chat','Chat','A forum to talk > about anything and everything!','General','$adminuser','','1');"); > > > } else { > > print "<font color=red>Warning!</font> Forums table Already > Exists!<br>"; > $warnings++; > } > > print "Creating users table..."; > if (!check_table_existence("fusers")){ > if (mysql_query("CREATE TABLE fusers ( > username varchar(20) NOT NULL, > password varchar(20) NOT NULL, > level smallint(6) DEFAULT '0' NOT NULL, > options tinyint(4) DEFAULT '0' NOT NULL, > location varchar(100) NOT NULL, > email varchar(100) NOT NULL, > homepage varchar(200) NOT NULL, > showemail tinyint(4) DEFAULT '0' NOT NULL, > icq varchar(20) NOT NULL, > showicq tinyint(4) DEFAULT '0' NOT NULL, > aim varchar(40) NOT NULL, > showaim tinyint(1) DEFAULT '0' NOT NULL, > yahoo varchar(80) NOT NULL, > showyahoo tinyint(1) DEFAULT '0' NOT NULL, > realname varchar(100) NOT NULL, > age smallint(6) DEFAULT '0' NOT NULL, > birthday varchar(8) NOT NULL, > showbirthday tinyint(4) DEFAULT '0' NOT NULL, > gender varchar(10) NOT NULL, > avatar varchar(60) NOT NULL, > sig text NOT NULL, > disabled tinyint(1) DEFAULT '0' NOT NULL, > rank smallint(6) DEFAULT '0' NOT NULL, > votes smallint(6) DEFAULT '0' NOT NULL, > PRIMARY KEY (username), > UNIQUE username (username), > KEY username_2 (username) > );")){ > print "Success<br>"; > } else { > print "<font color=red>Error</font><br>"; > $errors++; > } > > mysql_query("INSERT INTO fusers VALUES ( '$adminuser', '$adminpass', > '10', '0', '', '', '', '0', '', '0', '', '0', '', '0', '', '', '', '0', '', > '', '', '0', '', '');"); > > } else { > > print "<font color=red>Warning!</font> Users table Already Exists!<br>"; > $warnings++; > > } > > > print "Creating messages table..."; > if (!check_table_existence("messages")){ > if (mysql_query("CREATE TABLE messages ( > id smallint(6) NOT NULL auto_increment, > fname varchar(20) NOT NULL, > threadid smallint(6) DEFAULT '0' NOT NULL, > threadindex smallint(6) DEFAULT '0' NOT NULL, > poster varchar(100) NOT NULL, > title varchar(120) NOT NULL, > content text NOT NULL, > icon varchar(60) NOT NULL, > ip varchar(60) NOT NULL, > posttime timestamp(14), > options smallint(6) DEFAULT '1' NOT NULL, > PRIMARY KEY (id), > UNIQUE id (id), > KEY forumname (fname) > );")){ > print "Success<br>"; > } else { > print "<font color=red>Error</font><br>"; > $errors++; > } > mysql_query("INSERT INTO messages VALUES > ('1','chat','0','0','$adminuser','Welcome to electrifiedForum', 'If you see > this message, electrifiedForum is properly installed and configured!!', '', > '', now(), '1')"); > } else { > print "<font color=red>Warning!</font> Messages table Already > Exists!<br>"; > $warnings++; > } > } else { > > print "<strong><font color=red>FATAL ERROR</font></strong>: Unable to > build MySQL tables: MySQL Support Not Enabled in this version of PHP<br>"; > $errors++; > } > > /* Now to open up the template file, parse the vars, and writeout the > realm file */ > > $tf = fopen('realmtemplate.txt','r'); > $templa = fread($tf, filesize('realmtemplate.txt')); > > $data = str_replace("[%REALM-TITLE%]",$title,$templa); > $data = str_replace("[%DB-HOST%]",$dbhost,$data); > $data = str_replace("[%DB-USER%]",$dbuser,$data); > $data = str_replace("[%DB-PASS%]",$dbpass,$data); > $data = str_replace("[%DB-NAME%]",$dbname,$data); > $data = str_replace("[%DESCRIPTION%]",$description,$data); > $data = str_replace("[%KEYWORDS%]",$keywords,$data); > > fclose($tf); > $rf = fopen("realm.$realm.php",'w'); > fwrite($rf,$data); > fclose($rf); > > print "<br>"; > if (!$errors && !$warnings) > print "Install successful, No errors or warnings<br>"; > elseif (!$errors) > print "Install complete but with warnings<br>"; > else > print "Errors occurred during Installation.<br>"; > > } > > } else { > /* Installation Options Form */ > > ?> > > <form action='install-95.php?realm=<?=$realm?>' method=post> > > Please fill out the form below in order to install electrifiedForum 0.95 for > realm: <?=$realm?><br> > <br> > Administrator User Name:<input type=text name=adminuser><br> > <br> > Administrator Password:<input type=text name=adminpass><br> > <br> > Title of forums:<input type="text" name=title><br> > <br> > MySQL Database Host:<input type="text" name=dbhost><br> > <br> > MySQL Database Username:<input type="text" name=dbuser><br> > <br> > MySQL Database Password:<input type="text" name=dbpass><br> > <br> > MySQL Database Name:<input type="text" name=dbname><br> > <br> > Description:<input type="text" name=description><br> > <br> > Keywords:<input type="text" name=keywords><br> > > <input type=submit name=submit value='Install'> > </form> > > <? > > } > ?> > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Hi there Does anyone know any good sites with php4 and MySql? May or may not be free, but must be reliable and fast. Like always available and non-hanging kind of performance. Free sites seem to be overloaded at the database end, very detrimental to the site function. Any good paid for webhosts? Cheers Xon