hello all,
I'm trying to build a New Joomla Site , which would be the Main Site and Users Registering to the site will be able to create their own Sub-sites. For. e.g. if main site is www.xyz.com then sub-sites would be usersname.xyz.com.
The steps in the Main Site that will help users to create thier own site are :-
1. Select user Reg...
I'm using preg_match_all to get the quoted users from a post on a forum like so:
preg_match_all('/quote author=(.*) link=/', $post, $quotedUsers);
The $post string will typically be something like:
[quote author=John link=topic=1234.msg123456#msg123456 date=1234567890]Lorem ipsum dolor sit amet[/quote]
Lorem ipsum dolor sit amet ...
while I am adding details in database through CSV file I am getting error-
Access denied for user 'user'@'%' (using password: YES) . I have checked database username and password. even if I add product one by one(without csv) it is workin fine. It means my database connectivity is correct. Do I need to make some change in my database hos...
I have a problem with a wordpress site and I really can't figure out what causes it.
All the pages in the site load perfectly fine, they are quite stuffed with content but the load time is ok and so is memory usage as they have no problem with a 32M memory limit set in wp-settings.php.
The problem comes with the home page. It takes sev...
Given the following interface:
interface ISoapInterface {
public static function registerSoapTypes( &$wsdl );
public static function registerSoapOperations( &$server );
}
And the following code:
$soapProvider = array( "FilePool", "UserList" );
foreach( $soapProvider as $provider ) {
call_user_func( array( $provider, "registerSo...
Hi Guys,
I am writing html content to a BML file, how can I remove new lines/whitespace so it is all in one long string?
does preg_replace("\n","") work?
...
Background:
2 minutes before every hour, the server stops access to the site returning a busy screen while it processes data received in the previous hour. This can last less than two minutes, in which case it sleeps until the two minutes is up. If it lasts longer than two minutes it runs as long as it needs to then returns. The block is...
I played a lot with Doctrine 1.2. Creating and deleting records are no problem anymore ;). But sometimes i have empty records in my database. Every field is set to NULL. I have the feeling it has something to do with relations. How can i prevent Doctrine of creating such empty entries.
...
I have .xls file.
How Can i write or append content to the excel using PHP fwrite().
In waht format i write to that. When i try using fwrite its showing an error message in excel 2007
what seperator i can use?
Is it possible with out excel classes
...
Hi all,
I'm trying to capture from the following string:
var MyCode = "jdgsrtjd";
var ProductId = 'PX49EZ482H';
var TempPath = 'Media/Pos/';
What I'd like to get is the variable length value between the single quoted ProductId value
PX49EX482H
I had this, and I think it is close, but the single quotes are tripping me up. I'm not s...
Why the name constant is not recognised in the static function f2() ?
class Foo {
protected static function f1($s) {
echo "doing $s";
}
}
class Bar extends Foo {
const name = 'leo';
public static function f2() {
Foo::f1(name);
}
}
$bar = new Bar();
$bar->f2();
I get the following error:
Notice: Use...
I'm building a filters section for my search page and I was wondering what is the best way to go about doing the query strings. My problem is that these links function a lot like checkboxes, so some, all or none can be on. I'd have to loop through each of about 30 or so links, removing or adding that specific link's value depending on it...
I was working with php's ftp_rename function and getting a permission denied error when renaming the extension of a file to indicate that it had been downloaded.
To make sure it wasn't a php config issue, I tried ftping manually. This is where I'm stumped.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the di...
I am looking to make a script that runs and uses the time stamp of the last time it ran as a parameter to retrieve results that have been updated since that time. We were thinking of creating a database table and having it update that and then retrieve the date from there, but I was looking for any other approach that someone might sugge...
what is the syntax to execute this statement in php page-
grant file on *.* to kentest@localhost identified by 'kentest1';
...
Hi,
I have BLOB field in MySql table with text and image inside, is there any way to extract out only text or only images?
$query = "SELECT id, date, blob, FROM table ORDER BY id DESC ";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result)) {
echo
"<div class=all>
"<ul class=id>{$row['id...
Hello!
I'm trying to use brackets within the name of a cookie.
It is supposed to look like this(this is how the browser wants it!):
Name: name[123456].newName
Content: 20
Here is my example:
$cookie = "name[123456].newName=20"
But when I analyze what the browser sees, I get this:
cookie['name'] = Array
And I want:
cookie['nam...
I have a PHP sql command that updates a record.
$tsql = "UPDATE cplinktable SET bmsid = $bmsid, autotaskid = $autotaskid, waspdb = $waspdb, cpid = $cpid WHERE id = $id";
I'm getting an error:
Invalid column name 'WaspTrackAsset_SFT'. [message] => [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid column name 'WaspTrackAss...
Hi!
I've seen plenty of comparisons of Doctrine vs Propel, but none of them has actually convinced me to choose Doctrine over Propel.
I've been using Propel for a while now and almost every comparison I read states that Propel is not well documented as the first problem and I've read Propel's docs and they're quite well. Also, most of...
I have a reporting component in the administrator of a Joomla site. The user can choose from a dropdown list of available report types, which then calls a function to run the query and output a CSV file. For the most part this works. However, for one report, I'm getting a different number of results through the Joomla function than I do ...