• Latest
  • All
  • How To
facebook platform icon

XHP: A NEW WAY TO WRITE PHP, Facebook

July 3, 2012
White Genocide

Who Tweaked Grok? Inside the AI’s Wild White Genocide Rant

May 16, 2025
Google One

Google One Surges to 150 Million Subscribers Thanks to AI Premium Plan

May 16, 2025
twitter x

X Enhances Video Capabilities with 4K Upload Option

May 16, 2025
openai-chatgpt

ChatGPT May Soon Be Able To Record, Transcribe & Summarise Meetings

May 16, 2025
DHgate Tablet Cases deals
Telegram

Telegram Shuts Down $35 Billion Crypto Black Markets in Major Crackdown

May 16, 2025
Peak Points

YouTube to Drop Ads When You’re Most Glued to the Screen

May 15, 2025
Safaricom-IXAfrica-Centres-1

Safaricom Partners with iXAfrica to Build Region’s First AI-Ready Data Centre

May 15, 2025
samsung one ui 8

One UI 8 Update: Is Your Samsung Device on the List?

May 15, 2025
Apple Music

Apple Music Now Lets Spotify Users Seamlessly Transfer Playlists

May 15, 2025
Kennedy Kachwanya, Chairperson BAKE

High Court Issues Ban on Internet Shutdowns by Government and Mobile Operators

May 14, 2025
Advanced Protection feature

Google Expands Advanced Protection in Android 16 to Tackle Spyware Threats

May 14, 2025
YouTube

YouTube Cracks Down on AI-Generated Fake Movie Trailers as Studios Quietly Profit

May 14, 2025
Techweez | Tech News, Reviews, Deals, Tips and How To
  • News
  • Entertainment
  • Reviews
  • Features
  • Editorial
No Result
View All Result
Techweez | Tech News, Reviews, Deals, Tips and How To
  • News
  • Entertainment
  • Reviews
  • Features
  • Editorial
No Result
View All Result
Techweez | Tech News, Reviews, Deals, Tips and How To
No Result
View All Result

XHP: A NEW WAY TO WRITE PHP, Facebook

Martin Gicheru by Martin Gicheru
July 3, 2012
in News
Reading Time: 1 min read
264
0
facebook platform icon

Facebook has introduced a new way ti write PHPfacebook platform icon
SOURCE: Marcel Georges laverdet II(Facebook Engineer)
Facebook reveals a new way to write PHP, XHP, which makes the web pages faster to load
“XHP has enabled us to build better websites faster; our Lite site was written entirely with XHP. Try XHP out for yourself.” said Marcel
this new code is available onGithub.com

XHP is described as a “PHP extension which augments the syntax of the language such that XML document fragments become valid PHP expressions.” According to Laverdet, XHP offers the following advantages over standard PHP websites:

.XHP improves the high-level readability of PHP code, specifically with respect to HTML generation
.XHP switches PHP from a relaxed default security model to a strong default security model (to prevent XSS Scripting attacks)
.Errors in your markup will now be detected on the server at parse time. That is, it is impossible to generate malformed webpages while using XHP.
.You can define your own elements which can condense a complex component into a simple XHP tag.
Even for well versed PHP developers, the above advantages may not be immediately obvious. For more details, the full XHP codebase is available via a Git repository and there is plenty of documentation as well. More information is also available in their blog post published earlier today.

SendShare147Tweet92
Martin Gicheru

Martin Gicheru

Martin is the Managing Editor at Techweez, passionate about personal tech and telling stories of consumer experiences. Talk to me: martin@techweez.com

Related Posts

White Genocide

Who Tweaked Grok? Inside the AI’s Wild White Genocide Rant

May 16, 2025
Google One

Google One Surges to 150 Million Subscribers Thanks to AI Premium Plan

May 16, 2025
twitter x

X Enhances Video Capabilities with 4K Upload Option

May 16, 2025
openai-chatgpt

ChatGPT May Soon Be Able To Record, Transcribe & Summarise Meetings

May 16, 2025
Telegram

Telegram Shuts Down $35 Billion Crypto Black Markets in Major Crackdown

May 16, 2025
Peak Points

YouTube to Drop Ads When You’re Most Glued to the Screen

May 15, 2025

Latest

White Genocide

Who Tweaked Grok? Inside the AI’s Wild White Genocide Rant

May 16, 2025
Google One

Google One Surges to 150 Million Subscribers Thanks to AI Premium Plan

May 16, 2025
twitter x

X Enhances Video Capabilities with 4K Upload Option

May 16, 2025
openai-chatgpt

ChatGPT May Soon Be Able To Record, Transcribe & Summarise Meetings

May 16, 2025
Telegram

Telegram Shuts Down $35 Billion Crypto Black Markets in Major Crackdown

May 16, 2025
Peak Points

YouTube to Drop Ads When You’re Most Glued to the Screen

May 15, 2025

Best devices

budget smartwatches 2025

Best Budget Smartwatches To Buy in Kenya 2025

February 13, 2025

Best Infinix Smartphones To Buy in Kenya 2024

February 13, 2025

Best Laptops for Battery Life in 2024

August 21, 2024

Best “Battery Warrior” Smartphones To Buy in 2024

August 22, 2024

Who Tweaked Grok? Inside the AI’s Wild White Genocide Rant

May 16, 2025

Google One Surges to 150 Million Subscribers Thanks to AI Premium Plan

May 16, 2025

Techweez is a fast growing influential source of technology news, reviews and analysis by leading tech geeks in the industry.

Follow Us

Editorials

Samsung QLED TVs Now Officially Certified for Real Quantum Dot Technology

Trump’s Tariffs Will Be the End of Affordable Tech

5 Ways to Prep Your Tech for Resale

The Weaponization of PDFs: How Cybercriminals Are Exploiting a Trusted Format

Introducing A Brainbox Quiz: Techweez’s Monthly Trivia Night!

5 Most Reliable Virtual Dollar Card Providers in Nigeria

More News

Safaricom Partners with iXAfrica to Build Region’s First AI-Ready Data Centre

One UI 8 Update: Is Your Samsung Device on the List?

Apple Music Now Lets Spotify Users Seamlessly Transfer Playlists

High Court Issues Ban on Internet Shutdowns by Government and Mobile Operators

Google Expands Advanced Protection in Android 16 to Tackle Spyware Threats

YouTube Cracks Down on AI-Generated Fake Movie Trailers as Studios Quietly Profit

  • Terms Of Use
  • Techweez Brand
  • Privacy & Policy
  • Contact Us

© 2024 Techweez - Palahala Media Group may earn a commission when you buy through links on our sites.
A Palahala Media Group Brand. All rights reserved.
.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

Techweez | Tech News, Reviews, Deals, Tips and How To
Crunchy Cookies 🍪 Ahead!

Hey there! Just a heads-up: we're big fans of cookies - both the digital and edible kind! 🍪 We use our cookies and some from third parties to ensure your browsing experience on our site is smooth sailing and secure.

 

But wait, there's more! We also use cookies to gather stats and insights on how you navigate our site. It's like getting a behind-the-scenes peek at your digital adventures!

 

Don't worry, you're in control. You can adjust your cookie settings anytime to suit your preferences. Feeling curious? Dive into our Privacy Policy for all the juicy details. Happy browsing! 🚀

Functional Always active
Listen, this legal stuff is about as exciting as watching paint dry. But it basically says we only use your stuff for what you asked us to do, and nobody else gets to peek!
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
It's those sneaky cookie crumbs websites leave behind to count visitors, like counting ants at a picnic! Totally harmless, just for fun facts. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
Hey there! Just letting you know we use some fancy gizmos to remember your preferences. This way, we can show you ads that are, well, not completely bananas.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Make cookies
{title} {title} {title}
Techweez | Tech News, Reviews, Deals, Tips and How To
Crunchy Cookies 🍪 Ahead!
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
Listen, this legal stuff is about as exciting as watching paint dry. But it basically says we only use your stuff for what you asked us to do, and nobody else gets to peek!
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
It's those sneaky cookie crumbs websites leave behind to count visitors, like counting ants at a picnic! Totally harmless, just for fun facts. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
Hey there! Just letting you know we use some fancy gizmos to remember your preferences. This way, we can show you ads that are, well, not completely bananas.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Make cookies
{title} {title} {title}
No Result
View All Result
  • News
  • Reviews
  • Features
  • Editorial
  • Automotive
  • Entertainment

© 2024 Techweez - Palahala Media Group may earn a commission when you buy through links on our sites.
A Palahala Media Group Brand. All rights reserved.
.