I've seen some questions where people have trouble with accessing .NET SOAP web services from PHP and there appears to be an issue with namespaces when using a distributed WSDL.
Are there any other problems with the inbuilt SOAP support in PHP 5.3?
...
For our CMS we have a site manager that defines the site's tree structure (sitemap if you want to call it that).
A possible url is www.example.com/our-team/developers/chris/ which would map in the tree structure to the node chris, child of developers which is in turn a child of out-team.
All this is in place and working thanks to the w...
I have a view helper that manages generating thumbnails for images. The images are stored using a unique ID and then linked to a file resource in the database.
I am trying to find out if it is possible for the view helper that generates these images to access the model or controller directly, as it is not possible to load the image data...
I get this error:
Catchable fatal error: Object of class stdClass could not be converted to string
So, my question is, how do I convert an object to a string in PHP? I don't want to serialize it though.
Just a note: the code I use works in PHP 4, but not in PHP 5
Thanks!
EDIT: I resolved it myself. It was a pain, but I did it. Than...
hello all,
the story:
1. Mobile sends the word "algorithms and programming" (in the J2ME => i use Wsoap client) to Web services.
2. Web services send it to the E-library that has been registered.
3. Each e-library to find the word in its database, and then send the data results from the database to the web services.
4. Web services rece...
Hi,
In Kohana V3 is it possible to return result set as an array() or any method exists?
For example:
$user = DB::select('*')->from("users")->where('username', '=', $username);
If method is there,then it is possible to get password like
echo $user->password;
Is it possible without ORM? Please suggest.
...
I am using Zend Framework to send mail.
It's doing something very odd, the content type, content dispostion, MIME version and content type encoding are all showing up in the header section (under the subject) of the email in GMail and in Outlook.
The content of the email was also being included twice in the email, once as plain text an...
Hey.
I'd like to check code committed to my remote git repository with PHP CodeSniffer and reject it if there are any problems code standards. Does anyone have an example how to use it on git remote repository or maybe example how to use it with pre-receive hook? Thanks.
...
I am currently working on a project that extensively relies on the EAV model. Both entities as their attributes are individually represented by a model, sometimes extending other models (or at least, base models).
This has worked quite well so far since most areas of the application only rely on filtered sets of entities, and not the en...
I'm not getting back data from my DB like I'm expecting. I know that I can get data from the DB because I have other functions working. With this page, what I'm trying to do is the following:
If no postback, then I would like it to echo "No Category Selected"
If a category has been chosen, then I would like for it to get that data from...
I'm using Eclipse to write php and naturally I get color coding like all IDEs do.
How do I get the same effect in a blog?
See this example (scroll down to see the code colors), he has full colors, green, red, blue, pretty acceptable I'd say
http://www.tellinya.com/read/2007/06/15/20.html
Is there something that's standalone PHP that...
Alright, this may take a moment or two to explain:
I'm working on creating an Email<>SMS Bridge (like Teleflip). I have a few set parameters to work in:
Dreamhost Webhosting
PHP 5 (without PEAR)
Postfix
MySQL (If Needed)
What I have right now, is a catch-all email address that forwards the email sent to a shell account. The shell ...
I have a code like this below, which gives me a $link that equals to: http://mydomain.com/image/photo.JPG
if (!empty($_SESSION['item'][$i]))
{
$path = dirname(__FILE__).'/image/'.basename($_SESSION['item'][$i]);
if (move_uploaded_file($_SESSION['item'][$i], $path))
global $url;
if ( $url )
{
$link = $ur...
All,
I am trying to perform a nested AJAX call using the following code. The nested call doesn't seem to work. Am I doing anything wrong?
$.ajax({
type: 'GET',
url: "/public/customcontroller/dosomething",
cache: false,
dataType: "html",
success: function(html_input)
{
$.ajax({
type: 'GET',
url: "/public/customcontro...
Hello, how made in PHP from format 52.593800, 21.448850 format +52° 35' 37.68", +21° 26' 55.86" like do it google http://maps.google.pl/maps?hl=pl&t=m&q=52.593800,21.448850 ?
...
Hi, when I am trying to give a relationship to user->group I get an error here is my code
<?php
class User extends Doctrine_Record {
public function setTableDefinition() {
$this->hasColumn('username', 'string', 255, array('unique' => 'true'));
$this->hasColumn('password', 'string', 255);
$this->hasColumn('em...
session_start();
//login page
if(mysql_num_rows($result) != '0'){ // If match.
session_register("username"); // Craete session username.
header("location:admin/admin.php"); // Re-direct to admin.php
exit;
}else{ // If not match.
$message="Please Incorrect your account !";
}
//After login su...
Hi Everyone,
I am doing a newsletter Management in php. I need to track the visitors who opens our newsletter, I have inserted the tracking image in newsletter thats seems to work little.
Using Shift mailer there is option to embed an inline image to newsletter. Is it possible to track using this inline image?
Is there any other techn...
Hi,
is it possible to do something like this in PHP 5.2.1?
abstract class Test
{
public function __construct()
{
if (function_exists('init')):
$this->init();
}
}
If i try this, the function on the subclass is not called?
...
Premise
I know that writing code to act differently when a test is run is hilariously bad practise, but I may've actually come across a scenario in which it may be necessary.
Specifically, I'm trying to test a very specific wrapper for HTML Purifier in the Zend framework - a View Helper, to be exact. The HTML Purifier autoloader is nec...