Re: [PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
what Kim is asking is, on your copy of RedHat Fedora Core 3, > is are the SELinux security features enabled? > > On 5/19/05, Michael Stearne <[EMAIL PROTECTED]> wrote: > > No. It's RedHat Fedora Core 3. > > > > Michael > > > > > > On 5/1

Re: [PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
Thank you! setsebool httpd_disable_trans true /etc/init.d/httpd restart did it. Michael On 5/19/05, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > Michael Stearne wrote: > > I am having the strangest problem using system() or exec() or any > > variation. None of them work

Re: [PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
I noticed that. I don't believe SELinux is installed. Is these known to disable system calls? Thanks, Michael On 5/19/05, Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: > On Thu, 19 May 2005, Michael Stearne wrote: > > > No. It's RedHat Fedora Core 3. >

Re: [PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
Thanks. Neither have helped. I have no idea what the deal is. I think it might be some restriction set by Fedora or Apache. Michael On 5/19/05, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > > I am having the strangest problem using system() or exec() or any > > variation. None of them work o

[PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default installation for Fedora Core 3. Everything in PHP works as expected except when trying a syst

Re: [PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
No. It's RedHat Fedora Core 3. Michael On 5/19/05, Kim Madsen <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Michael Stearne [mailto:[EMAIL PROTECTED] > > Sent: Thursday, May 19, 2005 9:10 AM > > > I am having the strangest p

[PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.9 with Apache 2.0.52, the default installation for Fedora Core 3. Everything in PHP works as expected except when trying a syste

[PHP] Putting Evaluated Contents Of Include File Into Varialble

2005-02-22 Thread Michael Stearne
Hi, I have an file that contains PHP code..variables, db, etc. Is it possible to include the evaluted contents of that file into a variable in another, the calling PHP script? Essentailly I am looking to do something like include("myCode.php") -> HTML Output -> $myVariable. I know could do thi

Re: [PHP] Error with Netscape 6.2

2001-11-14 Thread Michael Stearne
That is not an error you get from a browser, that is an error generated by the server. Netscape or IE are just reporting that. Are you sure the app works in IE (try Shift+Refresh on IE and Shift+Reload on NS). It sounds like there is a problem in your code. Michael Anthony wrote: > I ge

Re: [PHP] Connecting to a MSSQL2000 database with a Linux box and PHP

2001-08-17 Thread Michael Stearne
This should be in the manual or in the archives of the list. I believe you have to use the Sybase drivers for Linux in order to conntect to the database. Michael Brandon Orther wrote: >Hello, > >Does anyone know of a tutorial on how to get PHP to connect to a MSSQL >database from a Linux b

Re: [PHP] Code Examples for Job Interview

2001-07-09 Thread Michael Stearne
I would say get a function or several functions that are indictatiave of your style and solve a fairly complex problem in an elegant way. I don't think thousands of lines of code will be necessary. Michael JCampbell wrote: >Hey Everyone. > >This isn't a request for code or help, just though

Re: [PHP] sending 5000+ emails - use PHP?

2001-07-01 Thread Michael Stearne
PHP can handle this (although you will definitely have to disable script timeout) in one run. But a smarter thing to do would be to not send all the 5000 emails at one time rather come up with a method that runs the PHP script every 5 minutes (a cron job) and send the newsletter out in 200+ e

Re: [PHP] Threaded discussion Phorum algorithm

2001-05-23 Thread Michael Stearne
Here's a paper Jamie Zawinski did on threading, it might be of use, but probably a little more than what you were looking for. http://www.jwz.org/doc/threading.html Michael rodrigo wrote: > I need to implement a custom discussion phorum for a news site. I would > like to know what is the most

Re: [PHP] Global variables? (unset/set or what?)

2001-05-19 Thread Michael Stearne
Try the define function. That will define a constant that you will always have access to (within functions, through various included files,etc.) Or you can write values to the $GLOBALS array of global variables. $GLOBALS["userPassword"]="u8943fd"; Will define a variable that is accessible as $

Re: [PHP] Is the CGI-only Win32 binary compiled with --enable-sockets?

2001-05-10 Thread Michael Stearne
If you make a page with phpinfo() you will see all the compile options that were used for the particluar build you have (at the top of the page). Michael Todd wrote: >I'm trying the example client code under Socket Functions in the >documentation and I get the error: > >Fatal error: Call t

[PHP] PEAR Versions

2001-05-07 Thread Michael Stearne
I have a version of PEAR installed now with 4.0.3pl1. I need some of the newer versions of the functions that have been added since then. I need mysql's afftedRows for instance. I see in the 4.0.5 of PEAR that was given with 4.0.5 that some function have "since 4.0.5" in PEAR.php in par

Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1

2001-05-07 Thread Michael Stearne
Yeah, I hope it's a MacOS app also. Michael Meir kriheli wrote: >On Tuesday 08 May 2001 00:39, elias wrote: > >Is it a windows app (I hope it isn't)? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

[PHP] Zend.com CVS

2001-05-07 Thread Michael Stearne
Is the Zend CVS down? The connection is really slow, I have been trying to get the source for an hour. Is the problem on my end or Zend? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

[PHP] Updating an installation of PEAR

2001-05-07 Thread Michael Stearne
I have a pretty current version of PEAR installed on a server, but would like to upgrade to the most recent CVS. I have pulled the CVS version. How can I "install" this new version of PEAR into the place I have my current version without recompiling PHP again. Are all the configuration for insta

Re: [PHP] PHP & Java ?

2001-05-04 Thread Michael Stearne
They are totally un-related. Make sure that the final HTML on the page (some of it generated by PHP) is corrent and doesn't break the Java/Javascript. Michael Jack Sasportas wrote: >While working on some web sites which contain mouse over java, and then >adding in some db stuff via php/mys

[PHP] Homesite - Windows and CVS

2001-05-03 Thread Michael Stearne
We are working on a project that is hosted on Linux, but the development is being done on Windows using Homesite. I have looked around but haven't found any real solutions with an IDE that can work directly with a remote CVS project like MacOS's Project Builder can for example. Are there any

Re: [PHP] Lines

2001-04-24 Thread Michael Stearne
If you use the file() function to open up the file, it will put each line of the file into an array. At that point you can say: for($i=5;$i<11;$i++){ print $myFile[$i]; } Michael Rafael Faria wrote: > > > Hey Guys, > it's my first post on this list, and my doubt is... > > how can i take

Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Michael Stearne
Along with VaLinux.com and all new VA sites. Penguin Computing dies too. Michael On Tuesday, April 10, 2001, at 12:20 PM, Phillip Bow wrote: > Well since nobody else has chimed in(barring the fact it may be in one > of > the already recommended lists) sourceforge is made with php, and is a >

Re: [PHP] Script Encodeing??? other than Zend.

2001-04-03 Thread Michael Stearne
I forget what it is called but I think there is an OpenSource one, check the archives on this subject. Also chack out APC http://apc.communityconnect.com/ , it is an OpenSource version of the cache tool that may in the future provide encoding I believe. Michael On Tuesday, April 3, 2001, at

Re: [PHP] iODBC Mac OS X HOWTO

2001-04-03 Thread Michael Stearne
Thanks a lot, this will be a big help. Michael On Tuesday, April 3, 2001, at 02:58 PM, Andrew wrote: > Hi all, > > In the past couple of weeks, many people have asked me about compiling > PHP / > Apache under Mac OS X, so I've updated my iODBC HOWTO specifically for > Mac > OS X. > > This wal

Re: [PHP] Porting ASP code to PHP

2001-04-02 Thread Michael Stearne
On Monday, April 2, 2001, at 05:53 PM, Mike King wrote: > > > Michael Stearne wrote: >> >> get the application running in it as soon as possible. >> >> Maybe, but that's what version 2.0 is for! >> >> >> Again that can come over time, ge

Re: [PHP] Porting ASP code to PHP

2001-04-02 Thread Michael Stearne
The thing that will make PHP look the best right now is to get the application running in it as soon as possible. If it's quickest to move the variables to $variables and leave all the business logic how it was under ASP, then that will help your PHP case the most. Once the code is simply c

Re: [PHP] PHP4 on UNIX connect to MS SQL Server

2001-02-26 Thread Michael Stearne
This is a really common question. Check the mailing list archive for an answer. (I don't know) Michael Scott Fletcher wrote: > Anyone know of a open-source driver that would allow unlimited database > connection to connect the UNIX machine to a MS-SQL Server 7.0 and is free? > > I have see Fre

Re: [PHP] apache+php on MacOSX

2001-02-23 Thread Michael Stearne
Thierry Coopman wrote: > At 8:46 AM -0500 2/23/01, Andrew Hill wrote: > >Thierry, > > > >Not sure if you need that 'echo' in there. > > with or without echo it doesn't work, the PHP works on Solaris. > > > > >Also, if you have problems, compiling PHP / apache under MacOS X isn't THAT > >complic

Re: [PHP] PHP / Filemaker?

2001-02-23 Thread Michael Stearne
The only way you can do it now is through ODBC. In OS X ODBC will probably be better along with a Carbon FMP version, it will be a good combo. Michael knaSen wrote: > Hey > > This is my first question and mail to this list...hope u treat me decent =) > My earlier work have been lasso/filemake

Re: [PHP] java servlets

2001-02-22 Thread Michael Stearne
Adrian Murphy wrote: > Is there anything java servlets can do that php can't. Well I had to use a servlet because of it's threading ability once. Java servlets are actual programs that can continue to run on the server. That is useful when you need a threaded process for instance. Michael >

Re: [PHP] PDF Problems

2001-02-21 Thread Michael Stearne
What OS and glibc version? There are problems with the set-up in RH7. Michael Sam Goin wrote: > Hi, > > I am running PHP4.04pl1, pdflib3.03, jpeg6b, tiff3.5.5, apache1.3.17. > > Some of the pdf functions work, but others don't, such as pdf_new(). > > Does anybody know what the problem is? I h

Re: [PHP] Making .phtml an extension

2001-02-21 Thread Michael Stearne
Or the .htaccess file of your top directory if you are virtual hosting and cannot change the httpd.conf file. Michael Pavel Jartsev wrote: > Brandon Orther wrote: > > > > Hello, > > > > I am trying to get .phtml to work for php files. How would I do this? > > If you have Apache, then followin

Re: [PHP] Configuring PHP4 on pair.com

2001-02-21 Thread Michael Stearne
Don't reference the absolute path to php4.cgi in your .htaccess it has to be relative to the domain. Instead, try: Action application/x-httpd-php-xphp /cgi-bin/PHP2/php.cgi AddHandler application/x-httpd-php-xphp .phtml This is how I got PHP2 back. BUT, if you server is one of the ones that ha

Re: [PHP] Asking Sth about PHP

2001-02-20 Thread Michael Stearne
You can run php from the command line as a standalone app. Compole PHP as a stand-alone CGI program (read the INSTALL file) and then run it like: localhost$ /path/to/php -f myFile.php Or you can also run it withing a shell or perl script the same way (maybe through a system() call in perl) Mic

Re: [PHP] ASP / PHP / embedded scripting (possibly OT)

2001-02-19 Thread Michael Stearne
ASP is a framework in which laguages are used. The most commonly used language is VBScript. You can also use JScript (MS's Javascript) or PerlScript within ASP. Check with MS for more info. Of course you can always assign the .asp extenion to PHP files and say it's ASP. Michael "..s.c.o.t.t

Re: [PHP] PDF Functions

2001-02-19 Thread Michael Stearne
I think you're getting through the configure and compile somehow (maybe info is cached), but not really compiling in the PDF functions. I really think this is an issue with the setup of RH 7. Why don't you try to install the 7.1 which is beta now to see if RH fixed it in anyway. Or you can go b

Re: [PHP] Converting CFML to PHP

2001-02-18 Thread Michael Stearne
Cold Fusion Markup Language. It's Cold Fusion's "programming language". Michael Brian Drexler wrote: > Maybe I'm not all with it, but what is CFML? > > > - Original Message - > From: Camden Spiller <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, February 18, 2001 3:52

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Michael Stearne
mageExt; }else { print "$image_name is not a valid file to upload. Please upload JPEG (.jpg) or GIF (.gif) type images only. "; return 0; } } Brian Drexler wrote: > exec( "mv $image '$Destination/$FileName'"); > ?> > > - Original Message

Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Michael Stearne
The script you are using is probably checking the MIME type of the file uploaded and rejecting any of the ones that are not one of the types you listed. Look at or post some of the code you are using to find out if this is the case. Michael Brian Drexler wrote: > I've been using a PHP uplo

Re: [PHP] Macs and PHP

2001-02-18 Thread Michael Stearne
Mike Yuen wrote: > I'm got another person working for me on a site. He's a Mac user and for > some reason, he can't seem to register as a new person. I know this > problem isn't due to the large amount of traffic b/c it's a new site with > 3 users max at any time. > > I haven't found any sim

Re: [PHP] PHP Code Obfuscator?

2001-02-17 Thread Michael Stearne
Joe, I think that the APC product (Alternative PHP Cache) may soon offer souce "encoding". I think I remember reading about that. Regard APC seems to be a very nice product. Check it out at http://apc.communityconnect.com/ Michael Joe Njeru wrote: > Jim, > > I also come from a third world c

Re: [PHP] Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Michael Stearne
There is an example of this in Mozilla. If you go to the Debug->Viewer Demos menu and select #14 or #15 there are some nice examples there. If you don't have Mozilla, use Netscape 6 to go to: http://www.mozilla.org/newlayout/xml/debugdemos/books/books.xml and http://www.mozilla.org/newlayout/

Re: [PHP] Database Code Portability

2001-02-16 Thread Michael Stearne
This topic is covered a lot. Right now there are two major DB abstraction packages, Manuel Lemos' Metabase ( http://phpclasses.UpperDesign.com/browse.html/package/20 ) and the one that is distrubuted with PHP located in your distributions PEAR directory. Try both, see which one works better for

Re: [PHP] Code Optimizer

2001-02-16 Thread Michael Stearne
You can set your error reporting in your php.ini file or set error_reporting() in your scripts to be very sensitive where it will tell you such things as variables that weren't defined properly. Look into http://www.php.net/manual/en/features.error-handling.php Michael Joe Sheble aka Wizaerd w

Re: [PHP] PDF Functions

2001-02-14 Thread Michael Stearne
t? :) Damn Mac PPC somethin or other I just > don't get it.. > > In the mean time, I'd say 6.2 is a good bet. > > Good Luck, > > Chris > > On Wed, 14 Feb 2001, Mike Tuller wrote: > > Date: Wed, 14 Feb 2001 19:03:05 -0600 > > To:

Re: [PHP] Restrict access per IP Address

2001-02-14 Thread Michael Stearne
Run on a page. You will be able to see all of the available environment variables avaliable to you, one will tell you the client IP address. Michael "Karl J. Stubsjoen" wrote: > Okay, last one for the day! How do you query the clients IP address? We > have a site in development, and I wan

Re: [PHP] PDF Functions

2001-02-14 Thread Michael Stearne
Chris Carbaugh wrote: > > > I have had problems in the past with RedHat's RPMs. They seem to put > things in weird places. And just removing them and starting fresh with > source always seems to work. Besides, once you have built from source > a few times, it's really a piece of cake, and mu

Re: [PHP] File Upload equiv. with Java/JSP

2001-02-14 Thread Michael Stearne
I'm not sure but I think that may be something still missing from JSP. I am not sure and believe I read about a class or something that handles it. Looking at java.sun.com would probably be your best bet. Michael jason cox wrote: > Does anyone know the difference between file upload > handlin

Re: [PHP] PHP 4 on RedHat 7

2001-02-13 Thread Michael Stearne
That's crazy because I am doing the same exact thing right now (compile with PDF on RH 7 and having problems.) Anyway PDF and everything compiles fine on RH 6.2 but I have had some problems on 7. What I did is: Install mySQL Configure and install Apache (my configure looks like this): ./configur

Re: [PHP] Credit Cards

2001-02-09 Thread Michael Stearne
Read the Verisign (Under the Ps) or Cybercash section of the PHP manual. Michael Jerry Lake wrote: > I have a basic shopping cart setup > and I am curious as to how I go about > being able to handle real-time credit > card transactions. I realize there are > card services like cybercash and su

Re: [PHP] PDF Library

2001-02-09 Thread Michael Stearne
Search the archives for "PDF Windows" or something similar. Someone pointed to a link for preccompiled PDF binaries for Win32. Michael WebMax wrote: > How can I configure PDF Library on WIndows. It is not in the help file. > > Regards > > -- > PHP General Mailing List (http://www.php.net/) >

Re: [PHP] How does one build a big chat system?

2001-02-09 Thread Michael Stearne
> How does one build a big chat system? > Not in PHP :-). Really though, PHP is probably not the optimal language to do something like that in. I would think a Java Servlet or a C program or a Java applet (client) would be better for building something like that. PHP was not designed to keep a l

[PHP] PHP/PDFLib on SCO

2001-01-27 Thread Michael Stearne
Has anyone here gotten or tried to get PHP with Pdflib working on SCO (it's 5.0.5 I believe). I have tried to compile PHP as a CGI but have no luck with combining the two on SCO. It compiles fineon Linux, but I am looking for someone who has tried it on SCO. PHP 4.0.4pl1/PDFLib 3.03 Thanks, Mi

Re: [PHP] CF vs PHP for Creating PDF's

2001-01-21 Thread Michael Stearne
You might look into HTMLDOC. This progam takes HTML files as input and converts them to PDF. You could create a template in HTML, use PHP to replace to user specific fields and then call HTMLDOC to create the PDF. HTMLDOC is located at http://easysw.com/htmldoc/ Michael On Saturday, Janua

Re: [PHP] Re: PHP connecting to FIlemaker Database

2001-01-18 Thread Michael Stearne
True, but what if the poster has a FMP front-end to be used with the Web version? mySQL is non-existent on the desktop. And FMP makes building front-ends for destop apps very easy. Regardless, if you are using FMP on Win32 go through ODBC. If you are using it on MacOS you might wait until

RE: [PHP] load balancing with php/apache?

2001-01-13 Thread Michael Stearne
Any of the above. It's up to you. Most people probably store the session info in a database. But you could also do it in a shared drive. But I got a little static a while ago when I suggested storing shared session data on an NFS mounted drive. NFSes are too slow I guess. Michael On Satur

Re: [PHP] apple-macintosh

2001-01-12 Thread Michael Stearne
He is installing on OS X Server, which has been out for a year. Poster: Try http://www.xclave.com/ for more info on PHP/MySQL on OS X S. If you get the PHP/MySQL/Apache source they should compile out of the box on OS X Server. Michael On Thursday, January 11, 2001, at 06:25 PM, Alex Black w

Re: [PHP] OS X

2001-01-11 Thread Michael Stearne
On Thursday, January 11, 2001, at 01:27 PM, Alex Black wrote: > we'll see if they allow people to ditch Aqua (which is overblown) - but > overall I'm extremely excited... > You can log in to OS X as "console" and there is no GUI. Also, you can get Darwin which is Open Source and is the gu