I am totally new to PHP, I want to know whats the difference between PHP,CakePHP and Joomla.
Which IDE is most commonly used for developing PHP based web applications.
How Ajax is implemented in PHP, is it through JQuery only or there's something more to it.
Which will be the ideal book that covers most of the basic and advance concepts...
I am using thesis theme on my wordpress blog. I am hosting my blog at byethost which has allow_url_fopen=Off and allow_url_include=Off
In one of the function, code is trying to read an image url path. From what I understand, if fopen is ON, it will execute "if" case otherwise "else" case
if ($thesis_design->image['fopen'])
$imag...
I am writing a Facebook app and for it to work properly, I need to set the Site URL inside the Application settings. The problem is that if I set my Site URL to be
domain.com
it works on my system and a bunch of systems that I tested it on. Some of my friends complain that it is not working on their system. When I looked at what the er...
Let's say that I have some widgets, and each widget has events. Each event has a unique timestamp and a non-unique value.
Since the timestamp is rather large to use as an index (hashing?) I am adding events like this:
$_SESSION['widgets']['datasets'][$i][] =
array('timestamp' => $ts, 'value' => $val...
I want to know if it is possible to add multiple handlers for the same filter. For my case I use sfGuardPlugins remember me filter, but I would like to use the remember me filter from sfFacebooConnectPlugin.
Can I make both these filters to work on the remember_me filter, or should I create my own filter handler which would treat both c...
add_filter('wp_list_categories', 'myCatNoBrk', 10, 1);
function myCatNoBrk($OrgCat) {
$CatNoBrk = preg_replace('/<br \/>/',',',$OrgCat);
return $CatNoBrk;
}
Hello, this is part of a wordpress function that would replace html breaks with commas. How could I alter this to also remove and add 'x' around each element?
...
I've just started using PhpMailer, so I've had to decide if I was going to use SMTP, sendmail, qmail... I've always used the simple mail() function in PHP, and never really thought about it.
Is one method better, more reliable, simpler, or more appropriate for a specific task.? (massmail, attachment, etc...)
I'm developping on my PC (w...
i want a little php function to choose a number between 0 to 5, with 50% percent chance that it will be zero, and also choose between two strings at the same time randomly:
the algorithm:
choose number between 0,1,2,3,4,5 randomly
(50% chance for zero, 50% chance for 1,2,3,4,5)
and
choose string blue, yellow randomly
return(number, ...
I have several images in a directory which is located outside of the public facing portion of the server (outside of the public_html directory). I want to be able to read the image contents with a php file, then output the result to html.
For example, I have a php file called getimg.php with the following source code:
header('Content-...
I tried this way,but seems not working:
{if $i == 1}
$value = $recommend[3];
{/if}
Does smarty support assignment operation?
...
I have been searching Google for a while, but the problem I am running into is I am not exactly sure what it is I need to be searching for. (Searching for PHP C++ communication doesn't seem to be what I need) I am basically developing a c++ plugin for a game server, and I would like to create a web interface that can pass/pull data to an...
Seems by default smarty eats up all errors(even nothing in php's log):
{$value|nosuchapi}
How to make it output error info when it calls an function that doesn't exist?
...
Hello,
How do i log inside database with separate passwords? We can configure only one user in database.php. I want that the login process should happen with different mysql username and password because that table is protected.
Thanks in advance:)
...
Hi Friends,
I have developed an Application in PHP/MySql Technology
Now I want to develop an API for that Application
I have Created the first step Request XML and i send that XML via cURL
but now what i have to do after that the server Setup and response XML both of them i wont able to create.
So kindly help me to build my API.
Th...
Hello,
I have an flv file uploaded to a server. I would like to display its duration in the following format "minutes:seconds". Can anybody help me with this ?
Thank you
...
I created a bot to retweet one of my status in twitter... i used the api @ http://github.com/abraham/twitteroauth
$connection->post('statuses/retweet/'. $result->id);
i can retweet my tweet successfully but when i check tweet mentioning me, it doesn't list the tweet by that bot
...
I am working on languge segmentation project. I applied language segmentation for English by using regular expression breaking the string at . ("Full Stop"). Now i want to provide the support for following languages (Chinese, Arabic, Japanese, Russian, Korean, Dutch, Hindi, Greek, Urdu). I want to break the above mentioned language strin...
Hi,
I want to add contact fetch (gmail,AOL,hotmail,yahoo) script in my social networking site using zend-framework.
Any one can tell me how to do this ?
...
hello,
i have written a php script to insert the contents of a text file into mysql database and the content of my file a.txt is
\n is used for a new line
i want it to be loaded into the database including the special character
\n
as it is...
But it is loading only " is used for a new line"
kindly help me out...
than...
I m working on site which does not allow me to initialize session i-e whenever i write session_start(); the page does not load ?????
...