• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:25
CEST 22:25
KST 05:25
  • 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 Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall12HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed4Weekly Cups (July 7-13): Classic continues to roll2Team TLMC #5 - Submission extension1Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
Who will win EWC 2025? The GOAT ranking of GOAT rankings Esports World Cup 2025 - Brackets Revealed Esports World Cup 2025 - Final Player Roster RSL Revival patreon money discussion thread
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event $5,100+ SEL Season 2 Championship (SC: Evo) WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
External Content
Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome
Brood War
General
Flash Announces (and Retracts) Hiatus From ASL BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion A cwal.gg Extension - Easily keep track of anyone [Guide] MyStarcraft
Tourneys
CSL Xiamen International Invitational [BSL20] Non-Korean Championship 4x BSL + 4x China [Megathread] Daily Proleagues 2025 ACS Season 2 Qualifier
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile CCLP - Command & Conquer League Project The PlayStation 5
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Summer Games Done Quick 2025! Things Aren’t Peaceful in Palestine Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
TeamLiquid Health and Fitness Initiative For 2023 2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 729 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
Netherlands10340 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
Netherlands10340 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
RotterdaM Event
16:00
Rotti Stream Rumble 5k Edition
RotterdaM881
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 881
ZombieGrub103
Nathanias 91
JuggernautJason87
ProTech60
StarCraft: Brood War
Larva 667
firebathero 436
sas.Sziky 46
IntoTheRainbow 11
Stormgate
NightEnD11
League of Legends
Grubby4465
Counter-Strike
fl0m1340
pashabiceps792
Stewie2K442
Foxcn343
Super Smash Bros
Mew2King112
PPMD1
Heroes of the Storm
Liquid`Hasu474
Khaldor274
Other Games
summit1g5104
mouzStarbuck247
KnowMe176
C9.Mang0135
Pyrionflax90
QueenE70
Trikslyr65
Sick54
FunKaTv 51
shahzam35
Organizations
Other Games
gamesdonequick4925
StarCraft 2
angryscii 32
Other Games
BasetradeTV10
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• kabyraGe 234
• Adnapsc2 14
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• 80smullet 28
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21432
Other Games
• imaqtpie1894
• Shiphtur522
Upcoming Events
Replay Cast
3h 35m
Replay Cast
13h 35m
WardiTV European League
19h 35m
ShoWTimE vs sebesdes
Percival vs NightPhoenix
Shameless vs Nicoract
Krystianer vs Scarlett
ByuN vs uThermal
Harstem vs HeRoMaRinE
PiGosaur Monday
1d 3h
uThermal 2v2 Circuit
1d 19h
Replay Cast
2 days
The PondCast
2 days
Replay Cast
3 days
Epic.LAN
3 days
CranKy Ducklings
4 days
[ Show More ]
Epic.LAN
4 days
BSL20 Non-Korean Champi…
4 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
Sparkling Tuna Cup
5 days
Online Event
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Liquipedia Results

Completed

2025 ACS Season 2: Qualifier
RSL Revival: Season 1
Murky Cup #2

Ongoing

JPL Season 2
BSL 2v2 Season 3
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
Championship of Russia 2025
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters

Upcoming

CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
K-Championship
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
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
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.