Here's the story:
I have moved to a new job 3 months ago. The development team consists of 5-6 people, with one lead developer.
All of the projects here are "one-man-jobs", there are no tasks requiring teamwork, everyone works on their own.
Management wants us to use an in-house framework, so that the projects where there will be more t...
For some reason i get a £76756687 weird character when i type a £ into a text field on my form?
...
I know this has to be a simple fix and I partially understand why I am getting this error but don't know how to fix it. I've looked over the docs but can't find a solution other than using buffered queries option. I have tried that as well but it doesn't work.
The error is: PDO Cannot execute queries while other unbuffered queries are a...
I am setting up a site using PHP and MySQL that is essentially just a web front-end to an existing database. Understandably my client is very keen to prevent anyone from being able to make a copy of the data in the database yet at the same time wants everything publicly available and even a "view all" link to display every record in the...
I am working on a search/tag system. My original query I wrote was for when I was storing 'title', 'description' and a comma seperated 'tags' column in my article/video table. I have since realised the advantage of normalising my tags. I now have three table to deal with...
tbl_Articles
article_id
title
description
content
tbl_tag_i...
I know this has to be a simple fix and I partially understand why I am getting this error but don't know how to fix it. I've looked over the docs but can't find a solution other than using buffered queries option. I have tried that as well but it doesn't work.
The error is: PDO Cannot execute queries while other unbuffered queries are a...
I had PHP 5.2.2 installed on a previous box (also WinXP Pro sp3) and had gotten the SSH2 extension from http://pecl4win.php.net/ext.php/php_ssh2.dll. Sadly that server seems to be out of commission for now ("The pecl4win build box is temporarily out of service. We're preparing a new build system."). The old DLL doesn't work with the ne...
I'm a novice with OOP, and I'm having trouble grasping the necessity of a getter method.
In the example:
class foo {
$this->bar = "test";
}
$foo = new foo();
echo $foo->bar;
What are the potential pitfalls in this situation, assuming I'm using a setter method to properly validate an updated value?
...
I'm using session_cache_limiter() and session_cache_expire() at the top of my PHP 5.1.0 script, just before my session_start().
From PHP help:
[...] you need to call
session_cache_limiter() for every
request (and before session_start() is
called).
But what if I don't call session_start()? Will session_cache_limiter() and ses...
Hello all,
I am in the process of writing the final stages of a checkout module using the FirstData Global Gateway API for a client. All the form views for data entry have been created and the controllers are successfully communicating test data with the FirstData webservice.
I am looking for thoughts on best practices on how to struc...
i want to import data from excel file using php.
and then if possible to save it mysql database.
Thanks
...
I need some help in planning out how to do my classes in PHP. I have a session class and a database class that I pretty much need to access inside of every other class I use (forums, mail, users, lots more classes)
So I am looking for how I should access the session class inside of my other classes, 1 option is to make it GLOBAL, ano...
Hello,
First of all, I do not want to extend a class. I would ideally like to do this.
public function __construct() {
/* Set Framework Variable */
global $Five;
$this =& $Five;
}
I have a system where the variable $Five is a container class which contains other libraries. I could assign this to a local variable of Five... i.e.
p...
Hello!
In my php + javascript project i have to show images and some of then have accents,
like ~ ç and ^.
My site are not showing these images.
I know that there is a function to treat this, but i forgot.
Somebody can help me?
thank's
...
I am trying to perform a query in a PHP script. The query works fine in my MySQL client however it does not seem to working within my code. I am using PDO. I am thinking it might have limitations, because it seems to work fine with a less complicated query.
Here is the query:
SELECT D.status, D.createdBy, D.createDate, D.modified...
I have a table called "talk", which is defined as abstract in my schema.xml file.
It generates 4 objects (1 per classkey): Comment, Rating, Review, Checkin
It also generates TalkPeer, but I couldn't get it to generate the other 4 peers (CommentPeer, RatingPeer, ReviewPeer, CheckinPeer), so I created them by hand, and made them inherit ...
I have multi-language website in Drupal, but not all content is translated. I want the language switcher block to appear in a content page only if there's a translation for that content.
The language switcher block uses the function translation_path_get_translations to get the path of the translated version of the content being viewed. ...
Good day!
I'm Googling it second day already, but haven't found anything relevant, so that's my last chance before I'll start to reinvent the wheel :)
In ASP.NET I use generic tree classes, something like this: http://www.codeproject.com/KB/recipes/phSharpTree.aspx
Of course PHP lacks generics :), but I just want a class which give m...
Hi, I am trying to load content from a remote URL in my php code. There are two restrictions:
I need to use the dedicated server IP I have so the REMOTE_ADDR of the other server has to be my dedicated IP. This eliminates Curl because Curl uses a proxy to load the remote URL and the proxy changes the IP address which does not work.
I ne...
All,
I have the following JSON Data. I need help writing a function in PHP which takes a categoryid and returns all URLs belonging to it in an array.
Something like this::
<?php
function returnCategoryURLs(catId)
{
//Parse the JSON data here..
return URLArray;
}
?>
{
"jsondata": [
{
"categoryid": [
...