PHP Class/library Zipping Client Computer Files And Upload To Server
Can anyone suggest good PHP class/library that can zip client local
files and upload to the server? Single package is great as well as
separate packages.
View Complete Forum Thread with Replies
Related Forum Messages:
Ftp Client, Cant Upload Files
i have made a php ftp client and it works local, i can upload and everything, but when i try from another computer i cant upload but it sucsessfully connects to the ftp and reads the files in the ftproot folder. i do not get anny errors, can somebody help me ?
View Replies !
Use PHPs Upload Feature To Upload Files To My Server Via A Webpage
I'm trying to use PHPs upload feature to upload files to my server via a webpage. Is there a max file size that can be uploaded? Right now my app seems to freeze on anything bigger then 20k. Here is the form I'm using to submit: <form action="index.php?viewBy=uploadEmail" method="post" enctype="multipart/form-data"> <input type=file name=cdFile> <input type=hidden name=MAX_FILE_SIZE value=24000><br><br> <input type=submit value=" Upload Email List "> </form> I'd like to be able to upload files of around 200k in size.. is this possible?
View Replies !
Zipping Files
I would like to have a form where users select checkboxes that correspond to the files they are interested in receiving. Then have php "package" those files as 1 (i.e. zip or some other compression format) for immediate download.
View Replies !
Zipping All Files In Directory
I need to come up with a script hat will zip all the files in a directory at download. I am working with a virtual host and couldn't tell you if they have any zipping functions compiled with php. Can i still do this? Also how would i find out if the zipping functions are compiled in php? I have never done this before and am drawing a blank on what i should be looking for or at. Thanks guys
View Replies !
Zipping External Files
I was wondering if its possible to build a zip for external files, specifically images. I havnt used PHP's zip features before and if it can't do what I want it to, I don't wanna spend time learning how to use it so im wondering if theres anybody that knows the answer to this question or someone who is experienced and is willing to try it out for me /
View Replies !
Zipping Multiple Files
i am working on a php page, process_extract_papers.php, that helps to zip documents for me. One problem i faced was that when the documents are more than 20mb, the system will fail and thats because it exceeds the temp directory memory. And instead of zipping one big file, i want to zip multiple files instead. Firstly, it will be much easier to download. The problem is that i managed to zip the first file and able to download it. So get the next part of the file, i will need to press a button called Extract Next. However, even though i did that, when i press start download button, i will still be downloading the first file.
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 !
Upload Files To The Server
I need to write a script to upload several hundred files in one go, from my personal computer to the server. Second option is to zip all files as one and unzip them in the server, can this be done with php (unzip)? Mybee some other compress algoritem? winzip is the prefered choice, as this is what the client knows best.
View Replies !
Nobody User When Upload Files On Web Server
This time I've got a terrible big problem about the interaction between a PHP application and the web server filesystem. The PHP application has got many funtionalities, such as uploading small image or text documents, creating directories, and so on. Once I log on the web server filesystem, I notice that all the files have been uploaded correctly, but their ownership is of "nodody" user, "nobody" group and 754 permission. I would like such files should have the same owner of the web files on the server, i.e. "pippo".
View Replies !
Form To Upload Files To Server?
I am trying to figure out how to setup a simple form so someone can upload a file to the server. I have someone out of town I am working on a site for, and want an easy mechanism for them to transfer files to me, images and word docs so I can then pull them into the site. Code:
View Replies !
Upload Files (pictures) To Server From A Webpage?
Is there any way to have people upload files (pictures are what I would like for now) to my server from a webpage? What (if any) built in functions or variables would help me to be able to do this? (actually I just noticed the "attach file" segment below... and this appears to be a php page, so it must be possible)
View Replies !
Ability To Upload Files To A Folder On The Server
1) Gives users the ability to upload files to a folder on the server. Only flash files (.swf) allowed. 2) Information for each server needs to be saved in a My SQL database in certain variables. (name, description, time of upload, user rating, and user that uploaded it from my phpBB users.) 3) The upload is displayed immediately after submiting the upload on a page on a table with a column for each varaible plus a column to allow voting. The name would be a link that opens a pop-up that displays the flash movie. It would generate a list of these tables in order by time of upload. Another list of these table would be in order of rating. Code:
View Replies !
Allows Users To Easily Upload Files To My Server.
I'm attempting to write code that allows users to easily upload files to my server. My dilema of courses is that I dont want to offer a security breach. I'm thinking of creating a form tha calls a .php file that handles the upload. Does anyone have any thoughts on this? The website that I am building will reply very heavily on the ability of new unknown users loading files to the server. Once loaded however they will be quickly screened and deleted once re-sized.
View Replies !
Multiple File Upload From Client Pc To Server Without Using <input Type="file"> Cont
I am working on a application which requires me to upload the contents of all the files from a particular folder in clent pc to the server. In my code i just want to mention the folder name which may contain any number of files.Folder name will always be fixed. I dont want to use <input type=file > control. Is there any way i can achieve this using FTP or any other way in PHP.Any help will be greatly appreciated.
View Replies !
Web Class Library
I'm a web developer who works with php - I'm looking for a class library where I can just cut and paste code and review classes from at will. I'm particularly interested in a library that contains code for things like logins, sessions and the day-to-day things that go with forums, ecommerce sites, cms stuff etc.
View Replies !
How To Upload Website From Local Computer
i have made my website on my local computer. and now i'm trying to upload it into server. but some errors happen, and these errors aren't show up in my local computer. please give me suggestion about making website in local computer and then uploading it.
View Replies !
Server On Computer
Is there some software which can imitate PHP server but when I'm offline and it's located on my computer? Because I use dial-up, and I can't connect to Net whenever I want and test my site, I'm just curious if this is maybe possible.
View Replies !
Chart Class Or Library
Does anybody have a lead on a PHP class or library that creates charts "on the fly" from input variables? Meaning are you familiar with a good product out there or a script that puts together a chart real facil like?
View Replies !
PACL - PHP 5 Class Library
I have started to develop a new PHP5 based class library. PACL - PHP Advanced Component Library is an advanced "java-style" class library in order to be able to develop time near professional applications of quality. It would be nice, if somebody of you will give me feedback. You can download all classes on sourceforge: http://sourceforge.net/projects/pacl/
View Replies !
Way To View PHP Files On Your Computer?
Is there a way to view what certain PHP files will look like, without having to upload them to your server? I'm testing out page layouts, and its kind of a pain to upload it every time to see what it looks like.
View Replies !
Automaticaly Upload A Text File From The Visitor's Computer
I've been trying to create a page (http://www.mysite.com/update.php), where when it is loaded, it will automaticaly upload a text file from the visitor's computer (file will be on the HDD (c:ap_definitions.txt)). I have been searching for the code for 2 days, and can't find any upload script that doesn't use the $_FILE box. Is it possible to automaticaly upload c:ap_definitions.txt to ap_definitions.txt on the server?
View Replies !
News NNTP Client Class
can You suggest some good class (or just a set of functions) that will allowe me to connect to NNTP server and download some posts from it (and maybe to send a post there)
View Replies !
Read File From My Computer To Web Server
I want to know how to read a file from my computer and not on the web server. For example, I upload the script to my web server and view it from my home computer. How can I make the script read the file from my computer? I am wanting it to read the file and write it to a new file with the same name on my web server.
View Replies !
Standard Class/library For Creating RSS Feeds?
A client I'm working with has a "preferred" PHP developer that they rely on for their site. That developer quoted them a ridiculous amount to create an RSS feed. Perl has XML::RSS for creating and parsing RSS files- it's trivial to create or use RSS with perl. Is there a PHP equivalent to perl's excellent XML::RSS module? On pear I found the XML_RSS class for parsing RSS feeds, but nothing equivalent for creating them. I'm LOATH to tell the client to roll-their-own RSS creator. It's invariably going to be error-prone and rigid because of the rigidity of what XML allows. . . and it's costly.
View Replies !
Parsing HTML Files On Local Computer
I would like to be able to open and read HTML files that are on my local (client) computer and then parse them to extract some specific information they contain. I've been looking here and reading my PHP books, but it appears to me that PHP only opens files on the server or URLs. It think that makes sense to me. Is there an alternative?
View Replies !
Hyperlink From Intranet Web Page To Local Files On My Computer
I'm creating a company intranet, and every employee has certain program we want them to be able to run from it, meaning we want the link to the program to be on the intranet page. For example, Adobe Photoshop resides on all the employees computer under "C:Program FilesAdobePhotoshop 7.0Photoshop.exe" However, when I enter that as a hyperlink on the page, it does not run the program. Is there a way to get a web page to run a program on the local host?
View Replies !
Wiped Computer. Reinstalled Server. Missing Php5apache2.dll
Hello All. I've been running an apache server on my home system for over a year now, and while I know very little about it, I'm not a complete novice. About 4 months ago I upgraded to the latest Apache, PHP and MySQL engines. When I upgraded PHP5, the instructions taught to load the php5apache2.dll file instead of php4apache2.dll, which is located in the PHP install directory. Well, the installation of PHP5 did not included the file, PHP5APACHE2.DLL so I left the PHP4 installation and continued to load php4apache2.dll. Last night, I finally perfomed a complete wipe of my system, (haven't done that in 3 years! It was needed.) and reinstalled apache, PHP and mySQL. Now my problem is, Apache is running but PHP5 did not install the php5apache2.dll file. The only dll is one with 'ts' at the end of the name, but the name escapes me right now. Furthermore, it does not have the php.ini file I need to put into my apache directory. Did I just get a bad install of PHP 5? Is this pretty common? Or do I need to acquire these files elsewhere? As it stands, my webserver is down because of this problem.
View Replies !
"configure A Computer" Class/script?
I'm looking for a script/class that helps you setup rules and dynamically configure products (like a computer). This is kinda the "Dell.com" style of computer shopping. I've found the following: http://www.esvon.com/pg/products/p_config/ http://www.x-cart.com/product_configurator.html Both of these things might do what I need, I just want to make sure I'm not missing the boat with any other scripts I should review.
View Replies !
Send Parameters To Visual Basic Server Application Running On Another Computer Through Browser
what I want to do is to send parameters to visual basic server application running on another computer through browser.. So I can login to my website, then I will be able to control the parallel port of the server computer. I found some example code.. here it is.. <?php $host = "localhost"; $port = 5002; $timeout = "15"; $fp = fsockopen($host, $port, $errno,$errstr, $timeout); if(!$fp) { echo $errstr . "Errno:" . $errno . "<br>"; } else { echo "socket successfully opened"; $out = "command1"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } } fclose($fp); ?> my first question is : should I use fsockopen or do you suggest another method to send parameters? second question is: I coded the vb application for this project. It listens the port 5002 and if get anything it makes the command..but when i execute the php script,the browser is on loading state.. I want to send only one parameter, is this code continiuously sending the output?
View Replies !
File Upload Cannot Be Seen Over FTP Client
I wrote a script that uploads files to /user_upload/ directory. On localhost version of my site everything works just fine. I mean files are uploaded well. With online version I'm having problems. Files that are uploaded can't be seen over FTP client (Total Commander FTP). I know they are uploaded because if I try to list upload folder over http: over my browser, the files are there ? So files are up there but Im unable to see them over FTP client.
View Replies !
Users Upload Path On Client
I am writing a form script which requires validation and the upload of a file. When a user fails to fill in a form field, i send an error message back to the form for the user to read. I do not want my user to have to re browse for the file they are choosing to upload, if their input did not pass validation. I would like to have access to the 'path to the file' which you can see on the client machine, after they have browsed for a file. I can use this info to fill the upload form fields initial value. Could you tell me how i might access this. I have looked at $_FILES but this only seems to give me the file name.
View Replies !
Client-Server?
i`m trying o better thinking and taken some information before, to create a aplication Client-Server and use Sockets, but i want that the Client be in PHP and the server in any language this can be?.
View Replies !
Number Of Files In PHP Library
PHP allows the "library" which can contain an arbitrary number of include files. Can I put all the include files right in this directory, or should I create subdirectories? My question comes about because I understand that *nix systems begin to run into performance difficulties at around 200 files in a directory (linear search times for a directory). Has anyone had experience with a large number of include files in a single directory? How many? Did it seem to affect performance?
View Replies !
Obtaining Client File Upload Directory
I can't seem to find a way to retrieve the directory a user uploads a file from using PHP. I could probably use JavaScript, but would rather keep everything server-side. Basically, a user uploads a file to be processed. After processing, the altered file is placed back into the directory the original file was uploaded from or to a directory specified by the user. So my form contains 2 inputs, 1 for the directory the file was uploaded from, and one for a directory that the user may want to place the processed file: <input type="file" name="uploadFrom" size="40"> and <input type="file" name="downloadTo" size="40"> The variables $_POST and $_FILES do not contain the user-side directory information, they only contain the actual/temp file name and size. Does anyone know how this information can be retieved?
View Replies !
PHP And MySQL Server Library
I'm a PHP and MySQL newbie, but know something about Unix-like systems. I need to install PHP and MySQL for a person using GNU/Linux server. This server is not however his and the service provider gives a permission to install any programs as long as they are not running when not used (so standard MySQL server can't be run). However, I learned from mysql.com that MySQL server is available as a library against which applications can link. Can PHP use this library or is it only available for C, etc. If it can't be used from PHP (easily, this person hasn't ever touched C), what could be a good alternative for MySQL?
View Replies !
Client / Server Socket
I have previously written some server side code to first take some request from a user , process it and give the output to the user. It was running fine from one client but when other person from other place have accessed it, it stoped working. Then on research I came to know that you have to actually enable a code to give access to multiple users. For that I have written a client server script which performs bit better from telnet , but when i try to use it from my client it just starts waiting. Code:
View Replies !
Client/Server App Re-write
Background : We have a very old bit of server client software written in Delph! (yer, Delph before you start laughing) Its basically for our van route system we use for delivering newspapers. The screen shots below show you the client and the server apps. Basically, the server app runs on the Fleet Managers PC... whenever a Van leaves the site he will manually hit the route button number and it displays a realtime stamp of the time it left in red under the route number. Code:
View Replies !
Date() - From Server Or Client?
I have a website, hosted on a server, that uses the date() function quite often to find the current date and time. Am I making a terrible mistake in that this date is being taken from the client's local computer time? Or is it taking the current date/time from the information on the server's clock?
View Replies !
How To Include Library Files In Php Program
The line below is in my php program: include 'opendb.php' But it gives the following error: PHP Warning: include(opendb.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:/... No such files are present in the php installation. please tell me if any one has the solution for this.
View Replies !
GD Library Loading Windows Server
so i just put together a crappy WAMP box to expirement with and I noticed that when I run a few instances of a php script that shrinks/compresses a large number of images using the GD Library, the server stops serving any files whatsoever until the script finishes. The system resources look fine, i mean the cpu its at a 100% but memory usage is low...and I still have over 150megs of memory left. Code:
View Replies !
SOAP : PHP Client /Java Server
I have a problem with the string array type. I want to send a string array from the php client to the java server (Webservice with SOAP). Here is the code : ----- Java server method : ----- public String[] crypte(String[] message, String name) throws RemoteException { String[] messageFinal = new String[message.length]; [...] return messageend; }catch(Exception e){ throw new RemoteException(e.getMessage(), e); } } ----- PHP client : ----- $message= array ("aze","sdsq","jhgjhgh"); $wsdl = new SOAP_WSDL($url); $client= $wsdl->getProxy(); [...] $messageCrypte = $client->crypte($message, "test"); ------------------------ It works very well with a simple String, for example : $message="jkjhkj"; with public String[] crypte(String message, String name){...} but not with a string array. Java doesn't recognise this type.The error : "JAXRPCTIE01: caught exception while handling request: unexpected element type: expected={http://mywebservice/...}StringArray,actual={http://mywebservice/...}Array" It works well in the other sens : PHP recognise a string array returned by the java server : print_r($messageCrypte).
View Replies !
File Transfer From Server To Client
I'm trying to write a little php script to transfert some files from a server to clients (web/http). It's working fin with small files. But transfering big files (try on 1Gb) failed! The transfert is stoped randomly (sometimes at 25%, sometimes at 75%,...). And I don't understand why?! :/ Here, a part of my php script: - Firstly, I'm sending the http headers header('HTTP/1.1 200 OK'); header('Status: 200 OK'); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Expires: ".gmdate("D, d M Y H:i:s", mktime(date("H")+2, date("i"), date("s"), date("m"), date("d"), date("Y")))." GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header('Accept-Ranges: bytes'); header('Content-Transfer-Encoding: Binary'); header('Content-Type: application/force-download'); //header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.$filename.'"'); //header("Content-Disposition: inline; filename=$name"); header('Content-Length: '.$length)
View Replies !
Server Vs Client Data Handling
I in the process of learning MySQL and PHP and maybe my question is premature. So far everything that I am doing is Client data handling. Does PHP, using MySQL, have the ability to handle Server side instructions..
View Replies !
|