Skip to content

getimagesize and https

I am retrieving facebook album images from facebook.I have calculating the image size using the php function getimagesize.This function is working fine when the url is in http mode.When the facebook return the image url with https the getimagesize giving error.How i can calculate the imagesize of images with …

Redefining constants in PHP

Is it possible to redefine a constant in php which was defined by the define function? I have a class with several constants that contains the user data. I’m trying to use the class for more than one user. I did not write this class, but I am using it due to time constraints. I do not know why the

PHP string date + 1 day equals?

I have a date which is saved in a regular string. // format = DD-MM-YYYY $date = “10-12-2011”; How can I get the date-string +1 day so: 11-12-2011?

Creating an array of objects in PHP

I would like to know what is the right of creating objects arrays in php. My goal here is to be able to get data like this: Thanks for your time. EDIT: And if I want to do it in class it should look like this? Answer Any of the following are valid:

HTML table to php array

————–EDIT———————— So i am going with the DOM approach. Here is what I have so far: <?php function getdata(){ $contents = file_get_contents('internatdata.htm'); …

xgettext in OSX to create .po file from PHP code

I’m on Mac OSX, and I’m unable to find a good solution to parse PHP Code and extract the translatable strings. I’ve tried PoEdit, but it fail with an anti-verbose trunkated error: I’ve also tried …