I was just wondering if i can find php backend which can be used as alternative to poedit to enter translations.
Sometimes we need update view files directly to live server and its painful to download all source to local machine and generate .po files and translate them using poedit and upload again. Can anyone help?
...
Hi All and thank for looking.
Is the following code vulnerable and how?
How would I sanitize the code to make it safe?
<?
$pname = $_GET['product_name'];
$sql = "SELECT * FROM products WHERE product_name='$pname'";
$result = mysql_query($sql);
$myrow = mysql_fetch_array($result);
$pid = $myrow['product_id'...
I am working on a small MVC "framework", which will simply provide a more organized workspace for me, as I've found I love CakePHP but only for it's organization. Now, I'm trying to replicate the layouts (which contain <?php echo $title_for_layout; ?> and <?php echo $content_for_layout; ?>,) and I'm curious how I would be able to load a ...
Hi, is there some Javascript/CSS snippet or perhaps another solution to parse PHP source code intended as content on a web page so that it has highlighted elements for commands, variables, brackets etc?
...
Does the following include statement present a security risk?
include "pages/".$_GET["page"].".php";
If yes:
- why?
- what would be a safer approach?
...
I need to replace multiple instances of a certain string (question mark) with strings from an array. e.g. if the string I wish to replace appears 3 times and my array has a length of 3, the first one would be replaced by the first item in the array, the second by the second etc etc.
You may recongise it's quite similar to the way prepar...
Hi,
At the moment it seems I've tried every trick in the book trying to get this to work. I need some way of encoding AMF requests and then decoding the responses. At this point I don't care what language it's in, as long as it's doable and free (as in to me), however I would prefer PHP.
I don't know what other information is needed, b...
I remember when I switched from Classic ASP to PHP many years ago, and I came accross an awesome document on the net showing how the VBscript differed to PHP. It really helped me when I ported an old photo album software I made to PHP.
I was wondering if anyone knows a similar guide, from PHP to .net? If not, what are the best resources...
Hello,
I have been asked to parse a simple file which is stored as an XML file, the data is to be then put into a mysql database.
However I have absolutely no clue what to do and after looking online all the examples given seem either too complicated for my problem or not the right solution. The XML file looks like this:
<shop>
<produc...
Hello,
I am new to php, javascript and mysql. Just started 3 days ago. I have a form with some textboxes and listboxes. But now I need to save everything in a database using a INSERT query. Can anybody help me plz?
Greetings
Stijn
...
I just noticed that I am unable to increase my memory limit above the value configured in php.ini using ini_set(). I can, however, set it to any value below that and increase it to any other value below the one defined in the ini-file.
Does anyone know why this happens or how I could fix it?
...
I get the following error when setting up an Soap server with Zend Framwork.
SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in 'http://manager.sander.dev.vije.local/butler/service/soap/wsdl/1'
The link from the error seems to return the correct XML:
<definitions name="Espire_Product_Butler_Soap_Server_BusinessManager" targetNa...
In Magento you can override a block (or helper, or model, etc.) from one module in another one (most common from Magento Adminhtml module). Now I have the problem that I want to override a block that was already overriden by some other extension. Is there any way to tell magento to ignore the <rewrite> tag in some other module configurat...
Hello All,
We have a particular problem here on one of our production machine, which is running a PHP application.
We have an AJAX call that is only called at one location in the code. However, at any given time, when I have a look at the PHP activity file in Linux (suphp_log), I see that when the server freezes (for a couple of minu...
hey guys
i've been trying to work the uploadify script to little avail... it uploads all the files correctly to the assigned folder but no details of the upload are added via mysql.
any idea of where i may be making a mistake? please help.
manage.php
<script type="text/javascript">
$(document).ready(function() {
$("#u...
Hi, I read the tutorial from IBM development website. http://www.ibm.com/developerworks/xml/library/x-googleclndr/#resources
I tested successfully. Now I don't know how to insert the event Description at my event view page. Based on the code below. Only showed event id, event title. Is there a parameter like event->description ? thanks....
I want to time how long it takes the server to build a MediaWiki article. That is, the start time will be as close as possible to the time the server receives the request (not the time the client issues request). The end time will be when the server sends the page (again, not when the client receives the page).
Is there any Apache fun...
Hello all,
I think the answer to this question is no but I do not have anymore leads of the problem I am trying to figure out.
I initially had a single script that did some database queries via SQLCMD. I have now decided to initiate this script via AJAX and wait for the response. But I get a fatal error of:
Fatal error: Allowed memory...
Hello all,
I have just found out that my script gives me a fatal error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 440 bytes) in C:\process_txt.php on line 109
That line is this:
$lines = count(file($path)) - 1;
So I think it is having difficulty loading the file into memeory and counting the ...
Hello,
I'm actually working on a PHP project that will feature a user system (Login,Register,Send lost password to email,..) and I think that this may be very vulnerable to Brute-Force attacks and/or Spam (Send a password to someone's email like 1000 times, etc. use your fantasy)
.
Do today's webservers (Apache, IIS) have some sort of...