I've just inherited this code in PHP which seems to do some kind of web service call to googles api. I'm not quite an expert on PHP and there is a few syntax questions I have specifically relating to the following line
$soapClients = &APIlityClients::getClients();
I understand the double "::" as indicating that APIlityClients is a s...
I've written a simple entry form that compiles information onto a database, and I'm having trouble with my required fields...
I use a form to process the data via post method if the user neglects to fill in a required field I would like to bring him back to the original form with his/her previous fields entered.
How to I pass info back...
Is there any way with, say Perl or PHP, that I can grab output from another process that outputs to the Windows cmd shell? I have a game server that outputs certain information, for example say 'player finished track in 43s' and I want to grab that line and use Perl or PHP to send a request to a webserver to update ranks on a web page. I...
I have an application which uses Zend_Date to display dates. Zend_Date instances are created using datetime data from MySQL, user input and the current date.
I would like for my users to be able to specify their timezone and for all dates to be displayed in their local time.
At the moment my code works like this:
$date = '2009-01-01 1...
Hi,
I've written the code to post the information to a page, however I don't know how to make the post target the iframe I've placed on the page. (I haven't tested this code so I'm not sure if the post even works)
Dim param1, param2, result, url As String
Dim request As HttpWebRequest
Dim paramStream() As Byte
Dim reque...
How many percent we need to pass Zend Certifieed PHP5 Exam?
...
I'm creating a set of "archive" pages that are specified by year and month. In my table I have a datetime field called posted. I want to select all rows that are in a particular month.
I've thought of two solutions:
(1) Use string matching:
SELECT ... WHERE posted LIKE '2009-06%'
(2) Use some MySQL extraction functions:
SELECT ... ...
I have always wondered, if a PHP session times out during the middle of executing a script, will the contents of the $_SESSION array still be available until script execution ends? For example:
session_start();
if(! isset($_SESSION['name'])) {
echo 'Name is not set';
exit;
}
// imagine there is a bunch of code here and that th...
I want to have a timer going to run every 3 minutes on the page (javascript), to detect if a php session ($_SESSION) has timed out... and if so, redirect them automatically.
A good example would be, a user logs in and runs up stairs, and never comes back down... I want the javascript to log them out with a simple redirect...
Is this p...
Hello,
The code below prints out all tables in a database called "feather" that contain "$entry" in a column called "site." Every table in "feather" has a column called "site."
This code works great. However, I would like to add something. Every table in "feather" also contains a column called "votes_up." For each table that has "$...
My self as a Front End Developer, for many years I have resolved many browser and CSS related issues for Developers coding in ASP, PHP and XSLT.
I just want some Front End Designers and Developers to point out, which things to be consider when there is some Design issue in Programming.
Firebug is one option.
...
How do I set up Cakephp to work properly on Bluehost? Should I place my app, cake and vendor folders as well as .htaccess and index.php files in the /public_html/ directory? I followed the instructions here... http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess to no avail. All I see when I type the name to my website is ...
I'm building an application which uses ajax calls for form validations and some others, problem is that I don't like it when those validation errors shows up on a new page with no css at all and form completely gets reset without the javascripts.
I'm talking about a dozen forms so, it will be quite annoying for the user to go through fo...
If you need your web application to translate between timezones on a per-user basis, why not use TIMESTAMP across the board for all date/time fields? Consider that TIMESTAMP values are stored in UTC and converted to the timezone set for the connection when retrieved.
I have asked this question on IRC, read the MySQL documentation, searc...
I've been developing in PHP for a while now, and I still have not had a task where I've had to use variable variables. Can anyone give me examples where using them is a good idea ? Or were they included in the language just for fun ?
...
I am pretty new to OOP with PHP.
OK first of all this produces an error:
$mail->addBody(new MailWishListInquiry()->getBody(348));
but this doesn't:
$wishListInquiry = new MailWishListInquiry();
$mail->addBody($wishListInquiry->getBody(348));
I do not understand why?
Also the method getBody() is not returning anything..but no erro...
I'm vaguely aware that on a computer joined to a domain IE can be asked to send some extra headers that I could use to automatically sign on to an application. I've got apache running on a windows server with mod php. I'd like to be able to avoid the user having to log in if necessary. I've found some links talking about kebros and apach...
Im creating a custom template. On the front page I want to display an article and a readmore link.
The article is called "Article 1" and is in the section "Test" catagory "Cat". Its access level is public.
How can i show the first 100 words of the article, and its title, on the front page and have a readmore link under it which will po...
What I need to do is this:
<iframe src="http://www.google.com" width="800" height="600"></iframe>
But the constraint is, I want my website to fetch a requested website and display it in
frame. That is, the clients browser must only have a connection with my web server. My website
in turn will fetch requested url's and display them to ...
I am just puzzled here. Maybe because it's the end of the day, I dont know. Im using PHP to grab items from a MySQL db. I am just looking for some PHP help. I have the HTML and CSS done. Here is the basic structure of the db. Its a nested set btw. Imagine that my left and right values for the nested set have been sorted in MySQL already ...