I have a very simple PHP form, which shows a checkbox, and will store if it is checked or not in a database. This works for the initial inserting, but not for updating. I have tested cases where $saleid equals $pk and it does not enter the if branch to update...why?
<?php
error_reporting(E_ALL);
if (isset($_GET["cmd"]))
$cmd = $_GET[...
I had an issue playing with Gallery when I changed a setting. However, I noticed there is a pattern to the error:
The URLs look as such:
main.php/d/number/name.jpg
"number" is dynamic (ie "9496-2")
"name" is dynamic (ie "all+clad+7pc+b")
Everything else is static.
Unfortunately, when I made the setting change, the "number" portion t...
Cross-site request forgery (CSRF or XSRF) attacks provokes unauthorised actions in your web application by users you believe to be trusted.
That is surely something we would like to prevent, and I am particularly working with Zend Framework. Is there a Zend Framework approach to prevent CSRF/XSRF?
...
I have a C# application that communicates with a PHP-based SOAP web service for updates and licensing.
I am now working on a feedback system for users to submit errors and tracelogs automatically through the software. Based on a previous question I posted, I felt that a web service would be the best way to do it (most likely to work pr...
I need to write a PHP script to telnet to a router, run a command and fetch the results. does anyone know a telnet connection library in PHP?
...
I am trying to figure out how to add a custom file type to be recognised by Netbeans.
I am editing .tpl files and I would like them to be recognised as PHP/HTML files.
I've looked here and here but I cant find cnd.properties in config directory and there is no Advanced Options dialog in the options dialog.
I'm using Netbeans 6.5 with ...
i would like to make a search with city/state or Zip within a 'X' distance . The corresponding results will be viewed in google map.
is there any help regarding this?? i need it very urgent. Please help!!!!
...
HI, I have a debian server.
I am using xmpphp library for bot development.
When i create a bot using xmpp file its working fine but when i try to use bosh it generates a fatal error.
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/testlib/XMPPHP/BOSH.php:75
Stack trace:
0 /var/ww...
Hello everyone I am trying to resize an image of 700kb with imagecreatefromjpeg.
This gives the error: Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 9356 bytes)
First the memory_limit was 8M then we set this to 24 M but then it still gives the error.
Is this a memory leak? What could have happened? We...
<?
$MySQLPassword = "indian";
$HostName = "localhost";
$UserName = "monty";
mysql_connect($HostName,$UserName,$MySQLPassword)
or die("ERROR: Could not connect to database!");
mysql_select_db("sachin") or die("cannot select db");
$keyword = $_POST['keyword'];
echo $keyword;
/* Execute the query that...
Hi guys, I'm working on a community based website using zend framework - but its so slow it takes a while for pages to load. I would like to know what aspects of the zend framework should I look into to ensure it runs much faster.
Any tips and help would be greatly appreciated :)
Nice advice - I took upon the database and indexed it ...
I think I saw someday a way to create a link without sending the page that the user was in originally. Is that possible? Or do we need to use a redirector to hide the location of the previous site?
EDIT: If you have an idea for a server-side option to anonymise the link you're welcome.
...
On ResultEvent through HTTPService, i need to print the result in a textBox.
private function google(evt:ResultEvent):void
{
Alert.show(evt.result.loginsuccess.person);
subtitle.text = evt.result.loginsuccess.person.keyword;
}
This is my XML coming down from PHP file... [index.php]
<loginsuccess><person><keyword>java</ke...
Hi!
I'm using symfony 1.2 with sfguard 1.4.1.
what's the best practice to register a new user to the system?
10x
...
I am trying to code a function which creates a dropdown of school names selected from a database. It is doing fine creating a dropdown but it is not putting anything in the dropdown. Here is the code:
function schoolDD($name, $selected){
$select = '';
if( $selected != null )
{
$select = $selected;
}
$qry = "selec...
I have the following PHP form, which posts back to a mysql database. My problem is that the update query seems to work, but is always overwritten with "checked". What I want to do is check is get the current value from the database, and then if there is a value in post, get that instead. Now...why is this not working? Do I need to have a...
Hi guys, I'm new in Zend Studio, and a new developer of PHP.
Now, I have easy question, I have created a project in Zend Studio, New -> PHP Project but then the newly created project didn't show up in the PHP explorer mini window.
I changed the Directory to opt/lampp/htdocs/tutorial. Thats the fault, and I want to know how to change th...
I wish to run PHP and Erlang on a web server. Apache is ruled out, because the backend Erlang process would need to handle around 3000 requests concurrently. So definitely something with a smaller memory footprint like lighttpd...
Which one would you recommend? And why?
...
I'm using Smarty and utilizing the config_load respective {#VAR#} variables to implement localization. This is working perfectly fine as long as the content is within the templates, but fails as soon as I have to add dynamic content within the TPL file, i.e. with:
{if isset($var) }
{foreach from=$var item=line}
{$line}<br>
...
Hi I have a image table in my database. These are stored as blob along with details such as image type & name.
I am having a problem showing the image, all I get is a white box with a red cross in it.
code:
<?php
include '../connection.php';
$ID = $_GET['id'];
$query = "SELECT * FROM `images` WHERE `image_id` = '$ID'";
$result=mysq...