On the demo website for jqGrid, the columnChooser module is displayed like this:
It allows you to both reorder the columns and select which columns are to be shown.
Unfortunately when I enter this section of code into my application(The code that is suppose to make this appear exactly as portrayed):
jQuery("#colch").jqGrid('navButto...
I am updating a PHP-based site and the URL looks like this:
http://www.thesite.com/index.php/what/are/these
Can somebody give me an idea as to what is going on after the index.php? It looks like directories to me, but there are none that I can see with the same names. Is this some sort of URL rewriting?
Thanks!
PS the CMS is Jetbox ...
I have experience programming dynamic websites using both php and perl driven CGI code, (both on apache web server on *nix systems, though that shouldn't matter).
I do not have too much exposure to other technologies for web creation, but I frequently hear hailing and railing towards them from all forms of developers. (The most I've he...
Hello,
I'm not using any MVC framework and my application structure is rather simple...
actions/
registration.php
classes/
views/
header.php
footer.php
registration.php
index.php
actions/registration.php
<?php
$variable = htmlspecialchars($_GET['name'], ENT_QUOTES).", are you ok!?";
include("views/registration.php");
?>
vi...
I have an application where I can make calls, that will take anywhere from 60-90 seconds to return. I did set_time_limit(0), but because I am doing an exec() command, it doesn't take that into account.
So I modify these two values in my php.ini and restarted Apache (CentOS)
max_execution_time = 300 ; Maximum execution time of each ...
how can i get only the time from the datetime variable?
i am storing the datetime in the database. If i only need to fetch the time, how can I do it?
I have to run a single query in which I want to fetch the date and time from the datetime column. i need to use the date and time in different fields.
...
Hello all,
I have done extensive client-side validation through the help from jQuery. Now come to the server side validation, if I found some fields are not valid, can I simply return an error to client and without any useful message?
My assumption is that the user has to enable JavaScript in order to access my webpage. The user will n...
I have the iframe code for amazon banner. What I am trying to do is post this banner on our rewards website, and for each order placed through this link, a certain no of points will be added to that persons account in our website. A similar thing like linkshare and commission junction. can i also do the same for amazon? Is this even poss...
Is there a php code that printing? I was searching in google but the result is the print function. Or any ideas, or any web prog. langguage that you can share. I need a code to print a list of subjects from my database. Sorry for this stupid question. I don't know if that is possible.
Thanks in advance.
...
For those who code in Notepad++, I just want to confirm that Notepad++ does not have any built-in debugging function (i.e. ability to set breakpoints, step one by one and look at values in the middle of execution). I'm new to PHP coding and am looking for a good editor/IDE to use. Since I would like a debugging function, your answer wo...
I have an application and need to write a program that is able to figure out attachments from all kinds of email senders (and MUAs) reliably. PHP doesn't seem to have a great MIME parser so I was hoping some other languages might.
I've seen the PHP Mail Mime Parser but it's not robust at all and I know (and have confirmed) it doesn't w...
HELLO
SORRY FOR FRENCH , i will try english
i have tree arrays like this
$keys = array("elment1","elment1","elment2","elment1");
// this one can have duplicates values ,
$operator = array("=","<",">","=");
// operators for Mysql query
$queries = array("query1","query2","query3","query4");
// mixtes values
the question is :
...
Hello,
One page on my web site is a PHP script that uses exec() to launch a separate PHP script which generates a PDF document.
The PDF may take 30 seconds to generate. When I hit the refresh button during this process, I am finding inconsistent behavior. On both my Mac and Windows local dev machines, refreshing the page will hang Ap...
Hi all,
I'm completly newbie to PHP.
i want a code to load a image to PHP server and then send it to browser.
for example i want to once page named sample.php is requested, in response send an image to browser...
in other words, I want to create a PHP file that acts like a proxy...
Thanks all
...
Hi,
I would like to get the City name,Country Name from IPAddress. I have used the below URL http://www.ipgp.net/api/xml/220.244.120.73.
But in the City field, its giving Area name. For eg,when the user is in Sydney,Australia. Its giving as Mascot,Australia where Mascot is a place in Sydney.
Can you please advise.
Regards, Mugil.
...
I have a bunch of sites set up on my local development environment. Out of those sites I have two sites where I experience horribly slow page load times. Horribly slow, like approximately 5 minutes. The thing is my computer (mac pro osx 10.6, dual xeon nehalem processors, 6 gb of ddr3 memory) is adequately equipped and the other sites lo...
Hello All,
I'm wondering how safe or if it's even possible to have a website pull data from a Oracle database on a remote server?
What and how big are the security issues with this?
Thanks,
Dane
...
Hi!
Is there any possibility to use the gettext functionallity within the CakePHP model validation array?
Usually a programmer would do it like this:
class Data extends AppModel
{
var $validate = array(
'title' => array(
'NichtLeer' => array(
'rule' => array('between', 4, 20),
'allowEmpty' => false,
'message' => _('B...
Hi there,
I'm interested in creating tiny url like links. My idea was to simply store an incrementing identifier for every long url posted and then convert this id to it's base 36 variant, like the following in PHP:
$tinyurl = base_convert($id, 10, 36)
The problem here is that the result is guessable, while it has to be hard to guess...
I am trying to attach a numerical "post ID" value to comments so that they can be retrieved from the database and displayed in the proper place. How do I establish this numerical value within my html form as something that gets sent to the script that inserts it into the database? I assume I need to use GET or POST but I don't understand...