Hi,
I have a Codeigniter site which was working perfectly fine on centOS server. But from yesterday the site is not able to detect the query string and I'm getting 500 server error. The same code is working fine at localhost but at the CentOS server its giving error.
I'm using clean URL but for Jquery's Autocomplete I need query stri...
I'm trying to make a page where, when a form is submitted, it returns to the page from where the form was called from. Normally, I'd just set the form action to basename($_SERVER['SCRIPT_NAME']); and it would work fine. The problem that I'm having is that the form on this page is now being called from a url like www.yaddayadda.com/articl...
I'm trying to figure out how to add a total line to the bottom of a grid listing in the magento admin.
Does anybody have any ideas?
...
Hi all.
I've written in PHP a script that takes a long time to execute [Image processing for thousands of pictures]. It's a meter of hours - maybe 5.
After 15 minutes of processing, I get the error:
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: The URL which I c...
I just started using Netbeans to debug PHP apps, but when I inspect any object it has the CLASSNAME printed over and over, making it very difficult to understand the contents of an object. See the image below to see what I am talking about. Anybody know what is going on?
Here are some details that might be important...
Netbeans versi...
I know that this has been asked and answered before, but for the life of me I cannot find where I am going wrong. My code is below.
$backa = array("1", "7", "8", "9", "12");
$backaa = implode(",", $backa);
/* code to create connection object $wkHook */
$getOpt=$wkHook->prepare("select movementId, movementName from Movement where moveme...
I have a PHP photo gallery that reads the GPS coordinates from images. I'd like to modify it to use the coordinates and include a google map on the photo page. Is there a simple way to display a google map on an HTML page by supplying just this pair of information?
Thanks.
...
When users input their images, their images are any size. I want to be able to resize all the images to a specific dimension. Is there a function that allows me to do that in PHP?
thanks
...
I've asked about strtolower function. But when using foreign characters it doesn't convert them into uppercase, so I must use:
mb_strtolower($a,"utf8");
But what can I do, if I want to use ucfirst() function? I haven't found any similar function, where I can set encoding type.
...
Hi,
Is it possible to make restful services with kohana 3 , i reviewed the source and found an abstract class Kohana_Controller_REST, how to use it ? If someone can post a snippet with routing as Example code, it will be very appreciated.
Also, the lack of documentation on KO3 is making me crazy, if someone knows a well documented, fa...
Why would a programmer need to use the function? How would the same results have been achieved in php 4?
...
Hi all,
We're slowly porting some code away from MySQL specifically to MDB2. Generally, it's going pretty well. Where we are really hitting snags, though, is with the date/time/interval 'mathematics'.
For example, if I wanted to grab "an hour from now" from MySQL, I use: SELECT (NOW() + INTERVAL 1 HOUR);
To do it in Postgres, I need t...
My google-fu is weak today... I'm looking for a way to dynamically print the url of an OSC site in some of the header/footer and sidebar files.
...
I am trying to copy data from my MYSQL table to SQL Server using PHP.
I have a TimeStamp value that needs to be copied. While I am trying to copy the fields,
it gave an error that timestamp value cannot be inserted.
Is there any way to insert the timestamp value?
Is it is not possible, then declaring the column as nvarchar will inser...
I really have NO idea of what to do with this now, i have been staring at it for hours, and reqritten it.. i can't get it to work!.
require_once("Abstracts/DBManager.php");
require_once("UI/UI.Package.php");
class BlogDBM extends DBManager
{
private $table = "blog_records";
function saveRecord($title,$url,$desc,$feedId,$pubDat...
Hi guys, I built a simple social community website for a client - the client would like to add in a forum and he likes Simple Machines Forum. The website I built has its own users management system. The client would like SMF on his website and at the same time when a user is logged into the website they don't need to log into SMF website...
I am having a bit of trouble. It does not seem to be a big deal, but I have created a page that the user can edit a MySQL database. Once they click submit it should process the php within the if statement and echo 1 record updated. The problem is that it does not wait to echo the statement. It just seems to ignore the way I wrote my if a...
I have a setting in my theme that allows the site owner to set the maximum number of posts ($maxPosts) to display in a "Recent Posts" menu. I'm using a custom script to generate the recent posts (because the Recent Posts widget does not highlight the current page, which I need for my css).
My menu also is set up to display a "View All" ...
This is the way I am currently doing it.
<?php
//show footer
echo "<script type='text/javascript'>\n";
echo "alert('Congrats');\n";
echo "</script>";
?>
Is there a better way than just to echo it?
...
Hello,
I want to decide which of this would be a more viable career option?
I am ready to quit my current job and hence I am looking for new opportunity. Current job is maintainence and no more active development.
My current role is of a PHP/MySQL Developer. I very well understand web-programming and am comfortable with RoR/Sinatra/Z...