[PHP] NT Auto Authentication?

2005-01-17 Thread Adrian Madrid
Anybody figured out how to auto authenticate into a windows server? I 
need to have some users log through NT Authentication on their browser 
without typing their username and password. I was wondering if I could 
use PHP + COM or something like that but I can't find anything. I have 
found some scripts that validate against NTLM but I have not been able 
to find a script that would actually validate the browser/session 
against a NT server. Help!

--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Adrian Madrid
I think I understand where you're coming from. I've had a similar 
problem and the best solution I've found is eAccelerator (previously 
known as Turck MMCache). What EA does is keep the bytecodes PHP compiles 
inshared memory so next time you need that script PHP doesn't need to 
recompile, EA returns the bytecode from SHM. Now, since PHP scripts are 
compiled and saved in SHM all I need to do is /save/ the data that does 
not change often but requires a lot of queries as code (an array inside 
a script) and include it whenever I need the data. No recompiling, no 
need to touch the DB again, pure speed. I hope all this helps you. I 
personally don't need extra processes and stuff like that but if you 
really want all that you can take a look at phpbeans.

Hope it helps,
Adrian Madrid
eAccelerator: http://eaccelerator.sourceforge.net/Home
phpbeans: http://www.simian.ca/index/phpbeans
Josh Whiting wrote:
Dear list,
My web application (an online classifieds server) requires a set of
fairly large global arrays which contain vital information that most all
the page scripts rely upon for information such as the category list,
which fields belong to each category, and so on. Additionally, there are
a large number of function definitions (more than 13,000 lines of code
in all just for these global definitions).
These global arrays and functions never change between requests.
However, the PHP engine destroys and recreates them every time. After
having spent some serious time doing benchmarking (using Apache Bench),
I have found that this code takes at least 7ms to parse per request on
my dual Xeon 2.4ghz server (Zend Accelerator in use*). This seriously
cuts into my server's peak capacity, reducing it by more than half.
My question is: is there a way to define a global set of variables and
functions ONCE per Apache process, allowing each incoming hit to run a
handler function that runs within a persistent namespace? OR, is it
possible to create some form of shared variable and function namespace
that each script can tap?
AFAIK, mod_python, mod_perl, Java, etc. all allow you to create a
persistent, long-running application with hooks/handlers for individual
Apache requests. I'm surprised I haven't found a similar solution for
PHP.
In fact, according to my work in the past few days, if an application
has a large set of global functions and variable definitions, mod_python
FAR exceeds the performance of mod_php, even though Python code runs
significantly slower than PHP code (because in mod_python you can put
all these definitions in a module that is loaded only once per Apache
process).
The most promising prospect I've come across is FastCGI, which for Perl
and other languages, allows you to run a while loop that sits and
receives incoming requests (e.g. while(FCGI::accept() = 0) {..}).
However, the PHP/FastCGI modality seems to basically compare to mod_php:
every request still creates and destroys the entire application
(although the PHP interpreter itself does persist).
Essentially I want to go beyond a persistent PHP *interpreter* (mod_php,
PHP/FastCGI) and create a persistent PHP *application*... any
suggestions?
Thanks in advance for any help!
Regards,
J. Whiting
* - Please note that I am using the Zend Accelerator (on Redhat
Enterprise with Apache 1.3) to cache the intermediate compiled PHP code.
My benchmarks (7ms+) are after the dramatic speedup provided by the
accelerator. I wouldn't even bother benchmarking this without the
compiler cache, but it is clear that a compiler cache does not prevent
PHP from still having to run the (ableit precompiled) array and function
definition code itself.
 


--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070


Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Adrian Madrid
I've done some benchmaring and it is quite fast, specially compared to 
talking to the DB. Also, phpbeans provides a daemon that can give you 
the solution you are looking for, I believe.

Adrian
Rasmus Lerdorf wrote:
Adrian Madrid wrote:
I think I understand where you're coming from. I've had a similar 
problem and the best solution I've found is eAccelerator (previously 
known as Turck MMCache). What EA does is keep the bytecodes PHP 
compiles inshared memory so next time you need that script PHP 
doesn't need to recompile, EA returns the bytecode from SHM. Now, 
since PHP scripts are compiled and saved in SHM all I need to do is 
/save/ the data that does not change often but requires a lot of 
queries as code (an array inside a script) and include it whenever I 
need the data. No recompiling, no need to touch the DB again, pure 
speed. I hope all this helps you. I personally don't need extra 
processes and stuff like that but if you really want all that you can 
take a look at phpbeans.

What you are talking about is opcode caching.  While it certainly 
speeds things up, it can be done much faster.  When you cache a file 
that contains a large PHP array definition, all you are caching are 
the instructions to create that array.  On every request these 
instructions need to be loaded from shared memory and executed in 
order to recreate the array.  This can be quite slow.  What we are 
discussing here are ways to avoid recreating the array on every 
request which is quite different.

-Rasmus

--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Persistent PHP web application?

2005-01-06 Thread Adrian Madrid
http://eaccelerator.sourceforge.net/Home
Go there, you'll find more about it. In short, Zend hired the lead 
programmer of MMCache and the project eventually died off. Other people 
picked it up and developed patches to update it. I believe eAccelerator 
is the most advanced and stable for me in PHP 5. I'm running it and it's 
been good to me. Although I recommend taking the optimizer off. Anyway, 
hope it helped.

Adrian Madrid
William Lovaton wrote:
El jue, 06-01-2005 a las 10:26 -0700, Adrian Madrid escribió:
 

I think I understand where you're coming from. I've had a similar 
problem and the best solution I've found is eAccelerator (previously 
known as Turck MMCache).
   

Hold on a second!  I use Turck MMCache but I didn't know about the
change of name... what is the history behind this?  What is the state of
development?
-William
 


--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070


[PHP] Anybody using Roadsend Compiler?

2004-11-30 Thread Adrian Madrid
I'm thinking about evaluating the Roadsend Compiler and wanted to know 
how people that are using it feel about it.

Thanks,
--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Accelerator

2004-11-09 Thread Adrian Madrid
I rewrote my framework to use some of the new OOP features in PHP5 and 
haven't had a single segfault yet. Again, my only segfaults came when 
using MMCache's session handler. Another caveat is that I compile my own 
PHP  MMCache everytime instead of using RPMs and stuff.

Anyway, just my 2 cents.
Adrian Madrid
Klaus Reimer wrote:
Adrian Madrid wrote:
I've been running Turck for some time now on PHP5 and haven't had
segfault problems yet. I must say I'm running the latest CVS and using
file sessions (Turck's would give you segfaults). 

I also tried latest CVS and I don't use Turcks cache. Maybe Turck has 
problems with Objects in PHP5 (because there were the great changes) 
while normal Non-OO-Scripts are running flawlessly.


--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP Accelerator

2004-11-08 Thread Adrian Madrid
Klaus Reimer wrote:
raditha dissanayake wrote:
this one:
- Turck MMCache for PHP

Turck MM Cache does not work with PHP 5. It's possible to compile and
load it and some pages are working but most of the time it segfaults.
By the way: Does anybody know if the Turck MM Cache project is still
active? The last change in CVS is 5 months old, the last release is
nearly a year old. And there were rumors that the main developer was
assimilated by Zend.
I've been running Turck for some time now on PHP5 and haven't had
segfault problems yet. I must say I'm running the latest CVS and using
file sessions (Turck's would give you segfaults). About new developments
there's been a lot of talk in the forums but so far only one person
mentioned having done changes int he code. The original developers have
not answered the call so far so we would have to hope for somebody else
to step up.
--
Adrian Madrid
HyperX Inc.
Mobile: 801.815.1870
Office: 801.566.0670
[EMAIL PROTECTED]
www.hyperxmedia.com
9000 S. 45 W.
Sandy, UT 84070
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] File and line that called a function?

2004-10-18 Thread Adrian Madrid
Is there a way to know which file and line called a function youo are 
in? I want to create an error function that can tell me which file and 
line called it. I know __FILE__ and __LINE__ but they will return the 
file and line that my error function is in, and not the originators.

Thanks in advance,
--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PEAR status on PHP5?

2004-10-12 Thread Adrian Madrid
Is PEAR stable on PHP5? I'm trying a new project on PHP5 and keep 
getting different kinds of errors (deprecated, etc.) on DB.php, 
PEAR.php, etc. Looks like so far there has been no show stoppers but it 
would be nice if it wouldn't give errors. What's the status on this? Has 
anybody used PEAR and PHP5 on a production environment succesfully yet?

Thanks in advance,
--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Are server classes possible?

2004-10-12 Thread Adrian Madrid
I have used Turck MMCache in the past to store results in shared memory 
with an specific TTL. Also you could use Cache_Lite in PEAR.

Hope it helps,
Adrian Madrid
Jed R. Brubaker wrote:
I am thinking like JavaBeans. Here is what I have going on:
I have a series of rather database intensive queries that I would like some 
class to cache and provide access for page loads. I don't care how the 
information is stored, but I am trying to minimize the database call down to 
only once an hour at the most.

The trick is that I just want the data - like a quazi-db table in memory...
Is there something like that I should look at? Somewhere in PEAR?
Thank you in advance! 

 


--
Adrian Madrid
HyperX Inc. 
Mobile: 801.815.1870
Office: 801.566.0670 
[EMAIL PROTECTED] 
www.hyperxmedia.com 

9000 S. 45 W.
Sandy, UT 84070
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Flexy Template and IF condition statements

2004-07-22 Thread Adrian Madrid




Is there any
way to test a condition other than true/false with flexy? I mean,
how/can you test $x == 'hello' in flexy? Sorry about my ignorance, just
trying to learn Flexy. BTW, are there any other resources besides the
PEAR manuals?

Thanks in advance,


-- 
Adrian Madrid
http://www.hyperxmedia.com
HyperX Media
45 West 9000 South, Unit 2
Sandy, UT 84020
Office: 801.566.0670


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Midgard anyone?

2004-04-29 Thread Adrian Madrid
Has anyone dabbled long enough to figure out Midgard? I've been meaning 
to evaluate the Framework and CMS for a long time and I think I have the 
time now to do it. Nevertheless, I would like to get  a heads up on it 
before jumping in. Any comparisons to other CMSs/Frameworks?

Thanks in advance,

--
Adrian Madrid
http://www.hyperxmedia.com
HyperX Media
45 West 9000 South, Unit 2
Sandy, UT 84020
Office: 801.566.0670

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pear Layout question

2004-04-19 Thread Adrian Madrid
Chris wrote:

I asked this on the pear list and haven't received an answer. Hopefully
someone here can help.
I want to move to pear for some of my development/consulting needs. I
have only been exposed to pear for a script that I myself purchased, so
I am not that familiar with it. I know that pear is already installed on
my server, but I cannot speak for future clients. I would like to be
able to give my customers a zip file with my script and all the needed
pear modules. I've looked over the documentation and I did not see
anything touching on this.
What is an effective directory setup for this? Does this seem acceptable?

PEAR
--DB
--HTTP
--SOAP
--NET
--etc
Thanks
Chris
 

This is the closest you will get with the documentation:

http://pear.php.net/manual/en/installation.shared.php

Maybe what you need to do is follow those steps on a shared host and 
package that in a zip.

--
Adrian Madrid
http://www.hyperxmedia.com
HyperX Media
45 West 9000 South, Unit 2
Sandy, UT 84020
Office: 801.566.0670

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] patTemplate

2004-04-14 Thread Adrian Madrid
Enrico Weigelt wrote:

BTW: is there anyone (beside me) who uses patTemplate ?

cu
 

I'm not currenlty using pattemplate but I would like to test it. What's 
the status? Looking at the website it shows 2.5 as unstable and CVS 
looks like is a full rewrite. Should I test 2.4, 2.5 or 3.0 (CVS)?

Thanks in advance,



--
Adrian Madrid
http://www.hyperxmedia.com
HyperX Media
45 West 9000 South, Unit 2
Sandy, UT 84020
Office: 801.566.0670

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Logo with a dog?

2004-04-01 Thread Adrian Madrid
Has anybody had the PHP logo in phpinfo() appear with a picture of a dog?

--
Adrian Madrid
http://www.hyperxmedia.com
HyperX Media
45 West 9000 South, Unit 2
Sandy, UT 84020
Office: 801.566.0670

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Logo with a dog?

2004-04-01 Thread Adrian Madrid
Matt Matijevich wrote:

snip
Has anybody had the PHP logo in phpinfo() appear with a picture of a
dog?
/snip
April Fools easter egg

 

Man, I thought I was getting my server compromised Man, you start 
coding and 8 hours later you can't take a joke! LOL

Thanks,

--
Adrian Madrid
http://www.hyperxmedia.com
HyperX Media
45 West 9000 South, Unit 2
Sandy, UT 84020
Office: 801.566.0670

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php