Consider the following schema with users and their collegues (friends):
Users
User:
columns:
user_id:
name: user_id as userId
type: integer(8)
unsigned: 1
primary: true
autoincrement: true
first_name:
name: first_name as firstName
type: string(45)
notnull: true
last_name:
...
Hi all,
The question is quite simple : I have a controller plugin for Zend Framework.
Should I put it in the "library/Plugin" folder, or in "application/plugins".
(btw for now it is in library/Plugin but this works on Linux and Mac Os X, but not Windows so i figured maybe that is not the right place)
Thank you
...
HI guys - I have a problem with maintenance of my php based website. My website is built on the Zend Framework. When I wish to upload a new copy or version online - during the time of upload especially when crucial files like models and controllers ar ebeing uploaded and rewritten - the site won't run understandably.
Is there a way to u...
Hello Everyone,
I was working on a site of Cakephp which was successfully delivered.But recently Client again appered and asked me to put the Wordpress blog in it,to cover up the Blogging thing in his site.He wants to share the authentication between the Cakephp and WP.Whoever registers in his site,then Logins in it and if he clicks on t...
I am in the midst of setting up the development environment (PHP/MySQL) for my start-up. We use three sets of servers:
LIVE - the servers which provide the actual application
TEST - providing a testing version before it is actually released
DEV - the development servers
The development servers run SVN with each developer checking out t...
Hi,
I wrote a little search script for a client, it works and words get highlited, BUT...
Imagine this situation:
search term: test
found result: Hello this <a href="/news/this-is-a-test">is a test</a>
In this example both 'test' in the href part and between the <a> tags get highlited, breaking the link.
How could I prevent this?
...
Hi guys, I have a freelance job for a php site. The client isn't a tech savy guy he says he would like to have internet radio on his website as well. Now the thing is that when we speak of internet radio what are we actually talking about? My client himself has no idea of what internet radio is aside form listening to streaming mp3s on a...
Hello,
Right now I'm trying to create my own tiny MVC (just for practice and for understanding MVC pattern details). I'd like to cache parts of pages (dropdowns, lists etc.) and I don't know what is the best way to organize it.
Let's imagine that I have PostsController with method getPostDetailsShortly($post_id).
This method could look...
I have a script that takes a while.
I'd like to display a page during the processing of the script then redirect when the process is complete.
E.g.: form.php -> processing.php -> display_result.php
I would like that processing.php is displayed immediately after form is submitted showing (Processing your information, please wait...)
O...
Hi all,
I want to check that the credit card number provided by customer to my site is valid or not for further transaction. for that i wand to only verify taht the CC no is valid or not by Paypal.
A method for that can be with paypal api
step 1: DoDirectPayment with PAYMENTACTION=Authorization for amt of $1, then
step 2: DoVoid that re...
Hi
I'm about to implement a feature on my website that recommends content to users based on the content they already have in their library (a la Last.fm). A single table holds all the records of the content they have added, so a row might look something like:
--------------------
| userid | content |
--------------------
| 28 | ...
Hello,
I would like to install Jobberbase in my website. I have a hosting plan with JustHost.
Any easy step by step guide to install this job board would be greatly appreciated?
Many Thanks!
...
Hello Friends,
there was a web application, that you could configure so that
over the api, your app could post the error logs into that
application.
it was a paid service and the free version allowed you to do like
1 report a minute.
if any of you remember this service, please post it as an answer.
thank you :)
...
Hi all,
I have a controller that is called with AJAX (sends JSON data), so I don't use a view.
I need to use a personnal view helper to format my data, but in my controller.
Is that possible ?
Or maybe I am doing it wrong (maybe I should have a view, but how with JSON) ?
...
I have am working on a web application that makes use of helper classes. These classes hold functions to various operation such as form handling.
Sometimes I need these classes at more than one spot in my application, The way I do it now is to make a new Object. I can't pass the variable, this will be too much work.
I was wondering of ...
i have a file dk.po and dk.mo ind folder lang in my webdir.
how can i use this file? i have try all, but i can't relly get it to work.
pls help me.
// Lang
putenv('LC_ALL=dk');
setlocale(LC_ALL, 'dk');
// Specify location of translation tables
bindtextdomain("dk", ROOT .'lang');
// Choose domain
textdomain("dk");
Tanks a lot.
...
Why is === faster than == in PHP?
...
i want use some data from a website with web service.
i have a username & password and i dont know how can i use webservice
...
Hi all,
I want to integrate FCK editor instead of text area filed in social engine .tpl file.
Does Any one know ?
How to integrate?
...
I am using codeigniter framework.
where should i sanitize PHP input - controller or model ?
...