Hello,
I have been researching for a good clean knowledgebase script. Something as clean as http://expressionengine.com/knowledge_base/
But all the scripts which I have seen are either $200 plus or have a monthly charge etc. I am wondering if I have missed out on either an opensource or a cheaper script.
Thank you for your time.
...
I'm trying to parse the Last.fm feed of my last 10 tracks played onto my website.
This is what I have so far,
<?php
$doc = new DOMDocument();
$doc->load('http://ws.audioscrobbler.com/1.0/user/nathanjmassey/recenttracks.xml');
$arrFeeds = array();
foreach ($doc->getElementsByTagName('track') as $node) {
$itemRSS = array (
'...
I have a problem sending plain text emails using PHPMailer.
I have text that I read from a text file and mail it to mail recipient via PHPMailer
When the recipient gets the actual email, the formatting of the mail is not like in the text file, everything is in one line, no new lines and tabs are included in the email that I send. Tex...
What is wrong with this? The code in the "if statement" runs if $forwardformat isn't empty empty, but the "else" code doesn't run if $forwardformat is empty. Any ideas?!
while ($row = mysql_fetch_array($forwardresult)) {
$forward = $row["id"];
$forwardformat = str_replace(" ","",$forward);
if (!empty($forwardformat)) {
...
I have generated a XML file automatically from the below code.
if (isset($_POST["song"])&& $_POST['song'] != "") {
$song = $_POST["song"];
} else {
$song = array();
}
$dom = new DOMDocument("1.0");
// display document in browser as plain text
// for readability purposes
// create root element
$root = $dom->createElement("playl...
To debug a PHP app in PHPEd the root of the project needs to be set to the web folder of my app.
However, the PHP files to be editted are outside of the web folder.
Is it possible to configure PHPEd to run debug from within the /web folder, while displaying all of the PHP files in the workspace?
Desired workspace layout
** Workspace ...
I want to fetch div content from a webpage and to use it in my page.
I have the url http://www.freebase.com/search?limit=30&start=0&query=cancer
I want to fetch div content with id artilce-1001. How can I do that in php or jQuery?
...
I have narrowed down my problem to the mysql_connect call I am doing in PHP.
It produces an error message. What would you suggest I should do to fix the problem with this error:
Error Summary
HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Detailed Er...
Hi guys, im pretty new to the PHP DomDocument, im reading the documentation right now and im wondering is does exixts some selectors like the ones we seen in jquery.
Well, i exmplain my situation: i have this xml file to parse every day and update a database:
Europe Bank Money Currency
That's a little snapshot:
<gesmes:Envelope>
...
I'm building a toplist for my site and instead of recording in and out hits and emptying the database every 24 hours I would like to record in and out hits "within the last 24 hours", this way the toplist will always look busy no matter what time you look at it, while still acurately ranking sites.
So basically I'll have to add a recor...
i used httpservice for read xml get full xml but i want particular xml fled value only like
first node id only how can i split xml ?
<mx:HTTPService result="getid(event)" id="xml_coupon" url="###" useProxy="false" resultFormat="e4x"/>
public function getid((evt:ResultEvent):void
{
var id:number=evt.result.id;
...
Here's an example of what I mean:
I have an array:
array('type'=>'text',
'class'=>'input',
'name'=>'username',
'id'=>'username',
'value'=>'',
'size'=>'30',
'rows'=>'',
'cols'=>'');
Then, I loop through it like so:
$input = '<input ';
foreach($input_array as $key => $value) {
if(...
I am currently coding a HTML website into wordpress. The problem that i'm having at the moment is that I can't seem to include a drop-down in the navigation list, via the wp_list_pages tag.
So that means at the moment, the "products" list-item, on hover, does not drop down to reveal pages (or sub-pages in this case). This is due to the...
$con = mysql_connect("localhost","music123_sri","password");
if (!$con)
{ die('Could not connect: ' . mysql_error()); }
mysql_select_db("music123_telugu", $con);
$sql="INSERT INTO xml (File) VALUES (" . mysql_escape_string($xmlString) . ")";
$data = mysql_query("SELECT File FROM xml")
$info = mysql_fetch_array( $data );
can u...
I have a table with timestamp values like:
2009-07-14 02:00:00
I need to display them at run time with 13 hours added, like:
2009-07-14 15:00:00
What's the simplest way to do this in PHP?
...
Hello
Can you tell me what does the function do and how would you document the following function using Comments:
function tosql($value, $value_type, $is_delimiters = true, $use_null = true)
{
if (is_array($value) || strlen($value)) {
switch ($value_type) {
case NUMBER:
case FLOAT:
return preg_repl...
Does Drupal parse (and/or run) hooks that are unrelated to the content being loaded by the current user?
For example, say I had a module foo installed and active with the following hooks:
<?php
// .. stuff ...
function foo_menu() {
$items = array();
$items['foo/show'] = array(
'title' => t('Foo!'),
'pa...
I use this query to display a list of songs and show what songs have been clicked as a favorite by a user.
$query = mysql_query(
sprintf("
SELECT
s.*,
UNIX_TIMESTAMP(`date`) AS `date`,
f.userid as favoritehash
FROM
songs s
LEFT JOIN
favorites f
ON
f.favorite = s.id
AND f.user...
In PHP switch statements, does placing more common cases near the top improve performance?
For example, say the following function is called 1,000 times:
<?php
function foo_user ($op) {
switch ($op) {
case 'after_update':
//Some Stuff
case 'login':
//Some other Stuff
}
}
If in 990 of the 1,000 of the tim...
Hi!
Is it possible to highlight the modifications in one text paragraph from the other?
For example, there are 3 text fields in a database. Non-admin users can edit the text and submit for approval. When the admin logs in, (s)he can open the approvals page and it shows the original text and user submitted text with modifications. Usual...