Hello,
I am creating a counter for unique number of visits on a post, so what I have until now is a table for storing data like this;
cvp_post_id | cvp_ip | cvp_user_id
In cases a registered user visits a post, for the first time a record is inserted with cpv_post_id and cvp_user_id, so for his next visit I query the table and if th...
I have a section of my website where I will have forms. I only want people who have registered with the site to be able to use these forms so that I only have serious customers using them.
So what i want to have is a way that people can register on the site and once registered the area with the forms will be available to them and I will...
what '6k views' mean and how i can make this number format by php
...
Hi , I would like parse data from google maps geocode version 3 through json. I would like to get details like locaityName, AdministrativeAreaName and status code. May I know how to parse these data? Thank you
...
Hi
Actually my code is---
function addElement(url,imagePath){
alert(url);
alert(imagePath);
var container = document.getElementById('sncs');
var new_element = document.createElement('li');
new_element.innerHTML ="<a href='#'><img src='"+imagePath+"' alt='' title='' width='466' height='165' onClick=\"javascript:addWidget('"+url+"')...
I need to preserve tab characters from a textarea through POST Data. It seems that there's no way to differentiate tabs from spaces in the $_POST array, and this is really frustrating me.
I'm using a jQuery plugin from here to allow for tab and shift+tab usage within a textarea.
http://teddevito.com/demos/textarea.html
The jQuery plugi...
Hi all. Basically, I was doing some testing using apache bench. The file i was testing takes 2 seconds to execute (its optimised, it connects to an external server hence the slowdown)
Basically I found that the more concurrent useres i emulated, the more executions of the file i could do per second.
Is there anyway that i can do someth...
Hi
Been kind of stuck on this one for a while now, so any help would be appreciated. I have one array (left) that contains a list of elements, the goal is to sort another arrays (right) keys with the values from the left array.
The left array
Array
(
[0] => ID
[1] => FirstName
[2] => LastName
[3] => Address
)
The rig...
i want to delete the following type of expressions from my script.
<a any text here>nothing or space here</a>
i can do it by three functions, but i think there is a way shorter.
could you help me?
thanks in advance
...
I have an XML which uses the XPDL standard (which has an XML schema). What I'm trying to do now is to convert its content to RDF format (serialized in XML), in terms of a certain ontology. Clearly, there needs to be some sort of mapping here. I would like to do this using PHP. The thing is, I have no idea how to do this best. I know how ...
In PHP, While using a switch case loop, can i use the for loop for iterating the cases?
for example
switch .....
foreach($xyz as $abc)
{
CASE:$abc
}
default;
UPDATE
I am fetching the value from DB, this value is name of table, by using "case" I want to execute a particular query according to the table name..
Is this possib...
Hi there.
I need to know, where from is my script used (it's for sale, and i don't want any thiefs).
I want to write on my server in file, IP of user, domain where from script has been runned, date, etc. I've tried fopen, fwrite, but is_file_writable returned that it isn't. File CHmods are 777, it parent catalog has too 777 chmods.
Now...
Hi
I have an array result like this,
example 1:
Array ( [0] =>15 [1] => 16 [2] => 17 [3] => 18 )
example 2:
Array ( [0] =>15 [1] => 16 [2] => 17 [3] => 18 [4] => 18 )
The first array ends at array[3]
The second array ends at array[4]
How to calculate where the array ends
Is there any function to calculate this
...
Hey! I just want to know your guys opinion on using join tables within the zend framework.
Of course you can use relations by defining a referenceMap and dependentTables and stuff, or using
setIntegrityCheck(false)
within a db select(). The setIntegrityCheck version seems a little bit dirty to me, but the other version is not very s...
Hey,
I have been given an SWF to edit a link in the AS code.
The fact is the SWF uses some XML that is generated (actually retrieved) by PHP code from a database.
menuXML.load("/sub/page/dynamic.php?genre=" + genre);
so the point is we can use the same SWF 'mainfraim' and fill them with different animations/sources based on the link ...
StackOverflow is telling me this is a subjective question, but I think it's a matter of fact!
I have a number of scripts that I'm using on different parts of my site. In terms of making fewer http requests, I know it's better to combine all of these scripts into one .js file. However, isn't a waste of time for a page to call a .js full ...
Programming languages/environments aside, are there many developers who are using a framework in PHP, ORM and still abide by encapsulation for the DAL/BLL? I'm managing a team of a few developers and am finding that most of the frameworks require me to do daily code inspection because my developers are using the built in ORM.
Right now...
I want to upload multiple files and store them in a folder and get the path and store it in the database... Any good example you looked for doing multiple file upload...
Note: Files can be of any type...
...
i have installed on my computer WAMP with PHP 5.2.9-2. I want to install php_tidy and i have read some tuts over the internet and i found out that i have to uncomment this extension=php_tidy.dll in php.ini, the problem is that i can't find that line.
...
Warning this is lenghty! attack if you knowledagble. well at least more then a newb beginner like me.
This script uses three files as detailed below. It is suppoed to create the database and fields from the form input. It gets to the end and shows my_contacts has been created!. But when i go into phpMyadmin the table has not been create...