If I insert in my wall a link like this:
http://blog.bonsai.tv/news/il-nuovo-vezzo-della-lega-nord-favorire-i-lombardi-alluniversita/
then facebook extract the image in the post and not the first image in the webpage ( not image logo or other little images for example ) !!
How facebook does that ?
...
Hi All,
I need your help with this frustrating problem.
I'm running: Debian Linux 5.0. with webmin version 1.510.
When I create a new user using the webmin interface and I connect to the pop3 account, everything works great. When I generate a new user using this PHP code:
$pass = crypt("user1");
shell_exec("sudo /usr/sbin/useradd use...
I got a problem reading an XML-Feed
Sample of the XML File:
<f:feed xmlns:f="http://www.bbgo.de/feedxml/feed" xmlns:a="http://www.bbgo.de/feedxml/article" xmlns="http://www.w3.org/1999/xhtml" f:customer="blub" f:name="dax-tecdax">
<f:title>Analysen: DAX, TecDAX</f:title>
<f:date>2010-09-22T20:46:29+02:00</f:date>
<f:url>http://www.bbgo....
I have a Pig script--currently running in local mode--that processes a huge file containing a list of categories:
/root/level1/level2/level3
/root/level1/level2/level3/level4
...
I need to insert each of these into an existing database by calling a stored procedure. Because I'm new to Pig and the UDF interface is a little daunting, I'...
I need to create a php script.
The idea is very simple:
When I send a link of a blogpost to this php script, then the webpage is crawled and the first image with the title page are saved on my server.
What PHP function I have to use for this crawler ?
...
hello I am using zend framework and i am trying to combine it with doctrine. Not the hardest thing to do but what I wanted to do is a class with a static member that will be the entity manager and I want to create it just ONCE in THE WHOLE APPLICATION CONTEXT.
When I was playing with static variables in php to learn how it works in orde...
Hi,
While i try to deploy the code devloped on wamp server on the dev machine on linux ,
i get this error:
Warning: require_once(/PHP file) [function.require-once]: failed to open stream: No such file or directory in /var/www/proj/index.php on line 38
Fatal error: require_once() [function.require]: Failed opening required '/PHP file' ...
I have to display the posts as the following
September 2010
Friday September 24, 2010
post1
post2
.
.
.
Friday September 17, 2010
post1
post2
.
.
.
Friday September 10, 2010
post1
post2
.
.
.
Friday September 03, 2010
post1
post2
.
.
.
can any one tell, how can do this?, or which function should i use?
I have used the foll...
I use this configuration:
$config = HTMLPurifier_Config::createDefault();
$config->set('Core.Encoding', 'UTF-8');
$config->set('HTML.Doctype', 'XHTML 1.0 Strict');
$config->set('HTML.SafeObject', true);
$config->set('Output.FlashCompat', true);
$config->set('HTML.Allowed', 'object[width|height|data],param[name|value],embed[src|type|allo...
Hi,
Yii cms flexicacms.com website disabled the downloading facility by blocking registration,
Anyone have backup of this CMS please share with me with a download link
Thanks,
Nithish.
...
I have PHP 5.2.10 and PHP 5.2.14 (x86 non-threadsafe Win32 builds) installed on a Windows 2008 R2 server and on Windows 7 64 bit.
For some reason PHP 5.2.14 refuses to show error messages.
Even when I set the following settings in php.ini I don't get any errors reported if I use 5.2.14:
error_reporting = E_ALL
display_errors = On
Th...
Am exporting data to csv. after 25000 records , memory exhausted.
Memory limit increasing is ok.
If i have 100000 rows, can i write it as 4 process.
write first 25000 rows, then next 25000 then next...
Is this possible in csv export?
Will this have any advantage? Or this is same exporting whole data?
Any multiple processing or parall...
What is the method to submit a current timestamp directly on an insert or an update. If I were running regular sql, I would use the function NOW() for the specific sql field on submission. How would I do that with cakephp.
$this->Model->save($this->data)
...
Hi
I have code like this:
foreach($attributes as $attrib => $options){
if($bb->$attrib != $default->$attrib){
$delete = false;
}
}
$bb is a stdClass, im reading and writing these attributes to it in this way, because I have them stored in an array. Now this works in PHP 5.3 which I have confirmed, I'm pretty sure it ...
I have 2 objects. Player and Match. Player is a child of Match. I want to know if I can create both of these at the same time without inserting id's manually.
i.e.
$match = ORM::factory('match');
$player1 = ORM::factory('player');
$player2 = ORM::factory('player');
$player1->match = $match;
$player2->match = $match;
$match->save();
...
Hi,
Anyone got challenging web application project (preferably using PHP + MySQL) ideas suitable for first class degree?
All are welcome!
...
So here is what I need to do.
If an user enters this: http://site.com I need to remove http:// so the string will be site.com , if an user enters http://www.site.com I need to remove http://www. or if the user enters www.site.com I need to remove www. or he can also enter site.com it will be good as well.
I have a function here, but do...
Is there a way to compress/archive a folder in the server using php script to .zip or .rar or to any other compressed format, so that on request we could archive the folder and then give the download link
Thanks in advance
...
In my LAMP application (using CodeIgniter), I have a call to $this->db->update... that generates a SQL like the following:
UPDATE `MyTable` SET `MyProcess` = 5 WHERE `Id` = 1
The problem is that this seems to work intermittently -- and I currently have no idea what might be wrong. Is there anything about MySQL I need to know about whe...
More problems with dates.
Basically I'm trying to populate a table with some datetime values from Zend. The datatype of the column that I'm trying to populate is 'datetime'. However, no matter which constant I try the column is always populated with zeroes. I've tried Zend_Date::ISO_8601, Zend_Date::DATETIME, Zend_Date::now() to no avai...