Why do I get 'undefined variable $image_src' with this code:
$image_src1=null;
$image_src2=null;
for ($i=1; $i<=$nr_of_pics; $i++) {
$image_src.$i = $image_id.'_'.$i;
}
echo $image_src1;
I want the $image_src.$i to refer to the variable $image_src1 or $image_src2 depending on how many loops there are... But it wants to ...
I want to integrate (php) a audio player which supports both mozilla and internet explorer, with a player image on the webpage that should contain all the functionalities forward, rewind, pause, volume...
...
I'm starting to learn about Flex/Flash and come from a PHP background. It seems that ColdFusion has been the language of choice for Flash/Flex backend. But (the big but for me) I don't plan to build websites that will heavily depend on Flash (for SEO etc.), just websites that will incorporate Flash in small parts of them. I'm thinking fo...
Hi all!
I have a friend who runs an online auction website. He currently has a featured items section on the homepage that he wants to have cycle an item every X amount of minute. The site runs off a MySQL database which I haven't actually seen yet.
The current code that he is using is a big, long messy Javascript code that is causing a...
Hi everyone...
Got some questions about the php date function.... Here it goes..
I use jquery's datepicker to get the date from the user in the format "day/month/Year". Eg. 23rd of november 2009 is 23/11/2009.
And to manipulate this is php i use the following code...
I store the date string in a variable $date
$dateOf = date ('(d-...
I work on Windows XP platform and use Aptana Studio, MySQL for PHP development. I want to know which Linux edition and flavor would be appropriate for my development purposes?
...
function func()
{
....
}
I have the function name "func",but no its definition.
In javascript,just use alert() to see the definition.
Is there a similar function in PHP?
Anyone knows about this?
...
This is the code in index.php,with only <?php,but no ?>,this is my first time to see code like this,any reason?
<?php
// $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which th...
We are trying to use the below piece of code
if (($_GET['1'] != "1") || ($_GET['1'] != "2")) {
When we try this no matter what value the variable has it will evaluate as true even when data is entered that is false. When we use
if (($_GET['1'] == "1") || ($_GET['1'] == "2")) {
and put in data that will make it return false it work...
I am working on a project using zend framework, php, mysql on ubuntu.
I have created hostname test.dev on my local machine and using zend authentication. When an user is authenticated using zend authentication, I set session variable for logged in user id. I use this session variable(userid) on different pages to sure authentication.
...
It is my experience that all PHP IDEs written on Java are slow. You just can't compare the performance with Visual Studio. I use Aptana and also used NetBeans. Most of the time, your Intelli-Sense will open when you have moved forward typing syntax.
Is there any PHP IDE that meets the performance of Visual Studio?
...
Hi i want to upload only images getting some problem with this please can anyone check below code
<?php
$target_path = "../test/sites/default/files/ourfiles/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES...
I want to know how many Kb,Mb an image is by PHP
...
I'd like to use WIPmania's API to map IP address. http://www.wipmania.com/en/api/
Does anyone know how to grab the value returned in PHP?
For example the url (http://api.wipmania.com/123.45.67.89?google.com) returns the country code KR.
If it was returning an XML file I'd be alright, but this has confused me.
Thanks in advance.
...
This is Common task In PHP and other programming languages.I moved from PHP developer.
I want to make sure with this collections.
Anyone have who good in python please help me to understand clearly .
This is my collections from PHP code.
<?php
$php = array(1,2,3,4,5,6,7,8,9,10);
for ($i = 0; $i < 10 ; $i ++)
echo $php[$i]."<br>";
?>
=...
I'm trying to get YUI uploader work on my computer / localhost, by using this example .
The javascript the page use, can be view here.
The upload button has the following handler:
YUE.on('upload', 'click', this.upload, null, this);
(...)
upload : function(e) {
YUD.get('browse').style.display = 'none';
this.uploader.disable(...
Is there a way to declare a variable so it is available in all functions. Basically I want to call: Global $varName; automatically for every function. And no, I can't use a constant.
I don't think its possible but wanted to ask anyway. Thanks! :D
...
Hi all,
i am looking for a wysiwyg to embed in my web page. the thing is, the wysiwyg am looking for should be table based wth functionality for printing and editing the displayed data.
Data that will be displayed to the wysiwyg will be from a mysql query.
i use php.
...
I am using PHP + MySQL.
Is there anyway I can control concurrent user (1 user with only 1 key) to access
my php page? Not allow copy the key to access from different machine into my php, how to handle this through my php sessions/cookies?
Any advise would be appreciated!
...
In PHP there is filesize(),what about in javascript?
...