Hello,
Is there a way i could run php code in facebook fan page. Basically i want to show the producsts from this site:
http://ohlalashopping.co.uk/
on one of the tabs of fan page. I would love to see any possible solutions to achieve just that.
Edit:
Based on the answers provided, i just wanted to ask one more thing:
How do i add ...
In a CMS I'm building I want to have my own javascript namespaced object $cms. This object should have a method/function hasIdentity that returns the status of whether the user is logged in.
Is there a way that I can have this method/function return the status without having to resort to either:
AJAX
a global var
or rewriting the fol...
Hello,
I have two images, that I am using their value to insert into a db table. Do I Require a form or can I do without one.
<form name="form1" id="form1" method="post" action="save.php"><input type="image" src="images/test.png" border="0" id="star_image" value="<? echo $some_value; ?>" /></form>
<form name="form2" id="form2" method...
I use a encoded string as a key in array, and also uses the same string as a value in the array, like below code indicates:
$string = 'something in some encode';
$list = array();
$list[$string]['name'] = $string;
when I print_r the array out(just print_r without headers/encoding specific), found that the key in the array and it's 'nam...
hi,
I want a string replacing code
i have a string like this
<strong>WHAT IS YOUR BIRTH DATE?</strong><br />
WE BEGIN THE GREATEST JOURNEY OF OUR LIFE AT THE MOMENT OF OUR BIRTH. OUR
VIBRATIONAL PATTERNS ARE THEN SET IN MOTION. THEY ARE FIXED AND
UNCHANGEABLE, NOT LIKE YOUR NAME WHICH CAN BE CHANGED AT ANY TIME DURING
YOUR LIFE. YOUR ...
Hi,
I'm having some problems grasping how to match a one-dimensional array with a two-dimensional array. So I have one array, a one-dimensional, that contains numbers (e.g. 1, 2, 3, 4, 5...) and one two-dimensional array that contains numbers and some text (e.g. [1][dog], [2][cat], [3][mouse]...)
So now what I want to do is to use the ...
I have an comma seperated list of values held as a string:
blue, left-right-middle, panther.png
I then have three functions:
Sets background colour
Sets order of columns for layout
Sets a profile image
At the moment I use a for each loop to explode the values into seperate strings, but how can I better control the results.
E.g
...
Hi
I have a table in mysql:
CREATE TABLE user (id INT, name VARCHAR(250));
I query the table:
$result = mysql_query("SELECT id,name FROM user");
I gather the results:
while($row = mysql_fetch_assoc($result) $rv[] = $row;
And I return the data:
echo json_encode($rv);
The problem is that the id returns as string and not int, ev...
Hi all,
Is there any PHP script to convert XML file to DTD.
I tried a lot. I can able to find tools but can't PHP script.
Is there any?
any help will be thankful...
Fero
...
I using php sessions in my project,i updated code:added some values to session.now i need to clear all existing sessions
ps.my OS is ubuntu 9.04
...
Trying to detect when a user clicks "Cancel" but the $_POST on using var_export($_POST) outputs:-
array (
'descr' => '',
'formSubmitted' => '1',
'backButton_x' => '36',
'backButton_y' => '15',
)
Notice: Undefined index: backButton in /home/mholt/development/BusinessPortico/class/requestHandler.class.php on line 81
Here is the...
Assuming I have the following classes in different files:
<?php
namespace MyNS;
class superclass {
public function getNamespace(){
return __NAMESPACE__;
}
}
?>
<?php
namespace MyNS\SubNS;
class childclass extends superclass { }
?>
If I instantiate "childclass" and call getNamespace()...
Hi,
I have an array which is being built using:
$features_data[$i] = preg_split("/\n/", $row);
The output is as follows:
Array
(
[0] => Array
(
[0] =>
[1] =>
[2] => <img src="http://example.com/sites/test/files/imagecache/feature-image/testima...
Hi, I have a MySQL database full of members of an organization with their passwords and other accompanying data. Is there a good PHP framework for a log-in system? I'd like something like what they do on yahoo, where you can browse the pages without logging in but you need to log in to access certain content.
...
I found this in Zend Framework :
/**#@+
* @access protected
*/
/**
* @var Zend_Mail_Transport_Abstract
* @static
*/
protected static $_defaultTransport = null;
...
/**#@-*/
Are these "open" and "close" tags ? Are they supported by phpdoc ?
I can't find any documentation about it (and it's not possible to google it)
Thank you...
Morning,
I'm storing documents informations (Word, excel, ...) in a MySQL database.
I have a column "size" where i store the filesize in bytes like 582656, 136260, 383266...
But when i order by size, results are a little bit disorder. What type of mysql field should i use ?
I've tried VARCHAR and INT, same result.
Regards,
Emmanuel
...
assume i have function
function me($a,$b,$c,$d){
}
and i want add all this in array by array_push is there a varible enable me do this in one step
and i i want echo all this on ($a,$b,$c,$d) by foreach
now i dont know it i will assume any varible in () will equal $anything
function me($a,$b,$c,$d){
foreach ($anything a...
http://domain.com/site/gallery/1#photo45
How to read value after the # sign (photo45)?
PS: What is the English word for the # sign?
...
How would I go about checking if and include or a require has an error in it. For example, and include would try to be included, if that page has an error the page isn't included and a message is throw?
Cheers.
...
I'm trying to get php to automatically pass the session ID via url, even if the browser accepts cookies.
I know url session id are normally considered a security risk, but I have a very specific application in mind which requires several separate users to be able to log in to the same php session, despite what cookie settings their brow...