Ok, so I'm having a problem with a simple textarea. I'm using a kind of hidden page to easily encode some data using JSON. However, all of my text input is automatically being escaped somewhere and I don't know where. All of my $_POST variables are automatically run through the htmlentities() function when the script starts up, as seen b...
Hello,
I am new to this, I just reading about how I should not edit code on the live production server. I don't know anything about source control or SVN.
I would like to start coding on a test server then once everything is confirmed working, I want to send all the files over to the production server.
How should I go about this? I ...
I have a couple of things I'm working on, namely a page that issues five or six cURL requests and processing content on them.
I'm working with CodeIgniter on a LAMP stack but am open to other options. Naturally I would prefer to not rewrite the application.
I would like to know if there are any ready-made / easily learned caching metho...
I am developing online shopping website, In shopping website all product are priced in Indian Rupees(INR). I am going to integrate My shopping cart to paypal payment gateway.
I knew that pay pal does not support INR. So i have to convert INR to USD.
Is there Any API service to convert INR to USD as automatically ?, If yes, give the detai...
On login:
$result = mysql_query("SELECT `id`, `username`, `email` FROM `users`
WHERE `username` = '$username'
AND `password` = '$passwd'");
$userdata = array('id','username','email');
$_SESSION['user'] = mysql_result($result, 0, $userdata);
And when I want to print the users username:
echo $_SESSION['user']...
here is the code
FB.ensureInit(function () {
var session = FB.Facebook.apiClient.get_session();
FB.Connect.requireSession(
function(){
console.log('connected');
var fbml = getIviteForm();
var dialog = new FB.UI. FBMLPopupDialog("Weblings Invite", fbml) ;
...
any solution to this ?
#!/usr/bin/php -q
<?php
set_time_limit(2);
sleep(5);
echo "it didn't work again";
...
hai everyone........
I am trying to generate dynamic menu according to the user permission given with ACL component in cake php..
ie., if a user logins, i need to check which all actions are permitted for that specific user and according that list of actions i need to generate menu
can any one help me to get all the permitted actions ...
Hi everyone,
I looked through the related questions for a similar question but I wasn't seeing quite what I need, pardon if this has already been answered already. In my database I have a list of records that I want represented to the user as files inside of a folder structure. So for each record I have a VARCHAR column called "FolderS...
hello folks........
In many tutorial of Acl component in cakephp
i got instruction that add component either in AppController or in all the other controllers which inherits AppController.......
but problem is
var $components=array('Auth',Acl);
when i use the above line in AppConroller i cant use the Auth or Acl component...
but wh...
What does the below query explain?
SELECT * FROM `jos_menu` WHERE (id = 69 OR id = 72)
I know its very silly question, but sometimes easy things creates mess in my skulls interpreter.. Pls help
EDIT
Its giving me record for both IDs, why is it doing so? It should five me the record for either 69 or 72....
...
hi,
i want php script for currency conversion
help me please.....
...
I'm playing around with encrypt/decrypt coding in php. Interesting stuff!
However, I'm coming across some issues involving what text gets encrypted into.
Here's 2 functions that encrypt and decrypt a string. It uses an Encryption Key, which I set as something obscure.
I actually got this from a php book. I modified it slightly, but n...
I have this code in userpage.php:
<script langauge="JavaScript"><!--
function newWindow(fileName,windowName) { msgWindow=window.open(fileName,windowName); }
//--></script>
<a href="javascript:newWindow('1.html','window1')">Logout</a>
And this code at index.php:
<script language="JavaScript"><!--
function newWindow(fileName,windowNam...
Hi all, im posting data using jquery/ajax and PHP at the backend. Problem being, when I input something like 'Jack & Jill went up the hill' im only recieving 'Jack' when it gets to the backend.
I have thrown an error at the frontend before that data is sent which alerts 'Jack & Jill went up the hill'.
When I put die(print_r($_POST)); a...
I've recently posted here http://stackoverflow.com/questions/2627645/accessing-session-when-using-file-get-contents-in-php about a problem I was having and the general consensus is that I'm not doing it right... while I generally think "as long as it works..." I thought I'd get some feedback on how I could do it better...
I was to send ...
I want to run a php script from the command line that is always running and constantly updating a variable.
I then want any php script that is run in the meantime (probably but not necessarily from the web) to be able to read that variable at any time.
Anyone know how I can do this?
Thanks.
...
hello all,
i want to convert flv video(downloaded from you tube) to any other format, i had search a lot, but every script changed any other format into flv while i need flv to any other format. please suggest me any link or php script that convert flv to any other format.
one more question :why flv is preferred for video??
...
I have 3 tables I need to join. The contracts table is the main table, the 'jobs' and 'companies' table are extra info that can be associated to the contracts table.
so, since I want all entries from my 'contracts' table, and the 'jobs' and 'companies' data only if it exists, I wrote the query like this....
$sql = "SELECT * FROM contr...
My end objective is to index documents using lucene. As lucene doesnt support indexing other formats. I want to convert these files to txt/html (lucene indexable file types).
I have a set of documents almost 1000 files of ppt, pdf, doc, xl etc
Please help me
...