Hi All,
Right now I am working on one Real Estate Website, In that website I am using RETS Service to get property data.I want to replicate that data to my local server so, I am stuck with database design for replicate that RETS data.I want sample DB for RETS data handle or help me how to make database for RETS data replication?
Help m...
i have a code
<div class="b4_content">
<div class="col_left3 FloatLeft">
<h3>Clients / Projects</h3>
<div id="left_menu" class="left_menu">
<?php
require("admin/Connection/connection.php");
require("admin/functions/functions.php");
$toplvl=0;
/* 1st include of...
To dynamically fill DropDown controls on my HTML Form, I have written code that makes AJAX call to a .php file. This .php file populates the DropDown control with a single column value.
In this whole process, three files play the role.
(1) A HTML file that contains the entry form,
(2) A .js file containing basic AJAX code, and
(3) A .p...
hi everyone ,
i am saving my dom xml file with
`
$dom = new DOMDocument("1.0");
// display document in browser as plain text
// for readability purposes
// create root element
$root = $dom->createElement("playlist");
$dom->appendChild($root);
$root->setAttribute('version', "1");
$root->setAttribute('xmlns', "http://xspf.org/ns/0/")...
I'm working on a query where I pull data from multiple tables using left joins like this:
$query = "
SELECT
users.name,
users.email,
address.street,
address.city,
address.state,
address.zip
FROM users
LEFT JOIN(
SELECT
addresses.street,
...
Is there a good standalone mock framework for PHP? Currently I am using Simpletest framework for unit testing. I like the framework, but I dont like how you create and setup a mock in it. I then tried PHPMock, I like how it can be used, but it I encountered some bugs that get annoying over time ... Or would it be best to switch over to P...
Hi,
I m a beginner to PHP and MySQL, I am having 3 user roles in my project:
manager
editor
mtuser
Managers account can upload files to the system.
Editors and mtusers are able to download file uploaded by a manager, they can modify those and reupload back to managers (feedback).
I am using a temp directory to store those files on...
$f="../mts/sites/default/files/test.doc";//in this way i am able to find line count,but i am not getting how i can give folder path for line counting..if i give path as $safe_filename and $target_path.$safe_filename it's coming file content not opening. Please check the code and help me out thanks in advance
<?php
$nid = 1;
$teaser = fa...
Implement multi-level hierarchies so that super user have also all rights that sub user have means super user can also manage sub-users jobs.
How design the database for this.
...
Why are certain functions in PHP (such as eregi) deprecated? I normally use eregi for email validation.
Should I use it, or is there another function that can be used in its place?
...
Hello!
For example i use this little code:
<?php
if (isset($_POST['Submit'])){
if ((@$_POST['Submit'] == 'x'))
{
echo "OK";exit;
}else{
echo "NOT";
}
}
?>
<html>
<body>
<form action="test.php" method="post" enctype="multipart/form-data">
...
On a php file that many variables are received by $_REQUEST[] or $_POST[], and I have to check them in case the value is null with the function isset(), it is quite troublesome. Is there a better solution?
...
Im using PEAR XML Serializer to generate xml results from array inputs. I found out that empty array elements are encoded like this: <arraykey/>. I'd rather prefer it this way <arraykey></arraykey>
Below are my options:
$options = array
(
'indent' => ' ',
'defaultTagName' => $this->xml_tag_name,
'addDecl' => true,
...
I have approx 50 sites that all use the exact same files other than CSS and IMAGES, i currently duplicate the files each time i create a new site and upload different css and images.
What I want do so set up each vhost to have the same DocumentRoot then add AliasMatch for the css and images folders e.g:
#Common Files VHOST
<VirtualHos...
I regularly use a standard form to send login information through the HTTP POST method and then validate it using php to check if the details are correct. I use an md5 hash on the passwords (and sometimes usernames) to give some degree of security, so I'm not storing a raw password in my code in case it's viewed by an unauthorised person...
I get Integer timestamp from PHP program, but in Java timestamps are ing Long format. So how can I convert this PHP Integer timestamp to Java Long format and convert that long format to Date object?
...
Is it possible to take this image:
And apply this mask:
And turn it into this:
Using either GD or Imagick? I know it's possible to mask an image using shapes but I'm not sure how to go on about doing it with a pre-created alphatransparent image. :s
...
I am brand new to codeIgniter.
I am very particular about urls on the sites that I develop. Is it possible to create these sorts of urls? Generally sites I develop have an integrated admin interface as well with new, edit or delete added onto the end of the url following a slash.
Here are some hypothetical examples (one with an admin ...
Hello
I develop My Php Apps with Netbeans.
If i acces a object like this $this->db->
and hit the space key it just shows me "No suggestions".
But if i acces the same object like this $this->db-
and hit the space key it shows me correct suggestions for complettiong the code.
Is this a bug a feature or is this the correct php syntax like ...
I have a simple situation where I have a user supplied week number X, and I need to find out that week's monday's date (e.g. 12 December). How would I achieve this? I know year and week.
...