Hello I developing a website in Joomla the website is working fine in Mozilla, Safari and chrome but when I render it in Internet explorer it gives following error.
Please enlighten me on this.....
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media C...
Hey guys, I am having trouble with what seems to be fairly easy. Let me tell you what I'm trying to do, and then I will paste in my commented code.
I am trying to:
Connect to MySQL
Insert an incrementing value (the id)
Temporarily store that value [i used mysql_insert_id()]
Upload and resize an image using the class.upload.php and giv...
Hi,
We need to develop a functionality for one of our client's website. However, we actually have that code ready in Ruby. Is there any way to directly convert that ruby code to PHP?
...
I added following few lines on top of my PHP code, but it is giving error:
Fatal error: Function name must be a string in /home/reg.php on line 2
<?php
if ($_COOKIE('CaptchaResponseValue') == "false")
{
header('location:index.php');
return;
}
?>
I even tried: $_COOKIE("CaptchaResponseValue"). The cookie is successfully set an...
I am having a registration page. when the page is loaded, everytime it tries to insert the values in the textboxes which is empty by default at first. Please help. My code is attached
register.template.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html ...
Hi,
I am developing an PHP/Mysql application whereby if the user enter a certain value, the results should be displayed to him in a Mootools SqueezeBox alert.
But all the usages of Squeeze I am seeing involve link-activated alerts i.e. when someone clicks a link, the Squeezebox alert appears.
How can it be as I mentioned?
Thanks
...
Hi Guys,
Is there a way to generate an HTML file using a PHP script which has an SVG embedded where the SVG itself is dynamically generated by the PHP script?
Basically, I want to display a dynamically generated SVG image to a client but <embed>, <object> as well as <iframe> only refer to external sources while PHP generates the curren...
Hi all,
I have a script that lets the user download files (stored in a blob field after doing a bin2hex() )
function hex2bin($h){ ... }
// code to get $filecontent,$filesize,$uploadname from database
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header("Content-Length: $filesize");
hea...
Hi,
I have a calendar build in JS that compares dates with PHP. The JS date object is set using PHP but when I compare future dates they appear to be out of sync.
PHP is set to GMT and JS is set to UTC, how do these standards differ and could this be causing the problem?
Thanks
...
I have a function that generates a key of 4 characters that has to be unique for each time. In order to do that, the function first generates a key, and then checks a database table to see if it's in use by someone else.
If it's not in use, it returns the key, else, it calls itself again, but this causes the function to do an infinite l...
In my website home page, I have a new user registration Form. It contains a field "User Name". When the user enters the user name and the focus is pointed to another field, an AJAX code is executed that checks whether any user with the entered username already exists or not.
The AJAX code that I am using is this:
function toggle_userna...
Imagine that I want to create an array from another array like this:
$array = array('bla' => $array2['bla'],
'bla2' => $array2['bla2'],
'foo' => $array2['foo'],
'Alternative Bar' => $array['bar'],
'bar' => $array2['bar']);
What is the best way to test either the $array2 ...
Hi all, i have a class with some method that depend by one parameter.
What is the best way to write this method?
Example:
First way
class Test{
var $code;
function Test($type){
if($type=="A"){
$this->code=create_function(/*some args and some code*/);
}
else if($type=="B"){
$this->code=create_functi...
I have set up an AJAX contact form on a client's website.
The problem is that the email is not getting through to the client's inbox.
I set up the client with Google Apps (in the same way I did for myself).
I used the same contact form with my email address and it works. But with any email addresses on their domain it doesn't!
All me...
I am writing an automated build system to do nightly builds of our code.
Under normal conditions every thing works fine, but some of the processes in the build can require user input, if a developer commits a change that opens up one of these the automated builds grind to a halt.
Does any one know of a way of causing reads from STDIN ...
I created module for admin specific operations. I don't want to write the same access rules for every controller, it's not pretty coding style.
...
Hi Guys,
I have a php script (generator.php) which generates certain HTML/XML/SVG depending on various conditions. I want to embed the output of this script in my homepage (home.php)
eg. Let generator.php always generate an SVG document (complete with SVG NS and DTD). Now I want to embed this generated image in the output of home.php
...
Hello everyone,
Does anyone have any idea on how can you create a product filtering query (or queries) that will emulate the results on this page?
http://www.emag.ro/notebook%5Flaptop
Explanation
If you press HP as a brand, the page will show you all the HP products, and the rest of the available filters are gathered from this query ...
Hi I've got these lines here, i am trying to extract the first paragraph found in the file, but this fails to return any results, if not it returns results that are not even in <p> tags which is odd?
$file = $_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI'];
$hd = fopen($file,'r');
$cn = fread($hd, filesize($file));
fclose($hd);...
Okay, I seem to be having a problem. I'm trying to create a twicker to display rows of data. I'm using jquery/javascript to hide and show rows after a certain time. Here's the code:
<html>
<head>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
</head>
<body>
<script>
var timer_is_on=0;
function doTimer()
{
if (!tim...