php-5.3 Questions

5

Solved

I'm looking for the get_called_class() equivalent for __FILE__ ... Maybe something like get_included_file()? I have a set of classes which would like to know what directory they exist in. Somethin...
Pasteurization asked 27/4, 2010 at 4:53

2

Does the .user.ini file that controls folder specific PHP settings also descend into the subfolders? I was reading a few websites and they suggest that it does (albeit there is not alot of informa...
Oly asked 1/12, 2014 at 10:10

4

I have the following authentication handler: class LoginAuthSuccessHandler implements AuthenticationSuccessHandlerInterface, AuthenticationFailureHandlerInterface { private $router; private $con...
Fictionalize asked 30/8, 2013 at 14:55

5

Solved

Below code is for export data from mysql table as xml file. I have tried several code but not getting the result. Please check and help me. Currently getting result is 8sarathsarathernakulam42343...
Clotildecloture asked 16/2, 2016 at 16:15

3

Solved

If I iterate through an array twice, once by reference and then by value, PHP will overwrite the last value in the array if I use the same variable name for each loop. This is best illustrated thro...
Dynast asked 15/4, 2010 at 13:10

7

Solved

Ok I have the above error on my page, I am using PHP 5.3 for the first time, and have used this code before but never had this notice, so I was hoping for some guidance. I have looked at some quest...
Annabellannabella asked 17/9, 2012 at 23:5

1

Solved

I have this code: $tierHosts['host'] = isset($host['name']) ? $host['name'] : $host; It's working fine in PHP 5.5, but in PHP 5.3 the condition returns true while $host contains a string like pj...
Schindler asked 14/9, 2015 at 10:22

6

Solved

I haven't been able to find any resources on how to do this.. Anyone have any ideas or resources?! I've tried changing the ./configure options and I'm solving things one at a time but it seems lik...
Garibald asked 17/11, 2009 at 5:9

2

I've got this block of code which works perfectly for my needs in my various php cli programs. Except that sometimes a child will become a zombie. My question is where to place code to check if a...
Oleaster asked 6/2, 2012 at 19:36

2

I'm basically a PHP developer. I'm currently using Ubuntu Linux 12.04 LTS on my local machine. I'm using the following PHP version for developing my PHP project: php -v //command run at te...
Nordrheinwestfalen asked 30/8, 2014 at 6:38

2

Solved

In C# I can get the endianness type by this code snippet: if(BitConverter.IsLittleEndian) { // little-endian is used } else { // big-endian is used } How can I do the same in PHP?
Sinuation asked 16/3, 2012 at 21:46

1

Solved

I am using Laravel 4, and the Eloquent ORM. In my system, when someone deletes a record, it has to check if it has any associated records. If it doesn't, then it may be deleted permanently. But if ...
Efflorescent asked 19/6, 2014 at 16:51

5

Solved

Im trying to create a custom HTML 5 date field for using in a laravel 4 framework view. {{ Form::macro('datetime', function($field_name) { return ''; }); }} {{ Form::label('event_start', 'E...
Slideaction asked 28/4, 2013 at 4:4

3

Is it possible that this PHP code line if ($this->greatestId()["num_rows"] > 0) works in PHP 5.5 and returns an error in 5.3?? PHP Parse error: syntax error, unexpected '[' in /var/www/ap...
Nodababus asked 9/5, 2014 at 13:33

2

Solved

Folks, Im trying to run a basic php script in cmd prompt which connects to sql server 2012 on my local machine, its gives me the following error..."PHP Fatal error: Call to undefined function mssql...
Tailrace asked 5/5, 2014 at 14:30

5

Solved

The schmittjoh/cg-library seems what I need, but there is no documentation at all. This library provides some tools that you commonly need for generating PHP code. One of it's strength lies in...
Roguery asked 29/9, 2012 at 8:28

1

I have a page in my website which gets it's main content from an old mainframe. The content encoding from the mainframe is windows-1255 (Hebrew). My website's encoding is UTF-8. At first I used an...
Obliterate asked 3/1, 2014 at 15:44

3

Solved

(PHP 5.3.6) I have a php file which contains simply this text - there are no php tags, no trailing newline or extraneous whitespace anywhere: <div style="border:1px solid green">abc</div...
Tyrothricin asked 10/8, 2011 at 7:48

1

Solved

I have a legacy business application built on MS SQL Server 2000. I have some webbased utilities that access this database using PHP 5.2 with mssql extension. I need to reinstall the web server, a...
Gianna asked 5/11, 2013 at 7:14

6

Solved

How should I go about handling http uploads that exceeds the post_max_size in a sane manner? In my configuration post_max_size is a few MB larger than upload_max_filesize The problems I'm having a...
Scalene asked 31/5, 2011 at 16:36

4

Solved

Does anyone know of a free-licence PHP code that would convert numbers to words in spanish? It's needed for my work for generating bills so it needs to be accurate. My knowledge of spanish is pract...
Sharika asked 12/7, 2011 at 7:6

1

Solved

My script is working really fine on my xampp. Now I tried to upload it on the server, but it spat directly a Parse error: syntax error, unexpected '[' in my face. :( The line which its ...
Levitan asked 3/5, 2013 at 12:30

5

Solved

Some of the new PHP 5.3 features, including namespaces and anonymous functions, are not compatible with PHPDocumentor, even with the latest release. For example, it just raises an error when it enc...
Conlen asked 14/2, 2010 at 11:43

1

I am upgrading a codebase from php 5.2 to 5.3. As part of this I am converting our uses of deprecated functions and features. When we use deprecated functions like split and spliti the error handle...
Hullo asked 13/9, 2011 at 18:35

4

Solved

I often have a 2-dimensional array: array( array('key' => 'value1'), array('key' => 'value2'), ... ); And need to form a 1-dimensional array: array('value1', 'value2') This can easil...
Unanimity asked 4/8, 2011 at 11:0

© 2022 - 2024 — McMap. All rights reserved.