[PHP] Upload Files
I have a few interpretive questions on uploading files. There is the max_input_time, and the max_execution_time. I am uploading files and they continue to time out after a few minutes. Looking at the php.ini file from phpinfo() shows max_input_time set to -1 and max_execution_time set to 60. Does the max_execution_time have anything to do with the timeout, or is it all in the max_input_time? And does the "-1" value mean run indefinitely (until the file is uploaded)? Is there any function that will change that value? Any clarifications on this would be helpful. Stuart
[PHP] Objects in Arrays (without the READ prompt)
Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one shouldn't have that problem. I am using PHP version 4.3.4. I'm creating an authorization module that uses a users object, that includes the username, usertype, etc. I want to store this in a session variable (i.e. $_SESSION['objects']['auth'] = new Authorization();) so that I can keep the information from page to page. However, I get an error that it is an incomplete class everytime I try to access a function from the object like this: "$_SESSION['objects']['auth']->Login();". It works fine when it's not stored in the array. Is this a PHP 4 issue? Or is there something I'm doing wrong? Any pointers would be helpful. If this doesn't work, I'll have to rework things to just store in arrays. Stuart
Re: [PHP] how to read a specific "cell"
Sebastian, just a guess, but maybe when you do $table['de'] it is assuming the first element in the array. i.e. $table['de'][0]. Perhaps if you tried $table['de'][2] it might work. Just an idea. Also, how does your code look to convert the result set to an array? That might help to decipher what might be going wrong. I'm wondering if you're just off on your array elements. Arrays in PHP typically start with 0, so it should be $table[2][2]. Stuart On Tue, 2005-04-26 at 23:05 +0200, Sebastien Pahud wrote: > Hello, > > I cannot figure out how to read a specific "cell" in a result i got from > a SQL request. > > I have a SQL request on a database: > SELECT nameAttribute, fr, de, en > FROM traduction > WHERE nameTable = 'whatever' > AND idTable = 1 > ORDER BY nameAttribute > > and i am suppose to get something like this : > > - > | msg | bonjour | gutentag | good morning | > - > | time | diner | essen | lunch | > - > | weather | beau | schÃn | nice| > - > > I always know how many rows i am suppose to get. > > Now, how can i get the word "schÃn" for example out from that table ? I > need to get it specifically, and not all the row. > $table['de'] will return the 1st one. (Gutentag in my example) I need > the 3rd one... or the 2nd... and so on. > > $table[2][2]; or anything like this doesn't seem to work. > > mysql_fetch_assoc, mysql_fetch_row, mysql_fetch_array Well, what > and how should i use this > > Hope you got my broken english > > Thanks > > Seb > Stuart G. Nielson Inventra
[PHP] Hidden File Downloads
I am trying to setup a script that allows people to upload files for specific, permissions-based, projects. i.e. There are logs that are viewable to clients only after login. The admin also has the ability to upload files. These files should be associated with a particular log, and then should show up at the bottom of the log as a link. Because it's permissions-based, however, the file should not be a standard ftp/http link pointing to the file, but should rather be a script that grabs the file, and sends it to the user. A good example of this is Adobe. When downloading tryout software from their site, there is something like this: http://www.adobe.com/products/tryadobe/thankyou.jsp? ftpID=2391&fileID=2270 Does anybody know how to do this with php? I'm not sure how to find the file in the backend and kick it back to the user with the "Save As" box popping up. I'm thinking maybe it has something to do with headers, but I'm not sure. Thanks. Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php