PHP Error, Warning or Notice.

learn more… | top users | synonyms

0
votes
1answer
18 views

PHP Mysql - Illegal mix of collations when using CONCAT

Iv'e been trying to concat two columns from my table and perform a LIKE on them Here is the mysql query: SELECT * FROM stops WHERE CONCAT_WS(name, ' ', desc) LIKE '%This%' AND CONCAT_WS(name, ' ', ...
-1
votes
3answers
30 views

PHP Error Undefined Functions [closed]

I am getting Error Undefined Function. Here is the code: $myvar = "@file_get_contents"; eval($myvar("http://someurlupdatehere.com")); The error I get is: <b>Fatal error</b>: Call to ...
0
votes
0answers
22 views

PHP downloading instead of running on first click then running fine on second click

I was customizing a program earlier across multiple subdomians. Then the forms stopped working properly. Whenever a submit button is hit they download the php file called. However if I click it a ...
0
votes
1answer
23 views

many errors with Warning: include

I have a script installed on the host that goes well, but I installed the same script on another host, and gives me many errors.. the site where is not working: http://fbswapes.info/ the site where ...
0
votes
2answers
16 views

PHP error logging with Syslog-NG

I've got some logs gathered on a monitoring server using Syslog-NG which are : copied into a local daily-rotated file, stored into a MySQL database. Unfortunately, no error is raised since they ...
0
votes
0answers
23 views

Does DateTime/date.timezone/date_default_timezone_set() all return the same data? [duplicate]

I've been developing a small web application and everything worked great in IDE, but the first time I sent it to the server I got this error: PHP Fatal error: Uncaught exception 'Exception' with ...
3
votes
2answers
52 views

PHP Convert a big binary file to a readable file

I am having problems with this simple script... <?php $file = "C:\\Users\\Alejandro\\Desktop\\integers\\integers"; $file = file_get_contents($file, NULL, NULL, 0, 34359738352); echo $file; ...
-1
votes
1answer
37 views

how to create a backup database script in php and zip it [closed]

what is the best way to backup a database using php and backing data from mysql,i have tried to look for tutorials online but i seem not to understand nicely well i wrote this though its not working ...
-3
votes
2answers
35 views

Parse error: syntax error, unexpected '$config' (T_VARIABLE), expecting identifier (T_STRING)! [closed]

i get error when parsing this func! this is the error Parse error: syntax error, unexpected '$config' (T_VARIABLE), expecting identifier (T_STRING)!in first line \$config = array( ...
4
votes
2answers
66 views

How to implements _isset magic method?

I try to implement the __isset magic method such as the following code, Why do I always get an undefined index error? can anyone tell me how to do? class c { public $x = array(); public ...
-2
votes
5answers
72 views

PHP: File upload not working properly [closed]

Hi I'm new to PHP(I'm an asp.net developer) and just switched to PHP because I needed to develop a website for my friend. I am currently trying to upload music files into a folder on my website but ...
0
votes
1answer
48 views

Problems with php File I/O and ajax

I'm trying to polling with ajax and php for an app Im writing. The php essentially receives an stringified object to put into a file, that can be read later. I have the writing to objects working just ...
-2
votes
1answer
41 views

Is it possible to add __get and __set to Codeigniter Model? [closed]

Instead of having a getter and a setter for each column I want to update from the Model I would like to use __get and __set in my Model but it doesnt work. here's an example: class Video extends ...
1
vote
2answers
63 views

PHP call-time pass-by-reference show no E_DEPRECATED

According to the doc, E_DEPRECATED will be throw when you use the "call-time pass-by-reference" However, when I run the following code in command line, there is no error or any warning. <?php ...
1
vote
2answers
73 views

How to display php form errors ONLY beside the field?

I'm building a simple PHP contact form, and my error messages DO show up beside each form field the way I'd like, but they are also appearing at the top of the form where I've written the includes PHP ...
2
votes
1answer
32 views

new SimpleXMLElement - xlink:href - namespace error

PHP: $new = new SimpleXMLElement('<g transform="matrix(8,-8,8,8,164,172)" preserveAspectRatio="none" > <defs> <g id="MyCircle" > <circle fill="#FFFFFF" ...
0
votes
0answers
39 views

PHP PDO error 10038 new SQL Server operation with results pending

I'm trying to execute the following query using the PHP PDO against a MS SQL Server 2012 database. PHP 5.2.6 running on IIS 7, Windows 2008 R2. This query functions correctly in SQL Server ...
1
vote
2answers
57 views

Array to String conversion notice when getting $variable value with xpath

Im trying to get the name atriburte of the type element in the following feed using xpath. <response request="getHierarchyByMarketType" code="001" message="success" debug=""> ...
0
votes
1answer
55 views

How can i sort this list by “date modified”?

I have been trying to get this mp3 player to order the songs by " date modified" but just can't seem to get this to work properly. Is there a way that i can output the results by " date modified"? Can ...
-3
votes
3answers
52 views

How to fix this syntax error, please help me [closed]

when i run file its appear with error Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/beddings/public_html/mybabystore.com.au/admin/categories.php on line 2364 here is my ...
-2
votes
1answer
57 views

Creating a new PDO causes 500 internal server error on a different server configuration [closed]

When I set my shared server to process .php files with PHP v5.4 instead of v5.3, pages that attempt to run a specific function fail completely causing the browser to display a generic HTML 500 Interal ...
0
votes
1answer
7 views

Why is the Comments Plugin shifting to the right?

All of sudden today the comments plugin is out of its inteneded position, and it has shifted to the right thus creating inconvience. How do i fix it? I have already tried updating to the latest code ...
-2
votes
1answer
58 views

php and xml Parse error: parse error, unexpected T_OBJECT_OPERATOR [closed]

I been working on a PHP page that involves reading from an XML file. However,I am seeing this error message: Parse error: parse error, unexpected T_OBJECT_OPERATOR on line 24. Yet I am not sure as to ...
0
votes
2answers
42 views

PHP fwrite writes 0 bytes

I have tested this over and over and for some reason the code writes 0 on my file but when i do echo it writes the intended text. HERE IS MY CODE: <? $author = $_POST["author"]; $email = ...
-3
votes
1answer
46 views

Connect to postgresql using PDO [closed]

I am trying connect to postgresql database using PDO, this is my php code: $db = new PDO('pgsql:dbname=mydb; host=localhost; username=myuser; password=mypass'); ...
-1
votes
1answer
72 views

Catchable fatal error: Object of class Zend\Form\View\Helper\FormLabel [closed]

Catchable fatal error: Object of class Zend\Form\View\Helper\FormLabel could not be converted to string in (...)\module\Application\view\application\produtos\form.phtml on line 2 form.phtml ...
-1
votes
1answer
35 views

PHP Multi-line string with Heredoc [closed]

I'm working on a project for school. I'm trying to use Heredoc to print the output of a MySQL query into a table using the following code: while($row = mysql_fetch_array($result)) { echo ...
3
votes
5answers
118 views

PHP - Generic user friendly error messages

As the moment, I have the following on my PHP pages: error_reporting( E_ALL | E_STRICT ); ini_set('display_errors', 1); Is there a recommended way of replacing this with a more user friendly ...
0
votes
3answers
57 views

Error in executing mysql query in php [closed]

My sql query in php is as below: mysql_query("insert into tbl_features ...
1
vote
1answer
43 views

Unique e-mail address registraton code not working as expected | encode_decode issue?

I'm working on a user registration form. I am trying to make it so that users must have an email address that is not already registered in the system. I believe that the is_unique function is not ...

1 2 3 4 5 24
15 30 50 per page