• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 22:08
CET 04:08
KST 12:08
  • 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
TL.net Map Contest #21: Winners4Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!21$5,000+ WardiTV 2025 Championship5[BSL21] RO32 Group Stage3Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond) $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review [BSL21] RO32 Group Stage Practice Partners (Official) [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION
Strategy
Current Meta How to stay on top of macro? PvZ map balance Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread General RTS Discussion Thread
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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Career Paths and Skills for …
TrAiDoS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1744 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
Replay Cast
23:00
WardiTV Mondays #58
LiquipediaDiscussion
OSC
22:00
Masters Cup 150 Open Qual
davetesta67
Liquipedia
LAN Event
18:00
Day 3: Ursa 2v2, FFA
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 192
NeuroSwarm 143
ProTech129
StarCraft: Brood War
Calm 7475
Artosis 671
Shuttle 609
actioN 389
Sharp 168
Noble 55
Icarus 2
Dota 2
LuMiX1
Other Games
tarik_tv12842
summit1g9733
JimRising 332
WinterStarcraft250
C9.Mang0227
ViBE165
FrodaN127
Organizations
Other Games
gamesdonequick890
Counter-Strike
PGL128
Other Games
BasetradeTV84
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Sammyuel 14
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21440
League of Legends
• Stunt219
Other Games
• Scarra548
Upcoming Events
OSC
8h 52m
LAN Event
11h 52m
Korean StarCraft League
23h 52m
CranKy Ducklings
1d 6h
LAN Event
1d 11h
IPSL
1d 14h
dxtr13 vs OldBoy
Napoleon vs Doodle
BSL 21
1d 16h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 19h
Sparkling Tuna Cup
2 days
WardiTV Korean Royale
2 days
[ Show More ]
LAN Event
2 days
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
3 days
Wardi Open
3 days
WardiTV Korean Royale
4 days
Replay Cast
5 days
Kung Fu Cup
5 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
6 days
RSL Revival
6 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
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.