Posts tagged PHP

UTF encoding in PHP for DOMDocument::loadHTML

0
While parsing a HTML page, I was loading the dom using loadHTML() but some of the text was coming all garbled. Google led to PHP online documentation and after a few suggestion ggiven there this one worked for me just perfectly:
DOMDocument::loadHTML
To summarize, you have to ensure that the meta tag specifying charset should be on top.

(more…)

Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.

Parse HTTP Headers in PHP

5

Like most of the times, almost all my posts have something to do with whatever I am currently working on. Needed to parse HTTP headers in PHP and the function given in the manual required PECL which sadly was not available on my server. If you don’t have access to the PECL, here is a way to parse the headers.
(more…)

Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.

How to Get Current URL in PHP

0

Recently needed to get URL of the page I was on. Here is the code to get that> It works fine for Apache on Linux. Have not tested it for IIS or Apache on windows.

(more…)

Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.

How do you recover your Joomla admin password?

0

For Joomla 1.5
How do you recover your admin password?

Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.

How to check for homepage in Joomla

1

Sometime back working on a Joomla website, needed to add a homepage only module so needed to in the template if the current page is the homepage. Few days back needed it again, so had to dig up the old code. For my own future reference and hopefully to help others looking for same here is the code I was using:
(more…)

Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.

URL file-access is disabled in the server configuration

0

One of my PHP app used to send out SMS alerts using HTTP based SMS Gateway. Everything was working fine till last week when the SMS stopped coming. On running a stand alone PHP page using the same function to send SMS as the page in the application, got this error -

“Warning: fopen(): URL file-access is disabled in the server configuration”

(more…)

Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.

PHP 5.3 and MySQL timeouts

0

On my dev machine, WinXP SP3, I had PHP 5.2 configured with IIS 5.1 and MySQL 5. Recently upgraded to PHP 5.3

Do you enjoy this blog? Do you find the information helpful? Then go ahead and treat me to a coffee or send me a tip! I love Barista's Cappuccino Cookie n Cream . Choose any amount you wish, whatever you feel this blog is worth to you.

  • Cumulus

  • Tweets

Go to Top