Hi ,
I am using the standard rotate.php script to rotate the header images in my website (drupal 6.10). However the images being used have a transparent background which gets rendered as a dull blue in IE6. I have tried using PNG fix : twinhelix.com , have used modules pngfix and pngbehave .. but to no avail. The website is : [http://ww...
Im using this code for mysql connection
$con = mysql_connect("localhost:/var/lib/mysql/mysql.sock", "abc" , "xyz");
if (!$con)
{
die('Could not connect: ');
}
mysql_select_db("database_name", $con);
Im including this file on the top of every php file that im using for parsing and then storing the data in database.Now when the orig...
I've been looking for a small program/script to run on Apache that can manage user access to several folders on my website. The issue is that it's not one block of content that will require "member" status but several different folders. User 1 may have access to folder A, but not B and user 2 maybe both folders or only B.
Looking for a...
It is possible to upload a video file from my own webpage on you tube without using google.If yes how to do it?
...
hi all,
i am using FlashMessenger helper to set messages, but i am unable to retrieve messages using getMessages() method. it returns null. here is my sample code:
<?php
class Admin_TestController extends Zend_Controller_Action
{
protected $_flashMessenger = null;
public function init()
{
$this->_flashMessenger = $t...
How to get the file names inside a directory using PHP?
I couldn't find the relevant command using Google, so I hope that this question will help those who ire asking along the similar lines.
...
I am trying to generate an image report for a particular items. Every item has a unique item number, which is stored in the variable $pk.
In this, calling up images/$pk.jpg and/or screenshots/$pk.jpg will show the relevant image or screenshot for the current item page. This works fine in the actual page, however not in my popup report. ...
Can I check the number of values in an array,
for example...
$abc=array();
$abc[0]="asd";
$abc[1]="sadaf";
$abc[2]="sfadaf";
I want to check and store it(2) in a variable that array abc[] exists till $abc[2]..
Thanks
...
In mysql database i have this column called:
Name: Date
Type: datetime
I have few values in that column:
2009-01-05 01:23:35
2009-03-08 11:58:11
2009-07-06 10:09:03
How do I retrieve current date? I am using php.
in php:
<?php $today = date('Y-m-d');?>
How to write a mysql query to retrieve all today date data?
Should i chang...
I want to create URL re-write rules for following URL in htaccess.
http://example.com/vedios/category/fun/ -> http://example.com/vedios/category.php?cat=fun
http://example.com/vedios/category/fun/?show=popular -> http://example.com/vedios/category.php?cat=comedy&show=popular
http://example.com/vedios/category/fun/?show=popular&...
I'm implementing OpenID auth on a website and I'm using check_immediate. Now it works great with every big provider (google, myopenid, aol). But when a client from 1 certain OP tries to auth i always get Auth_OpenID_SetupNeededResponse. Now I've read that in this case the RP should retry without check_immediate (correct me if im wrong). ...
I have use
include ('base.php')
script in my other scripts ( more.php). Now base.php should receive one variable from more.php. How to pass a variable from more.php into base.php?
...
I want to return a set of values from function till the point they exist....
for example....
function abc($i="3"){
for($a=1;$a<=$i;$a++) {
$name='t'.$i;
$$name = "ae".$a;
}
//now i am returning values
return array($t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10);
//but i only want to return $t1,$t2,$t3 dep...
What would you guys use to monitor an IIS server performance, detect and respond to errors etc, find bottlenecks, visualize CPU utilization under load, monitor PHP MySQL performance etc.
cheers
...
Good day.
I was wondering if you guys know some Free or Open Source PHP Frameworks?
Can you tell me some you know, and advantages, disadvantages and for what good are each one for?
About this subject i also become to know CodeIgniter, those who know it, and worked with, do you think its good for a "general" type of PHP Applications, o...
I'm new to the OOP paradigm, so there's probably a simple explanation for this question...
Do you always need to declare public object-wide variables in a class? For example:
<?php
class TestClass
{
var $declaredVar;
function __construct()
{
$this->declaredVar = "I am a declared variable.";
$this->undeclaredVar ...
After I submit a form the position will return to the top of the window. Instead of going to the previous position.
Looking at using scrolltop to rememeber the positon or do you have a better idea?
I'm using stuff like PHP5, jQuery and MySQL.
...
Hello everyone,
I have a simple search form with a search box and a result box.
When I type a search word a request is created like: http://www.site.com/php_handler.php?s=hello
In the php script and a result is given back to the script this way:
<?php return $s; ?>
The problem is that my htmlrequest stops at readyState 3 it doesn'...
Hi all.
I am creating a two MySQL tables in PHP, using the code as given below:
$sql = "CREATE TABLE qotwMember
(
MemberId NOT NULL PRIMARY KEY,
Name varchar(255),
Passwork varchar(255),
emailId varchar(255),
)";
$sql = "CREATE TABLE qotwQuestion1111
(
QuestionId NOT NULL AUTO_INCREMENT,
Question varchar(5000),
MemberId varchar(255) ...
Hi,
We've created an intranet site that requires the same password as the user's network login, so we use LDAP to check the username/password.
That's fine, but if they enter it incorrectly three times it locks their account out, and one or two users have found this confusing.
Is there anyway at all I could check, using LDAP/PHP whethe...