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?
Systematic way to store pictures for social website [closed]
I’m building a basic social website where users can upload pictures. I’m going to store store the images on the file system. When a user uploads a picture, how do you think I should name the files? I …
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'); …
Registration script, need a database input to be checked then deleted upon register
I have a problem with my script. What it is supposed to do is that when a user register with the form, it should insert it, but only if the “passkey” matches the one that is in a different table that I set. After it has been verified it should insert the user info to the database, and then delete
How to retrieve an entity with all of its associations using EntityManager in Doctrine2?
I have a simple entity with many-to-many and one-to-many associations. I’m aware of ‘Joins’ for fetching related associations which is a manual solution for my problem. How can I fetch an entity with all of its associations using EntityManager in Doctrine2? e.g.: Answer Doctrine 2 uses Proxy…
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 …
PHP GD Library output an image and text content on same page
I am trying to output an image to a browser and then output HTML (not directly related to the image) on the same page. Is this possible? I am having a heck of a time figuring it out. Here is my code I …