How should we attach files in PHP?
469681
I could help you if you could clarify. \n\nIf you mean displaying images in PHP, it's as easy as\n\n<?php\necho "<img src='images.jpg'>";\n?>
869239
There are two ways to go with this, and both will avoid having to bounce off the server's error page first. One way is Apache's mod_write. I've actually written an article on that one, and it's in the source link below.\n\nThe other way is via the server variable, path_info (also sometimes pathinfo) which will list all extra parts after the executable file. Access the variable like this...\n\n$_SERVER['PATH_INFO'];\n\nTo get the exact name, run this function on your server...\n\nprint_r($_SERVER);\n\nThis will output all your server variables. Of course, path info won't be there if there isn't any data, so call it with something like this...\n\nexample.com/test.php/some/info\n\nYou can use an .htaccess file to force Apache to interpret ALL the files in a folder as PHP scripts, and then forgo the extension, so you can have...\n\nexample.com/text/some/info\n\nBut mod_rewrite really is a better solution. Here's the info...
64760
I suggest you simple technique.\n\nuse the input box in html like this\n\n<input type = file>\n\nand then this will actually bring you up 2 inputs. One for the button click and you can select the file. This makes the output of this operation as a complete file name with path, come into other textbox.\n\nNow you have to implement a script in either VBScript, ASP, PHP or Javascript to make a ftp connection to a known place ( if possible with other input as user name and password. As you dont want some arbitrary user to use your space for dumping his content ), and then upload it there.\n\nRemember, you cannot do this thing with out scripting.\n\nPHP code will work like this\n\nhttp://www.tizag.com/phpT/fileupload.php\n\n\nEnjoy,\nKranthi.\n\nThanks,\nKranthi.
1000664
The way I do it is to compress it/Zip it (the folder) and then attach the zipped file.
317181
it depends on the e-mail program. usually there will be a button called attach files or something like that
476992
All you need it is to link to a file other than say an .html page, like a zip file or what not. As long as the server doesnt know what to do with it, it will ask you if you want to open or download it. All you need to do is set up an "href" tag.
795189
First one might be a permissions problem with your setup. Make sure your web server user has read,write, modify permissions on the directory: /tmp and make sure the directory exists.\n\nSecond one is that you have tried to to send headers when there are already characters sent. Even something like a carriage return or a space can be considered "something". Make sure you start that statement at the very very top of the page an make sure there are no spaces between the ?> and <?php on your page.
137315
in access you save the file in a .db extension., make a zip or rar file. put it in there, in your email go to attachments browse for the file attach it and send it.
432498
you could you the include/require() function of php. Or you could do the nav in flash. Another idea would be frames.
644922
Install apache and php\n\nEdit Apache's conf file\n\n-C:&#92;Program Files&#92;Apache Group&#92;Apache2&#92;conf&#92;httpd.conf\n-Add----------\n# For PHP 5 do something like this:\nLoadModule php5_module "c:/php/php5apache2.dll"\nAddType application/x-httpd-php .php\n\n# configure the path to php.ini\nPHPIniDir "C:/php"\n---------------\nthen restart web server
20609
Use picy gallery.  It should be just what you need, and is only a single small PHP file.
249669
Well, you can't just add it to the image file. But, you can look into image mapping. This allows you to create a region of the image that can be clicked by the user, and it will take them to the link specified in the image map. http://www.htmlgoodies.com has information on this.
276178
In the HTML form, set enctype="multipart/data".\nThen use a 'File' control of HTML.\nUploading the image however is language specific.\nTell me whatever language you are using for ur website. I will tell you the solution
794895
you have to store your files in the documentroots folder i.e. where are your html file is something like www or public_html. Then launch xampp and type in your browser localhost/pathtofile
818519
Here is one way to do it... although I prefer to do the uploads on my site with the php FTP functions (shown below).\n\n$uploaddir = '/var/www/uploads/';\n$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);\n\nif (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {\n   echo "File is valid, and was successfully uploaded.&#92;n";\n\n\n----------------------------------------------------------------------------------------------------\nFTP--\n\n<?php\n// set up basic connection\n$conn_id = ftp_connect($ftp_server); \n\n// login with username and password\n$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); \n\n// check connection\nif ((!$conn_id) || (!$login_result)) { \n       echo "FTP connection has failed!";\n       echo "Attempted to connect to $ftp_server for user $ftp_user_name"; \n       exit; \n   } else {\n       echo "Connected to $ftp_server, for user $ftp_user_name";\n   }\n\n// upload the file\n$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); \n\n// check upload status\nif (!$upload) { \n       echo "FTP upload has failed!";\n   } else {\n       echo "Uploaded $source_file to $ftp_server as $destination_file";\n   }\n\n// close the FTP stream \nftp_close($conn_id); \n?>\n} else {\n   echo "File upload failed!&#92;n";\n}
1129456
This is a link explaining a .ser file\n\nhttp://filext.com/detaillist.php?extdetail=SER
601985
try grab-a-site or winHTTrack.. but you need to configue some setting to download a php file, or else, it will be compiled as and saved as html.