hi ,
I'm using Facebook connect with php library when I use
FB.Connect.logout();
it's log the user out from my website but also it is logging him out from facebook.com
How can I fix that ?
...
im trying to show items booked between two separate date columns (start and end dates). i want to search between the dates but the query seems to ignore any dates that land between the selected dates.
SELECT
bookings.booking_id,
bookings.booking_id,
bookings.booked_from,
bookings.booked_from,
bookings.booked_till,
item_set_computer.item...
I am creating a voting system for a Q&A site project in which if a user asks a question, he/she losses -5 points; answer a question +5, vote a question +1, etc. (kind of like SO and yahoo answers)
-->To create the basic arithmetic, I have a "users_points" table that relates the user_id and their total points.
+---+---------+
| 1 | 100...
I'm working on a project for an MMO "guild" that gives members of the guild randomly generated tasks for the game. They can "block" three tasks from being assigned.
The lists will look something like this:
<ul>
<li class="blocked">Task that is blocked</li>
<li class="blocked-open">Click to block a task</li>
<li class="block...
Hi folks
I'm attempting to get a timezone of a user based on area code information that they provided. I discovered the following resource on maxmind:
http://geolite.maxmind.com/download/geoip/api/php/timezone/
I suspect that I could use this with another api that provides the state that an area code belongs to. I'm looking for a si...
Does anyone know of one? I need to test some upload/download scripts and need some really large files generated. I was going to integrate the test utility with my debug script.
...
I've very fond of mapping my models using an ORM like Doctrine. For an upcoming project, I need to allow the user to add custom fields to my models. I was wondering the best way to go about doing this?
In the past I have done this by creating a database table 'custom fields' which looks like this:
field_id->pk
field_model->ida
field_t...
Hi guys. Something very strange.
WSDL file generates fine. Here is source simple class
class SoapTest
{
/**
* Prapapapapapapap
* @return string Bls bls
*/
public function getList()
{
return "code";
}
}
Code for WSDL, Server, Client
if (isset($_REQUEST['wsdl'])) {
$ad = new Zend_S...
I've been doing a lot of calculating stuff nowadays. Usually I prefer to do these calculations in PHP rather than MySQL though I know PHP is not good at this. I thought MySQL may be worse. But I found some performance problem: some pages were loaded so slowly that 30 seconds' time limit is not enough for them! So I wonder where is the b...
I am a bit lost in all these "" and '' and . in this statement.
Basically this query is to get all the tagname from table "tag" and display them for the users as checkboxes. If they have clicked 'submit' and they missed another field(say the title of a post), it would still have the tag they chose displayed. The part I need help with is...
Hello,
how made with JavaScript+PHP+MYSQL and Google Maps API v2 dynamic load of markers?
atm I have map follow example
http://googlemapsapi.martinpearman.co.uk/infusions/google_maps_api/basic_page.php?map_id=8
but my marker_data_01.php (where are all markers listed -> look code of example) have atm 4MB and will only have more, an...
As far as file permissions are concerned, when you use a php script to unzip a tar file, who is the "owner" user of the files created?
I'm wondering if its my ftp user because I uploaded the script file? Or does apache own the file? I know their are flags to be set to preserve the original permissions which I don't want (files where cr...
I have bytes file. Now need to read it by one bytes. How i can make that?
Its possible read array and remove readed element?
...
Hi, is it possible to use the fetch_all(), fetch_assoc() etc. from the the MySQLi_Result class with a prepared statement from the MySQLi_STMT class?
I've done it using the query() method in the Mysqli class (and by escaping trough mysqli_real_escape_string()), but not using statements with binding parameters.
I'm considering using PDO
...
How to put Multiple emails into the Input object with style (Windows Live and Facebook Like)?
Like the image above:
...
Hey All!
I am currently running into some problems with user's downloading a file stored on my server. I have code set up to auto download a file once the user hits the download button. It is working for all files, but when the size get's larger than 30 MB it is having issues. Is there a limit on user download? Also, I have supplied my ...
Hello everyone,
I got a problem with cake's model architecture.
I got a Users-Model and a Metas-Model. Here are the model codes:
Users:
<?php
class User extends AppModel {
var $name = 'User';
var $validate = array(
'username' => array('notempty'),
'email' => array('email'),
'password' => array('notempty')
);
var $dis...
i want to write a script which post a form automatically.
it is not a spammer!
there is a picture field in form.
i want to write the script with php and using curl() function.
how can i implement file uploading?
and is the php suitable for this purpose? i mean form posting?
...
Hi,
I'm working with Symfony 1.2. I've a view with a list of objects. I can order them, filter them by category, or moving to the next page (there is pagination). Everything is done with AJAX, so I don't have to load all the page again.
What I want to achieve is to have http://urltopage#page=1&order=title&cats=1,2 for example; ...
I'm attempting the conversion from Eclipse PDT to Netbeans PHP, and so far I'm really impressed. What would make things perfect is being able to open up a file structure in the standard windows explorer.
Say I want to copy in a data file I've just tweaked in another app, or downloaded from a remote server, I have to navigate manually to...