Posted by Suhas on October 25, 2011 ·
Hi all,
I’m open sourcing my txtweb app @pushmail – An app that’ll send push email notifications via SMS.
I’m still a noob. This is the first time I’m open sourcing my project. Hopefully, someone will review my code and provide some constructive criticism.
What is @pushmail
It is an SMS app on the txtweb.com platform with which users can get instant email notifications [...]
Posted by Suhas on October 25, 2011 ·
Go to run –> type ‘cmd’
change directory to the PHP folder. You might have a different version.
cd C:\wamp\bin\php\php5.3.5
Run your PHP command like “php -l file” etc.
Posted by Suhas on August 24, 2011 ·
Here’s a little code that I wrote to correctly fetch the newline character. By URL encoding “n” you get %OA which is not decoded back as a C style new line character “n”. So, we fetch the query string to manually decode it in the correct mechanism. This is a PHP example, the theory hold good for other languages as well.
function get_string_parameters($string) {
$result [...]
Posted by Suhas on March 17, 2011 ·
If you have a number as a string is_int() won’t work. This will most probably clear your doubt.
<?php
var_dump(is_int(12));
var_dump(is_int("12"));
?>
Output:
bool(true)
bool(false)
<?php
var_dump(is_numeric(56));
var_dump(is_numeric("56"));
?>
Output:
bool(true)
bool(true)
Happy Programming,