• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 18:26
CET 00:26
KST 08:26
  • 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
RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies3ComeBackTV's documentary on Byun's Career !11Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2
StarCraft 2
General
ComeBackTV's documentary on Byun's Career ! Team TLMC #5: Winners Announced! What's the best tug of war? The Grack before Christmas Weekly Cups (Dec 15-21): Classic wins big, MaxPax & Clem take weeklies
Tourneys
OSC Season 13 World Championship $5,000+ WardiTV 2025 Championship $100 Prize Pool - Winter Warp Gate Masters Showdow Sparkling Tuna Cup - Weekly Open Tournament Winter Warp Gate Amateur Showdown #1
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 505 Rise From Ashes Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement
Brood War
General
How soO Began His ProGaming Dreams BGH Auto Balance -> http://bghmmr.eu/ Recommended FPV games (post-KeSPA) BW General Discussion FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[BSL21] WB & LB Finals - Sunday 21:00 CET [BSL21] LB SemiFinals - Saturday 21:00 CET Small VOD Thread 2.0 [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Game Theory for Starcraft Current Meta Fighting Spirit mining rates
Other Games
General Games
Mechabellum Nintendo Switch Thread Stormgate/Frost Giant Megathread Beyond All Reason Path of Exile
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 Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread The Games Industry And ATVI Russo-Ukrainian War Thread How Does UI/UX Design Influence User Trust? Things Aren’t Peaceful in Palestine
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List TL+ Announced Where to ask questions and add stream?
Blogs
National Diversity: A Challe…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2270 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
Netherlands10341 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
Netherlands10341 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 1h 34m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech159
Nathanias 159
SpeCial 3
StarCraft: Brood War
Shuttle 72
Dota 2
NeuroSwarm141
Heroes of the Storm
Khaldor232
Other Games
tarik_tv4770
Grubby3372
fl0m1015
mouzStarbuck341
Liquid`Hasu156
Sick132
Maynarde125
ZombieGrub46
Organizations
Other Games
BasetradeTV48
StarCraft 2
angryscii 36
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• RyuSc2 76
• StrangeGG 47
• davetesta46
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• Kozan
• IndyKCrew
StarCraft: Brood War
• blackmanpl 49
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21054
League of Legends
• Doublelift5004
Other Games
• imaqtpie2759
• Scarra1283
• Shiphtur361
Upcoming Events
Replay Cast
1h 34m
BSL 21
20h 34m
Sziky vs eOnzErG
Sparkling Tuna Cup
1d 10h
Krystianer vs TBD
TriGGeR vs SKillous
Percival vs TBD
ByuN vs Nicoract
OSC
1d 18h
BSL 21
1d 20h
Cross vs Dewalt
Replay Cast
2 days
Wardi Open
2 days
OSC
3 days
Solar vs MaxPax
ByuN vs Krystianer
Spirit vs TBD
OSC
6 days
Liquipedia Results

Completed

KCM Race Survival 2025 Season 4
WardiTV 2025
META Madness #9

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 2
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025

Upcoming

CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
Nations Cup 2026
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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 © 2025 TLnet. All Rights Reserved.