Like Hissy said, you will need to modify the program to enter the details into the database to record the link/time to display them the way you want to.How about a script that makes a gallery on your site of all the pictures you screenshot with screensnapr.
4x4 gallery the toppest left is the newest..
It has the option to uplaod to ScreenSnapr or your own host VIA FTPDoes ScreenSnapr upload to your own host? or not?
If that's the case and Vinnie uploaded his images to his own server, he can use the following script I just whipped up:It has the option to uplaod to ScreenSnapr or your own host VIA FTP
<?php
$number = 4;
foreach (glob("path/to/images/*.png") as $filename) {
$file = explode('/', $filename);
$count = count($file) - 1;
echo '<img src="http://example.com/images/' . $file[$count] . '" style="height:70px;width:70px;" /> ';
$number--;
if($number == 0) {
echo '<br />';
$number = 4;
}
}
If that's the case and Vinnie uploaded his images to his own server, he can use the following script I just whipped up:
PHP:<?php $number = 4; foreach (glob("path/to/images/*.png") as $filename) { $file = explode('/', $filename); $count = count($file) - 1; echo '<img src="http://example.com/images/' . $file[$count] . '" style="height:70px;width:70px;" /> '; $number--; if($number == 0) { echo '<br />'; $number = 4; } }
Did you change it to the correct path? "No..."
<?php
$number = 4;
foreach (glob("http://vinnietalotta.com/screensnapr/*.png") as $filename) {
$file = explode('/', $filename);
$count = count($file) - 1;
echo '<img src="http://vinnietalotta.com/screensnapr/' . $file[$count] . '" style="height:70px;width:70px;" /> ';
$number--;
if($number == 0) {
echo '<br />';
$number = 4;
}
}
It has to be the internal file path, not the "public" one.Code:<?php $number = 4; foreach (glob("http://vinnietalotta.com/screensnapr/*.png") as $filename) { $file = explode('/', $filename); $count = count($file) - 1; echo '<img src="http://vinnietalotta.com/screensnapr/' . $file[$count] . '" style="height:70px;width:70px;" /> '; $number--; if($number == 0) { echo '<br />'; $number = 4; } }
I assume that you have it in the same directory as the images? Yes?I tried many variants... still not working... here is directory. there is no sub directories in screensnapr folder.
I put my index.php in screensnapr, could that possibly be it? :\
foreach (glob("*.png") as $filename) {