php-windows Digest 21 Oct 2002 23:06:28 -0000 Issue 1399 Topics (messages 16454 through 16459):
Problem with W2K + IIS 5.0 + PHP 4.2.2 running as module (isapi) 16454 by: Carlos Andre Marques Moreira Merging C++ code or export DLL files in php application 16455 by: galit_al.netvision.net.il Re: uploading multiple files question... 16456 by: Brian 'Bex' Huff Re: Possible execution time bug? 16457 by: Michael Hazelden Setting cookies doesn't seem to be working 16458 by: John Meyer create table 16459 by: Bruno Nerini 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] ----------------------------------------------------------------------
--- Begin Message ---Hi, I'm getting the message : PHP has encountered an Access Violation at 012929AE Does anyone know what this could be? Is this a known issue? Previously i as running php 3.0.15 as CGI and never had this problem. Carlos André Marques Moreira SENAI-CE / CETAE [EMAIL PROTECTED]--- End Message ---
--- Begin Message ---Well, the story is that I have developed a MFC database application with MS-Access database and i want to upgrade it. The application has many and complex modules, written in C++, compiled with Visual C++ 6.0. I want to rewrite the application in PHP based on MySql database. I don't want to write the whole application, I want to know if there's a way to merge C++ code in a PHP application or better to import some DLL functions? Any ideas? Thanks in advance. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .--- End Message ---
--- Begin Message ---
well... its not possible without running client side code.
For example, you could write a SIGNED Java applet, or an ActiveX module that could select a bunch of files, and zip them up into a single zip file. Then you could use the same app to do a HTTP POST to your web server. Then using PHP, you could unzip the archive, and move the files to wherever you want.
Alternatively, you could use the app to make a SOAP call to your web server with a bunch of attached files. You can then use the PHP XML parser to extract the files. Be sure to base64 encode your files, tho... otherwise the XML parser will puke.
But its almost certainly not worth the trouble... unless it a deal breaker for your client.
--
Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424
On Sun, 20 Oct 2002, db wrote:i know this question has been asked before, but my slant is a little different. i'd like to be able to upload multiple files (pictures, actually) by highlighting/selecting a bunch of files in a single "browse" dialog rather than have multiple browse buttons on the page. is this possible? if so, how do i do it?Not possible. -Rasmus**All Electronic Mail sent from the Stellent, Inc Electronic Communication Network is scanned by Antigen 7.0.**--- End Message ---
--- Begin Message ---Sorry to bother everyone ... turns out the email module I am using had a set_time_limit function in it ...I feel like a bit of a fool now ...Michael.-----Original Message-----
From: Michael Hazelden [mailto:[EMAIL PROTECTED]]
Sent: 21 October 2002 12:03
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] Possible execution time bug?Hi all,
I've got an interesting situation and I'm trying to figure out if I'm going nuts or not.
I have a number of command line scripts which I am running via scheduled tasks on Windows 2000 ... these scripts are required to run for long periods of time - so I have set the maximum execution time to 0 so that they will never time out.
All this is fine and I can get the scripts to run for as long as I want (PHPINFO confirms the settings).
But - I'm having problems when I try to have a script that controls the running of these other scripts. The easiest way I found to get the scripts to run was to include them ... but on the second include of a long time - the script exits with a message saying that the maximum execution time of 30 seconds has been breached.
This can be got around using the set_time_limit function - but surely I shouldn't have to!!
To give you an example:
include("auto118.php"); //runs a script for 30 minutes
include("auto1182.php"); //attempts to run another script for 30 minutesThis will bomb out during the execution of auto1182.php with the max time error.
But:
include('auto118.php');
set_time_limit(10000000000);
include('auto1182.php');will work.
I should add that this isn't limited to command line scripts - I've tried this via apache and get the same problems. Always with the second large included file. What's weird is that I also include a number of class files at the top of the script and these are never affected by this problem.
Is this a bug? Or am I just mis-understanding the nature of the max_execution_time and includes? I would really appreciate any insight anyone can give.
Please Help!!
Michael.
--- End Message ---
smime.p7s
Description: application/pkcs7-signature
--- Begin Message ---Win2000, IIS, PHP 4.2.1 Code: $userid = $rowset["USER_ID"]; setcookie("user[name]",$userid); setcookie("user[password]",$password); Doesn't seem to be setting the cookies.--- End Message ---
--- Begin Message ---I do not succeed to create of the tables using php follows listing ciao. <?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_connLiceo = "localhost"; $database_connLiceo = "maresped"; $username_connLiceo = "bruno"; $password_connLiceo = "pamela"; $connLiceo = mysql_connect($hostname_connLiceo, $username_connLiceo, $password_connLiceo) or die(mysql_error()); $select = mysql_select_db("maresped"); $SQL = CREATE TABLE utenti ( IDUtente INT(4) AUTO_INCREMENT PRIMARY KEY, Nome CHAR(30) NOT NULL, Cognome CHAR(30) NOT NULL, Indirizzo CHAR(50), Citta CHAR(40), Provincia CHAR(2), CAP CHAR(5), Telefono CHAR(20), EMail CHAR(60), Login CHAR(20) NOT NULL, Password CHAR(20) NOT NULL, DataNascita DATE, LuogoNascita CHAR(40), Matricola CHAR(7) NOT NULL, AnnoImmatricolazione DATE, AnnoAccademico SET('1','2','3','4','5'), TipoAnno SET('C','F','R'), Corso CHAR(60), Orientamento CHAR(40), DataRegistrazione DATE NOT NULL, LastLogin DATE NOT NULL, LastDefault SET('F','N') DEFAULT 'N', Privilegi SET('R','P','A','S','C') NOT NULL DEFAULT 'S', Qualifica CHAR(20), Conoscenze TEXT, UNIQUE (Login) ); CREATE TABLE progetti ( IDProgetto INT(4) AUTO_INCREMENT PRIMARY KEY, MEsame CHAR(10) NOT NULL, MLavoro CHAR(10) NOT NULL, NomeProgetto CHAR(60) NOT NULL, Descrizione CHAR(255), URLDescrizione CHAR(100), Stato SET('T','N') NOT NULL DEFAULT 'N', ScadenzaPrevista DATE, Vincoli CHAR(255), Proposto SET('P','U') NOT NULL DEFAULT 'U', KEY (MEsame), KEY (Stato), KEY (Proposto), KEY (MLavoro) ); $result = mysql_db_query( $database_connLiceo , "$SQL",$connLiceo ); if (!$result) { echo("ERROR: " . mysql_error() . "\n$SQL\n"); } echo ("links Results RESULTS = $result\n\n"); mysql_close($connLiceo); ?>--- End Message ---