• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 00:45
CET 06:45
KST 14:45
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Behind the Blue - Team Liquid History Book13Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8herO wins SC2 All-Star Invitational14
Community News
LiuLi Cup: 2025 Grand Finals (Feb 10-16)1Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker7PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)9Weekly Cups (Jan 26-Feb 1): herO, Clem, ByuN, Classic win2
StarCraft 2
General
Rongyi Cup S3 - Preview & Info Behind the Blue - Team Liquid History Book Nexon's StarCraft game could be FPS, led by UMS maker Terran Scanner Sweep How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game?
Tourneys
LiuLi Cup: 2025 Grand Finals (Feb 10-16) Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) WardiTV Mondays
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
Mutation # 512 Overclocked The PondCast: SC2 News & Results Mutation # 511 Temple of Rebirth Mutation # 510 Safety Violation
Brood War
General
Gypsy to Korea [ASL21] Potential Map Candidates BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Liquipedia.net NEEDS editors for Brood War
Tourneys
[Megathread] Daily Proleagues Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
Nintendo Switch Thread Diablo 2 thread Battle Aces/David Kim RTS Megathread ZeroSpace Megathread EVE Corporation
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
YouTube Thread US Politics Mega-thread Sex and weight loss Russo-Ukrainian War Thread The Games Industry And ATVI
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
Play, Watch, Drink: Esports …
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2132 users

PHP help

Blogs > fabiano
Post a Reply
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
May 18 2010 22:08 GMT
#1
Hope I'm making this blog stuff right, 1st timer.

Ok, I came here to ask for help with PHP.

I've written a bunch of code, have been testing it and all, it's almost done. Now I want to make a .dll from it, so I can hide the code that I've written.

How do you do that? I've googled it and the results were very obscure to me, some say you cant do that, others say you have to write the code in C then make it a dll and then import in the PHP script.

The code itself is not ready yet, but I wanna try this out first before I make it any bigger.

Thank you!

"When the geyser died, a probe came out" - SirJolt
LuckyFool
Profile Blog Joined June 2007
United States9015 Posts
May 18 2010 22:21 GMT
#2
Is it even possible to convert PHP to DLL easily without re-coding everything? I thought dll had to be in specific syntax. I know I used to create activeX.dll's using visual basic but it was using C/C++ not php...I'd imagine there should be a way to do what your saying, but I'm not a CS major... some programming gurus would know more about this than me, I just mess around for fun in my free time lol.
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
May 18 2010 22:22 GMT
#3
Sorry for my dumbness, but I just found it.

If anyone is interested, follow this link http://devzone.zend.com/article/1021
"When the geyser died, a probe came out" - SirJolt
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
May 18 2010 22:23 GMT
#4
On May 19 2010 07:21 LuckyFool wrote:
Is it even possible to convert PHP to DLL easily without re-coding everything? I thought dll had to be in specific syntax. I know I used to create activeX.dll's using visual basic but it was using C/C++ not php...I'd imagine there should be a way to do what your saying, but I'm not a CS major... some programming gurus would know more about this than me, I just mess around for fun in my free time lol.


Oh, actually I've to write a php extension, no need to make a dll. All i wanted is to hide my source code. :D
"When the geyser died, a probe came out" - SirJolt
flandre
Profile Joined April 2009
32 Posts
May 18 2010 22:23 GMT
#5
DLL is a library in Windows. What I'm assuming you're looking for is a way to encrypt PHP scripts. There's a program called Zend Guard that does this, but I've never tried it.
LuckyFool
Profile Blog Joined June 2007
United States9015 Posts
May 18 2010 22:23 GMT
#6
oh right you can just use an extension. nifty
R1CH
Profile Blog Joined May 2007
Netherlands10342 Posts
May 18 2010 22:24 GMT
#7
Source code obfuscation is never a good idea unless you have something (crappy code, insecure, etc) to hide.
AdministratorTwitter: @R1CH_TL
TL+ Member
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
May 18 2010 22:26 GMT
#8
I meant hide the code so that I could, lets say, sell it, so no one could actually copy/paste my code.
"When the geyser died, a probe came out" - SirJolt
LuckyFool
Profile Blog Joined June 2007
United States9015 Posts
May 18 2010 22:35 GMT
#9
I can definitely see the advantages to hiding the code, helps keep people from copying it especially if your selling it but by hiding your code you're becoming like a mini evil microsoft. One of my friends at my work says the software development field would be so much better if all software, web pages and everything programming related was open source so people could keep improving and making more powerful applications.

my personal opinion is it should vary depending on what is being developed. Linux is open source and that's what they advertise, microsoft is really closed doors on their stuff and some of their crappy applications never get fixed or it takes much longer and never gets done right. and they overprice their crappy applications and seemingly force everyone to use them.
flandre
Profile Joined April 2009
32 Posts
Last Edited: 2010-05-18 22:37:43
May 18 2010 22:37 GMT
#10
Most code obfuscation schemes I've come across are easily reversible, so if you're really scared of someone seeing your code you should probably write it in something else than PHP.
CTStalker
Profile Blog Joined November 2004
Canada9720 Posts
May 18 2010 23:04 GMT
#11
you're not going to make any money distributing compiled php, if that's your intent.

i don't even know why you would want to hide it anyway. some of the best code on earth is open source, and if you're posting a question like this, i'm going to assume you're no programming rockstar. maybe you could post what exactly you're writing it for, so people can help you figure out a more helpful way to distribute it.
By the way, my name is Funk. I am not of your world
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
May 18 2010 23:14 GMT
#12
lol

Im not intending to sell anything, I just used an example of what I wanted to express (I need more english skills to make myself clearer). I'm just curious about how this works, doesnt hurt to learn new stuff

If you are interested, Im developing a bracket manager (single elimination only). And hell, Im really far away from being a great programmer :/
"When the geyser died, a probe came out" - SirJolt
sluggaslamoo
Profile Blog Joined November 2009
Australia4494 Posts
Last Edited: 2010-05-19 01:22:09
May 19 2010 01:19 GMT
#13
If you don't want people to see your PHP code, the only way you could do it is to run your app as an application service provider, rather than distribute the software. Otherwise you would need a machine code compiler with an embedded garbage collector, and it would only run on a client, not a webserver which is the primary reason why anyone would even write in PHP in the first place because its such a bad language, and most webservers only support PHP.

If people want to reverse engineer your code, it will always be possible unless its machine code compiled, and even then, some crazy freaks can still reverse engineer it depending on how big it is.

Interpreted code is a synch to reverse engineer no matter how much its obfuscated, bytecode is the next level up from that but most webservers won't run straight bytecode, instead they will interpret the PHP code and convert it to bytecode which is hidden, and then run from that.
Come play Android Netrunner - http://www.teamliquid.net/forum/viewmessage.php?topic_id=409008
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
May 19 2010 04:32 GMT
#14
Even if you do sell the code itself, that means they own a license to the code as well. Meaning they can mess with your code either way.
Life?
R1CH
Profile Blog Joined May 2007
Netherlands10342 Posts
May 19 2010 04:45 GMT
#15
If you want to sell it, you put a license on it and enforce it. vBulletin code is open and that isn't hugely pirated everywhere despite being a very popular forum. Requiring admins to install closed-source binary loaders or extensions just to run you code is pretty bad form.
AdministratorTwitter: @R1CH_TL
TL+ Member
ibutoss
Profile Blog Joined June 2005
Australia341 Posts
May 19 2010 09:05 GMT
#16
Yeah I agree license it and enforce the license. Who would want to buy a piece of software they can't maintain/customize? I don't care how great you think your php is, no business will touch it if they can't adapt it to their specific needs.
Nada got Yooned
coltrane
Profile Blog Joined June 2008
Chile988 Posts
May 19 2010 10:31 GMT
#17
On May 19 2010 07:24 R1CH wrote:
Source code obfuscation is never a good idea unless you have something (crappy code, insecure, etc) to hide.



R1CH is the man!!!!


props to him, aas always
Jävla skit
Please log in or register to reply.
Live Events Refresh
Next event in 3h 16m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 160
ProTech126
FoxeR 66
StarCraft: Brood War
Shuttle 231
PianO 195
Leta 124
Snow 111
Noble 30
Sacsri 26
soO 19
ajuk12(nOOB) 16
Icarus 10
Counter-Strike
m0e_tv510
Super Smash Bros
hungrybox853
Mew2King81
Other Games
summit1g8190
WinterStarcraft477
C9.Mang0379
Tasteless164
RuFF_SC289
ZombieGrub46
Organizations
Other Games
gamesdonequick838
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• practicex 27
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Diggity5
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Scarra1682
• Lourlo1248
• Stunt523
Upcoming Events
Replay Cast
3h 16m
LiuLi Cup
5h 16m
Clem vs Rogue
SHIN vs Cyan
Replay Cast
18h 16m
The PondCast
1d 4h
KCM Race Survival
1d 4h
LiuLi Cup
1d 5h
Scarlett vs TriGGeR
ByuN vs herO
Replay Cast
1d 18h
Online Event
2 days
LiuLi Cup
2 days
Serral vs Zoun
Cure vs Classic
Big Brain Bouts
2 days
Serral vs TBD
[ Show More ]
RSL Revival
2 days
RSL Revival
3 days
LiuLi Cup
3 days
uThermal 2v2 Circuit
3 days
RSL Revival
3 days
Replay Cast
3 days
Sparkling Tuna Cup
4 days
LiuLi Cup
4 days
Replay Cast
4 days
Replay Cast
5 days
LiuLi Cup
5 days
Wardi Open
5 days
Monday Night Weeklies
5 days
Replay Cast
5 days
WardiTV Winter Champion…
6 days
Liquipedia Results

Completed

Proleague 2026-02-09
Rongyi Cup S3
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
LiuLi Cup: 2025 Grand Finals
Nations Cup 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8

Upcoming

Escore Tournament S1: W8
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.