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
2 views
FOSMessageBundle - How to send a message without the field form recipient
I've hide my recipient field form and now I would like to understand where in the controller I can tell the value of the recipient
MessageController :
/**
* Create a new message thread
*
* ...
0
votes
0answers
2 views
Error deserializing a php soap webservice with a .NET WCF Client
I am having an issue in Deserializing the soap xml from a php webservice
xml that is coming back from the webservice has a tag
Basically its saying type="" which throws an error::
“The ...
0
votes
0answers
16 views
get function does not fetch data from dynamically created fieds in form
I am trying to store data from dynamically created fields using PhP. The fixed fields are not a problem. I am having toubles in GET-ing the "flex"fields. That is: the fields a user can generated (till ...
0
votes
0answers
13 views
returned json data from table always repeats the one before last
I have a div which uses long polling to update with table data, it all works except when I enter a new piece of text, the text that was inserted before that always appears first and then what I just ...
-3
votes
0answers
12 views
Cookie is undefined on different page
I have created a cookie on a localhost on path lets say localhost/1j/testa.php but when i tried to access same cookie on different page i get some error, i dont know what is the real problem.
the code ...
0
votes
0answers
16 views
How to run a C code that reads and writes files from a PHP script?
I was trying to run a C program that takes input from a file and writes into a file, I have tried system, exec, shell_exec and those have not worked for me. Is there any other way to do this ? Also, ...
0
votes
2answers
19 views
Find Duplicate Rows/Records from Table
Here is my table structure,
Im try run query
$sql = mysql_query("SELECT content,niche, COUNT(content) TotalCount FROM table_name GROUP by content HAVING COUNT(content)>=2");
I i think is give ...
0
votes
2answers
6 views
Strict Standards: Non-static method spController::getLang() should not be called statically
I have this function:
<?PHP
function T($w) {
$method = $GLOBALS['G_SP']["lang"][spController::getLang()]; // LINE 2
if(!isset($method) || 'default' == $method){
return $w;
...
0
votes
0answers
7 views
Failed to create COM object Rfc2898DeriveBytes
I’m trying to create System.Security.Cryptography.Rfc2898DeriveBytes object in php
so I wrote:
$obj = new COM('System.Security.Cryptography.Rfc2898DeriveBytes');
but I got:
Fatal error: ...
1
vote
0answers
9 views
How do I serve multiple fonts in one HTTP request?
How do I serve multiple fonts, in different font files, to the client in one request/response? I'm using .woff files.
Is it possible to combine font files into one file?
0
votes
4answers
30 views
Switch not working properly
I´m trying to do some program which would transfer hexa do binary. Problem is in changing of A,B,C,..,F to 10,11,12,...,15 so i can work with them as with numbers. I made this function:
function ...
0
votes
2answers
20 views
store values produced inside if in an array
I want to store in an array all the values of use_id_one that are produced inside the if statement. Any idea how to do this?
$query = mysql_query(" SELECT `user_id` FROM users WHERE (surname LIKE ...
1
vote
1answer
13 views
How to select one row with max(select field) and another (specific field)?
How to select one row with max(select field) and another (specific field)?
Below is my code
1. Get to know max(select field) first
2. Then select all field within the row.
but step 2 doesn't return ...
-1
votes
0answers
5 views
object not found in codeigniter when running on localhost
i have been created project in window on codeigniter framework
and same project run on the ubuntu but not running i am getting message like-
Not Found
The requested URL ...
0
votes
2answers
19 views
How to die website if database connection cannot be established
I have a website with a database connection. The connection is very important for the website, so I need to 'die' the website if it can't establish a database connection. The 'or die' isn't a good ...