Tagged Questions
PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.
0
votes
0answers
4 views
Create a dashboard in Yii Framework
I am newbie to yii. I am doing a small application in Yii.
Lets suppose I have some tables like product, sales, discount, customer,
Now I have done all the Models and Controllers(crud) for these ...
0
votes
0answers
3 views
Why unsetting data in model does not affect controller?
in the beforeSave() callback I unset a field doing:
unset($this->data['Company']['myField']);
Then, in my Company controller if I do:
debug($this->request->data) after the save()
I still ...
0
votes
0answers
4 views
php close connection and continue on background
How can i close the connection and continue on background on the following environment ?
SERVER : Microsoft-IIS/7.0
PHP support : (run as FastCGI application)
PHP version : 5.2.17
Host : Shared ...
0
votes
0answers
6 views
Can a PHP script block an entire server?
I have a simple PHP script that is called every minute by a cron job. The script updates the database with some external sources using file_get_contents and is running on a Nginx server.
The admin of ...
0
votes
0answers
10 views
how to send additional parameter string with multipart/form-data
Trying to upload files to my server with android app, which works fine, but I would like to upload the content to a specific folder (username folder, created if not exists). How would I add that ...
0
votes
2answers
9 views
Mutiple filter options for one variable
I'm doing a get request with variable:
$url = $_GET['url'];
Now I would like to add some filtering option:
$url = (filter_var($_GET['url'], FILTER_SANITIZE_URL));
How do I include another filter ...
2
votes
1answer
22 views
Php says “question mark” equals to zero
Very strange question, I've never seen anything like that. Let's see the code:
$_POST['SCORE1'] = 4;
$_POST['SCORE2'] = 0;
var_dump ($_POST['SCORE1']);
var_dump ($_POST['SCORE2']);
var_dump ...
0
votes
0answers
11 views
Canceled ajax action after clicking on link
I'm quite new with jquery but I wanted to add a quick preview of notes for users after they move mouse on the title of the note. But also, after they click on it I wanted them to edit the note. So I ...
0
votes
0answers
7 views
UUID return null value
I'm using Zend and PHPCassa to query in Cassandra.
But when i query a UUID value, it's return null value. Although in database, it's not null.
What Problems ?
Query create table.
CREATE COLUMN FAMILY ...
-1
votes
1answer
11 views
Strict Standards: Non-static method DatabaseConnection::getConnection() should not be called statically in
i am using php and this error doesnt sseem to go away
the error is on this line
self::$connection = DatabaseConnection::getConnection();
thank you in advance.
0
votes
1answer
13 views
How to solve jquery Twice script execution with dialogs?
I have a dialog ($('.dialog').show()), that writes a form ($.post('/form/xyz', null, function (data) { $('.dialog').html( data );} )). That form has an script (javascript/jquery) like this:
...
-1
votes
0answers
5 views
Escaped Unicode conversion in php
I want to convert Hexadecimal NCR to Escaped Unicode.
"सि" to "/u0938/u093F"
Please suggest me
-1
votes
0answers
11 views
How To create Dynamic .ipa using PHP
I am creating a website which needs to create dynamic .ipa for downloading from my php website. And the objective C source codes are stored in the server.
And also i need to apply provisioning ...
0
votes
2answers
12 views
how to automatically repair table if crashed
sometimes if a table is marked as crashed, a simple
REPAIR TABLE `tablename`
works fine to continue.
how do I add an automatic repair in my PHP script?
I get the error:
1194 - Table ...
1
vote
0answers
8 views
Display hierarchical data (family tree) php
I would like to know what is the best way to display a family tree as I've never tried to display hierarchical data before. the database I'm currently working with:
Users table
(username, password, ...