Hello,
I got an issue while trying to display a jquery UI slider with its range based on a values read with PHP from a text file.
Its seems that it's a syncrhonising issue as I get the error: "An attempt was made to use an object that is not, or is no longer, usable" code: 11"
Is there a way I can force the jquery UI slider to wait for...
I am testing authentification functionality of my site. Zend_Auth is using as authorization engine. But auth status remains between tests and I need to write 'logout' in every tearDown.
Now everything is all right. But the problem is following. As for I know Zend_Auth uses Zend_Session for storing auth data. So, session is common for al...
i've got a variable $user that is of data type User (a class).
i've got it in a class method so i can't just type:
/**
* @var User
*/
$user = Factory::getInstance('User');
because that will work only with class properties, not method variables like in this case.
how could i tell netbeans that that variable is of data type User in ...
A quick question involving PHP development, I seem to be wondering about this more and more as I develop more complex sites. Basically say we have a basic PHP / XHTML inbox (messaging system). I perform checks at the top (check if user is logged in, check if user has correct permissions etc). Then use the 'header('location:www.abc.com)' ...
Morning all,
Theres a few questions around this but none that really answer my question, as far as I ca understand. Basically I have a GD script that deals with resizing and caching images on our server, but I need to do the same with images stored on a remote server.
So, I'm wanting to save the image locally, then resize and display ...
Hello,
The following program calculates some input when given into a form.
The thing i am trying to achieve is that it adds a new table row into the table when i go back to the form to enter new data.
I keep getting undefind index and i am not able to get multiple rows in my table.
Notice: Undefined index: file name
Notice: Undefined...
I'm desperately searching for regular expressions that match these scenarios:
1) Match alternating chars
I've a string like "This is my foobababababaf string" - and I want to match "babababa"
Only thing I know is the length of the fragment to search - I don't know what chars/digits that might be - but they are alternating.
I've reall...
hi,
is there a way to add tinymce into my own wordpress plugin?
i've got a textarea in my backend script and want to make this area into a tinymce wysiwyg editable field.
is there a way to do that?
edit
<?php
wp_tiny_mce(false,array("editor_selector" => "test"));
?>
<textarea class="test" id="test" name="test"></textarea>
doe...
Hi !
Can U tell me how to take Value From java Scrpit File and send it to php File .
code :
var year = (year != null) ? year : '".$this->arrToday["year"]."';
var month = (month != null) ? month : '".$this->ConvertToDecimal($this>arrToday["mon"])."';
var day = (day != null) ? day : '".$this->arrToday["mday"]."';
m...
Hi
How can I load individual Div separately without affecting current page and show loading status for that div with PHP and MySQL or Ajax and SQL
...
How do you check if a columns value is null? Example code:
$db = DBCxn::getCxn();
$sql = "SELECT exercise_id, author_id, submission, result, submission_time, total_rating_votes, total_rating_values
FROM submissions
LEFT OUTER JOIN submission_ratings ON submissions.exercise_id=submission_ratings.exercise_id
WHERE id=:id";
$st = $db->p...
Hi All,
Been scratching my head for too long on this: Using jquery.form, (http://malsup.com/jquery/form) with PHP ... my $_FILES['someimage'] gets set but the error number is always UPLOAD_ERR_NO_FILE, size is also 0.
The JavaScript:
$('form input[type=file]').change(function(){
$(this).clone().appendTo('#imgform');
$(...
I have my apache (for windows) htdocs in a folder like c:\anything1\怘怙怚怛\anything2. The problem is that in this case php won't execute any scripts from here and will display an error message like this:
`Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required ...
In my website I am using facebook application.And if user loged in with facebook then facebook provide the timezone information like 5.5 for (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.So I need to convert for all timezones.Is there any simple coding for that otherwise I need all timezone information in facebook format with GMT forma...
i have an array like this
Array
(
[0] => Array
(
[cat_name] => Clothing
[cat_id] => 1
[item_name] => shirt
[item_id] => 1
[src] => 177
[sic] => 78
)
[1] => Array
(
[cat_name] => Stationary
[cat_id] => 3
...
I've tried searching the php manual and internet on how to delete cookies and I've tried it the exact same way they all say:
setcookie("name", '', 1);
or
setcookie("name", '', time()-3600);
But when I check the cookies in the cookies dialog in Firefox, it's still there with the same value.
I set this cookie using the following line...
Hi all,
I am a newbie to php and have been trying to use Eclipse PDT for my php work. I have found that there are two options that I can use for a php page from eclipse pdt
Run as php script and Run as php web page
but wondering what is the exact difference between those.
Also, I want to know if the difference is eclipse specific ...
I don't want to install Zend Server,
and it doesn't work by simply adding this line in php.ini:
zend_extension_ts=.\ZendDebugger.dll
...
I have two insert statements. The second one will be executed only after successful execution of first one. What I would like to do is:
$sqlone="Insert into .....";
$sqltwo="Insert into.....";
If (mysql_query($sqlone))
{
If (mysql_query($sqltwo))
{
Show message Data inserted in both tables.
}
}
...
Hi
What is the decrypt function for crypt function in PHP
Thanks
Bharanikumar
...