I was planning to create an unordered list of users of my web application using a simple database query, but then was planning to let people filter this list down by typing the person's name they're looking for into a text input.
I was hoping to use jQuery to match the string in the input box to any inside one of the list items, then hi...
hai guys,
how to redirect to another page in php?plz help me....
...
Anybody can help on how to increase session expiry in php through htaccess?
So far I got this:
php_value session.cookie_lifetime 14400
php_value session.gc_maxlifetime 14400
php_value session.gc_probability 1
php_value session.gc_divisor 1
If I'm not mistaken, the life time of the cookie will be of 4 hours. What I'm trying to do is ...
Hi all.
Just wanted to ask - is it good to use Wait cursor in websites? on heavy loading pages..
we dont generally see it used with websites...(please share some if u have seen any)
if i implement the following.... will it be compatible with the current browsers?
function doHourglass()
{
document.body.style.cursor = 'wait';
}
and...
Hello everybody,
I've already asked a few questions in this regard, but still have things that are not clear to me.
I was looking for a mechanism that, while being constantly run from a free remote server (which is not my computer), would check a web-page by its URL every 20 minutes, record its HTML code (i.e. source), store it in a fil...
Looking to start a project that would require me to use Flash or Flex (I have not worked with either of these yet, yikes!!!). Flash would be the front end user interface that needs to display items pulled from a MySQL Database (I was thinking ajax via jQuery but open to suggestions). My question is, What would be the best approach for so...
Does anybody know what the C# equivalent of fmod is? I'm trying to convert this line of code to C#.
$lon_rad = fmod(($long1+$dlon_rad + M_PI), 2*M_PI) - M_PI;
Here's what I have so far. I just need the fmod converted.
double lon_rad = ((lon1+dlon_rad + Math.PI), 2*Math.PI) - Math.PI;
...
I'm running a LAMP box with PHP running as fcgid. APC is installed and working well. However, each PHP process gets its own cache. This is a problem, because it would make far more sense to have 10 PHP processes with 300MB shared APC cache than 10 PHP processes, each with a redundant 30MB unshared APC cache.
There was a prior thread on ...
For a client, i need to write a complex application used to stream tv episodes in flash format, at least, the player will be in flash.
It's a first for me, and i've a lot of question, since i don't really know about streaming.
But well, first, here is the constraints :
Mac server (might be migrated to linux)
PHP5
Flash
external libra...
Hello,
Im new to developing facebook apps.I have the following issue and would be glad if someone could help.
I have registered my app on facebook and uploaded the code and php client library to the hosting server. If i use the code below then everything works fine.
<?php
require_once('./facebook/php/facebook.php');
/* initialize th...
Hiya,
Can anyone suggest tips or alterations to make this code cleaner and faster? This was the only way I could think of doing it on a Friday evening, but I'm sure there must be a more efficient way of doing it...
I know regexs aren't efficient but I can't honestly see how else I can do this, especially if the Postcode data can be an...
I have an xml feed at this url
Now im trying parse the content, particularly the content in <REDIRECT></REDIRECT> tags.
I use the following code to try and parse the content but it isnt working and im not sure what im doing wrong.
$xml_file = $ADurl;
$xml_headline_key = "*XML*RESULTS*LISTING*REDIRECT";
$xml_description_key = "*XML*RES...
I know this in old issue but I can't figure out the best practices for dealing with the back button.
I'm writing a web application with lots of data movement between the browser and the backend server. I currently use post and of course when the user bypasses the application navigation and uses the back button both IE and Firefox popup ...
Question:
Array
(
[1257984000] => 2009-11-11 19:00:00
[1258416000] => 2009-11-16 19:00:00
[1258722000] => 2009-11-20 08:00:00
[1258394400] => 2009-11-16 13:00:00
)
This is my array. I want to sort based on the array number( ie. 1257984000,1258416000 etc).
Coding Used:
function cmp($a, $b) {
if ($a == $b) {
r...
This has to be pretty simple, but I'd like to parse the current URL and execute conditional code depending on whether the user is on the /sitemap/ directory.
So for example, if the site is example.com, and if the request is example.com/sitemap/.
Then I want to execute conditional code in that case. I'm using wordpress so I'm not sure i...
I have a mysql table with 3 fields: id, client, group and some data.
I need to display the results in groups, on a css table, like this:
group A
- John
- Paul
- Ringo
- George
group B
- Mick
- Keith
- Charlie
group C
- Axl
- Slash
- Izzy
I have to put a while inside another while? I really d...
I'm having a problem echoing a single line from a sql query. I'm still pretty new at this but I can't figure it out at all.
I have a page titled "listing.php?id=7"
Inside the page is this script:
<?php
mysql_connect("localhost","user","pass");
mysql_select_db("table");
$query = "SELECT * FROM vehicles WHERE id='$id'";
$result = mys...
Hey All. Can anybody share a open source
Good & Simple PHP Cart?
...
This one is driving me nuts. According to GTK's site, there exists GTK_MAJOR_VERSION, GTK_MINOR_VERSION, and GTK_MICRO_VERSION constants. However, none of these work:
echo GTK_MAJOR_VERSION;
echo GtK::MAJOR_VERISON;
echo Gtk::GTK_MAJOR_VERSION;
etc
Also, Gtk::check_version(2,12,0) always fails even though I have a higher version.
I'...
I've never made "macros" or anything like that with any program.
I'm moving my php code to use "gettext", so I have to look for all my static text and change it up.
For example, I need to change page title to <?php echo _('page title'); ?>.
I don't think there is a way to change it all up in one shot, as it involves looking to see if ...