I'm using the script below to display my twitter status, but would like to add the option to not display tweets that start with a @username. I've done it so it won't display my username, but would like not to display tweets replied to another user.
Thanks
$doc = new DOMDocument();
# load the RSS
if($doc->load('twitterurlrss')) {
# ...
I'm trying to hide actual sub-directory from url path using mod_rewrite.
The folder actual name is members and i want users to use area instead.
The code I'm using works but no images or relative stuff is loading. The rule is missing certain parameters. Can you point me in the right direction?
RewriteEngine on
RewriteRule ^area/$ /mem...
Hi all, I'm using a code which will upload an image, put the image in the "resize" folder, resize the image, move the image into another folder, then delete the image from the "resize" folder, however I'm getting the following error:
"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 14172 bytes) in /home/p...
Hi all, I'm not sure how simple this would be, but I'm using a script which displays the files from a specific folder, however I'd like them to be displayed in alphabetical order, would it be hard to do this? Here's the code I'm using:
if ($handle = opendir($mainframe->getCfg( 'absolute_path' ) ."/images/store/")) {
while (false !=...
How would one go about creating a site that will log you into other sites and gather your data. For instance, how mint.com allows you to input all your online bank details and it gathers your data for viewing within Mint.
If someone could point me in the direction with some keywords or any scripts, it would be much appreciated.
...
We're developing a "Search Reporting" feature for a client. One of the requirements is that they can view a particular result and see which search terms lead to it.
Our search_results table is simply a mapping of searches.id to results.id.
So we need to do a bulk insert into this table and need to know the fastest way to do this withou...
It's a bit of a soap opera but apparently FluxBB forked from PunBB after PunBB was acquired by a commercial entity. Does anyone have any solid opinions on which is currently better and which has a brighter outlook? I generally prefer leaner software with only the core features.
...
I have a select() method in a database class, that has an optional boolean argument $sum. This argument is used to say if the method should or not use COUNT(*) too.
I would like to show a warning, like those normal PHP errors, if I try to access class->sum if the attribute is not set (i.e. when I call select() with $sum = false.
Is the...
An application keeps track of hundreds of variables. Users are able to create conditions which can be simple (ex: if one variable is true) or complex (ex: if 34 variables are true AND 22 variables are false AND 2 variables are equal to each other). If the condition ever becomes true, it fires off some action. What is the best way to achi...
I'm looking to port a small Java security library to PHP. The Java implementation makes use of a keystore for signing some stuff and I'm wondering how to go about recreating this functionality in PHP. Of course the original Java implementation must still work with the same key pair/keystore.
I have very little experience with PHP and ...
I've been searching for an iCalendar parser for PHP, but have been unable to find a complete one. qCal doesn't seem complete. Bennu seems even less so. I've seen a lot of people wanting one, but not much else.
...
Scenario
I have a search facility on a website that sells products.
The page is built with PHP and MySQL searching against a Merged View that joins 10+ tables together. There are approx 12,000 records in the view with 20+ fields each.
A user can search for products matching a specific criteria using multiple (10-15) select menus.
The...
"We should never trust user's input", this is what I read from somewhere on the web.
Currently I have a web form, they enter their username and emails. For username field, how to control, check and prevent mysql injection?? Currently, in my php script I only do this:
$username = mysql_real_escape_string($_POST['username']); // prevent ...
which is the best framework to develop a community web site.
For the MVC architecture, is there any disadvantage while using frameworks.
or is it better to develop that in a pure php with OOPs concept?
thanks in advance!!
...
Hi all,
Im Sorry for my bad English
I need help for my problem. When we open page source of HTML page like google, we will found HTML TAG : (in this google was found my string)
<!doctype html><head><title>bla bla bla
<ol><li class="g w0"><h3 class=r>**bla bla bla..**</div></ol>
<ol><li class="g w0"><h3 class=r>**bla bla bla..**</div><...
I have a system where a user uploads documents (pdf, word) etc. The problem being, foreign users are uploading filenames in arabic, chinese, japanese and the system, being able to handle them, is adding them to the database.
Where the problem arises is trying to download the files using php:
$result = mysql_query($query) or
die(...
Hi All
My PHP script generates a table with rows which can optionaly be edited or deleted. There is also a possibilety to create a new Row.
I am having a hard time to figure out how to update the HTML rows which are generated through PHP and inserted via jQuery. After the update it must be still editable. The HTML is generated into a d...
Hi guys, I've built a simple cms with an admin section. I want to create something like a backup system which would take a backup of the information on the website, and also a restore system which would restore backups taken. I'm assuming backups to be SQL files generated of the tables used.
I'm using PHP and MySQL here - any idea how ...
What's an efficient way for someone who knows PHP and Ruby on Rails to quickly pick up the Zend framework?
...
Im using cURL to log into a website and then store a session cookie.
Is there a way I can access that session cookie from another PHP script (in the same dir etc.) Ive tried:
$ch = curl_init();
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($ch, CURLOPT_URL, $url);
echo $content = curl_exec ($ch);
curl_close ($ch);
B...