Re: [PHP] Problem With System Call

2005-05-19 Thread Michael Stearne
Yes, SELinux is enabled by default on Fedora Core 3.  So What I did was:

setsebool httpd_disable_trans true
/etc/init.d/httpd restart

That seems to work!  It removed all SELinux enhancements to the httpd though.

Michael



On 5/19/05, Brandon Ryan <[EMAIL PROTECTED]> wrote:
> I think 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/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 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 system call.  If I run :
> > > >
> > > >  > > > system("/bin/ls /tmp");
> > > > ?>
> > > >
> > > > on my OS X (Apache/1.3.33 (Darwin) PHP/4.3.4) this returns the desired
> > > > results, a listing of the tmp directory.  On the Fedora box I get
> > > > nothing, a blank page.  There is content in the /tmp directory on the
> > > > Fedora box.
> > >
> > > Are You perhaps running SElinux?
> > >
> > > --
> > > Med venlig hilsen / best regards
> > > ComX Networks A/S
> > > Kim Madsen
> > > Systemudvikler/Systemdeveloper
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

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



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 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 system call.  If I run :
> >
> >  > system("/bin/ls /tmp");
> > ?>
> >
> > on my OS X (Apache/1.3.33 (Darwin) PHP/4.3.4) this returns the desired
> > results, a listing of the tmp directory.  On the Fedora box I get
> > nothing, a blank page.  There is content in the /tmp directory on the
> > Fedora box.
> 
> These sorts of problems are easy to debug.  Switch to your web server
> user id and issue the same command.  You will most often find you have a
> permission problem, or in the Fedora/Redhat world you will find that
> SELinux is yanking your chain.  You may want to read through:
> 
>   http://fedora.redhat.com/docs/selinux-faq-fc3/
> 
> -Rasmus
> 
>

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



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.
> 
> SElinux isn't a distribution -- it's a capability set, and Fedora Core 3
> has it in it.
> 
> 
>

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



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 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 system call.  If I run :
> >
> >  > system("/bin/ls /tmp");
> > ?>
> >
> > on my OS X (Apache/1.3.33 (Darwin) PHP/4.3.4) this returns the desired
> > results, a listing of the tmp directory.  On the Fedora box I get
> > nothing, a blank page.  There is content in the /tmp directory on the
> > Fedora box.
> 
> Compare the output of phpinfo() on each machine.  Investigate any
> differences...
> 
> Also maybe this will help:
> 
> http://us4.php.net/features.safe-mode
> 
> -philip
> 
>

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



[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 system call.  If I run :



on my OS X (Apache/1.3.33 (Darwin) PHP/4.3.4) this returns the desired
results, a listing of the tmp directory.  On the Fedora box I get
nothing, a blank page.  There is content in the /tmp directory on the
Fedora box.

Please help!

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



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 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 system call.  If I run :
> >
> >  > system("/bin/ls /tmp");
> > ?>
> >
> > on my OS X (Apache/1.3.33 (Darwin) PHP/4.3.4) this returns the desired
> > results, a listing of the tmp directory.  On the Fedora box I get
> > nothing, a blank page.  There is content in the /tmp directory on the
> > Fedora box.
> 
> Are You perhaps running SElinux?
> 
> --
> Med venlig hilsen / best regards
> ComX Networks A/S
> Kim Madsen
> Systemudvikler/Systemdeveloper
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

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



[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 system call.  If I run :


  
on my OS X (Apache/1.3.33 (Darwin) PHP/4.3.4) this returns the desired
results, a listing of the tmp directory.  On the Fedora box I get
nothing, a blank page.  There is content in the /tmp directory on the
Fedora box.

Please help!

Michael

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



[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 this with something like
$myVariable=file_get_contents("http://localhost/myCode.php";) but I am
not allowed to use urls in file opens.

Any suggestions?

Thanks,
Michael

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



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 get a CGI error whenever I view my php app under Netscape 6.  The 
> error is:
> CGI Error
> The specified CGI application misbehaved by not returning a complete 
> set of HTTP headers. The headers it did return are:
>
> My question is, what are the headers that I need to send, where can I 
> find more info on this?  The app works perfectly under IE, but not 
> Netscape.
>
> - Anthony
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 box? 
> 
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 thoughts and ideas.
>
>I've recently been asked to bring along some code examples for a job
>interview I will be heading to this week. This was the exact request "The
>sample does not have to be within any particular language, but something
>that is a substantive representation of your style and logic. "
>
>I'm not sure what to take. Most of my PHP and other projects are lengthy and
>involved. I'm not sure if it would be better to print out functions I've
>created that perform tasks, or just find something that did wonderfully
>challenging things and print that out. Anyone have thoughts on this?
>
>
>
>=-
>Jonathan Campbell ( [EMAIL PROTECTED] )
>
>Mid days haze and I'm still not awake
>I got everything going but my bills are still late
>Funnier than hell and I think it's a blast
>Life's like a laugh when you got no money
>
>Lyrics from "Average Day" by Aztek Trip ( http://www.aztektrip.com )
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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+ email batches.  This will reduce the load one 
the web server and also the mail server.

Michael



On Sunday, July 1, 2001, at 09:13 PM, Matthew Delmarter wrote:

> I at looking at using PHP to send a monthly newsletter to 5000+ 
> users who
> have subscribed via our site. The newsletter will be in HTML format for
> those who have selected this option - otherwise plain text.
>
> Can PHP handle something like this?
>
> Regards,
>
> Matthew Delmarter
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: php-list-
> [EMAIL PROTECTED]
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 common algorithm to display the message
> list threaded and indented. This to accomplish one task: to show the
> reply to a post directly below the parent post and so on.
>
> Thanks in advance.
> --
> 
> Ivan R. Quintero E.* (507)228-3477
> Aptdo 1263 * (507)228-9105
> Balboa, Ancon  * 612-1103
> Republic of Panama *
> 
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 $userPassword. outside of
functions and within functions available after the global $userPassword;
command is within the function.

HTH,
Michael


Richard wrote:

> Greetings.
>
> I have about two include files which are included in every php page that
> I have, and I wish to store global variables, such as passwords, usernames
> and other details information.
> After going through the PHP manual, all I could find was UNSET/SET
> global variables, but I don't know if that is the one to use or not... they
> looked like if they were to be doing something else.
>
> Any help or ideas?
>
> - Richard
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 to undefined function: socket()
>
>Is there any way to enable this?
>
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 particular.  Is there anyway to upgrade my PEAR to a new version 
without going to 4.0.5 on the web server?

Thanks,
Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 installation located in PEAR.php in the root directory
of PEAR?

Thanks,
Michael




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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/mysql, the java seems to break.
>Is there something special I need to do to prevent that break?
>Is this a common problem?
>Does using templates get around that problem ?
>
>Thanks !
>___
>Jack Sasportas
>Innovative Internet Solutions
>Phone 305.665.2500
>Fax 305.665.2551
>www.innovativeinternet.com
>www.web56.net
>
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 editors/IDEs or plugins for Homesite that will allow you 
to use CVS (or some other Unix/Linux based versioning system) directly 
through the editor without using WinCVS or some other manual system to 
check files in and out?  I have looked at Zeus SCC-CVS that supposedly 
will get and SCC compliant app (Homesite) to work with CVS, but I get an 
error early on in the process and haven't gotten it to work.

Any ideas?
Michael



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 a file.txt and
>
> 1 - know how many lines i have in this text
> 2 - print line 5 until 10
>
> ?
>
> can someone help me?
>
>
>
>
>
> ---
>
> [ r a f a e l   f a r i a] _
> [EMAIL PROTECTED]
> WebMaster Universo Online - http://www.uol.com.br
> Phone # +55 11 3038-8665
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 
> pretty
> noteworthy site.
> --
> phill
>
> "Phil Labonte" <[EMAIL PROTECTED]> wrote in message
> 1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE">news:1B5C7FA9D60DD511ABEF00508BFDEFDC105E@EXCHANGE...
>> Can anyone send me a list of large commercial web sites that use PHP?
>>
>> I am trying to move to PHP here at work but I need some examples to
> impress
>> the boss!!!
>>
>> Thanks
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: php-list-
>> [EMAIL PROTECTED]
>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 11:41 PM, Dallas K. wrote:

> I need a way to encode my scripts so that others can not read them. 
> But  I dont want to use the zend encoder? Is there anything else out 
> there that can do what I need?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 walks through the process of enabling ODBC support in PHP, so your 
> Mac
> OS X PHP applications can pull data from any relational database.  I'll 
> be
> uploading it to the www.iodbc.org site, but if anyone would like to 
> comment
> on the initial draft, it's attached to the post.
>
> Any and all feedback is welcome - tell me anything is not clear!
>
> Best regards,
> Andrew
> --
> Andrew Hill - OpenLink Software
> Director Technology Evangelism
> eBusiness Infrastructure Technology
> http://www.openlinksw.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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, get it to PHP first and then make it run
>> better,
>
> So your solution is to write/port a crappy application,

I said a couple of times that I assumed that the application was 
designed well.  The "crappyness" of an application has nothing to do 
with the language it is in.  Is it a good application or not?  If you 
have the same people that wrote the application write it again in a 
"better" language and the design was crap, the application will still be 
crap.

>  then spend time
> fixing/supporting it?

What you think you won't be fixing and supporting a PHP application if 
it is design poorly?

>  I hate developers who take this philosophy.
>

Do you want to use PHP or not?  What is more important, to use PHP or 
re-write the application?  If it is more important to re-write the app 
with a cleaner implementation then I have a feeling your senior 
programmer (who has NO PHP experience) would just assume go make a 
version 2 in ASP because that is what he is familiar with.  I doubt you 
will get PHP and a complete rewrite.  Choose your battles.

Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 converted to PHP you will probably see no great increase or 
decrease in performance, but the code will be in PHP and you will be 
using the "platform".  At that point you can start using PHP's abilities 
and functions in a better way to continually increase the performance of 
the app.  If this application was well designed in the first place, it 
will run fine in PHP.

On Monday, April 2, 2001, at 04:37 PM, Mike King wrote:
>
> a) produce a much better application

The application that is running and showing results to the managers is 
the best application.  You could write the tightest code in the world, 
but if no one can use it, it's not the best.  Mozilla is an 
extraordinary program, but until people can get  a stable version in 
their hands, IE continues to gain market share.

Your PHP app may be amazing when it is finished, but they already had an 
ASP version that was finished and performing adequately.  This will make 
PHP look worse as time goes on.

> b) take less development time

If you're starting with a decently designed app already, I can't see how 
starting from scratch could be faster.

> c) cause less bugs

Maybe, but that's what version 2.0 is for!

> d) create a more efficient system
>

Again that can come over time, get it to PHP first and then make it run 
better,

Michael


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 FreeTDS but it use myssql, I am looking for odbc.
>
> Thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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
> >complicated :)
> >
>
> well, yes, if you can find a C compiler that works. In the last
> beta's (4K50) Apple doesn't seem to include the right platform
> specific files for that.
> I would also prefer the fact that PHP is already available and just
> needs to be configured. Compiling is for most people just too much
> hassle.
> \

Since it's so close to realease I wouldn't trust any beta's newer than the
Public Beta.  When OS X is realease and stable people will release PHP
binaries.

Michael


>
> --
> Thierry Coopman - [EMAIL PROTECTED]
> My opinions are personal, and have really nothing or nothing to do
> with Keytrade!
>
> The first place to look for information is in the section of the manual
> where you least expect to find it.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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/filemaker (mac)
> I´ve been heard that PHP is coming strongly and I have no reason not to
> join. How is the relation between PHP/Filemaker?
>
> --*
> [knaSen]
> icq #23830427
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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


>
> is there any pressing need for me to learn servlet
> technology,other than to expand the old skillset.
> the difference between jsp and servlets is that
> with the former the code is embedded in the html.correct?
>

That's right.

>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 have been all over the
> documentation, email archives, and support discussions at phpbuilder.com
>
> thanks,
>
> Sam


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 following line in httpd.conf should help:
>
> AddType application/x-httpd-php .php .php3 .phtml
>
> --
> Pavel a.k.a. Papi
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 have been
upgraded to FreeBSD 4, PHP4 is already installed.

Try to run "uname -v" when you log in.  You may not have to compile PHP4 like this.

Or see if your server has been upgraded at
http://support.pair.com/notices/stable-upgrade.html

Michael


Jeff Oien wrote:

> I went through this installation process to install PHP4 on a pair
> server. When I try to run a PHP script I get an internal server error
> with this: Premature end of script headers: /usr/www/users//cgi-bin/php4.cgi
> What should I do from here? Thanks.
> Jeff Oien
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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)

Michael


Ng Chun Chi wrote:

> Dear Sir,
> I have two problems in using PHP. Could you help me?
> I am using Red-Hat to build up my System.
> Could I use Perl to control some PHP program?
> Also, could I run my PHP program in Linux Console?
>
> Sorry to disturb you
> THx!
> Mr Ng
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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.." wrote:

> i dont know too much about ASP, as i've never had to use it,
> but i thought ASP as more of an enviornment (or meta-language)
> rather than an actual programming language (becuase VBscript
> is the default language for ASP pages, i always assumed that
> other languages could be utilized in place of VB(yuck))
>
> could you use any other language aside from VBscript
> if the client mandates ASP, or is ASP tied to VB/Microsoft?
>
> the reason i ask is becuase i heard about a perl product that
> would basically do almost the same thing as PHP (put perl code
> in the HTML document, and the server would parse thru it
> when someone requested the page)... and i always thought
> that ASP was the meta-language that governed the rules
> for embedded programming (use  rules like that) rather than an actual *language*
>
> am i wrong?  anyone care to clarify what ASP is, and what
> it's relation to PHP is on or off the list, whichever suits you ;)
>
> PS: please excuse me if you feel that i am off topic
>
> > -Original Message-
> > From: John Monfort [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 19, 2001 10:16
> > To: Adrian Murphy
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] woe is me
> >
> >
> >
> >
> >I feel your pain.
> > :-(
> >
> >
> > __John Monfort_
> > _+---+_
> >  P E P I E  D E S I G N S
> >www.pepiedesigns.com
> > "The world is waiting, are you ready?"
> > -+___+-
> >
> > On Mon, 19 Feb 2001, Adrian Murphy wrote:
> >
> > > i'm sorry,i just had to share this with people who'd understand.
> > > we've just secured clients who are m$ affiliated and they insist
> > > everthing be done with asp.
> > > excuse me while i go off for a little cry.
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 back to 6.2 (which I
have).  Everything works in 6.2 now.

Michael


Mike Tuller wrote:

> Ok. I have done everything I have been told to do, found on the web, and I
> can think of other than bringing in a voodoo priest to get this going. I'll
> try to explain what I have done so far.
>
> I have a system with RedHat 7.0 installed, and am trying to get PDFlib to
> work with PHP 4.04. The configure script I am using is as follows:
>
> ./configure --with-mysql=/usr/local --with-config-file-path=/www/conf
> --with-apache=../httpd --enable-track-vars--with-system-regex=yes
> --with-gd   --with-jpeg-dir=/usr  --with-png-dir=/usr   --with-zlib-dir=/usr
> --with-pdflib=/usr/local--with-tiff-dir=/usr
>
> Configure runs fine, make runs without errors, make install too. When I go
> to bring up the test page of the clock, I get this.
>
> Fatal error: Call to undefined function: pdf_new() in
> /www/servers/pdfclock.php on line 7
>
> I have taken the advice of others to not use the rpm of apache and have
> compiled it myself. I also spent the time removing RedHat 7 and putting 6.2
> back on. Only to find that if anything needs updating, that dependency
> problems forced me to go back to 7.0 anyway.
>
> I have updated the system library and specified at
> http://www.phpbuilder.com/columns/perugini20001026.php3?page=2
>
> It still doesn't work! I finally decided to try using ClibPDF. That runs
> into the same problem at the same spot.
>
> Fatal error: Call to undefined function: cpdf_open() in
> /www/servers/pdftest.php on line 2
>
> So this tells me that there is probably not anything wrong with PDFlib or
> ClibPDF, that it is something that I am not doing or something else. PHP is
> working fine though, and if I compile with Mysql or anything else, they work
> fine.
>
> If anyone has anymore advice on how to get this PDFlib working, please let
> me know.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 PM
> Subject: RE: [PHP] Converting CFML to PHP
> 
> 
> Checkout: http://sourceforge.net/projects/cf2php
> 
> Camden
> 
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Uploading Files via PHP

2001-02-18 Thread Michael Stearne

Hmm.  I don't know one thing you could try is putting $image in quotes, 
like '$image'.  Also you might try to use the code I have pasted below.  
Using exec is probably not the most effecient way to do the copy of the 
file (and using mv limits you to *nix).  Make sure you remove the checks 
for image type files that I make in the checkImgType() function.

HTH,
Michael


if($Image!="none"){
   $ImageExt=checkImgType($Image_type,$Image_name);
}

if($Image!="none"){
$ImageFinal=$ABS_PRODUCTS_IMAGES_DIR.$LastInsertID."Image".$ImageExt;
copy($Image, $ImageFinal);
}


function checkImgType($image_type,$image_name){
if((strcmp($image_type,"image/jpeg")==0)||(strcmp($image_type,"image/gif")==0)||(strcmp($image_type,"image/pjpeg")==0)||(strcmp($image_type,"image/jpg")==0))
{
   switch($image_type){
   case "image/jpg":
   $imageExt=".jpg";
   break;
   case "image/jpeg":
   $imageExt=".jpg";
   break;
   case "image/pjpeg":
   $imageExt=".jpg";
   break;
   case "image/gif":
   $imageExt=".gif";
   break;
   }
   return $imageExt;
}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 -
> From: Michael Stearne <[EMAIL PROTECTED]>
> To: Brian Drexler <[EMAIL PROTECTED]>
> Cc: Php-General <[EMAIL PROTECTED]>
> Sent: Sunday, February 18, 2001 1:55 PM
> Subject: Re: [PHP] Uploading Files via PHP
> 
> 
>> 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 upload script to upload files to our server, but
>> 
> my
> 
>>> problem is this.  I can't upload anything but JPG, GIF, and HTML files.
>>> Anyone have any idea why?  This is probably something simple that I'm
>> 
> just
> 
>>> overlooking, but please help.
>>> 
>>> Brian Drexler
>>> 
>>> 
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 upload script to upload files to our server, but my
> problem is this.  I can't upload anything but JPG, GIF, and HTML files.
> Anyone have any idea why?  This is probably something simple that I'm just
> overlooking, but please help.
> 
> Brian Drexler
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 similar problems in any knowledge base and i'm
> thinking it has something to do with my cable modem connection and the
> fact that:
> 1. I'm in Seattle and he's in Cleveland (distance issue) - less likely.

That's not really possible.  The only way this could happen is that if 
you have certain IPs blocked.

> 
> 2. ON the more likely side, all the crap that is running on my computer
> (ie: firewalls, IDS, telnet, applications).  

This all depends on the type of authentication you are using to allows 
users access to the site.  It's probably not a firewall problem becuase 
if any user can see the sight at all, all should be able to.  But all 
the other crap you have running on your computer shouldn't matter as 
long as you or one other user can register.  The problem is probably 
somewhere in your script. 

Are you checking for browser types?  Are you and the other Win user 
using IE and the Mac user using NS.  Is the web server IIS or Apache?  
Are you using PHP for checking the users or Apache or IIS?

If you could post some code, it would probably help.

Michael




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 country and the cost of buying software is
> also high just as Tiger mentioned. We did not have 200 years of free labour
> to advance ourselves as much as you did.
>
> Joe Njeru.
> Nairobi, Kenya
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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/xml/debugdemos/tocdemo/rights.xml

Tim Frank wrote:

> Siim,
>
> You can do this with a combination of XML and XSL. I remember a demo
> from Microsoft's XML area that did exactly what you ask: Click a column
> and have it sort. I believe it was an example having to do with Stock
> listings. Basically XSL lets you use come programming/looping constructs
> when displaying data from an XML file. The downside is that it currently
> only works with IE 5 and greater. It might not be the best overall
> solution, but if you are looking at the issue from a "can it be done"
> point of view, then yes, it can actually be done. It just might not be
> usable.
>
> Tim Frank
>
> >> Original Message <<
>
> On 17/02/01, 9:23:00 AM, [EMAIL PROTECTED] (Siim Einfeldt aka Itpunk)
> wrote regarding [PHP] Creative solution with XML,PHP,MYSQL:
>
> > Hi everybody,
>
> > I want to implement ordering something on a website without refreshing
> the
> > page. Lets say i have four columns in the html table - name,age,skill and
> > phone. All these are links - under these are the information, eg:
> > Name Age Skill Phone
> > Siim 23  php   051...
> > Tony 18  html  132...
>
> > Now, when i click on the name, it should order the listings by name, if I
> > click on the age, I get the listing ordered by age and etc,etc. Generally
> > it is easy to do it, but how to do it without refreshing the page every
> > time I want to order by something else?
>
> > It should be possible with XML; I get the data from mysql database with
> > php, I write it into an array and ... now how could I make it function
> the
> > way I just described? Could someone point me some already written code or
> > explain me in detail how to do it?
>
> > Thank you,
> > Siim Einfeldt
>
> > PS: Sorry about sending this message to so many lists, but I haven`t seen
> > this kind of code anywhere, but at the same time I know it is possible.
>
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 you.

Michael


Dave Haggerty wrote:

> I haven't seen this issue discussed, sorry if I missed it:
>
> My question is why are the PHP database functions so unportable?  Is there a
> reason why they have to be specific to, say MySQL.  It seems to me (even
> though I am an amatuer to this stuff) that the code should be much more
> easily portable from one db to another?
>
> Do most coders add an abstraction layer themselves?  Or maybe people just
> don't port PHP code much and so don't worry about it?
>
> Mainly curious
>
> Dave
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 wrote:

> Is there anything that evaluates PHP code and checks for optimization?  Not
> like the Zend Optimizer, but one that checks for things such as variables
> that were defined but never used, repeated variables, unnecessary
> statements or constructs?  Basically a code cleaner such as C, C++, Java,
> etc all have?
>
> Joseph E. Sheble
> [EMAIL PROTECTED]
> 
> Wizaerd's Realm
> http://www.wizaerd.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PDF Functions

2001-02-14 Thread Michael Stearne

I'm waiting on OS X also.  (I'm running it now.) But I need to get a RH
setup working for a client.  BTW PHP4, mySQL and Apache work fine of the
OS X PB so you might try installing PDF on that (I haven't yet though).

Michael


Chris Carbaugh wrote:

> OS X?  What's that? :)  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: <[EMAIL PROTECTED]>, Michael Stearne <[EMAIL PROTECTED]>
> > From: Mike Tuller <[EMAIL PROTECTED]>
> > Subject: Re: [PHP] PDF Functions
> >
> > I decided on my way home tonight to ditch 7.0 and go back to 6.2. I
> > think
> > that it is the only way to get anything done. When 7.1 or later comes
> > out
> > then I can go back. Thanks for your help.
> >
> > When OS X finally ships I will be happy.
> >
> > Mike
> >
> > > From: Chris Carbaugh <[EMAIL PROTECTED]>
> > > Reply-To: [EMAIL PROTECTED]
> > > Date: Wed, 14 Feb 2001 19:39:04 EST
> > > To: Mike Tuller <[EMAIL PROTECTED]>, Michael Stearne
> > > <[EMAIL PROTECTED]>
> > > Cc: php mailing list <[EMAIL PROTECTED]>
> > > Subject: Re: Re: [PHP] PDF Functions
> > >
> > >
> > > Well, first let me say that I'm kind of surprised I'm the only one
> > > trying to help you guys out.  It seems not many folk are into
> > PHP/PDF?
> > >
> > > Any how,
> > >
> > > Redhat's *.0 releases are known to be problematic.  They are
> > usually
> > > pretty much bleading edge, meaning they're buggy.
> > >
> > > The last time I compiled PHP with PDF support, was a few weeks ago.
> >  It
> > > was on RedHat 6.2, PHP 4.0.2, and PDFLIB, as a CGI or a stand alone
> > > executable.  The config was pretty much ./configure
> > > --with-pgsql=/usr/local/pgsql --with-pdf=/usr/local/bin  (I really
> > > think that was it, note I did NOT point right to the libpdf.so).  I
> > > also added /usr/local/lib to /etc/ld.so.conf and did a ldconfig.
> > >
> > > That's really all I did.  RH 6.2, source tarballs of Apache 1.3.12,
> > PHP
> > > 4.0.2, pdflib 3.03, postgresql 7.0.2.
> > >
> > > If everything configs/builds correctly, I would blame RH 7.0
> > >
> > > While I would like to install RH 7.0 and figure out what's up, I
> > just
> > > don't have the time.  I would suggest, A) you try to install
> > PHP/PDF as
> > > a CGI under your current install.  This allows the simplest
> > install.
> > > If that doesn't work, try RH 6.2 or some other distro?
> > >
> > > Good Luck,
> > >
> > > Chris
> > >
> > > On Wed, 14 Feb 2001, Mike Tuller wrote:
> > >> Date: Wed, 14 Feb 2001 17:45:28 -0600
> > >> To: Michael Stearne <[EMAIL PROTECTED]>
> > >> From: Mike Tuller <[EMAIL PROTECTED]>
> > >> Subject: Re: [PHP] PDF Functions
> > >>
> > >> Exactly!!! I have gone back and redone everything 3 or 4 times,
> > and
> > >> am on
> > >> day 3 of this. I watch while I configure, and it says that it is
> > >> working,
> > >> but when I go to check. I still get an error.
> > >>
> > >>
> > >>> From: Michael Stearne <[EMAIL PROTECTED]>
> > >>> Date: Wed, 14 Feb 2001 18:01:20 -0500
> > >>> To: [EMAIL PROTECTED]
> > >>> Cc: Mike Tuller <[EMAIL PROTECTED]>, php mailing list
> > >>> <[EMAIL PROTECTED]>
> > >>> Subject: Re: [PHP] PDF Functions
> > >>>
> > >>>
> > >>>
> > >>> 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 much less
> > >> frustrating
> > >>>> than screwing with RPMs.
> > >>>>
> > >>>
> &g

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 want to restrict access to people coming
> in from certain IP addresses.
> Really, all I need to do is query the IP address, I can code the rest of it.
>
> Thanks!
>
> Karl
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 much less frustrating
> than screwing with RPMs.
>

I am in the same situation except I have compiled from all the sources (not
RPMS) and I still get hung up when I try to include PDF.  My system is a
new install of RH 7 with the updates that up2date suggests (gcc, etc.).  I
have compiled and installed PHP with PDF no problem on RH 6.2.  I think the
issue is something specific to RH7. I hope RH 7.1 fixes it.  I think at
this point I am going back to 6.2

Michael



>
> Chris
>
> On Wed, 14 Feb 2001, Mike Tuller wrote:
> > Date: Wed, 14 Feb 2001 15:49:44 -0600
> > To: <[EMAIL PROTECTED]>, php mailing list
> > <[EMAIL PROTECTED]>
> > From: Mike Tuller <[EMAIL PROTECTED]>
> > Subject: Re: [PHP] PDF Functions
> >
> > The reason why I needed the RPM is because no matter what I tried, I
> > couldn't get PHP to compile for the Apache rpm on Redhat 7. If at all
> > possible, I like to use the rpms so that they can be easily updated.
> >
> > I have done everything everyone has suggested, and I still get an
> > error. I
> > have even compiled PHP and still I can't use PDFlib. What next?
> >
> > Here is the updated config script that I used.
> >
> >  ./configure   --prefix=/usr   --with-config-file-path=/etc
> > --disable-debug   --enable-pic   --enable-shared
> > --enable-inline-optimization   --with-apxs=/usr/sbin/apxs
> > --with-exec-dir=/usr/bin   --with-regex=system   --with-gettext
> > --with-gd
> > --with-jpeg-dir=/usr   --with-png   --with-zlib   --with-gdbm
> > --enable-debugger   --enable-magic-quotes   --enable-safe-mode
> > --enable-sockets   --enable-sysvsem   --enable-sysvshm
> > --enable-track-vars
> > --enable-yp   --enable-ftp   --enable-wddx   --with-mysql
> > --with-xml
> > --with-pdflib=/usr/local/lib   --with-tiff
> >
> >
> > > From: Chris Carbaugh <[EMAIL PROTECTED]>
> > > Reply-To: [EMAIL PROTECTED]
> > > Date: Wed, 14 Feb 2001 15:08:02 EST
> > > To: Mike Tuller <[EMAIL PROTECTED]>, php mailing list
> > > <[EMAIL PROTECTED]>
> > > Subject: Re: [PHP] PDF Functions
> > >
> > >
> > > How about in /etc/ld.so.conf you make sure /usr/lib is in there.
> > >
> > > Then run /sbin/ldconfig.
> > >
> > > Also, why bother with the source RPM?  I would rather just get the
> > > source tarball direct from PHP.net and run with it.
> > >
> > > Chris
> > >
> > > On Wed, 14 Feb 2001, Mike Tuller wrote:
> > >> Date: Wed, 14 Feb 2001 12:07:50 -0600
> > >> To: php mailing list <[EMAIL PROTECTED]>
> > >> From: Mike Tuller <[EMAIL PROTECTED]>
> > >> Subject: [PHP] PDF Functions
> > >>
> > >> I finally got everything to install on RedHat 7, but I can't do
> > >> anything
> > >> with pdflib like I had expected.
> > >>
> > >> I get back Fatal error: Call to undefined function: pdf_new() in
> > >> /var/www/html/pdfclock.php on line 7. Line 7 is $pdf = PDF_new();
> > >>
> > >> This is rather frustrating that every time I try to install PHP on
> > a
> > >> machine
> > >> it takes me a week to get it going.
> > >>
> > >> Here is what I have for the config from the srpm after
> > modification
> > >> as
> > >> instructed earlier.
> > >>
> > >> ../configure \
> > >> --prefix=%{_prefix} \
> > >> --with-config-file-path=%{_sysconfdir} \
> > >> --disable-debug \
> > >> --enable-pic \
> > >> --enable-shared \
> > >> --enable-inline-optimization \
> > >> $* \
> > >> --with-exec-dir=%{_bindir} \
> > >> --with-regex=system \
> > >> --with-gettext \
> > >> --with-gd \
> > >> --with-jpeg-dir=%{_prefix} \
> > >> --with-png \
> > >> --with-zlib \
> > >> --with-gdbm \
> > >> --enable-debugger \
> > >> --enable-magic-quotes \
> > >> --enable-safe-mode \
> > >> --enable-sockets \
> > >> --enable-sysvsem \
> > >> --enable-sysvshm \
> > >> --enable-track-vars \
> > >> --enable-yp \
> > >> --enable-ftp \
> > >> --enable-wddx \
> > >> --with-mysql  \
> > >> --with-xml \
> > >> --with-pdflib=/usr/lib/lipdf.so.0 \
> > >> --with-tiff
> > >>
> > >> Can someone look at this and tell me what else I need to put in to
> > >> get this
> > >> to work?
> > >>
> > >> Mike
> > >>
> > >>
> > >>
> > >>
> > >> --
> > >> PHP General Mailing List (http://www.php.net/)
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >> To contact the list administrators, e-mail:
> > >> [EMAIL PROTECTED]
> > >>
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/

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
> handling in PHP and with Java/JSP?  An example of the
> Java equiv. would be most appreciated.  I already know
> how to do it with PHP and am trying to do a bit of
> conversion.  I'm interested more in the backend
> processing.
>
> thx,
>
> jason
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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):
./configure \
"--with-layout=Apache" \
"--prefix=/www" \
"--with-perl=/usr/bin/perl" \
"--enable-module=so" \
"$@"
Configure and install PdfLib (my configure looks like this):
./configure  --enable-cxx --with-tiffauxlib=-ljpeg --with-tifflib --with-zlib
--with-pnglib=no --enable-shared --enable-static --enable-shared-pdflib


After that point I have been fooling around with the PHP configure.  What works
for me so far is:

./configure --with-mysql=/usr/local/mysql --with-apxs=/www/bin/apxs
--with-sablot

(I have installed Sablot XSLT lib)

This compiles and installs fine.

Then when I try to add the pdflib options, the make dies at:

./configure --with-mysql=/usr/local/mysql --with-apxs=/www/bin/apxs
--with-sablot --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib
--with-tiff-dir=/usr/lib --with-pdflib

./configure --with-mysql=/usr/local/mysql --with-apxs=/www/bin/apxs
--with-sablot --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib
--with-tiff-dir=/usr/lib --with-pdflib

make[1]: Entering directory `/home/blaze/WebServerSources/php-4.0.4pl1'
/bin/sh /home/blaze/WebServerSources/php-4.0.4pl1/libtool --silent --mode=link
gcc  -I. -I/home/blaze/WebServerSources/php-4.0.4pl1/
-I/home/blaze/WebServerSources/php-4.0.4pl1/main
-I/home/blaze/WebServerSources/php-4.0.4pl1 -I/www/include
-I/home/blaze/WebServerSources/php-4.0.4pl1/Zend
-I/usr/local/mysql/include/mysql -I/usr/local/include
-I/home/blaze/WebServerSources/php-4.0.4pl1/ext/xml/expat/xmltok
-I/home/blaze/WebServerSources/php-4.0.4pl1/ext/xml/expat/xmlparse
-I/home/blaze/WebServerSources/php-4.0.4pl1/TSRM  -DLINUX=22 -DUSE_HSREGEX
-DUSE_EXPAT -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath
/home/blaze/WebServerSources/php-4.0.4pl1/libs -avoid-version
-L/usr/local/mysql/lib/mysql -L/usr/local/lib  -R /usr/local/mysql/lib/mysql -R
/usr/local/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/pdf/libpdf.la
ext/posix/libposix.la ext/sablot/libsablot.la ext/session/libsession.la
ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl
-lxmltok -lxmlparse -lsablot -lz -ljpeg -lpng -ltiff -lpdf -lmysqlclient
-lresolv -lm -ldl -lcrypt -lnsl -lresolv
/usr/bin/ld: cannot find -lxmltok
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/blaze/WebServerSources/php-4.0.4pl1'
make: *** [all-recursive] Error 1


It says it cannot find xmltok, but its installed in /usr/lib where everything
else is.

I don't know either.  This worked no problem on 6.2.  BTW I have the most
recent version of GCC according to Redhat Up2Date

Michael




Mike Tuller wrote:

> I'm at a loss for this one. I can't seem to get PHP 4 on RedHat 7. I can get
> the rpm to install and work, but if I try to configure myself, it never
> works. Everything says to configure with apxs, but there is no apxs. What is
> strange though is if I look at how the rpm configures PHP, it configures it
> with apxs and it works!
>
> I want to configure PHP with PDF support, so I can't just use the rpms. If
> anyone has any suggestions, let me know. That is other that trying to
> configure apache manually. I've been down that road before, and don't want
> to do it again.
>
> Mike
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 such,
> but how do I go about hooking cybercash
> up to the existing cart? (the host already
> has a merchant connection kit)
>
> Jerry Lake- [EMAIL PROTECTED]
> Web Designer
> Europa Communications - http://www.europa.com
> Pacifier Online - http://www.pacifier.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 long script running and running, either was
ASP, Perl or any scripting language.  A Java program on the server or a
Java applet in the browser would be better suited because it is used to
running for the long periods of time that a chat program requires.

Michael


Jens Kisters wrote:

> The approaches i've so far using PHP is letting a script run (almost)
> infinitely and refresh the output every 500ms or so, but this will
> require a httpd-Process to run for every chatter, consuming several MB
> per User.
>
> Any other suggestions which will cause less server load?
>
> I don't think that refreshing the page on the clientside is a very clean
> solution, it really looks quite ugly.
> --
> Grüße aus dem schönen Kleve
> Jens Kisters
>
> +++ neue Anschrift +++
>
> rosomm et partner
> Agentur für neue Medien GmbH
> Dienstleistungszentrum am
> Weißen Tor - Eingang B
> Gocher Landstrasse 2
> 47551 Kleve / Bedburg-Hau
>
> Telefon: 02821 - 97856-20
> Telefax: 02821 - 97856-77
> [EMAIL PROTECTED]
> www.rosomm-partner.de
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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,
Michael


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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, January 20, 2001, at 08:45 PM, DPG Account wrote:

> Hi- 
>  
> I'm new to this list. I'll start out with hopefully a good question. I have 
> a project coming up where I need to take some form input insert it into a 
> premade template and create a custom pdf for a user. The pdf will then be 
> e-mailed to the user or a link to download it e-mailed to them. 
>  
> My question is, which would be better for doing this? I see Cold Fusion has 
> some tags for creating pdf's but it looks like PHP has more capabilities 
> along these lines. Also, I see Adobe (http://cpdf1.adobe.com/) has its own 
> pdf service that might somehow be able to be taken advantage of. 
>  
> If anyone has some expertise and knowledge to share along these lines I 
> would be grateful. 
>  
> Thanks for any help, 
> --- 
> | D A R K  P O R T A L  G A M E STony K. Bounds, Web Wizard   | 
> | http://www.darkportalgames.com [EMAIL PROTECTED]  | 
> |_| 
> |  You provide the paper. We provide the adventure.   | 
> --- 
>  
>   
>  
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  
>  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 FMP for OS X, but for OS 9 still use ODBC.  When OS X comes 
out you will be able to use the better ODBC available for Unix.  I think the current 
MacOS's ODBC is not very good, but I haven't really used it.  In any case I think ODBC 
is the best way to go when talking to a FMP database from PHP.

Michael
  
On Thursday, January 18, 2001, at 03:08 PM, Andy Clarke wrote:

> >Has anyone used PHP to connect to a FileMaker database? 
>  
>  
> This may not be appropriate to your circumstances, but I would seriously 
> consider exporting the information from the FMP database and importing it 
> into mySQL. This may take a little more time initially (defining the 
> tables, recreating the relationships, etc) but the PHP->mySQL functionality 
> is built-in and well documented, and will therefore be easier and faster to 
> code. You will probably save time later on. 
>  
> mySQL is a much more serious database application than FMP and has many 
> features (like proper relationships) that you may find useful - it will 
> also be much, much faster than FMP or FMP Server. Another thing that you 
> may wish to bear in mind is the extortionate cost charged by web hosting 
> companies to host FMP databases (mySQL hosting, on the other hand, ranges 
> from free to cheap). Even if you are willing to pay for FMP hosting, you 
> may find it difficult to find one that offers both FMP and PHP. 
>  
> Hope that this helps, 
>  
>  
> Andy Clarke 
>  
>  
>  
>  
>   
>Andy Clarke 
>   78 West Kensington Court, Edith Villas, 
>  London, England  W14 9AB 
>  
> phone:  44 (0)20 7602 3382 
>   mobile:  07947 418177 
>  
>   Freelance Lingo/PHP Programmer 
>  
>  [EMAIL PROTECTED] 
>   
>  
>  
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  
>  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 Saturday, January 13, 2001, at 03:43 PM, Cal Evans wrote:

> When you say "handled by us" do you mean you: 
>  
> 1) Write the sess_* files to a shared drive 
> 2) Store them in the database 
> 3) ignore them totally, who needs users anyhow? 
> 4) some other option? 
>  
> Cal 
> http://www.calevans.com 
>  
>  
> -Original Message- 
> From: jeremy brand [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, January 13, 2001 2:20 PM 
> To: Cal Evans 
> Cc: [EMAIL PROTECTED] 
> Subject: RE: [PHP] load balancing with php/apache? 
>  
>  
> We have a centralized DB server.  Sessions are handled by us, the 
> programmers, not the cluster. 
>  
> Jeremy 
>  
> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] 
> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
> Get your own Free, Private email at http://www.smackdown.com/ 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
>""   -- Quoted from Yahoo! homepage, http://www.yahoo.com 
>  
> On Sat, 13 Jan 2001, Cal Evans wrote: 
>  
> > Date: Sat, 13 Jan 2001 11:51:01 -0600 
> > From: Cal Evans <[EMAIL PROTECTED]> 
> > To: [EMAIL PROTECTED] 
> > Subject: RE: [PHP] load balancing with php/apache? 
> > 
> > How does it deal with sessions? Or do use store sessions in the database? 
> > 
> > Cal 
> > 
> > -Original Message- 
> > From: Joe Stump [mailto:[EMAIL PROTECTED]] 
> > Sent: Saturday, January 13, 2001 11:22 AM 
> > To: Rasmus Lerdorf 
> > Cc: [EMAIL PROTECTED] 
> > Subject: Re: [PHP] load balancing with php/apache? 
> > 
> > 
> > > http://www.linuxvirtualserver.org/ 
> > 
> > We use LVS on our website - it works great! We have 2 load balancers with 
> > the 
> > HA package and 6 PHP webservers running behind it (with a central DB 
> > server). 
> > 
> > In short, it's possible and works quite well. BTW We user FreeBSD for 
> > webservers 
> > if that's any help (though linux, NT, solaris, etc would all work) 
> > 
> > --Joe 
> > 
> > 
> > 
> > 
> > > http://linas.org/linux/load.html 
> > > 
> > > -Rasmus 
> > > 
> > > 
> > > -- 
> > > PHP General Mailing List (http://www.php.net/) 
> > > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > > For additional commands, e-mail: [EMAIL PROTECTED] 
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED] 
> > 
> > -- 
> > 
> > Joe Stump, PHP Hacker 
> > [EMAIL PROTECTED] 
> > http://www.miester.org/ 
> > 
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/) 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > To contact the list administrators, e-mail: [EMAIL PROTECTED] 
> > 
> > 
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/) 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > To contact the list administrators, e-mail: [EMAIL PROTECTED] 
> > 
> > 
>  
>  
> -- 
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  
>  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 wrote:

> eh? 
>  
> on OS X? 
>  
> what is your (pardon, insane) justification for having pressure to get a 
> piece of software on a yet-to-be-released operating system? 
>  
> go download freeBSD it works! OSX is just beta... 
>  
> -a 
>  
>  
> -- 
> Alex Black, Head Monkey 
> [EMAIL PROTECTED] 
>  
> The Turing Studio, Inc. 
> http://www.turingstudio.com 
>  
> vox+510.666.0074 
> fax+510.666.0093 
>  
> Saul Zaentz Film Center 
> 2600 Tenth St Suite 433 
> Berkeley, CA 94710-2522 
>  
>  
>  
>  
> > From: [EMAIL PROTECTED] (MacTrom) 
> > Newsgroups: php.general 
> > Date: 11 Jan 2001 11:06:26 -0800 
> > Subject: Re: [PHP] apple-macintosh 
> >  
> > I've downloaded the MySql package from Lightyear, and also an OSX version 
> > from NuSphere to an OSX server for my client. UNFortunately, the Lightyear 
> > tar refuses to unpack (it is meant to be dropped onto the Desktop and the 
> > OSX server doesn't have a Desktop folder) and the NuSphere installs fine 
> > except that it fails to find libpthread.A.??lib (I'm not at the server and 
> > not sure of the extension). So then setting up the grant table fails and 
> > MySql won't run. 
> >  
> > We are in critical mode to get MySql up and running on this, and I could use 
> > some help/direction. 
> >  
> > Terry 
> >  
> >> From: Terry Romine <[EMAIL PROTECTED]> 
> >> Date: Thu, 11 Jan 2001 03:37:19 -0600 
> >> To: terry romine <[EMAIL PROTECTED]> 
> >> Subject: FW: [PHP] apple-macintosh 
> >>  
> >> From: lou <[EMAIL PROTECTED]> 
> >> Date: Thu, 28 Dec 2000 09:33:47 -0800 
> >> To: EaTrom <[EMAIL PROTECTED]>, Jerry <[EMAIL PROTECTED]>, 
> >> <[EMAIL PROTECTED]> 
> >> Subject: Re: [PHP] apple-macintosh 
> >>  
> >> http://homepage.mac.com/LightyearDesign/MacOSX/Packages/ 
> >>  
> >> Apache 1.3.12 compiled with PHP4 Support and mysql for Mac OS X 
> >>  
> >>  
> >>> I would presume that PHP would be usable under OS X -- 
> >>>  
> >>> Terry 
> >  
> >  
> > --  
> > PHP General Mailing List (http://www.php.net/) 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > To contact the list administrators, e-mail: [EMAIL PROTECTED] 
> >  
>  
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  
>  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 guts of OS X for free and then install X Windows on 
top of it.  XFree86 4.03 (I think) has support for Darwin out of the box.  Or you can 
run Aqua along with X Windows apps in another configuration.

> _alex 
>  
>  
> -- 
> Alex Black, Head Monkey 
> [EMAIL PROTECTED] 
>  
> The Turing Studio, Inc. 
> http://www.turingstudio.com 
>  
> vox+510.666.0074 
> fax+510.666.0093 
>  
> Saul Zaentz Film Center 
> 2600 Tenth St Suite 433 
> Berkeley, CA 94710-2522 
>  
>  
>  
>  
> > From: [EMAIL PROTECTED] (Mathias Meyer) 
> > Newsgroups: php.general 
> > Date: 11 Jan 2001 06:30:17 -0800 
> > Subject: RE: [PHP] OS X 
> >  
> >> -Original Message- 
> >> From: defender of the protocol [mailto:[EMAIL PROTECTED]] 
> >> Sent: Thursday, January 11, 2001 2:52 PM 
> >> To: [EMAIL PROTECTED] 
> >> Subject: Re: [PHP] OS X 
> >>  
> > Hey defender ;) 
> >  
> >> given that osx is a BSD-based system, and that apache will 
> >> compile on it, i 
> >> dont see why not 
> >>  
> >  
> > Yeah you're right. 
> > Today I saw a guy running a shop programmed in PHP on his Powerbook with 
> > MacOSX installed. Seems as if Macs finally have found a real OS ;) 
> >  
> >> sorry dont know of any relevant sites, but i'm sure there are :) 
> >  
> > Yeah you're right again: 
> > http://www.xclave.com/php4/ 
> >  
> > And as if that wasn't enough, hereA's another one: 
> > http://www-u.life.uiuc.edu/~mwvaugh/MacOSX/ 
> >  
> > Cheers, 
> > Mathias Meyer 
> > http://www.dynamicwebpages.de 
> >  
> > --  
> > PHP General Mailing List (http://www.php.net/) 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > To contact the list administrators, e-mail: [EMAIL PROTECTED] 
> >  
>  
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  
>  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]