Archive for the ‘PHP’ Category

Article: PHP and ASP.NET – A feature list

Just posted one article on codeproject.com.
Here is the URL: http://www.codeproject.com/KB/applications/php_asp_net.aspx
This article is about finding out equivalent features of PHP and ASP.NET
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

Accessing SQL Server Databases with PHP

Read the whitepaper here - http://msdn.microsoft.com/en-us/library/cc793139(SQL.90).aspx
extension=php_sqlsrv.dll

The SQL Server 2005 Driver for PHP is a Microsoft-supported extension of PHP 5 that provides data access to SQL Server 2005 and SQL Server 2008. The extension provides a procedural interface for accessing data in all editions of SQL Server 2005 and SQL Server 2008. The SQL Server [...]

Leave a Comment

PHP Azure Windows Azure SDK for PHP CTP3 available

As part of Microsoft’s commitment to Interoperability, this open source project is an effort bridge PHP developers to Windows Azure. PHPAzure is an open source project to provide software development kit for Windows Azure and Windows Azure Storage – Blobs, Tables & Queues

Overview

Enables PHP developers to take advantage of the Microsoft Cloud Services Platform – [...]

Leave a Comment

Dynamic Language Runtime

The dynamic language runtime (DLR) is a runtime environment that adds a set of services for dynamic languages to the common language runtime (CLR). The DLR makes it easier to develop dynamic languages to run on the .NET Framework and to add dynamic features to statically typed languages.
Some of the available languages which use DLR [...]

Leave a Comment

Single Page Editor #2 in PHP - Version 1.1

Made modifications to my old single page editor.
New Features (on demand):

Support for multiple pages (dropdownbox added)
Undo – restores last saved version
Restore – restores current page

No more development unless somebody request a bugfix or feature. I developed this program for my personal use.
Here goes the code:

<?php
/*
* Single Page Editor v1.1 beta June 2009
* By Praveen
* Contact [...]

Leave a Comment

Single page editor in PHP

HTML:

<form id="form1" name="form1" method="post">
<div align="right" style="border-bottom:solid 1px lightgrey"><small>Last Edited From: <?= str_replace("~","", $a[0]);?></small> <input name="btnSave" type="submit" value="Save" disabled /></div>
<textarea name="txtData" id="txtData" style="width:100%;height:800px;border:none;overflow:auto; font-family: ‘Lucida Sans Unicode’, ‘Lucida Grande’, sans-serif" onkeyup="btnSave.disabled=”" ><?= ereg_replace("~[0-9]+.[0-9]+.[0-9]+.[0-9]+~","",$data) ?></textarea>
</form>

PHP:

<?php
<?php
$filename = "data.txt";
 
if (isset($_REQUEST["btnSave"])) {
$fp = fopen($filename,"w");
fwrite($fp,"~" . $_SERVER[’REMOTE_ADDR’] . "~");
fwrite($fp,$_REQUEST["txtData"]);
fclose($fp);
}
 
if (file_exists($filename)) {
$data = file_get_contents($filename);
}
 
ereg("~[0-9]+.[0-9]+.[0-9]+.[0-9]+~",$data, $a);
?>
?>

Note that I have not followed [...]

Leave a Comment

Get IP location from ASP.NET, PHP, etc.

Just found this free service http://ipinfodb.com/ip_location_api.php
XML API:
To get City precision:
http://ipinfodb.com/ip_query.php?ip=your_ip_address
To get Country precision: (claims this is more faster than above)
http://ipinfodb.com/ip_query_country.php?ip=your_ip_address
Get more details about xml api here: http://ipinfodb.com/ip_location_api.php
JSON API:
To get City precision:
http://ipinfodb.com/ip_query.php?ip=your_ip_address&output=json
To get Country precision:
http://ipinfodb.com/ip_query_country.php?ip=your_ip_address&output=json
Optional call back:
http://ipinfodb.com/ip_query.php?ip=your_ip_address&output=json&callback=myfunction
Get more details about json api here: http://ipinfodb.com/ip_location_api_json.php
VN:F [1.1.6_502]Rating: 5.0/5 (1 vote cast)

Comments (4)

What’s Microsoft up with PHP?

Microsoft has been participating in several initiatives that benefit PHP.
It includes an interview with an Microsoft Open Source Labs leader, and a review of a what happened at summit that Microsoft organized in their headquarters in Redmond with several influential PHP community people

Read it here : http://www.phpclasses.org/blog/post/85-What-is-Microsoft-up-to-with-PHP.html
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment

How PHP can help you improve your PHP coding skills?

By default you will have below setting in php.ini file:

error_reporting = E_ALL & ~E_NOTICE

This means, show all error except notices and coding standard warnings
Comment/remove it and and use only E_ALL in your php.ini file.

error_reporting = E_ALL

This you can achieve through your php source files also. But you will not remember to add [...]

Leave a Comment

SQL Server 2005 Driver for PHP

SQL Server 2005 Driver for PHP CTP (Community Technology Preview - February 2008) is avaialble for download.
Click here to download.
You can visit the SQL Server 2005 Driver for PHP Team Blog at http://blogs.msdn.com/sqlphp/
VN:F [1.1.6_502]Rating: 0.0/5 (0 votes cast)

Leave a Comment