tagged [php]

How to start facebook app?

How to start facebook app? Just want to know what is better way to get start developing faccebook app?Any tutorial recommnedation?And which is better to start up -php or rails?

24 Sep at 19:9

PHP regex to remove multiple ?-marks

PHP regex to remove multiple ?-marks I'm having trouble coming up with the correct regex string to remove a sequence of multiple ? characters. I want to replace more than one sequential ? with a singl...

25 Sep at 22:38

Determining Referer in PHP

Determining Referer in PHP What is the most reliable and secure way to determine what page either sent, or called (via AJAX), the current page. I don't want to use the `$_SERVER['HTTP_REFERER']`, beca...

3 Oct at 07:46

What's quicker; including another file or querying a MySQL database in PHP?

What's quicker; including another file or querying a MySQL database in PHP? In PHP, which is quicker; using `include('somefile.php')` or querying a MySQL database with a simple `SELECT` query to get t...

3 Oct at 10:30

Can you get a Windows (AD) username in PHP?

Can you get a Windows (AD) username in PHP? I have a PHP web application on an intranet that can extract the IP and host name of the current user on that page, but I was wondering if there is a way to...

3 Oct at 19:53

Best Practices : Where to place required files

Best Practices : Where to place required files I'm working with a number of 'helper' classes, which affectively have a bunch of static functions which allow the controllers and actions have access to ...

7 Oct at 12:34

Reading/Writing a MS Word file in PHP

Reading/Writing a MS Word file in PHP Is it possible to read and write Word (2003 and 2007) files in PHP without using a COM object? I know that I can: but Word will read it as an HTML file not a nati...

9 Oct at 18:9

Checking if mysql_query returned anything or not

Checking if mysql_query returned anything or not ``` $query = "SELECT * FROM `table`"; $results = mysql_query($query, $connection); ``` If 'table' has no rows. whats the easiest way to check for this....

18 Oct at 02:26

What is the best way to determine which server the script is on and therefore the configuration in PHP?

What is the best way to determine which server the script is on and therefore the configuration in PHP? I'm trying to determine the best way of having a PHP script determine which server the script/si...

20 Oct at 05:37

Fastest way to convert string to integer in PHP

Fastest way to convert string to integer in PHP Using PHP, what's the fastest way to convert a string like this: `"123"` to an integer? Why is that particular method the fastest? What happens if it ge...

27 Oct at 05:21