There exist any open source cms rtl ltr with a front end to work on? I asked yesterday about this and got a great answer, http://stackoverflow.com/questions/3392719/advice-on-css-and-html but, if I have to aply this and a lot of changes on my source, it's almost the same as starting the project from the beggining
any suggestion on an op...
Is there a way to create the server side of something similar to S3, iDrive, Dropbox, etc in strictly PHP? The end goal would be to allow users to map a drive or folder to our servers using an app that already exists for one of those popular services.
In other words, I don't really want to write the client on the OS side, but rather im...
I have a PHP web application where users, when logged in, have a bunch of different properties associated with them in a MySQL table. I'd like an easy way to access and change (get/set) those properties.
What I want to do is something like this:
$obj = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE userid = '$id'"));
So the...
I've a problem that annoy me very much. It's because I'm trying to make a PHP login script. But when I log in correctly, it'll not let me in.
If I comment out some lines (I'll mark them), the script works, but that's the code I was planning to use to check in on every page, so people don't can come in if they don't should have access.
...
Pure dwoo equivalent would be:
$dwoo->output('DwooTest/index', array('assignedVar' => 'Hello'));
(I am actually using it with codeigniter - with Phil Sturgeon's library):
$this->dwooParser->parse('DwooTest/index', array('assignedVar' => 'Hello'));
then inside index.php
{$assignedVar} //outputs 'Hello'
<?php
$localVar = 'Local...
hey guys,
i wonder if you guys come up with some awesome solutions for my problem. the normal way is not working!
Well, i'm trying to force-download any file on any website with the following php script. I just pass ?p=http://www.whatever.com/images/flowers/rose.jpg to my url and the download prompts.
<?php
error_reporting(E_A...
Hi All, I am trying to make a edit profile page and i want the user to be able to change there username and email address. I've been going at this problem now for sometime and need your help.
Parse error: syntax error, unexpected T_VARIABLE
$edit = mysql_query("UPDATE users (Username, EmailAddress) VALUES('".$newusername."', '".$ne...
I am using the following code in php to convert the month in numeric to textural representation.
date('M',strtotime(8));
But for every digit I am getting 'Dec' as my month.
How should i make it work.
Thank you
Zeeshan
...
I have a bunch of URLs structured like so
<h4 class="classname"><a href="http://some-website.com" onclick="someVaryingJS();" title="Some Title">Some Title</a><h4>
I want to be able to extract just the href and title attributes, keeping in mind the onclick attribute changes per tag and that I only want to do it for anchor tags that are...
Hi People, I'm trying to update my database records with the following code but am having no luck what so ever. Anybody care to help? Thanks
<?php include "base.php"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...
I'm running php vs. 4.1.14 on yahoo with phpMyAdmin.
it says the file is at /usr/lib/php/php4.ini but I can't find this anywhere.
Is it in the phpMyAdmin folder? I really need to find this and turn of magic_quotes soon or I'm gonna go postal. Thanks.
Okay So i guess It wasn't that clear. I did phpinfo(). I don't know how to find that ...
Is there a way to find the radial distance using the zipcode?
My task is to search the all the users residing with in a specified distance. I know the zipcodes of the users.
Eg, users between 25 miles from the current location.
I have other search categories, for which i am using mysql queries. I am unable to figure anything out fo...
I've successfully tested a connection via PHP's odbc_connect() to a SQL Server 2005 Express database on a Windows Vista box using the following code:
$connect = odbc_connect("mssqllocal2", "", "");
// first arg is the System DSN that I configured on Windows
This connection works fine when executed from an instance of WAMPserver on th...
Hi there,
I was wondering if this code snippet is considered legal:
$arr = array(123,456,789,123,456,789);
foreach($arr as $a) {
$arr = $a;
break;
}
//prints 123
echo $arr;
It executes, but are there any pitfalls i should know using this method?
Update: Here is the actual problem
You have an array as follows from the databas...
i'm having a hard time translating this php code into rails.
$doc = new DOMDocument();
$doc->loadXML($in);
/* Iterating through the XML and store the data points into the $list array */
$params = $doc->getElementsByTagName( "param" );
foreach( $params as $param )
{
$names = $param->getElementsByTagName( "name" );
$name = $names...
Here is what I have
<img src="http://some.site.com/v/b/image-name/_thumb_100x100.jpg">
I'm trying to modify the src by replacing the size to _thumb_200x200.jpg
i tried preg_replace() but nothing .
...
I just used array_filter to remove entries that had only the value '' from an array, and now I want to apply certain transformations on it depending on the placeholder starting from 0, but unfortunately it still retains the original index. I looked for a while and couldn't see anything, perhaps I just missed the obvious, but my question...
I installed Apache for Windows. I bought CodeIgniter Professional and downloaded their source code. It said that I should put its .htaccess in the root folder of the website so I did. I set base URL to be http://127.0.0.1/kids/ where kids is the root folder of the website. It showed the homepage just fine. When I clicked on a link, it al...
Basically, here's my code:
$("#airway-bills").autocomplete(awbs, { mustMatch: true, autoFill: true });
$("#airway-bills").focus();
$("#selected-awbs").val("");
$("#origin, #destination").change(function() {
var origin = $("#origin").val();
var destination = $("#destination").val();
var element = $(th...
Hi there,
I've got a string of data, and I want to remove the content between two blocks of text using PHP. Here's an example:
"dataset123"
The text I want is here.
"endfile"
I want everything between those two quoted values. The values won't change, so they can be hard coded.
Any ideas? I've tried searching for something like this...