I have a submit button when i click on that button i am having jQuery function which sends the Request to server side script
$('#submit_button').click(function(){
$('#MYdialog').dialog('open');
alert("Request Submitting");
$.getJSON("test.php?stcode=<?php echo $this->stcode;?>",
$("#myform").serialize(),
f...
Possible Duplicate:
PHP compiler for windows
I am looking for a PHP compiler like phc that I can use on my windows machine hopefully with a GUI (!). It needs to work with PHP version 5.3.x. A freely available compiler is what I am looking for.
I have had no luck in finding something that works with php 5.3 and that is activel...
Out of my head. How to fix this one. My session not working on hostgator server. But on other server it working fine.
Here an example the code.
<form action="/payment-select/" method="post">
<select name="payment" onchange="this.form.submit()">
<option value=""<?php if(empty($_SESSION['payment'])) { echo ' selected="selected"'; } ?>>...
Hello.
I'm going to develop a multiuser system, where people can register an account, log in, store and manage the data of the account. For example, email address idetifiers a user.
Could you tell, please, how to provide the user of one account access to the data of another account. For example, by providing a link in the account that g...
Is there some way to store:
A visitor's IP Address
What time a visitor visited my site
How many times they visited
I know there is a way to do this without PHP, just with Javascript and some text files.
Edit 1: How it would I do this in PHP?
...
Hi,
I'd like to return the customers from Magento who where created the day before OR who where updated the day before. I tried to play with addFieldToFilter, without any success.
I also tried to manipulate Zend_Db_Select, no success.
So now I'm stuck!
Here are some of my tries :
$customer = Mage::getModel('customer/customer');
$cust...
I'm trying to figure out what the best way to go about rewriting urls to accommodate not only a directory structure, but appended actions for a menu for a site I'm building in PHP.
I have one page that dynamically loads content based on whatever "page" is being loaded. Includes are pulled based on what the page is. Right now that's tied...
So i have an image in stuck to the top of my page that repeats all the way across the top. For some reason when I resize the window and then scroll over to the right it stops repeating. The div is the first in the document outside of the wrapper. Any ideas?
#header {
background-image:url('http://daveywhitney.com/img/paperhead.png');...
I need to use ftp_ssl_connect() in a script sometimes instead of ftp_connect(), so I read the requirements on php.net and recompiled with OpenSSL support. phpinfo() shows that it is in fact enabled:
openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 0.9.7e-p1 25 Oct 2004
OpenSSL Header Version OpenSSL 0.9.7e-p1...
Hi,
I'm using Zend_Search_Lucene for full-text search of records in several different tables in my application. I have just implemented this functionality, and currently the index is built upon first use of the search functionality after application deployment. This is obviously not what I would like in production.
I'm looking for an e...
hello,
how can i get the torrent peers from an tracker .....
say i have
hash value 76a36f1d11c72eb5663eeb4cf31e351321efa3a3
and an tracker info as http://tracker.openbittorrent.com/announce
how can i get the peers
...
Hello, I'm in a bit of a situation right now. I need software that does the business side of Sharepoint. The software will be used in a company intranet.
Ideally, I'd go with SharePoint, and although what I'm technially looking for is a PHP Sharepoint alternative, PHP is not tasked up to deal with the same tasks as SharePoint.
What I d...
I'm working on a medium sized PHP site. I'm writing "provider" classes for my objects. Basically, if I have a "user" object, I have a "user-provider" class that can request / save users on the database, accepting and returning user objects. I just include the providers and the dependent objects in the files I need them.
I'm wondering if...
Hi there,
I have been using PHP for almost 6 months, as i came from the non-programming background i took great pain learning it, for me to get the basics right was a daunting task . i am still unfamiliar with the OOP concept properly(although i have learnt the basics like classes, objects, inheritance, constructors, destructors, methods...
What's the code to store in a string the whole webpage's content between <body></body> tags?
can be any HTML/XHTML page
can be any encoding (ISOx, UTF-8, Asian-something)
can have attributes in the <body> (may trick the parser)
I've heard about DOMDocument but I'm a big rookie, some code sample would help!
...
I have the following jquery code:
$(".rotateNews").load("/load_news.php");
var refreshId = setInterval(function() {
$(".rotateNews").load('/load_news.php?newsID=');
}, 5000);
This refreshes a div with the class rotateNews with load_news.php every 5 seconds. load_news.php pulls a random news article from a MySQL databas...
Hi all, I was about to use "str_replace" in a sentence yesterday, and I realized I had no idea how to say it. I'm the only developer where I work, and I'm realizing that a lot of PHP function names are abstractions in my head and I would sound ridiculous pronouncing them the way my brain does.
In particular, I say "str" just like that ...
Hey.
I have a table with a field called date_start and a field called date_end The values of the field are like this
year-month-day hours:minutes:seconds
I need to find out:
How much time it to for the person to complete the task.
The average time it took of all of them.
I'm still a bit new and honestly have no idea where to even...
Trying to convert the following two eregi statements to their preg counterparts:
eregi("/F \(([^)]*)\)",$In,$DataOut);
eregi("/T \(([^)]*)\) /V \(([^)]*)\)",$In,$DataOut);
So I tried adding in delimiters:
preg_match("//F \(([^)]*)\)/",$In,$DataOut);
Unfortunately this does not work and produces Unknown modifier errors. Can I get h...
[PHP] How can I query a data from two database in one statement?
Please give me the easy way. and How to connect 2 database to use it?
Thank you
...