I am trying to make a Soap connection to SugarCRM. My URL links to a WSDL file, bu the following code:
<?php
$soapClient = new SoapClient("http://mysite.sugarondemand.com/soap.php?wsdl");
var_dump($soapClient);
?>
produces the following result: object(SoapClient)#1 (2) { ["_soap_version"]=> int(1) ["sdl"]=> resource(1) of type (...
I'm trying to create a CSS/HTML based graph using this tutorial here.
However instead of putting the data directly into the html code I'm importing it from a CSV file using PHP with the following code.
<?PHP
/* Open CSV file */
$handle = fopen("defects.csv", "r");
$c = 0;
/* gets data from csv file */
while (($data = fgetcsv($hand...
Hi guys.. ok so i have the following array:
0 - 208533
1 - 208523
2 - 208522
3 - 208572
4 - 208518
5 - 208501
6 - 208534
7 - 208499
All i need is a quick function that'll start the array key at 1 rather than 0.
eg: 1 - 208533 etc
Any ideas?
Thanks!
...
I want to change the php setting but from ".php" page not php.ini. The settings I want to change is
upload_max_filesize, post_max_size and memory_limit
...
I have tried and tried to achieve an SQL injection by making custom queries to the server outside of firefox.
Inside the php, all variables are passed into the query in a string like this.
Note, by this stage, $_POST has not been touched.
mysql_query('INSERT INTO users (password, username) VALUES(' . sha1($_POST['password']) . ',' . $...
I am facing a problem in editing a xml file.
<?xml version="1.0" encoding="UTF-8"?>
<urlset>
<url>
<loc>http://www.abc.com/</loc>
<lastmod>2010-04-17T17:23:57+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.50</priority>
</url>
<url>
<loc>http://www.abc.com/</loc>
<lastmod>2010-04-17T1...
I can't find any reference to using prepared statements with "ON DUPLICATE KEY UPDATE" with MySQL and PHP. Am I correct in thinking that this is not possible?
-Jim
...
Hi everyone.
I am using SimpleBrowser from SimpleTest (http://www.simpletest.org) to login a webmin (http://www.webmin.com/). This login uses https. I've tried two different ways, both fail.
$browser = new SimpleBrowser();
$browser->useCookies();
$browser->useFrames();
//echoes the login page, where it should echo the landing page from...
hi,
I modified a very simple php page on my server:
<?php
header("Location:http://www.google.com");
?>
and it stopped to work. I get as result a blank page (Without source in it).
I modified back to the previous url.. and it still doesn't work.
What's going on ?
Thanks
...
I got
PHP Fatal error: Class 'ffmpeg_movie not found
I found several archives with php_ffmpeg.dll also I have add extension=php_ffmpeg.dll in php.ini, restart the apache but nothing related with ffmpeg shows up when check phpinfo()
My server is running on Windows and I need help with installing that library.
I just look in error...
can anybody help/advice that is there any way to parse HTML tags appear in side the <body>...</body> tags
...
I was wondering if adding a LIMIT 1 to a query would speed up the processing?
For example...
I have a query that will most of the time return 1 result, but will occasionaly return 10's, 100's or even 1000's of records. But I will only ever want the first record.
Would the limit 1 speed things up or make no difference?
I know I could ...
The input: we get some plain text as input string and we have to highlighight all URLs there with <a href={url}>{url></a>.
For some time I've used regex taken from http://flanders.co.nz/2009/11/08/a-good-url-regular-expression-repost/, which I modified several times, but it's built for another issue - to check whether the whole input st...
I know, i know... regex is not the best way to extract HTML text. But I need to extract article text from a lot of pages, I can store regexes in the database for each website. I'm not sure how XML parsers would work with multiple websites. You'd need a separate function for each website.
In any case, I don't know much about regexes, so ...
I am implementing a fairly simple calendar on a website using PHP and MySQL. I want to be able to handle dates that repeat indefinitely and am not sure of the best way to do it.
For a time limited repeating event it seems to make sense to just add each event within the timeframe into my db table and group them with some form of recursi...
I have two divisions, <div id=statuslist></div><div id=customerlist></div>
The function sendReq() creates a xmlhttprequest and fetches the data into the division.
sendReq('statuslist','./include/util.php?do=getstatuslist','NULL');
sendReq('customerlist','emphome.php?do=getcustomerlist','NULL');
I have a problem,
The data fetched in...
How to fetch the first two rows from Mysql DB using Mysql PHP function? Is there any function which can give me first 2 or 3 rows from the select query we fired?
...
Hi SO,
I've been given a task to connect multiple sites of the same client into a single network. So i would like to hear an architectural advice on connecting these sites into a single community.
These sites include:
1. Invision Power Board Forum (the most important site)
2. 3 custom made cms-s (changes to code allowable)
3. 1 drupal s...
Hi,
I am currently using Zend_Search_Lucene to index and search a number of documents currently at around a 1000 or so. What I would like to do is change how the engine scores hits on a document, from the current default.
Zend_Search_Lucene scores on the frequency of number of hits within a document, so a document that has 10 matches ...
I'm using readability's code to extract HTML from a web page. How do I display it on a page?
$content = grabArticle($webpage);
echo $content;
ERROR => Object of class DOMElement could not be converted to string...
...