• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:03
CEST 05:03
KST 12:03
  • 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
Team TLMC #5 - Finalists & Open Tournaments1[ASL20] Ro16 Preview Pt2: Turbulence10Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
StarCraft II 5.0.15 PTR Patch Notes133BSL 2025 Warsaw LAN + Legends Showmatch2Weekly Cups (Sept 8-14): herO & MaxPax split cups4WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia8
StarCraft 2
General
#1: Maru - Greatest Players of All Time StarCraft II 5.0.15 PTR Patch Notes Team TLMC #5 - Finalists & Open Tournaments Team Liquid Map Contest #21 - Presented by Monster Energy Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues
Tourneys
KSL Week 80 Stellar Fest StarCraft Evolution League (SC Evo Biweekly) RSL: Revival, a new crowdfunded tournament series SC2's Safe House 2 - October 18 & 19
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
ASL20 General Discussion BW General Discussion Diplomacy, Cosmonarchy Edition Soulkey on ASL S20 ASL TICKET LIVE help! :D
Tourneys
[ASL20] Ro16 Group D BSL 2025 Warsaw LAN + Legends Showmatch [ASL20] Ro16 Group C Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Borderlands 3 Path of Exile Nintendo Switch Thread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Big Programming Thread UK Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
Too Many LANs? Tournament Ov…
TrAiDoS
i'm really bored guys
Peanutsc
I <=> 9
KrillinFromwales
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1136 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
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
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
Korean StarCraft League
03:00
Week 80
davetesta39
HKG_Chickenman12
CranKy Ducklings5
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft423
NeuroSwarm 189
RuFF_SC2 167
Nathanias 72
Nina 39
PiLiPiLi 19
StarCraft: Brood War
ggaemo 82
Noble 39
Icarus 10
Bale 4
Dota 2
LuMiX1
League of Legends
JimRising 440
Trikslyr66
Cuddl3bear3
Counter-Strike
Coldzera 647
Other Games
summit1g8941
C9.Mang0325
ViBE196
Maynarde191
XaKoH 136
Organizations
Other Games
gamesdonequick971
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH138
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 53
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt342
Other Games
• Scarra1378
Upcoming Events
BSL Open LAN 2025 - War…
4h 57m
RSL Revival
6h 57m
Reynor vs Cure
TBD vs Zoun
OSC
17h 57m
BSL Open LAN 2025 - War…
1d 4h
RSL Revival
1d 6h
Classic vs TBD
WardiTV Invitational
1d 7h
Online Event
1d 12h
Wardi Open
2 days
Monday Night Weeklies
2 days
Sparkling Tuna Cup
3 days
[ Show More ]
LiuLi Cup
4 days
The PondCast
5 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
2025 Chongqing Offline CUP
BSL World Championship of Poland 2025
RSL Revival: Season 2
Maestros of the Game
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
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.