File Upload Mac Os X Fine, Windows Xp Not ?
I've written a simple CMS (the file upload is handled by code I found here) for a site I'm working on and I thought everything was working ok until I tested it on a pc.
I always get the same error on the pc which is something I wrote so that only normal jpg's would be uploaded, not progressive jpgs (this is because the site has a flash front end and flash can't load in progressive jpg's dynamically).
I added some more error checking in the php file, and a very strange thing is occuring. I have tried uploading the EXACT same jpg from both my mac and pc, on the mac it uploads fine, resizes etc etc but on the pc it doesn't and in my error message it says that the file is a 'image/pjpeg'? Does a pc think a normal jpg is a prgressive jpg ??? How can the jpg change file types? this is really weird!
View Complete Forum Thread with Replies
Related Forum Messages:
Upload Jpg With Ftp -fine, Upload With Php Wrong File Type!
i've scripted a file uploader, about as basic as you can get, and works on all accounts except that it tells me every single jpg is the wrong file type - BUT i can ftp all these same images and they all behave correctly. echo filetype($type_file); //got this warning Warning: filetype() [function.filetype]: Lstat failed for image/pjpeg any ideas?
View Replies !
PHP 5 Windows File Upload
I need to define a loaction for file for uploads. I am using Win server 2003 PHP 5. I have edited my php.ini to define a location for uploads. upload_tmp_dir=/somedir/somesubdir/ I restarted my server and I still get no value for upload_tmp_dir. Any ideas what's wrong?
View Replies !
File Upload On Windows
This is really the first time I have ever had to work with PHP on Windows. I seem to be running into a problem I never have on linux. The following code show the correct directory in which the image should be moved to, but it fails. It shows the correct path and is_uploaded_file is a success. Code:
View Replies !
PHP Exec() And Zipping Upload File In Windows
I have the following code. What I need is to zip the file (c:webuploadsomeFile) to d:websomeFile.zip. $cmd = 'c:zipzip.exe '. $movedFile. ' '. $finalFile; exec( $cmd, $cmd_output ); File is being uploaded by the apache server, but it's not being zipped. My guess "", escaping, is causing problem in windows path. Do I also have to escape the $movedFile content? Forexample $movedFile= "c:webuploadsomeFile".
View Replies !
PHP Upload In Windows
I have php and apache running in Windows XP. I am trying to use various file upload scripts but none of them work. When I try to use ones that use a copy function I get the following error: Warning: copy(C:serverxitamiwebpageshivangPhotoGallery empimg3e710f87bf1ed.jpg) [function.copy]: failed to create stream: No such file or directory in C:serverxitamiwebpagesshivangPhotoGallery est.php on line 46 File could not be stored. Anther script I tried does the following: // Open the uploaded file $file = fopen($img1, "r"); // Read in the uploaded file $fileContents = fread($file, filesize($img1)); // Escape special characters in the file $fileContents = AddSlashes($fileContents); The above script fileContents only has half the image. I have the upload_tmp_dir set to c:serverupload and file_uploads to yes.
View Replies !
Max Upload On Windows
I have an upload script for my client. The max upload in the php.ini is set to 2M..as standard. I tested it on a linux server and by editing the .htaccess file I can increase the max upload filesize. That doesn't work on the windows server. So i tried this <input type="hidden" name="upload_max_filesize" value="16000" /> and this <input type="hidden" name="upload_max_filesize" value="16M" /> and this <input type="hidden" name="post_max_size" value="16M" /> <input type="hidden" name="upload_max_filesize" value="16M" /> <input type="hidden" name="max_execution_time" value="600" /> I can't get anything to work. Is there a set way to increase the max upload on a windows server?
View Replies !
Upload Script On Windows Not Working
I am trying to write an upload script that will upload files to a certain directory. I am testing this on my windows desktop under apache if it makes a difference. Part of the target path is what the user posts to create a new directory for the uploaded file to be put into: Code:
View Replies !
Coding For Windows To Upload To Linux
I'm trying to remember what code I had that would work on a Linux server but not on my apache php mysql install on a Windows machine. Does anyone know of instances of this? Someone I know doesn't believe that this is the case because they believe that php is truly cross platform. I realize that for most code it does work on Windows and Linux but I think there are exceptions that need to be noted.
View Replies !
File Upload Issue - Unable To Upload A Large File
I am using PHP Version 4.4.3 under Linux/Apachie to upload files. The PHP.ini upload_max_filesize is 2M, which I need to override this in the HTML (see below). I changed the MAX_FILE_SIZE to 4,000,000 but the system only accepts files less than 2M. Is the override wrong, do I need to raise the limit in the PHP.ini file, or is the Apachie issue. <form name="upload" action="admin.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="4000000">
View Replies !
Need To Detect Windows Vs Mac Files Upon User Upload
We have a need to ensure a user is uploading an acceptable file format (image artwork). The company only supports Windows and would like to know if it's possible to discern between Windows and Mac. Then let the user know the file was acceptable or not. Is file platform detection possible with PHP?
View Replies !
Upload Script: Failed To Open Stream: Permission Denied In Windows NT
i've put an upload script on my site, hosted on a Windows NT Version 5.0 server. When i try to upload something i get an error: copy(files/file.txt): failed to open stream: Permission denied in d:sitesmatita.bewebsiteuploaded.php on line 20 Could not copy The problem is that i am not able to change the permissions, since it's a windows server. CHMOD is not supportes, CACLS neither. Is there a way out, or is it up to the server admin to install some 'permission system'?
View Replies !
File Upload Problems - Upload A File To The Server.
I am trying to upload a file to the server. http://chops.novatrope.com/game/test/form2.html Here is some more debugging info:Array ( [userfile] =Array ( [name] =Pequot.gif [type] => [tmp_name] => [error] =3 [size] =0 ) ) I am usiing code from the php manual. Here is the php info http://chops.novatrope.com/info.php <?php // In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead // of $_FILES. $uploaddir = '/usr/home/arthur/public_html/game/test/uploads/' $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo '<pre>' if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File is valid, and was successfully uploaded. "; } else { echo "Possible file upload attack! "; } echo 'Here is some more debugging info:' print_r($_FILES); print "</pre>"; ?> and here is my html <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="getfile2.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /> </form>
View Replies !
PHP 5.0.5 Is Not Working Fine
I have downloaded the tar file of php5.0.5 from php.net,but when i am configuring it manually,its not working. i have seen the manual and was trying the way its described in it. i have included the path c:/php in enviroonment variables too, but when i use the IIS server and point it in the browser as http://localhost/project/info.php (project is my virtual directory in IIS), its not showing me anything.
View Replies !
Session Don't Works Fine
I've got my intranet running in a server with XP, apache and PHP. When i'm testing my apps, sessions work fine, but when I upload it to the server they don't work. My app checks users against Active Direcory and save some data to session variables. I show this variables in a frame and check some times if user is logged to show some info. Someone know's what's the matter with it?
View Replies !
Does Berkeley DB 4.3.28 Work Fine 4 ?
I want to use berkeley db with PHP 4. I have installed php extension of berkeley DB on my linux machine. However I m not able to create database with the help of those classes. [ Please take a note that I am not in favor of using php inbuilt dbm style functions as it does not allow to specify access mothods + not fit in my requirements. Code:
View Replies !
Session Counter Won't Increment But Registered Fine?
I eagerly started the devshed tutorial on sessions and discovered I cannot get the simple counter script to work. I have read a bunch of other posts and I am still not exactly sure why things aren't working. I have the session directory set in php.ini, I have cookies enabled in my browser. Here are two files which I have changed around in various ways, paying attention to putting the session_register in different spots.
View Replies !
Mail() Function Always Works Fine, But Hangs.
Just the simplest invocation with hard coded parameters, followed by echoing a message, hangs for exactly 1 minute. ("defaulttimeout" in php.ini is set to 30 (seconds)). If I don't wait, and immediately hit the browser's "stop" button I get that "transfer interrupted" message, but the email still gets sent and received just fine. Sendmail is not running, "sendmail_path" is not set in php.ini, and the email headers look as if the email was sent from the command line using /bin/mail.
View Replies !
PHP Is Looking For Php.ini File In C:windows
As the installation txt suggests, I have left my php.ini file inside the c:php directory... but running phpinfo() shows that my php.ini file is in c:windows as shown below. Configuration File (php.ini path) - C:WINDOWS Well there is no php.ini file in my windows directory, so I'm not sure where it's getting it's configuration settings from... unless I suppose they're built into the executable somewhere if no php.ini file is found. My questions is - why php is not locating my php.ini file that is located in the c:php directory? I'd rather not move it to the windows directory so I can keep everything nice and tidy like the installation file suggests. BTW - This is a brand new laptop I'm installing PHP on so there is (I just double checked) no PHP.ini file in the c:windows directory. The path is set to include c:php... and opening a DOS prompt and typing "php" is a recognizable command regardless of my current directory. This is the 2nd machine I have had this same problem with. I'm still confused...
View Replies !
Isset($_REQUEST['var']) Works Fine On One Server But Not On Another
The isset($_REQUEST['var']) works okay on other servers but not on mine. The way the application works is the links are provided as: http://url.com/cc.php?page=currencies&new And then in cc.php the code is if isset($_REQUEST['new']) { ... } The problem is with the above code it sees new as not set and the if statement isn't exectuted. The same code on other servers works OK. If I change the url to: http://url.com/cc.php?page=currencies&new= or http://url.com/cc.php?page=currencies&new=something Then the isset($_REQUEST['new']) will be true. Is there any setting in my php config to make php see 'new' variable as set as I've shown in the first url in this message?
View Replies !
Checkbox Array Passes To Script Fine But Doesn't Mail Right
I'm starting to get a little ticked off because I've worked for hours on this and I can't seem to find the cause. I'm using PHP 5.1.6. I'm trying to get the values of some form checkboxes along with another fixed variable and pass them along in an email. For demonstration purposes, I have checked the Wed and Fri checkboxes and set the time for 9:00 am. <FORM ACTION="test.php" METHOD=POST> <TABLE border="1" width="70%" > <TR> <td><input type="checkbox" name="NewClass[]" value="Mon" size="5" maxlength="2"</td> <td><input type="checkbox" name="NewClass[]" value="Tue" size="5" maxlength="2"</td> <td><input type="checkbox" name="NewClass[]" value="Wed" size="5" maxlength="2"</td> <td><input type="checkbox" name="NewClass[]" value="Thu" size="5" maxlength="2"</td> <td><input type="checkbox" name="NewClass[]" value="Fri" size="5" maxlength="2"</td> <td><input type="checkbox" name="NewClass[]" value="Sat" size="5" maxlength="2"</td> <td><input type="checkbox" name="NewClass[]" value="Sun" size="5" maxlength="2"</td> <TD><input type="text" name="NewClass-Time" size="5" maxlength="10"></TD> </TR> </TABLE> <input type="submit" name="ClassList" value="Submit Survey Info" class="button"> </form> When I print out print_r($_POST);, I get everything passed correctly as: Array ( [NewClass] =Array ( [0] =Wed [1] =Fri ) [NewClass-Time] =9:00 am ) But when it gets emailed, the results listed on the email I get are as follows: NewClass: Array NewClass-Time: 9:00 am I stripped the processing script down to the barest of essentials. All that's on it right now is: foreach($_POST as $key => $value){if(!(!isset($value))){$set=1;}$message = $message . "$key: $value ";} if($set!==1){header("location: $_SERVER[HTTP_REFERER]");exit;} $message = stripslashes($message); $headers = "From: " . $_POST['name'] . " <" .$_POST['email'] . "> " . "Return-Path: " . $_POST['email'] . " " . "Reply-To: " . $_POST['email'] . " "; mail($my_email,$subject,$message,$headers);
View Replies !
INSERT Short Record = Fine, Long One Isnt
I have a mysql database table that I created by copying another one in phpadmin. The first table works fine. the second table works fine when I insert a short record, but when I do a long one it doesn't appear in the database. any idea what I'm doing wrong? It's not that its truncating the record, there is nothing there.
View Replies !
Counter Works Fine But Just Checked The W3c Validation Site
I have just built my first website but have added a couple of php scripts (include files) for a counter etc (until I can write my own). My site is in xhtml 1.0 transitional and the counter works fine but just checked the w3c validation site and it shows errors against my line 129 which is as follows: <div id="counter"> <span class="countertext">you are visitor</span> <?php include("counter.php");?> <span class="countertext"> thank you.</span> </div> My question is this: If php is a server side language why do I get xhtml errors. I take it the errors are in the counter.php file.
View Replies !
Has Anyone Had Problems With IE Not Showing Thumbnailed Gifs When Firefox And NN Show Them Fine?
Wondering if anyone else has had problems with gifs created by php or if anyone sees a problem with this code. Symptom: created jpegs work fine and created gifs work fine in Netscape and Firefox and when directly viewed. IE displays gif fine *via internet* BUT off of a CD or local HTML file it won't display the file. function thumbnail ($src_file, $path) { $orig = $path . '/' . $src_file; list($w,$h,$type) = getimagesize($orig); if ($type == 2) { // jpeg $src_img = imagecreatefromjpeg("$orig"); $name = "thmb_" . $src_file; $thmb_and_path = $path . $name; if(!file_exists($thmb_and_path)) { $image_info = getimagesize($orig); $src_width = $image_info[0]; $src_height = $image_info[1]; $dest_height= 80; $dest_width = ($dest_height/$src_height) * $src_width; $quality = 30; $dst_img = imagecreatetruecolor($dest_width,$dest_height); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, $dest_height, $src_width, $src_height); imagejpeg($dst_img, $thmb_and_path, $quality); chmod("$thmb_and_path", 0777); imagedestroy($src_img); imagedestroy($dst_img); } } else if ($type == 1) { // gif $src_img = imagecreatefromgif("$orig"); $name = "thmb_" . $src_file; $thmb_and_path = $path . $name; if(!file_exists($thmb_and_path)) { $image_info = getimagesize($orig); $src_width = $image_info[0]; $src_height = $image_info[1]; $dest_height= 80; $dest_width = ($dest_height/$src_height) * $src_width; $quality = 30; $dst_img = imagecreatetruecolor($dest_width,$dest_height); imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0, $dest_width, $dest_height, $src_width, $src_height); imagejpeg($dst_img, $thmb_and_path, $quality); chmod("$thmb_and_path", 0777); imagedestroy($src_img); imagedestroy($dst_img); } } return $thmb_and_path; }
View Replies !
PHP In Windows Media ASX File
What I am trying to do is get my Windows Media Player embedded pages to point to one .asx file instead of having to manage the stream links of some 30 odd pages individually. My question is how would I get the html page to "submit" the info to the asx file? Is there a way for the page to automatically submit the stream info to the ASX file using the POST method?
View Replies !
File Permissions Windows
i am using the LOAD DATA INFILE to load from a txt file. Although it works fine with the MySQL command it does NOT work with Script...does anybody know why?
View Replies !
File Handling In Windows
I'm having a problem unlinking a file in Windows 2000. It won't unlink for some reason. Does anyone know how I prepare a file for unlinking in Windows or if this function even works?
View Replies !
File Upload - Nothing In The $_FILES Array After Selecting A File And Clicking Submit
I have to following HTML form to upload a file: <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> <input name="userfile[]" type="file" /> <input type="submit" value="Submit" /> </form> In my upload script I have: if(is_uploaded_file($_FILES['userfile']['tmp_name'])) { ..do some code, etc. } There seems to be nothing in the $_FILES array after selecting a file and clicking submit. Any ideas why? All I get is this when trying to echo some of the $_FILES variables: File Array is Array bytes, i.e. the word Array is just being printed instead of the relevant info.
View Replies !
Upload A File And Have Alink Of The File Displayed On The Webpage.
I want to upload a file and have alink of the file displayed on the webpage. q)Now I can do an image but is there anything else i need to know? eg fileupload and store on a dir and have a link to the file in mysql. The file would be .txt ot .doc etc q)Is there a way to upload a lot of text eg 2000 words to a webpage and have the content displayed on a webpage ?
View Replies !
File Upload Fails - Different Files And Sizes And The Time Required Seems To Be Proportional To File Size,
I'm using IE5.5 as client and php4 on linux/apache as server. I've followed the examples for doing a file upload from a form and everything appears to work from the client side. In my script I see the following values: UploadedFile=none UploadedFile_name=test.html UploadedFile_type=text/html UploadedFile_size=0 I've tried different files and sizes and the time required seems to be proportional to file size, so I think there is a file being sent by the browser. The UploadedFile_name and type reflect the file being sent. Since I'm not getting a name for the temporary file in UploadedFile (if it was in fact created) and size = 0, I can't move or copy it. Code:
View Replies !
Weirdness: Mysql Query Works Fine On Netscape, Access Denied On IE
The error is the common "access denied to user@localhost on database," or whatever the exact language is. (I email from Linux so can't copy the exact wordage right now.) But like I say, it only occurs on IE running on the woeful Windows ME. I haven't tried it on another flavor of Windows. Netscape works just fine on whatever both OSes I have. Here's the code, short and sweet: // database variables $userName = GetDBUserName(); $password = GetDBPassword(); $dbName = GetDBName(); $hostName = GetDBHostName(); $db = mysql_pconnect($hostName, $userName, $password);
View Replies !
Page Coming Up Blank/white Online, But Works Fine Locally...
I'm going to start off making this question very vague and general (as to not over-clutter it with needless info), but if you want more details I can provide them... Basically, I have a PHP page (that serves to update a table on a SQL database) that works fine locally. But when posted online, the page doesn't even show up. There's no error or anything - the page is just blank (white). It displays this way both on IE and Firefox... It is one of many pages in the site. The site itself has the user log in, and then they can post a new record to the database, delete a record, or update/edit a current record. All other pages are working/displaying fine, but it's just that "update/edit" page that comes up blank (and again - it works fine locally, just not online).
View Replies !
PHP/Windows - How Do I Send File To My Printer?
I'm writing a command-line PHP script that gets executed by a virtual printer (a redirected port using the Redmon tool). The PHP modifies the Postscript data before forwarding it to the real printer. In this case the real printer is an HP LaserJet 5100 with a JetDirect wireless server. My machine runs Windows XP. The printer, as well as being accessible through the usual print methods within applications, is available through its server at 192.168.1.4. The problem is I just can't work out how I am supposed to send my Postscript data to the printer from within the PHP script! What commands do I use? I can't pipe data to a process like lpr, so what do I do? I tried printer_open() and printer_write, but that just makes the printer print the Postscript file as raw text rather than processing and interpreting the Postscript code.
View Replies !
Include File Problem On Windows
i have a php file on a linux server. new i'm developing a new site that will be placed on a windows server. the problem is that i want to inlcude the file that is on the linux server, but it didnt work. the include works fine in two different linux servers.
View Replies !
Check If A File Is In Windows-1250
i need to check a file to see if its encoded in windows-1250 so ican convert if it is... i cant just convert the files that are in the correct encoding because this adds some strange characters where there shouldnt be does anyone know how i can check? ie if (windows1250($doc)) { iconv(...); } how do i do that check?
View Replies !
Windows Media Player File
http://melody.freeprohost.com/test.php In the <PARAM NAME="fileName" VALUE="v835396.wmv">for the embedded video, I tried to use the php $_GET array method but without success. I hope to hide the source code using php script.
View Replies !
Email With File Attachements - How To Upload File To Server From Browser?
I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. I want to develop a webpage where people can send attachments that are stored on their local PC. I know I can use the <input type="file" > HTML to generate a file box that allows the user to navigate to a file on their PC and product a file path, but how do I then upload this file onto file server to email out with my PHP email script? Is there an easy way to do this? Or can I approach this problem from a completely different angle.
View Replies !
Apache2/PHP4 Compile/startup Fine But No PHP Parsing (blank Page For Phpinfo)
I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I did have Apache2/ PHP5 working... I confirmed this via phpinfo output... But now that I removed my original directory containing Apache/PHP, and recompiled from scratch, I get everything to startup and static html is displayd, but phpinfo produces no errors, but no output (literally zero output). Where am i going wrong? This is my environment (forget mysql for the moment as I just want Apache/PHP working first) Apache 2.0.59 PHP 4.4.5 I compile the above using the following: # cd apache # ./configure --prefix=/opt/apache --enable-so --enable-vhost-alias # make # make install # cd ../php # ./configure --with-apxs2=/opt/apachebin/apxs --with-mysql # make # make install And i have the following in my Apache httpd.conf file LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php Note - I see in the php.chm document it asks i place the following below the ClearModuleList AddModule mod_php4.c I don't have a ClearModuleList and when I put AddModule in at the end of my httpd.conf, I get the following error: Syntax error on line 1039 of /opt/apache/conf/httpd.conf: Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration I can't recall using AddModule before though. If i exclude the AddModule reference, Apache starts up fine... (log reference below) [Sun Feb 25 14:50:51 2007] [notice] Apache/2.0.59 (Unix) PHP/4.4.5 configured -- resuming normal operations and a httpd -l output shows this; Compiled in modules: core.c mod_access.c mod_auth.c mod_include.c mod_log_config.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_info.c mod_cgi.c mod_vhost_alias.c mod_negotiation.c mod_dir.c mod_imap.c mod_actions.c mod_alias.c mod_so.c
View Replies !
File Upload Warning: Max File Size Exceeded
I have 2 files, one is a HTML file with the code to create a Browae and Submit Button for uploading a file. (This works fine). BUT, when I click the submit button, I want the file to upload to a directory on my C:/ drive which I have indiciated in the PHTML file, but I keep getting the following error and I don't know why. Warning: Unable to open 'php2' for reading: Unknown error in C:apachehtdocs/submitassprac.phtml on line 5 Couldn't copy the file! OR Warning: Max file size exceeded - file [img1] not saved in C:apachehtdocs/submitassprac.phtml on line 0 Code:
View Replies !
File Upload :: Warning: Fopen - No Such File Or Directory
I’m getting the following errors when I try to run the script below on a live server. It’s a crude script which uploads text and images directly into MySQL. It works fine on my local machine, I have Apache, PHP4 and MySQL running on windows. The live server is Unix. When I try to upload images from my loacal pc I get the error below, when I placed an image file within the same directory as the script on the live server and tried to upload it that worked. I wanted the script to allow image uplload from a client pc Can anyone offer a suggestion? Warning: fopen("C:Apachehtdocs Grey.jpg", "r") - No such file or directory in /usr/local/home/httpd/vhtdocs/sitehostin/moondance/backend/test_imagedb.php on line 57 Code:
View Replies !
PHP File Upload Unexpected Error - File Too Large?
I have a short basic script to upload files. It works fine with small files, but with longer files it gets stuck. Here's the fragment, the input file is loaded in "$file" from an HTML form as usual. .... $img_str = fread(fopen($file, "r"), filesize($file)); $data = addslashes($img_str); // --------------------- up to here the execution is correct and fast (<1 second) $sql="INSERT INTO $table (". " file_name,". " file_type,". " file_size,". " bin_data)". " VALUES (". " '$file_name',". " '$file_type',". " '$file_size',". " '$data')"; // --------------------- it gets stuck here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mysql_query($sql) or die ("SQL error ..$sql"); I have already set the php.ini variables as follows: memory_limit = 16M upload_max_filesize = 6M I also checked the execution time to max_execution_time = 300 (even though I don't believe it should be necessary). The server is a P4 1.8 GHz, 256MB RAM
View Replies !
File Upload Script - Testing For Existence Of File
i'm having a strange problem when processing some form data. I just want to validate that required fields have been populated, then, if an image has been uploaded, i want to ensure that a description of the image has been provided (for alt tag purposes) before processing the data. For some reason, when a file hasn't been attached, my script interprets it otherwise and prompts the user for the alt tag. I've not come across this problem before, there's a good chance i've done something idiotic but i just can't see it Code:
View Replies !
File Upload :: 'wrong File Type' On Another Server
doing a simple image (jpeg) upload to a directory. Have a script which works fine on one server but comes up with 'wrong file type' on another server. The server that works has php5 installed, the other is 4.2.2 but I am sure what I have should work on both. PHP Code: ......
View Replies !
File Upload NOT Using HTML Input Type=file
in an earlier post on the javascript forum i was talking about a small program i'm writing to allow file uploads through the http protocol that look and function similar to a ftp client. I have made some nice progress on this project and am able to return the FSO collection from the client pc. this allows me to list of directories on the page so users can select multiple files to upload at once or even entire directories. Code:
View Replies !
File Upload, Set Defalut File Name, Hide Form
I found and used a number of handy tutorials on PHP/MySQL/HTML file upload. I have a working model. What I would REALLY LIKE is to find a way to establish a default file name and location for that upload and HIDE the html form. That, or a short and sweet line of code that simply post the file from it's location to the table/row/coulmn of my choice.
View Replies !
|