Jump to content

Search the Community

Showing results for tags 'array result to string'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hello: I would like to request an opinion so maybe I can find the reason which I am not being able to see for the following. I am using an array that will organize the content of a directory in the oldest to newest order, once it is ordered, display it's content. So far, so good, where I find my self stumped is when I want to send the array result to a csv file for record keeping. I am getting the word "Array" instead of the file name,... What am I doing wrong? I hope someone can assist me in understanding what am I doing wrong. Thanks... Hiroshi T <?php $files = glob( './images/*.*' ); array_multisort( array_map( 'filectime', $files ), SORT_NUMERIC, SORT_ASC, $files ); echo '<html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="styles.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Test Site</title> </head> <body> <div id="container"> <div id="formcontainer"> <form method="POST"> Picture Count: <input type="text" name="pcount"><br> <input type="submit" value="Submit"> </div> <!-- End of form Container--> <div id="imgcontainer"> <div id="imgframe"> <iframe src="'.$files[0].'" width="775" height="580" scrolling="no" frameborder="0"> </div> <!-- End of Image frame --> </div> <!-- End of Image Container --> </div> <!-- End of Container ID --> </body> </html>'; //$count = _POST["pcount"]; $imageDB = "imageDB.csv"; $DateStamp = date("m-d-Y"); $TimeStamp = date("H:i.s"); $openDB = fopen($imageDB, 'a') or die("Cannot update Database!"); $Data2appnd = "$files,$count,$DateStamp,$TimeStamp.\n"; fwrite($openDB,$Data2appnd); fclose($opendDB); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.