I am using directory iterator to iterate through directories and resize images found in that directory, I am doing this from browser cause I don't have ssh access to that server.
Most pictures resize fine but for every 10 pictures (more or less) I get jiberish data out.
I think it's a picture source. in that data there is always a string...
I have a WCF service. It has multiple clients and three endpoints. The endpoint bindings are nettcp, wsHttp and basicHttp. If I attempt to connect to it via php'd builtin SoapClient class like so:
$service = new SoapClient
("http://service.companyname.local:6666/Service/?wsdl",
array(
"location" => "http://service.companyname....
I have a WCF webservice I can connect to it via basicHttp, but not wsHttp. I try to conenct to it via wshttp via the following:
$service = new SoapClient
("http://service.companyname.local:6666/Service/?wsdl",
array(
"location" => "http://service.companyname.local:6666/Service/WCF",
"trace" => true,
'soap_version' => SOAP_1...
Does anyone know the best way to set the background of a row or cell as a 'progress bar'. For example if the 'percent used' cell value is '50%' the bar fills half the background of the row or cell.
I am using PHP to generate the table, so maybe I could use a single colour image in the cell and set the width of the img. How would I get t...
I know this is kinda dumb, but...
If I have a php script that builds a page via query to display a list of locations and descriptions for each page of the site, will search engines pick up the query or the results?
In truth, I don't know anything about SEO, so, as dumb as this question is, hopefully someone here can kinda break it do...
I have a Mysql problem. (I use PHP with it).
For example I have this kind of database:
Name | Started and | will end
Jason | 2009-12-17 | 2009-12-24
Ericke | 2009-12-12 | 2009-12-30
Maria | 2010-01-02 | 2010-01-10
With mysql (or php) question I would like to get the names of people, which are "on" right now (2009-12-19).
The answer...
Hello. I am trying to get information of remote file with curl. Problem is that other web-server is on port 81.
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt ($ch, CURLOPT_PORT , 81);
curl_setopt($ch, CURLOPT_URL, 'http://98.246.25.185/server_status2.php');
$store = curl_exec ($ch);
echo substr($store, 1...
here is my xml code
<autoLoad value="true"/>
<autoPlay value="false"/>
<playContinuously value="true"/>
<jumpToNextCategory value="false"/>
<loop value="false"/>
<keepAspectRatio value="true"/>
<volume value="50"/>
<controlsPadding value="5"/>
<showPreviewImage value="true"/>
<showShareBtn value="fa...
I'm trying to parse some HTML with DOM in PHP, but I'm having some problems. First, in case this change the solution, the HTML that I have is not a full page, rather, it's only part of it.
<!-- This is the HTML that I have --><a href='/games/'>
<div id='game'>
<img src='http://images.example.com/games.gif' width='300' height='137' borde...
Hi,
I would like to pass a variable from one controller function to an other. In other words, how can I access the variable from an other function, within the same controller?
Thanks
...
I want to convert the following PHP operation to C# code, could anyone please help me to convert this to C#.
$swfaddr = $absolutepath."/components/flash/".$slug.".swf";
$swf = fopen($swfaddr, "w");
fwrite($swf, file_get_contents($game['swf_url']));
$thumbaddr = $absolutepath."/components/images/".$slug.".gif";
$thumb = fopen($thumbaddr,...
I want to get my friends picture and their last status message with time.
message,time FROM status
pic_square FROM user
$status = $facebook->api_client->fql_query("SELECT message,time FROM
status WHERE uid in (SELECT uid2 FROM friend WHERE uid1=".$user.")");
echo "<pre>";
print_r($status);
echo "</pre>";
ab...
I have an array like
$myArray =array
(
"0"=>array("dogs",98),
"1"=>array("cats",56),
"2"=>array("buffaloes",78)
)
How can I get a key by providing a value?
e.g. if i search for "buffaloes" array_search may return "2".
Thanks
...
<?php
class UploadsController extends AppController {
var $name = 'Uploads';
var $components = array('Auth');
var $uses = array('Upload');
function beforeFilter() {
$this->Auth->allow('*');
}
function upload($event) {
App::import('Vendor', 'UploadedFiles', array('file' => 'UploadedFiles.php'));
$user = $this->Auth->user('i...
Hi,
As per title, I am simply trying to install pecl_http extension for php in ubuntu.
So I did what makes most sense:
andreas@earl ~ $ sudo pecl install pecl_http
downloading pecl_http-1.6.6.tgz ...
Starting to download pecl_http-1.6.6.tgz (173,645 bytes)
.....................................done: 173,645 bytes
71 source files, buil...
I'm looking for an introduction in creating application using CodeIgniter and Integrating it to Expression Engine.
...
I am starting to learn the ins and outs of PHP and have hit a roadblock.
I am making a very simple poll application. Instead of vote-ins, this application would vote-out. What I mean is, the option with the maximum number of votes gets voted-out/eliminated from the poll.
I will create a timer for the vote counts, say, 1 day. Now I am no...
What exactly does this mean?
$number = ( 3 - 2 + 7 ) % 7;
...
$status = $facebook->api_client->fql_query("SELECT message,time FROM
status WHERE uid in (SELECT uid2 FROM friend WHERE uid1=".$user.")");
echo "<pre>";
print_r($status);
echo "</pre>";
above query returns all statuses, i want only last 2 status messages. I have to make it with fql only. can anyone show me how its done??
...
I have a PHP page that gets its content by making an HTTP request to another site on the same server, using file_get_contents. Both sites run in Apache 2 which calls PHP using suPHP (which is FastCGI, right?)
How significant is the overhead of this call? Does Apache do a lot of processing before sending a request to PHP?
An alternative...