Well...
1) I know because at the end of the script, a mail is sent, and if it is sent successfuly, the user is redirected. And when I used the form (for debuging), after about 2 minutes after the form was submitted, I received the mail (and it was empty...don't know why) and after about 4 more...
Hi. I'm making a website with multiple file inputs. The problem is submitting the form: if the user selects big files (eg: 3-4mb), when he submits the form, the php script is launched before the files have uploaded completely. How can I launch the script AFTER the file have uploaded (something...
Hi. I want to buy a new pc and I'm thinking about using 2 graphics cards (someone said something that I thought would be interesting to try). So here are the questions:
1) can one graphics card be used to do the graphics/textures and one to do the geometry (both being ATI cards: Radeon X1900XTX...
Yep...That did it...Sort of...
Now the entire message is sent as an attachment, and the original attachment is in that attachment (don't really know how to describe it better). And Yahoo doesn't even see the "attachment"...But that may just be an error on their part, cause gmail sees it just...
The code for the header:
$headers="From: $from";
$semi_rand=md5(time());
$mime_boundary="==Multipart_Boundary_x{$semi_rand}x";
$header.="\nMIME-Version: 1.0\n"."Content-Type: multipart/mixed;\n"."boundary=\"{$mime_boundary}\"";
And for the boundary...how should I close it? Thank you.
Hi. I have the following code:
else if(file_exists("site".$timp.".zip"))
{$file=fopen("site".$timp.".zip", "rb");
$data=fread($file, filesize("site".$timp.".zip"));
fclose($file);
$data=chunk_split(base64_encode($data));
$message.="Content-Type:{\"application/octet-stream\"};\n"."name=...
Hi. While trying to test a some code, I ran into this error:
The code is:
<?php
require("class.easyzip.php");
$timp=time();
$zip=new EasyZIP;
$file_dir="./upload".$timp;
mkdir($file_dir, 0777);
$dir=opendir($file_dir);
foreach($_FILES as $fisier=>$fisiere)...
Hi. I'm having a pretty hard time figuring how to do something... In a nutshell, I have a form, when submitted it calls a php page that emails me the form, if it can't email it, it stores the form field values in a txt file, then calls up another php page, which is actually the form with the...
Hi. I have the following code:
$timp=time();
$file_dir="./upload".$timp;
mkdir($file_dir, 0777);
foreach($_FILES as $fisier=>$fisiere)
{if(is_uploaded_file($fisiere['tmp_name']))
{move_uploaded_file($fisiere['tmp_name'], "$file_dir/$fisiere[name]");}}
Well...that is just part of the...
Hi. I'm making a website that includes a form, and I kind of hit a bump with the php.
PHP:
{for($i=0; $i<22; $i++)
{if($_POST["Navs".$i]=='ON')
{$message.=$i.", ";}}
HTML:
<tr><td width="425"><input type="checkbox" id="Navs0" onClick="Cont_pag5_3()"><img name="But_nav"...
Hi. I was wondering: can files be named using 2 variables?
something like:
$a="not";
$b="_now";
touch("$a$b.txt");
If anyone knows how to do this, please tell me. Thank you.
Ok...thank you everyone...but, like I already said, I rewrote the whole code from scratch...I'm now using TimeSpan, and when it reaches 0, it downloads the file...I ended up using this to make it crash/accidental restart/shutdown proof (meaning that if windows crashes etc, when windows restarts...
Yeah...I know...I actually ended up writing the whole app from scratch...Now it has a lot more functionality, and is more reliable...Anyway, thank you very much.
Hi. Can someone tell me how to name files incrementally.
For example, I'm trying to make an app that downloads once a day a file from the same site. The problem I'm facing is: I want to name the files that are downloaded something like this day1.jpg, day2.jpg, day3.jpg etc. I already did most of...
OK...then how do I request a file? The main idea is to have the php get the files directly from the client, before they are uploaded. As you can see from the code, its purpose is to create a plitted archive on the fly. The reason for me doing this is because the server I am on doesn't accept...
Hi. I'm trying to get php to fetch some files, but I can't figure out how to do it...here is the code..
<?php
require("class.easyzip.php");
$zip = new EasyZip;
$zip -> addFile("$_POST['Fis_lay']");
$zip -> addFile("$_POST['Fis_lay']");
$zip -> splitFile("site.zip", 50000);
echo 'Attachment has...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.