I installed PHP with Web Platform Installer. Now I need to install PEAR but installation documantation of Pear is saying that
you have to manually execute the batch
file located in e.g.
c:\php\go-pear.bat
PHP folder isn't in c:, it is located in C:\Program Files\PHP and there isn't any file named "go-pear.php"..
...
I am dealing with a (PHP5) class that uses a MySQL resource (public $_conn). When I do print_r($this->-conn), I get a text such as Resource id #30.
Is it possible to get the connection details for that particular resource? I have to get at least the MySQL username?
...
Ok, so here's my problem. We are looking at purchasing a data set from a company to augment our existing data set. For the purposes of this question, let's say that this data set ranks places with an organic number (meaning that the number assigned to one place has no bearing on the number assigned to another). The technical range is ...
Hi,
I'm trying to understand the concept of "Fat" on models vs "skinny" on controllers and from what I've been discussing I have the following example (this is taken from a freenode discussion):
Q: On MVC paradigm, its said Fat models, skinny controllers. I'm here thinking, If I have lots of methods (on controller) that uses just a few ...
Hi,
I've been told that this is possible to do with PHP. I have my website and there is a selection box. I would like the options to be populated from the contents of a folder on an sftp server. Then upon click I would like to get the associated files and move them to my local machine. Are there any good tutorials on how to do this? I...
I have to use a single text box to use for search by order id or first name or last name or phone or email address, how can i Identify the input value to be related to required fields, if u have the idea to make it happen plss guide me...
I have this type of query to be executed when keyword found.
select orders.*
from orders
join cu...
(Sorry! Revision regarding the $ character. Explaining via example as well)
I need to run a test on two string variables:
$a, $b
If $a is contained in $b, I need to see if their "difference" ($b-$a) contains the $ character in it. If it does, then return the "difference", else in all other cases, the test should return FALSE
Also $a ...
Hi mates, i'm facing a big issue. i need to generate exact 7 number combinations and i written a code for that by using 7 forloops and also it is working fine with very less numbers.Please check the attachment so you will be very clear what i need actually.
Please provide PHP result.
<?php
// I need the combinations for this commented...
I have PHP script which takes some file (FLV for example) and returns it to Flash player (just opens and reads to end), and I have flash(mxml+as3) app that calls that php script in order to recive a file. Ho to make priorety of that connection so that if user goes to some other web page or dowhloads some file my pair (PHP <-> Flash) will...
ASP.Net has the concept of using 'subkeys' in cookies. i.e. You can write a cookie with
Response.Cookies("userInfo")("userName") = "patrick"
Response.Cookies("userInfo")("lastVisit") = "today"
This would create a cookie which looks like
Name: userInfo
Value: userName=patrick:lastVisit=today
Is there a native method in PHP to re...
Please note, this is not a theme or so issue.
The categories are not showing in the admin panel, however it denotes that there is 6 categories. They are also visible in the databse.
Recently something happened with the hosting and any php move_upload functions started giving error about missing tmp path, so i created a local php.ini fil...
hi . its different problem , i want to display numbers as follows
1 as 1st, 2 as 2nd and so on to 150 as 150th. the problem is how to find 'st' , 'nd' ,'rd' and 'th' for numbers through code
...
Hi,
I am working on a PHP application that has to parse strings being sent by another program. the problem is that some strings have octal characters and some other escapes in the middle.
So instead of "script>XYZ", I am getting:
\103RI\120T>XYZ%6En \151\156 d%6Fcu\155%65n..
And I need to print back this string decoded... I tried usi...
Apache, Mysql, PHP is running well.
Suddenly all the page just display nothing, what's the problem? Any suggestions?
...
Hi,
I am working on a codeigniter site, the client has requested that the price columns in a datatable are hidden from view unless a user enters a correct password(which they will give out to clients over the phone).
The obvious way is to make the user login which then reveals a new table/page with prices included.
Can I achieve this...
I have a PHP script that runs on cron that can take up to an 15 minutes to execute. At regular intervals I have it spitting out memory_get_usage() so I can see what is happening. The first time it tells me my usage I am at 10 megs. When the script finishes I am at 114 megs!
Does PHP do it's garbage collection while the script is running...
I wish to include JSPs include files which contain java code in a PHP template. The two includes in question are a header file, and a footer file. Anyone any experience of doing this? We are considering just doing a HTTP request to grab the resulting HTML from the JSP files independantly, but aren't sure if there will be slight performan...
Hi,
I am trying to populate a dropdown menu on an events page with a list of locations.
What I wish to do is retrieve all names from a locations table, store them in an array in my event.php controller, pass this to a view which then lists all the locations in a dropdown menu.
Here is the loop in my controller which retrieves the loca...
I am trying to create a deamon to denormalize my Database.
I use ActiveMQ as queue manager
I have 2 data bases: Relational one (write + replication), and denormalized one (for reads)
My question is what's the best practice to denormalize my real DB I have some ideas:
MySQL proxy (with lua) which reads the Queue (is this possible)
Tri...
Not sure if too many of you are familiar with SWFUpload. It's a flash/js/php based uploading script. My main issue is that I'm decently fluent in php where I can create a simple mail() script, however, with the various JS files I'm not sure if it'd be better to create the mail function in JS.
If anyone has had experience with SWFUpload ...