i want to delete some data use:
$dbc=mysql_connect(_SRV,_ACCID,_PWD) or die(_ERROR15.": ".mysql_error());
$db=mysql_select_db("qdbase",$dbc) or die(_ERROR17.": ".mysql_error());
switch(postVar('action')) {
case 'changedata':
changedata(postVar('id'),postVar('chlotno'),postVar('chrange'),postVar('chS'),postVa...
As per the title, is it possible to output the XML that a new SoapClient has created before trying to run a __soapCall() to ensure it's correct before actually sending it to the SOAP server?
...
get_browser() function does not display the ismobiledevice array as 1,
i testing in iphone,
Why it is not displaying the ismobiledevice as 1 ,
i have two page , form-mobile.php and form-pc.php ,
if user using pc means then it should redirect the page to form.pc.php ,
if user using mobile then it should redirect page to form-mobile....
My webhost is Pair.com, which runs FreeBSD. PHP is compiled with iODBC. I have SSH2 compiled and installed and tested. I can connect to the Windows machine through the firewall and get a directory listing.
What I need is the incantation to open an Access database file through the SSH connection. (Very low-traffic site, so Access sho...
The problem: When converting any PNG image into a JPEG, the image turns all black.
To start off, I've searched the internet and stackoverflow to find out how to do this. I've tried every method I could find in the PHP Manual and on Stack Overflow. The problem still exists. I'm using GD (don't have ImageMagick installed).
My code is bel...
I have integrated facebook comments, i want to find which user has posted maximum comments for a product.
...
Code in PHP to convert SVG into Other Image Formats and opposite??
...
I'm working on a CMS system that receives urls like this:
/parent1/parent2/child/
Now it's easy to check only the child but in my opinion you should also check if the parents are correct and in the right order. The problem is that I'm unsure on how to do this.
I'm using mysql. this is how that table would look:
CREATE TABLE IF NO...
I have query like this:
SELECT * FROM activity
WHERE (((userId = 1 OR userId IN(SELECT userId FROM follower WHERE followerId = 1))
AND activityType IN(1, 2, 3))
OR (targetId = 24 AND aType IN(1, 2, 3, 4, 5)))
ORDER BY id DESC;
I have try to use model()->findAllBySql($sql) and it works. But I want to make it using CDbCriteria, if you h...
Every day , I have this pattern
- an array of objects
- i make a loop to traverse the array
foreach($arr as $obj){
$arrIds[] = $obj->Id;
$arrNames[] = $obj->Name;
}
I could build a function like arrayFromProperties($Array,$ProperyName) but I was wondering if you know a native php function to do this, or something similar, without...
Hello,
I spend some hours to set up my IDE to debug PHP with eclipse and xdebug.. Everything is ok except the breakpoint I set on eclipse. If I double-click on a line to add a breakpoint, the debugger want not to stop.. If a add the line xdebug_break() the debugger stops well at the line...
It's maybe a problem with the configuration. ...
I have a multidimensional array, such as:
$array = array(
'a' => 1,
'b' => 2,
'c' => array('42'=>'foo', '43'=>'bar'),
'd' => 4
)
I'm trying to feed it into a SOAP call as follows:
$response = $client->SomeFunction($array);
The XML request produced ignores 'c'. Why?
...
Ok, i have a JSON parser in my iphone app and i'm trying to return rss feeds from google or yahoo to the app via this php script. can anyone see where i'm going wrong with this php, thanks. it comes back to the app as gobbledegook, not parsed at all
<?php
header("Content-Type: application/json");
$yqlUrl = "http://que...
hello!
Anybody know how can I exclude only the first letter of a get_the_content() function in wordpress?
could be a snippet like that, but it doesn't work!
substr(strip_tags(get_the_content()), 1, get_the_content().length)
thanks a lot in advance :)
...
I have a merged xml with a root element and multiple item child elements.
Something like this
<root>
<item>test1</item>
<item>test2</item>
</root>
What I want is an easy way to parse the xml and create an array of xml strings from the items.
$arrXml[0] = '<item>test1</item>';
$arrXml[1] = '<item>test2</item>';
I'm looking for...
I had a response on a question yesterday about sending POST data to the same page with the Post-Redirect-Get pattern like this:
if (isset($_POST['Submit'])) {
// prevent resending data
header("Location: " . $_SERVER['PHP_SELF']);
}
Someone replied: http://stackoverflow.com/questions/4016968/sending-data-to-same-php-page-from-j...
how to access this paramvalue in controller..?
$router->map('Company', 'Company', array(
'controller' => 'companies',
'action' => 'add',
'paramkey' => 'paramvalue',
'anotherparam' => 'anothervalue'));
Plz help me
...
I have created a mobile version of a site. It uses the CodeIgniter session to store some data. This seemed okay on Blackberry a few weeks ago but now it is making multiple sessions on every page and therefore it can't access the session where the data is saved. This works fine on the desktop and iPhone. The cookies are being saved to the...
Hi All,
About Application
I am working on an e-commerce application in PHP. To keep URL's secure, product download links are kept behind PHP. There is a file, say download.php, which accepts few parameter via GET and verifies them against a database. If all goes well, it serves file using readfile() function in PHP.
About Problem
Now...
I have an array:
Array ( [0] => stdClass Object ( [user_id] => 1 [ID] => 1 [user_login] => admin [display_name] => admin [user_email] => [email protected] [meta_value] => a:1:{s:13:"administrator";s:1:"1";} ) [1] => stdClass Object ( [user_id] => 4 [ID] => 4 [user_login] => ungtinflytande [display_name] => ungtinflytande [user_em...