07-27-2012
Try it on something actually static, like an image file, and see what happens.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi guys,
Not sure if this post is in the right thread, if not please let me know and I'll ask for it to be moved ) :
I've set up the Squid proxy on my linux box (SuSE 10.1). About 4 people connect to the Internet via the proxy at the moment, and it's working fine.
However - in the... (0 Replies)
Discussion started by: Aeros
0 Replies
2. Red Hat
I installed sarg from sarg rpm and i am facing issue while generating sarg reports and getting this time different error below
sarg -l /var/log/squid/access.log
SARG: Records in file: 242332, reading: 0.00%
SARG: Records in file: 242332, reading: 2.06%
SARG: Records in file: 242332, reading:... (0 Replies)
Discussion started by: mail4vij
0 Replies
3. Linux
hi, i installed fedora core 12, and i installed squid v 3, i need to know how can i cache everything. anyone can help me please (1 Reply)
Discussion started by: zazoo
1 Replies
4. Red Hat
Hello All,
I have resubmitted this issue I am having as the my last post was moved to programming as the issue appeared to be specific to java but on further investigation this is not the case.
The issues also arises when running the host command and appears to be either a problem with the... (1 Reply)
Discussion started by: Paragon1970
1 Replies
5. UNIX for Dummies Questions & Answers
Hi.
I have netBSD box acting as gateway, ftp, mail & web server, etc. It is now seven years old and has never missed a beat. The only problem is that the (Windows) boxes in my little network are now experiencing VERY slow web page loads.
The other problem is that in the years since a Unix... (0 Replies)
Discussion started by: torontobob
0 Replies
6. IP Networking
Hello,
I have a pretty useless satellite link at home (far from any civilization), so I wanted to set up caching in order to speed things up. My Squid 2.6 runs "3128 transparent" and is set up quite well on a separate machine.
I also have my dd-wrt router to move all port 80 traffic through... (0 Replies)
Discussion started by: theWojtek
0 Replies
7. Shell Programming and Scripting
Hi,
Is there a command which caches the results of the find, so the subsequent searches for file/file-pat are faster.
Thanks,
Nagarajan G (2 Replies)
Discussion started by: ennstate
2 Replies
8. Filesystems, Disks and Memory
Hello,
someone needed VPS with SSD caching, he want to use server for websites hosting. What does that mean, this SSD caching and is it optimal solution for this? Also i listen some SSD dont like too much of writting so how one can recognise certain SSD is made the way that its not destroyed... (1 Reply)
Discussion started by: postcd
1 Replies
9. UNIX for Advanced & Expert Users
Hello,
We are migrating our gateways from CentOS 6 to CentOS 7 and for setting up a transparent proxy using squid and Firewalld i am using below configuration.
#Firewalld configurations
firewall-cmd --permanent --zone=public --add-forward-port=port=80:proto=tcp:toport=3128:toaddr=LAN_IP... (4 Replies)
Discussion started by: sunnysthakur
4 Replies
LEARN ABOUT PHP
imagecreatefromstring
IMAGECREATEFROMSTRING(3) 1 IMAGECREATEFROMSTRING(3)
imagecreatefromstring - Create a new image from the image stream in the string
SYNOPSIS
resource imagecreatefromstring (string $image)
DESCRIPTION
imagecreatefromstring(3) returns an image identifier representing the image obtained from the given $image. These types will be automati-
cally detected if your build of PHP supports them: JPEG, PNG, GIF, WBMP, and GD2.
PARAMETERS
o $image
- A string containing the image data.
RETURN VALUES
An image resource will be returned on success. FALSE is returned if the image type is unsupported, the data is not in a recognised for-
mat, or the image is corrupt and cannot be loaded.
EXAMPLES
Example #1
imagecreatefromstring(3) example
<?php
$data = 'iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABl'
. 'BMVEUAAAD///+l2Z/dAAAASUlEQVR4XqWQUQoAIAxC2/0vXZDr'
. 'EX4IJTRkb7lobNUStXsB0jIXIAMSsQnWlsV+wULF4Avk9fLq2r'
. '8a5HSE35Q3eO2XP1A1wQkZSgETvDtKdQAAAABJRU5ErkJggg==';
$data = base64_decode($data);
$im = imagecreatefromstring($data);
if ($im !== false) {
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
}
else {
echo 'An error occurred.';
}
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagecreatefromstring()
SEE ALSO
imagecreatefromjpeg(3), imagecreatefrompng(3), imagecreatefromgif(3), imagecreatetruecolor(3).
PHP Documentation Group IMAGECREATEFROMSTRING(3)