I have an existing database with a users table and questions/answers table. I'd like to use bbpress (or any forum really) as a front end for this for access via the web. Is this possible? Has anyone done this?
Look forward to the responses. Thanks!
...
Trying to make a quick and dirty news system.
Have a basic XML file.
<?xml version="1.0" encoding="ISO-8859-1"?>
<articles>
<article id="1">
<title>Article title 001</title>
<short>Short text</short>
<long>Long text</long>
</article>
<article id="2">
<title>Article title 002</title>
<short>Short text</short>
<lo...
Reading it at http://blog.programmableweb.com/2007/04/02/12-ways-to-limit-an-api/ I wondered how to accomplish time based limits (ie. 1 call per second). Well, if authentication required, the way is to compare the seconds tracked by PHP's time function (for instance, if ($previous_call_time == $current_call_time) { ... })? Any other sugg...
Looking for a php login script. I've searched stackoverflow and have seen a lot of posts, but can anyone recommend the best method? Also, If I want to use hashing, how do you decode the password when retrieving? My iPhone app uses the same database and currently the passwords are stored in normal text (not very secure, I know).
Also, if...
preg_replace("/{{(.*?)}}/e","$$1",$rcontent);
Please explain the statement to me...i cant understand this
...
What I want to do is add a number to the beginning of the file name so I don't have a duplicate file name in the folder.
So I choose my file "example.pdf" and upload, I got the the part of the code that looks like this:
move_uploaded_file($HTTP_POST_FILES['ufile']['tmp_name'][0], $path1);
In this line of code above can I add a variab...
i am using ck editor to compose my mail , to send mails to my user i am using the libmail class. my issue is if i echo the posted data from the ckeditor
eg: echo $message = $_POST['editor1'];
output : " < data > "
but if i send the message using the libmail the mail sended like this
<p>
" < dat...
Im trying to do an ajax call to my php file on the same server. I found a url fetching script similar to Facebook to get links.
http://wakeupzee.netai.net/99points/facebook_url_extracting/
Works pretty good actually. Anyway, I want to save the info it's extracting to the DB. When I pull the src of the img link, somehow Im getting a 403 f...
I just started out with Doctrine and it has been awesome so far. I have a little challenge though.
class TestTable extends Doctrine_Table
{
public function getRecent()
{
return $this->createQuery('Test')->execute();
}
}
class Test extends Doctrine_Record
{
public function setTableDefinition...
Hi
I am using a session to maintain some variables between different pages on my site. While it works fine when I move from www.mysite.com/a to www.mysite.com/b, the session variables are lost if I move from mysite.com/a to www.mysite.com/b
Any idea how I can make sure the session is maintained irrespective of www or no www?
The websi...
$("#contact-us-form").submit(function () {
var nameVal = $("input[name=name]").val();
var companyVal = $("input[name=company]").val();
var titleVal = $("input[name=title]").val();
var emailVal = $("input[name=email]").val();
var phoneVal = $("input[name=phone]").val();
var messageVal = $("input[name=message]").va...
In a new app, I'm building, I want to display an html email in a table in the browser.
The issue is that the html emails are changing the background color of my webpage and at times ends an html table I am using to display multiple emails.
The emails usually contain full html, body, div, and table tags. A normal occurrence is an b...
i have a form, that consist of:
<input type="text" id="model">
<input type="text" id="serial">
<input type="text" id="lot_no">
<select id="line">
beside that i have data in settingdata table:
Model Serial Lot_no Line
abc 0001 012a 1
abc 0101 022a 1
i want if i type abc in #model ...
I have the following files structure:
temp
main
index.php
a.php
b.php
Here are the files;
index.php
echo "index.php ---> " . __DIR__ . "<br />";
require('../a.php');
echo "OK<br />"
a.php
echo "a.php ---> " . __DIR__ . "<br />";
require('./b.php');
echo "a is here<br />"
b.php
echo "b is here<br />"
W...
Hi, Im trying to do a search engine. However, im facing this errors.. Anyone can help..
Error :
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\i-document\search_admin.php on line 90
Thankz in advance.
Php Code :
<?php
//Get data
$button = isset($_GET['submit']) ? $_GET['submit'] : ''...
How to upgrade GD Library in cPanel VPS. Currently the GD Library doesn't support TTF and I want to use GD Library to support imagettftext function..
Many thanks,
...
This:
var_dump(nl2br("aaa\naaa", false));
Outputs:
NULL
I am using PHP Version 5.2.13. Doctype is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
What am I doing wrong?
...
Hi,
i try to build a language selection for my Website.
I use php and Javascript.
My idea is to create for every language a php file.
For example: lang_en.php
<?php
$lang = array();
$lang[1] = "Everything is ok!";
$lang[2] = "Please select a Number.";
?>
<script language="JavaScript" type="text/javascript">
lang = new Array();
...
Basically, I have a search box. Once clicked, the value within the search box would be sanitize and then redirects as a Get Var rather than a Post.
I have one method of taking the User's Input value and redirecting to what they want to search (But it turns into a Post Method).
I want to achieve the following:
User Input Value: "I am ...
Actually I have done a regexp for this, in order to avoid fake names (at least not with some weird symbols). I'm doing this in PHP. The regexp is:
/ [ \ ^ < , \ " @ \ / \ { \ } \ ( \ ) \ * \ $ % \ ? = > : \ | ; # ] + /
But it's failing and I don't know why (just don't detect the symbols). All I want is, if some of those symbols (let's ...