i use jquery bbq to save ajax page states when hitting back/forward button on the browser. but my thread links point to regular pages (cause their content have to be indexed in google) so when i enter a thread then hit back button my ajax page is gone (the search result).
so going back and forth between ajax states in a page is no probl...
Hi all.
I'm trying to modify a part of a PHP script structured like this barebone example
<-- part A -->
function modify_B($string)
{
some code to modify part B
}
<-- end A -->
<-- part B -->
<container>some XML</container>
<-- end B -->
<-- part C -->
<-- end C -->
I'd like to modify part B without changing the rest of the fi...
Ok I have searched before asking, all I found was several questions asking what I am but 0 answers so maybe someone who knows will see this or I will make it a more clear question.
I have a social network similar to myspace/facebook. In my code you are either a person's friend or not a friend, so I show all actions from people you are f...
I have a Java application that I need to integrate our existing PHP website with. The vendor wants us to do a server-side redirect to allow for secure authentication and single-sign-on, but I'm not sure how to do that in PHP. The vendor explained the workflow as follows:
User clicks on a 'Open Application' link on our PHP site
The PHP ...
I have a script that is uploading images to my site, it works locally (haven't even tested it on the web server yet) but the problem is that I can't figure out how to get it to upload the images to a central location no matter where the script is run from.
For example my site structure looks like this:
/ROOT/
/IMAGES/
/USER/
...
Is there any way to determine from within a required script, where that require call was made from?
So if Script B is required by Script A. How can I determine from within Script B that it is Script A who is making the request?
...
Hey all,
How do I create a file upload progress bar similar to getdropbox.com using PHP and/or JavaScript?
Thanks,
-Giles
...
I wrote a pretty long function that will calculate the differences in timezones across the U.S. relative to the server timezone. I have noticed that by using default_timezone_set() that I can get the same data back that my function calculates. I have chosen not to use the default_timezone_set function because I am afraid that this change...
How do I go about retrieving all of the blogposts from my Wordpress blog via an external PHP script? Is this even possible? I have seen the API for creating a Wordpress plugin, but I'm not sure if that is relevant in this particular case. Any suggestions are greatly appreciated. Thank you.
...
I have about 50 feeds (and growing) that I would like to filter before adding them to Google Reader. Each of the feeds will be filtered for the same keywords. If a keyword match is found, that item will be removed from the feed. Basically I'm just trying to eliminate some noise.
I know I can do this with Yahoo Pipes, but I'm looking for...
I'm starting to try to learn PHP while using Expression Web 3. I set up PHP runtime and configured the ini. What happens is my script doesn't do as it should.
My page looks like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www...
What is a good way to save an array of data to a single mysql field?
Also once I query for that array in the mysql table, what is a good way to get it back into array form?
Is serialize and unserialize the answer?
...
Hello,
I have a login form where a user (that is not logged yet) can insert his login and password, after filling these fields the user has to press a submit button.
What i'm trying to do is: Replace the normal submit button for a $html->link with some css styles.
So is there anyway I can use something like this:
<span class = "licit...
Given a time, how can I find the time one month ago.
...
Hello all,
I have a simple doctrine code:
$dql = Doctrine_Query::create()
->select('u.ident, u.username, u.email')
->from('Users u, u.Attributes ua');
if ($query) {
$dql->where('u.username LIKE ?', "%$query%")
->orWhere('u.name LIKE ?', "%$query%")
->orWhere('u.email LIKE ?', "%$query%");
}
$dql->offset($start...
I want to achieve something like this
http://depositfiles.com/en/gold/payment.php
I have normal users signed up. I want them to upgrade to premium user. Once a person pays, how do I know which user he was signed in ? How do i force the user to login first before being able to click the paypal button and make payment ? Otherwise, I wou...
Two Questions
How can I debug PHP code remotely which is lying on the server, currently I am using var_dump's to check the value of variables ?
How can I see how much memory and how much time particular function is taking to execute remotely which is lying on the server, any suggestion for good profiler for this ?
Note: I am talking...
I have a database table that contain two fields "Categories" and "Tags"
i need to create a third field lets say called Keywords as the result of combining both categories and tags
so $Keywords = $tags." ".$categories;
can you help me please on how to achieve this
thanks
...
I am designing a website in php.After completing it i uploaded the things in server.
The page was working fine in localhost. But after uploading, the page is not even loading.
At the top of every page i included a page called startsession.php. the contents of this page is as follows:
session_start();
header("Prag...
So that in PHP I can deal with them as :
foreach($_POST['checkboxname'] as $i => $value)
...
...