![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
![]() Is there any good PHP compiler ?
anybody have any idea of the benchmarks of a compiled PHP script Vs C++ cgi ?
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
I'm looking for something like this ... but it's not ready yet.
If you?ve ever wondered if it possible to convert a PHP script into an executable program for a specific operating system then you aren?t alone. A number of projects which do just that were announced on the list this week. BinaryPHP is a tool than can convert a PHP script to C++ source code that can be compiled with a standard C++ compiler. A ?proof of concept? release is available for download at the web site. John Coggeshall has been working on a Zend module tentatively called PASM, the Php AsseMbler. His web site contains some preliminary information about the project, with a download expected to be available sometime soon. Link
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
If the goal is to hide source code, u should look into PHP encoders. Zend has a good one.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
that ... but mostly execution speed.
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Will code for food...
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
|
PHP runs in threads. If you make standalone php executables, they will create new processes each time they run, just like cgi. That is more resource consuming.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
right, but still C++ is way less resources consuming than PHP... I need to right a cgi that will be called 300 000 times a day. Do you really think it's a option to code it in PHP ?
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,114
|
Quote:
300k daily is nothing though, there are sites doing well over a million a day powered by php+mysql backends. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
I don't understand ... a compiled application is faster and less resources consuming.
but you guys doesn't seems to think so ... I wonder why. (but I value very much your opinion)
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
To say that C++ is always better than PHP wouldn't be right. I love C++ and I loathe PHP but sometimes PHP is better suited to a particular job. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Registered User
Join Date: Jul 2004
Location: Montreal
Posts: 40
|
As stated above, a TGP scipt in ANY language should not be generating the entire page from the database on every page view. It should instead generate a static HTML file every time there are changes to it. That being said, if you absolutely need to serve each page dynamically, adding something like the Zend performance suite, or their new product, Canaveral, will help a lot.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Industry Role:
Join Date: Jul 2003
Posts: 3,108
|
Just compiling anything so that it is an executable does not make anything faster. If its written shitty its written shitty.
I bet a compiled version of PHP is simply the php parsed piggy-backing the script(s) and running them in-memory. Even if it is not that, it still all goes through PHP functions. Learn C if you want to code something as fast as C.
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right." - Charlie Munger |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
ok basically I want to do a TGP script (in PHP) that collect A LOT of informations on what my surfers do on my site. I want to monitor everything so I'll be able to send targeted traffic, adjust my sponsors etc.
So I want to make everything possible in javascript with cookies to use the surfer computer power as possible. On the onClose event I'll send all the info collected to a script on my server, which should be in C++ (I think, to insert the info in my DB). But I'm not sure of the reliability of such technology (since some ppl disable Javascript and cookies)
__________________
I have nothing to advertise ... yet. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Aug 2003
Location: detroit
Posts: 766
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Join Date: Aug 2003
Location: detroit
Posts: 766
|
Quote:
with that being said, i agree with you, if it is effiency he is after C/C++ are amoung his few options. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
__________________
Amen |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Join Date: Jul 2002
Location: Montreal
Posts: 833
|
Quote:
__________________
174-38-56 ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
![]() Don't worry for me. I'll get thru. It's just that I haven't planned everything yet so some concept are still blury ... Sorry but it's frustrating that you think I'm overhead with all the qualifications I have ... I know it's not your fault, but still ...
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Jul 2002
Location: Montreal
Posts: 833
|
des qu'on parle pas anglais parfaitement, ils pensent qu'on ne sait pas de quoi on parle.. ne t'en fait pas.
![]()
__________________
174-38-56 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
Sounds like you're working forwards and trying to anticipate everything... why not just work backwards? Try it using plain old PHP, and see if it works. Refine further.
Using javascript and the onClose event will probably be caught by most popup blockers. As long as you have a dedicated server with decent specs you shouldn't run into load problems. One of mine has about 150k site loads/320k clicks going through a PHP script daily. 12:39PM up 24 days, 11:33, 1 user, load averages: 0.07, 0.14, 0.15 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
For the Javascript, that's what I'm afraid off ... but on the other hand I can't use a PHP script each and every time somebody click somewhere...
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 | |
Confirmed User
Join Date: Aug 2003
Location: detroit
Posts: 766
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
If you think my question are about really basic stuff well you might not have understood correctly what I wrote. Most likely to be me who haven't explain correctly what I meat...
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 | |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
Quote:
![]() ![]() If you run into load issues with plain PHP then you can upgrade to Zend, which compiles the script to pseudocode so it doesn't need to be parsed for each load. I believe it also does some other funky tricks like caching. The catch is that it will cost $$$. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 | |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
Quote:
I guess I'll post it again. http://turck-mmcache.sourceforge.net/index_old.html free and faster than Zend.
__________________
Amen |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#29 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#30 | |
Confirmed User
Join Date: Apr 2004
Location: Montreal
Posts: 799
|
Quote:
![]() Look very interresting ! Thanks a lot
__________________
I have nothing to advertise ... yet. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#31 | |
Registered User
Join Date: Jul 2003
Posts: 81
|
Quote:
Sorry Lane, but I must have been living under a rock, or actually just don't use much PHP code. But I was under the assumption that the source code (PHP lines) was NOT readable in a browser? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#32 | |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Land o Nubiles
Posts: 2,350
|
Quote:
__________________
www.nubilefilms.com | www.nubiles.net | www.anilos.com | tubescript.nubiles.net | icq4162727 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |