Recent content by Adam Johnson

  1. A

    PHP Multiple file download?

    Hi, I know how to force download of a single file when visiting a page with PHP using header() and Content-type then printing the contents of the file but how can I do this to force the download of multiple files at once in an archive format such as ZIP? Many Thanks,
  2. A

    Create a PHP error array?

    Hi, Currently I set display_errors to print any errors with a script which parses user data. Occasionally users uploaded files cause errors to occur in various parts which tell me about the file, such as if its password encrypted etc. Is it possible to convert all the errors which occur into...
  3. A

    HTML/CSS/PHP Spacing of Option/Select aka Drop Down?

    Hi, I'm populating a form using <select> and <option> tags and data from PHP to make a drop down menu which users can select values from. This includes a File name, File size, and number of records in the file. I am trying to space this data out so it can be viewed easily in each <option>. I...
  4. A

    PHP Get File Size of Selected MySQL Data?

    Hi, I'm exporting a lot of data from a MySQL database to a CSV files on a website. To do this I have a form to select what to export which submits to a new page where I change the headers and echo the content which creates the download window. I was wondering if it is possible to tell the...
  5. A

    PHP Convert String to Variables (Regex)?

    As a result of a program I get a string back which is in the following format: Country Name (CountryAbbr) eg: UNITED KINGDOM (UK) What is the best way to convert the two to variables? I'm assuming it would be something to to with regex? But it should be something like: $String = "UNITED...
  6. A

    PHP Convert String to Variables (Regex)?

    As a result of a program I get a string back which is in the following format: Country Name (CountryAbbr) eg: UNITED KINGDOM (UK) What is the best way to convert the two to variables? I'm assuming it would be something to to with regex? But it should be something like: $String = "UNITED...
Back
Top