tagged [php]

Upgrading from FPDF 1.53 to 1.6--any problems?

Upgrading from FPDF 1.53 to 1.6--any problems? As I think most people know already, or if you don't, [FPDF](http://www.fpdf.org/) released a new version, 1.6 this past August after almost 4 years with...

23 Nov at 18:20

How do I run a file on localhost?

How do I run a file on localhost? How do I actually run a file on localhost? I know it is working, but how do I run a file on it, and how do I verify that the file is in fact running on localhost? Fro...

23 Nov at 22:7

How do you pull first 100 characters of a string in PHP

How do you pull first 100 characters of a string in PHP I am looking for a way to pull the first 100 characters from a string variable to put in another variable for printing. Is there a function tha...

25 Nov at 13:43

Is there an equivalent for var_dump (PHP) in Javascript?

Is there an equivalent for var_dump (PHP) in Javascript? We need to see what methods/fields an object has in Javascript.

27 Nov at 11:29

Mock Objects in PHPUnit to emulate Static Method Calls?

Mock Objects in PHPUnit to emulate Static Method Calls? I am trying to test a class that manages data access in the database (you know, CRUD, essentially). The DB library we're using happens to have a...

5 Dec at 16:8

Is it possible to get the image mouse click location with PHP?

Is it possible to get the image mouse click location with PHP? Basically what the title says... I need to have an image that when clicked, I call script.php for instance and in that PHP script file, I...

11 Dec at 04:42

htmlspecialchars and json encode problem

htmlspecialchars and json encode problem I am trying to format some bad html to output into a pop window. The html is stored in a field in a mysql database. I have been performing json_encode and html...

17 Dec at 10:15

Convert utf8-characters to iso-88591 and back in PHP

Convert utf8-characters to iso-88591 and back in PHP Some of my script are using different encoding, and when I try to combine them, this has becom an issue. But I can't change the encoding they use, ...

18 Dec at 09:28

Better way to check variable for null or empty string?

Better way to check variable for null or empty string? Since PHP is a dynamic language what's the best way of checking to see if a provided field is empty? I want to ensure that: 1. null is considere...

19 Dec at 16:1

Is PHP truly faster on the JVM?

Is PHP truly faster on the JVM? Lately I've been hearing a lot of people evangelizing that PHP with Resin is actually much faster than with mod_php, but I cannot find any benchmark anywhere. Is it tru...

27 Dec at 20:40

Current user in Magento?

Current user in Magento? I'm customizing the product view page and I need to show the user's name. How do I access the account information of the current user (if he's logged in) to get Name etc. ?

6 Jan at 13:43

Apply Diff in PHP

Apply Diff in PHP I'm working with the Text_Diff PEAR package to diff to short text documents, where the Text_Diff object is created with a space-delimited list of the words in each document. I was ho...

7 Jan at 15:51

ISP Agnostic Speed Testing

ISP Agnostic Speed Testing What is the best way to test the speed of a LAMP based site, without factoring in the user's connection? In other words, I have a CMS and I want to see how long it takes for...

7 Jan at 22:2

How do you post data with a link

How do you post data with a link I have a database which holds the residents of each house in a certain street. I have a 'house view' php web page which can display an individual house and residents w...

8 Jan at 22:39

How to convert code from C# to PHP

How to convert code from C# to PHP I have a business logic classes that are written in pure C# (without any specific things from this language) and I would convert this code into PHP. I can write my o...

13 Jan at 22:44

Why doesn't my email regex for PHP work?

Why doesn't my email regex for PHP work? I have the same expression in Javascript but it won't work in PHP for server side validation. Here's the code

21 Jan at 16:2

How to post SOAP Request from PHP

How to post SOAP Request from PHP Anyone know how can I post a SOAP Request from PHP?

22 Jan at 22:36

Self-referential URLs

Self-referential URLs What's the most reliable, generic way to construct a self-referential URL? In other words, I want to generate the [http://www.site.com[:port]](http://www.site.com[:port]) portion...

28 Jan at 21:33

Dynamically display a CSV file as an HTML table on a web page

Dynamically display a CSV file as an HTML table on a web page I'd like to take a CSV file living server-side and display it dynamically as an html table. E.g., this: should become this:

6 Feb at 04:54

instantiate a class from a variable in PHP?

instantiate a class from a variable in PHP? I know this question sounds rather vague so I will make it more clear with an example: This is what I want to do. How would you do it? I could off course us...

10 Feb at 20:52

PHP support for Google App Engine?

PHP support for Google App Engine? Does anyone have any idea as to when the [Google App](http://code.google.com/appengine/) engine will support PHP?

11 Feb at 20:26

Calling a function from a string in C#

Calling a function from a string in C# I know in php you are able to make a call like: Is this possible in .Net?

12 Feb at 04:49

Searching numbers with Zend_Search_Lucene

Searching numbers with Zend_Search_Lucene So why does the first search example below return no results? And any ideas on how to modify the below code to make number searches possible would be much app...

13 Feb at 19:23

How to get Google like speeds with php?

How to get Google like speeds with php? I am using PHP with the Zend Framework and Database connects alone seem to take longer than the 0,02 seconds Google takes to do a query. The wierd thing today I...

20 Feb at 22:1

Language neutral entry pages

Language neutral entry pages My old web site has an `index.html` page … nothing strange! Everything is fine. The new web site has an english and a french version, so the new index is `index.php?lang=e...

27 Feb at 14:13