Category Archives: PHP



Checking for image wodth Posted by in PHP | 1 Comment

I am using " list($width, $height, $type, $attr) = getimagesize($dir . '/' . $file); " to get the image diminsions. Then I do an $width check. "if ($width > 1024) {$err[$seq][] = 'Image Width is larger than 1024 pixels wide.';}". … Continue reading

How to save Facebook comments count to Mysql database? Posted by in PHP | 2 Comments

I use the Facebook API on my website to allow users to comment on different pages. This is how to get the comments count for a specific page: <fb:comments-count href='LINK_TO_PAGE'></fb:comments-count> I want to store this value into a MySQL database, … Continue reading

MIME type for Quicktime .mov Posted by in PHP | 1 Comment

I am trying to have a PHP script validate a file type being uploaded, it works for others but not Quicktime .mov files. What is the correct MIME type for Quicktime .mov files. <?php if ((($_FILES["file"]["type"] == "video/mpeg") || ($_FILES["file"]["type"] … Continue reading

facebook question in website Posted by in PHP | Leave a comment

Hello, Can you please post a tutorial for Facebook comments in an external website! Thanks!