- Feedback
- View
I'm looking for a decent image hosting script to host on my own domain I already have.
$strDir = "YourDirectoryName";
$arrFiles = scandir($strDir);
if (count($arrFiles) > 0) {
for($intCount = 0; $intCount < count($arrFiles); $intCount++){
$strFile = $arrFiles[$intCount];
if (($strFile != ".") && ($strFile != "..")) {
if ((strpos($strFile, ".jpg") !== false) || (strpos($strFile, ".gif") !== false)) {
echo '<img src="' . $strDir . '/' . $strFile . '" width="200">';
}
}
}
}
Same here. All good so far.Retro Spud":2cowpc80 said:I pay $2.99 a month after mine crashed and I'm fine so far.
xerxes":66ws9z6p said:Just upload your images with an FTP program: https://filezilla-project.org/
Can you use PHP with your host?
If so you could create a PHP web page with a little bit of code to scan a directory and show all the images in it, something like this:
Code:$strDir = "YourDirectoryName"; $arrFiles = scandir($strDir); if (count($arrFiles) > 0) { for($intCount = 0; $intCount < count($arrFiles); $intCount++){ $strFile = $arrFiles[$intCount]; if (($strFile != ".") && ($strFile != "..")) { if ((strpos($strFile, ".jpg") !== false) || (strpos($strFile, ".gif") !== false)) { echo '<img src="' . $strDir . '/' . $strFile . '" width="200">'; } } } }
reanimation":1oxy6c7h said:Agree there Sean. It's become horrid to use. So happy to flush it away as it's now almost useless!
Also it was only last summer I went through all my pics and delete any that compromised security, after all the world is a smaller one in 2016 compared to 2004. I suppose this will finish that off entirely! If only I could delete all my blabber too! Haha.
The forums are a pity though. All my car and bike projects are shared on build threads and unfortunately we can't see others build threads too. Inspiration threads will be busted now too.
Damn. Like deleting pics in your old books. Sad but I'll have to start again with a proper provider.
SEANSTEPHENS":1rh6w17m said:reanimation":1rh6w17m said:Agree there Sean. It's become horrid to use. So happy to flush it away as it's now almost useless!
Also it was only last summer I went through all my pics and delete any that compromised security, after all the world is a smaller one in 2016 compared to 2004. I suppose this will finish that off entirely! If only I could delete all my blabber too! Haha.
The forums are a pity though. All my car and bike projects are shared on build threads and unfortunately we can't see others build threads too. Inspiration threads will be busted now too.
Damn. Like deleting pics in your old books. Sad but I'll have to start again with a proper provider.
Photobucket is done, nobody will pay for it out of principle, its just finding a replacement for it now. I did make a flickr account but since the update that isnt allowing me to link pictures either. I also dont like the layout, theyve made it look like a facebook timeline with a cover picture, and a few other additions in an attempt to take it in a social direction.
The biggest shame like you say is all the restoration threads that we cant look back on, i have threads on not only this forum and cycling ones like it, but also my motorbike restorations and forums for vintage electronics. We use other peoples work quite a lot for inspiration and help with our own, so im sure this will become increasingly frustrating