Just migrated my PHP web app to another server with a new db and now I'm trying to migrate Lucine's Index to new server. Is it even possible to move my index to another server? and can we access the search index (that is stored on one server say server A) from another server (say server B)? If yes then where can I can info about that?
T...
I am trying to use the localization features in cakephp. In app_model.php I have a method that gets the different payment methods.
function getDistinctFields($model, $field)
{
$list = ClassRegistry::init($model)->find('all', array(
'fields'=>array("DISTINCT $model.$field"),
'conditions' => array('not' => array("$mo...
OK, so we were working in the wrong directory, meh!
We have a .htaccess file that is setup to redirect some files to a php script. Now we are adding some hard files which we want to bypass this redirect. So far this does not seem to be working and we are stumped.
Below is our initial .htaccess file contents after starting the engine wh...
I'm trying to see if the user has entered a website URL into the database with the following code. If the user did not enter their website's URL, do not display anything. If the user did enter their website, display the website.
I think I'm doing it wrong.
<?php
if (!empty($url))
{
echo'';
} else {
echo'p>Website: <a href="<?php...
Does Google's Site overlay for analytics automatically work for Joomla!? If not how can I make it work.
...
I am trying to implement the pagination in php. I am using the Mysql as back end database. I am trying to implement the pagination logic.
I would be having lots of record. But the user will see only 10 at a time.
Now to show the first page, i do a
SELECT * from USERS LIMIT 10.
Now to get the next 10 and the subsequ...
EDIT: To answer some of the comments - the file extension is .php, the perspective is PHP, and it is in a PHP project. I can't use different tools because this is a school project
I have Eclipse with Web Tools (so I can do web projects with JSP). I also have to use Eclipse for my PHP development (I am using it with XAMPP, if that mat...
Hello,
I'm using PHP to handle text from a variety of sources. I don't anticipate it will be anything other than UTF-8, ISO-8859-1, or perhaps WINDOWS-1252. If it's anything other than one of those, I just need to make sure the text gets turned into a valid UTF-8 string, even if characters are lost. Does the //TRANSLIT option of icon...
I see the variable $this in PHP all the time and I have no idea what it's used for. I've never personally used it, and the search engines ignore the "$" and I end up with a search for the word "this". Not exactly what I wanted. So, can anyone tell me?
...
I am about to begin development of a new website and have been doing research on PHP Frameworks. I'm not an advanced PHP developer, but I have been developing web sites and apps (in asp.net) for a few years now.
My website will primarily be AJAX-based (using jQuery) and making lots of calls to web services. After some research, here's ...
I want to use Zend Paginator in my project with a raw sql query(not Dbselect).
I can't use Dbselect, because I have several subqueries in the main sql query.
From the manual I found that the only way is to use pagination on resulting array like this
$paginator = Zend_Paginator::factory($array);
but I have a lot of records in the quer...
Hi all,
I am just now switching back to PHP after enterprise open-source Java development for three years. Now I am tasked with updating our platform for better logging.
I now understand better how the PHP object lifecycle regarding when objects are garbage collected and have trapped my problem. I am trying to invoke the logger after...
I have a large static table which is generated by a cgi script from a tmp file to a php file.
If it outputs
<td> </td>
Can I remove these with output buffering.
...
Here is my existing query:
$Pareto = mysql_query("SELECT
zsca_open.tqs_batch_num AS 'Batch Number',
ft_tests.test_name AS 'Test Name',
(SUM(ft_stats.over_filter + ft_stats.under_filter)) AS 'Failures'
FROM
((zsca_open INNER JOIN ft_header ON zsca_open.tqs_batch_num = ft_header.batch_code)
INNER JOIN ft...
I am using the following code to send mail to a smtp server .
<?php
// example on using PHPMailer with GMAIL
include("PHPMailer/class.phpmailer.php");
include("PHPMailer/class.smtp.php"); // note, this is optional - gets called from main class if not already loaded
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth...
I have an Order table which has many IPN. However, I am not using cakephp conventions because the IPN table is from Paypal. I want to join the order table's order_num field to the IPN table's custom field. So it would be like:
select * from orders left join ipn on orders.order_num = ipn.custom
How do I set up the model relation correctl...
Hi,
I am building a web site which supports IPhone also. Now I am quite confused as to find a way to upload the IPhone photos to my website.
Also it seems the "input type text" also doesnt work in IPhone. Have anybody worked on it....please suggest.
...
Note: I NEED A LIBRARY not links to documentation about extensions my host doesn't have or want installed.
The subject says it all.
I don't need to extract any files for the moment (although that might be a nice addition to my web app later) I just need to list the contents of rar and zip archives.
...
I have PDFs with filled out form fields from a customer, which have to be parsed with PHP5 and written into a MySQL-DB.
With Google I only find libraries, like Zend_Pdf, which are helpful for creating or manipulating PDFs but not for parsing for form fields. Do you know any libraries or classes for this task?
...
I'm trying to get the controller, method and queries from a URL array. Something like this:
'home/news/[day]/[month]/[slug]/'
I need some regex which will give me the following:
Controller: home
Method: News
Arguments: day, month, slug
For the arguments, it'd be nice if I could somehow get the name inside the brackets so I can put th...