Wanting to make sure I'm using classes properly. The main script accepts this from the user:
1. month
2. year
3. the type of event they want to find (microsoft or linux)
For the program to find a microsoft event it has to run the regular expression: '(ID=)+[0-9]+'
For the program to find a linux event it has to run the regular express...
Hi all,
I am turning in circles and are hoping for some clarification by you guys ...
1) I have a site, using jquery and a Goolge Maps Plugin (http://plugins.jquery.com/project/gmap).
This all works perfectly and I get my markers set right and I really like this solution. This is how it looks like:
<script type="text/javascript" src...
I am trying to assign a variable to a class in PHP, however I am not getting any results?
Can anyone offer any assistance? The code is provided below. I am trying to echo the URL as shown below, by first assigning it to a class variable.
class PageClass {
var $absolute_path = NULL;
function get_absolute_path(){
$url = $...
I am using Eclipse Version: 3.3.2
I have imported a project which is on already on SVN repository. I just checked out in wwwroot and then imported into eclipse. Done some changes. Then i was thinking to install subclipse.
opened eclipse plugin manager installed Subclipse 1.2.4.
Then right clicked on project ->Team -> Share Project ->...
Hi!
In my recently project i work with multiple rss feeds. I want to list only the latest post from all of them, and sort them by timestamps.
My issue is that i have about 20 different feeds and the page take 6 seconds to load (only testing with 10 feeds).
What can i do to make it perfrom better?
I use simplexml:
simplexml_load_file...
Hi when trying to cast from a string to int using int() i get the following error:
Call to undefined function int()
Why would this be?
inval() works just fine but i cannot use int() for some reason
...
How can I use HTTP basic Authentication and have the user submit their Username and Password in a HTML form and have it Authenticate using HTTP Basic Authentication.
I heard that Internet Explorer no longer supports the use of http://user:[email protected] no more so I don't know the best way to approach this.
Use of PHP and javascr...
Hello everyone,
As the title suggests, I've inherited a php/MySQL application which has fairly well written procedural code, but only has one admin user login. The client naturally wants to split out functionality into different users/roles and ultimately update the application code with best-practice techniques.
For the example of upd...
i want to have a variable that has the same value for all the different users/clients accessing the system.
also the variable's value has to be modifiable.
like if any one user changes the value, the change has to get reflected to all other users too.
...
For the code below, how could I make $row["title"] and $row["displayurl"] display in capital letters even if they contain lower-case letters?
echo '<td class="sitename1"><a href="http://www.'.$row["url"].'" TARGET="_blank">'.$row["title"].'</a> <div class="dispurl">'.$row["displayurl"].'</div></td>';
...
Is there a drupal module that could produce an image like this. I think it's some sort of a tag cloud or something.
...
I've been asked to prepare a practical exam to be used in interviews for a Junior PHP Developer role.
I'm all out of ideas – what is considered junior?
Initial ideas were to create a simple email form, which tested skills in html, CSS and jQuery – but the PHP part is mostly a cut and paste job.
Any ideas?
...
Over at rsscache they have a way of refreshing the cache only when the feed has changed. Unfortunately its .Net.
I would like to know what approach I should take to achieve this in php.
How are changes in the feed detected? Simply by a timestamp (time node in the beginning of the feed)?
My feed would be a yahoo pipe that has mixed m...
Hello,
I am working in a form, which is in a hidden script called by Ajax method.
In this php script, I want t submit the information using an URL,using this piece of code:
header("location: https://www.page.com/servlet/?encoding=UTF-8&oid=333&first_name=$first_name&last_name=$last_name");
But the informaton is not submi...
Please!i want to create a datapicker simple in PHP. Can you help me? Thank you so much
...
I have never used an API as part of a website, I have always coded things myself, but I am now thinking about maybe looking at starting to use some, I mean why re-invent the wheel!?
So, my question is, where do you start, how do you integrate, how do they work, what do I do, will they fit seamlessly into my site/design?
Any pointers, a...
My goal is to get and display all additional attributes for the Magento product using SOAP API. For example Gender, Shirt Size and Color for T-Shirt product. But the program shouldn't know the attribute names.
In the SOAP Call: catalogProductInfo there is additional attributes parameter and it looks like I have to explicitly specify add...
I'm querying for the ID of a field by accessing a class function which someone has already put in place. The result is a object returned with protected member variables. I'm struggling to see how I can access the member variable values outside the class.
...
I'm trying to use date_diff():
$datetime1 = date_create('19.03.2010');
$datetime2 = date_create('22.04.2010');
$interval = date_diff($datetime1, $datetime2);
echo $interval->format('%R%d days');
Its doesn't work for me, gives an error:
Call to undefined function date_diff()
How can I get it work?
PHP 5.2 is used.
Thanks.
...
EDIT:
heres my file thats running the query maby its something else acting up - http://pastebin.com/4Cw3xMEM
this works as a direct query in SQLyog
SELECT * FROM wp_posts
WHERE post_status = 'publish'
AND post_type = 'post'
AND YEAR(post_date)=2010
ORDER BY post_date DESC;
it returns the three posts which are from 2010
but when i...