Hi,
In my application a week is defined from Monday 12:00:00 AM to Sunday 11:59:59 PM
Whenever a user visits my site - I need to find the previous weeks date range and show him results based on that. It sounds simple but I'm lost.
To give you scenarios -
- March 1st Monday 12:00:00 AM to March 7th Sunday 12:59:59 PM is the week.
Now w...
Hello friends...
I am preparing a application in which i am asking user to upload his images and now i want that this images displayed when user log in and click on my photos link(in thumbnails).I think you got the idea.All is same like orkut..
Now what i can do in this is...
I can upload the file and can store it into hardisk into an...
Is there a PHP script or piece of code I can type to change a WHM account's password?
...
Over the past few weeks I have been trying to scout out a viable alternative to my hybrid/dedicated box over at WiredTree. I have all but landed on a cloud server solution from either Amazon (EC2) or Rackspace (Cloud Servers). My questions are:
1) Between those two, and any other cloud provider I may have missed out there, who can offe...
hi. i am seeking for guidance from all of u who can tell me about page caching for a website... i am working in php so if anyone can explain me how to perform caching in php.
...
Hello,
I have a url and I want to display only the html links or URLs using jQuery.
Thanks
Jean
...
I have always used relative paths in PHP. Last time I have realized that there were something like absolute paths.
But what is the best way to use them?
getenv("DOCUMENT_ROOT"); ?
dirname(__FILE__); ?
How do you deal with the implementation? Please give some ideas.
...
did any one aware of any new code/program that can filter the adult images being uploaded in website.
to my knowledge i found
http://www.phpclasses.org/browse/package/3269.html
now my question is ... is there any other or new image filter that could do the same process?
...
I was told to use bind parameters so that I could insert text into my db that had quotes in it. But, I am pretty confused when it comes to how to do this, the commands seem confusing to me.
So, if I had a php string, that contained html, how would I insert this into my DB using bind parameters?
I wanted to INSERT it, how would I do th...
I'm not even entirely sure how to ask the question, but assuming I have an array in memory like this:
Array (
[0] => Array
(
[0] => Array
(
[0] => 18451
[1] => MDX
)
[1] => Array
(
[0] => 18450
...
Hi,
I have an PHP website which creates and stores HTML template files on server based on user input.one user can create many templates.So to store the template files and associate them with the DB record ,what I do is-
"templates" is the table which hold other information about the template such as who created it etc. with unique auto...
I want to write a simple class (PHP5) that can 'run' an unknown amount of subclasses. These subclasses are best translated as 'checks'; they all will more or less do the same thing and give an answer (true / false). Think of it as system startup checks.
Over time new checks (subclasses) will be added to a directory and they should autom...
Good morning,
I am reading the "Pragmatic Programmer", I am at the section were they talk about "Orthogonailty" and the approach to take when coding. I was wondering if you can implement the "Orthogonailty" technique with php application development because in the book its mainly about software development ?
Do you know of any articl...
I need to connect to a webservice via soap, and only realized that the server I need to work on is PHP 4. Are there any good methods to connect to a web service using PHP 4?
...
I am trying to install PHP on a windows 2003 server with iconv library version 2.5. However, if I download the PHP 5.2.13 binaries and try to install it, the iconv library version is listed as 1.1.
Is there anyway to upgrade this module alone? Am I missing something?
...
I have a data result being returned from my database with multiple rows. The problem I'm having is that I only need a single row for some items and the multiple rows for others and without doing multiple database queries for every item that is needed, I thought I'd rebuild the data array.
What I am ultimately after is to use each item i...
How come Solr returns the "Oldest" records first when specifying these parameters.
As you probably know these are mainly for "paging" purposes.
And if I chose something like 10 Rows per page, and with the start set to 0, this means in my mind that the latest 10 records should be displayed. However, Solr displays the oldest 10 records.
...
Is there a function that coverts special characters to their english equivalents. For Eg. Convert é to e. Etc...
...
While working with Froogle, the datafeed is constantly bugging me with encoding problems in some article-descriptions.
The script, string and output is utf8 encoded, but I can't find the characters that cause the problem.
is there a way to detect troublesome characters?
...
i want to send a variable to xxx.php how i do it???
...