Hey, so my form is where you register you as a user. You type in 2 fields then press next and then 3 new fields come and then it runs the action="index.php?register=yes".
Now as you can see i highlighted "then press next" thats because, maybe some users just press enter after typing in the last field, and then it runs the action. But i...
I want to build a phone app using phonegap that can access data on a mysql server that is backing a cakephp app. Can this be done, if yes then how can use phonegap to access data from a mysql server?
...
Hello. I have a website that has members. I want to create a feature that is a real time (with out page load ) counter of how many members are signed in. I have the signed in user in a variable so I'm looking for someway to incorporate it using that. Anyone know of a good plug-in or Jquery script to do this?
thanks in advance
...
I'm trying to implement a class I've written as CodeIgniter library.
Somehow I can't get CI's load() method to pass multiple arguments to the class's constructor function.
My class is designed to get 3 arguments, 2 arrays and one optional string.
The constructor looks somewhat like this:
public function __construct($array, $array,$st...
hey guys im trying to save a url link in a html form but problem is i cant save urls like this :
modules.php?name=phpBB3&file=memberlist
but the result after using jquery is this url :
modules.php?name=phpBB3
i heard i should use json but no idea how to do that
...
I'm following a drupal 5 tutorial that advises to get the Admin Role module. Is this module still useful for drupal 6?
Part of the drupal 6 installation is the creation of an admin account. What does Admin Role do? Does it work on that account and improve it somehow, or does it create an entirely different admin account?
...
I'm in the process of a building an access control system as part of a web framework I am developing. I want to make it super flexible and awesome. Can you help me by providing input and insight on my design? Here is my work so far (my specific questions are at the bottom):
Users
Users have a username (32 characters, no spaces) and pa...
I'm building an app where each user can have multiple profiles. Users can upload multiple photos for each profile, etc.
The folder structure will be something like
public_html/
upload/
user-123/
profile-199/
profile-321/
images/
123423.png
I'm going to have a one to many relationship be...
I have something that I thought was a relatively common problem, but after researching the issue, it appears not to be as easy as thought.
I have a CakePHP application (using version 1.2.7) and I am trying to change the standard login procedure using the Auth Component. I would like to use a persistent login screen ( like this Jquery p...
I'm working on a pretty simple page for my "internship." I can't go into much detail, but I can say that it involves sheep, lasers, and everything you've ever wanted. Anyways, I'm trying to get it so that the background changes depending on whether the sun is out or not. I have a function working properly to determine whether it is dayti...
I have a website which has .htaccess rewrite rules. And alot of them.
This means for example that
www.mydomain.com/classifieds/something_very_very_very_very_Very_very_looong.php?id=12345
becomes
www.mydomain.com/classifieds/12345
Now, this might be a stupid question, but I must be sure...
I have followed several guide...
I'll try to illustrate what I mean with an example.
Say you are running a site that has users and allows posts.
You have a list of users and each user has:
a name
a password
choice of theme
POSTS:
- title of post
- time/date of posting
- post ID
- array of tags for the post
User ID/name/pass/theme is easy. Each variable can be a c...
Similar to these two threads
www.stackoverflow.com/questions/3458076/how-to-use-javas-built-in-javascript-engine-to-run-script-on-a-web-page
www.stackoverflow.com/questions/3443769/how-do-i-get-this-page-programatically
I am trying to get the lyrics via php.
www.lyricsplugin.com/winamp03/plugin/?artist=Linkin%20Park&title=Numb
So I ...
I am trying to run a PHP bot function in a Safari extension.
This is the HTML code I've tried to put together, but it's a mess of PHP, cURL, and HTML, and I don't really know what I'm doing.
I've never attempted to use cURL before I got this code from http://www.barattalo.it/2010/08/09/send-push-notification-to-iphone-with-php-and-push...
I'm currently using file_get_contents() to fetch the contents of a page which is sort of like an Authentication API. It works great for the default system which most people use (which just uses the default HTTP/1.1 200 status code), but some people send relevant HTTP status codes for different errors. For example 401 PASSWORD_FAIL, in wh...
I guess there may not be any difference but personal preference, but when reading various PHP code I come across both ways to access the methods class.
What is the difference:
class Myclass
{
public static $foo;
public static function myMethod ()
{
// between:
self::$foo;
// and
MyClass::$fo...
I am developing a system where i need this:
I have various rows on one table, and one of them is Total
I want the script that can add the total of all the fields in the Total column.
I will then add the session user so that it only calculates all total fields in that column for that particular person.
You can get me the query: Exampl...
Trying to figure this out. I am trying to execute a perl script within php, using shell_exec() like so:
<?php
$output=shell_exec("./tst.pl > test.txt");
//$output=shell_exec("./tst.pl");
echo $output;
?>
It will not write output to a file using ">" filename.txt.
It will work if I execute without directing it to a filename as I can con...
I'm using imagecache with an image gallery for drupal. When the field is set to an imagecache preset that links to the original image. I want it so that when the preset image is clicked, the original image loads in a new tab. How can I add the target="_blank" attribute to an imagecache preset?
...
I run a digg-like website that promotes content to the front page when it reaches a certain number of votes. Right now it doesn't take date submitted into consideration.
I'd like to use a simple algorithm that just uses the number of votes and the date submitted to determine whether something should be promoted. I don't want the algorit...