RE: [PHP] Difficulty with SQL LIKE clause

2005-02-25 Thread Nathan Tobik
Not exactly clear what database you're using.  In SQL Server the syntax
is

SELECT [options]
FROM [table]
WHERE [field] LIKE '%whatever value you're looking for%'

The % means any string of characters, so it doesn't have to be exact

Best of luck

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: David Freedman [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 3:28 PM
To: php-general@lists.php.net
Subject: [PHP] Difficulty with SQL LIKE clause

When I use this query in PHP it works, and I get all things with the
YEAR of
1977, as I expected.

$query= "SELECT * FROM my_table WHERE Year LIKE 1977 ";

But, when I use this query it does not work.

$query= "SELECT * FROM my_table WHERE Year LIKE 197* ";

I thought I should get the result of ALL things with the years in the
1970's
(1970-1979).  But the asterisk in the LIKE clause does not seem to work.
I have tried various syntax's to try to get the 197* recognized but
without
any luck.

Can the '*' be used? What am I doing wrong.

David F.



-- 
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] NetFlix Drag and Drop Row Ordering

2005-03-24 Thread Nathan Tobik
I've used drag and drop row ordering before.  The only PHP I used was to
read a record set and write it out for the different items.  The piece
of code I used worked with JavaScript and html.  Basically there was a
large div, and each element inside of the main div was a div.  It
grabbed the onclick event, grabbed the coordinates of where you're
moving the piece, and when you dropped it, the JavaScript bumped
everything down, or up depending on what you did.  I put each item into
a form, then submitted that when the page was finished.  

It's pretty simple code if you're good at JavaScript, if not search the
internet for a while you'll find some examples.  Best of luck.

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Graham Anderson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 23, 2005 10:45 PM
To: php-general@lists.php.net
Subject: [PHP] NetFlix Drag and Drop Row Ordering 

For those who have netflix, does anyone know how you would recreate 
their 'drag and drop' queue widget?
basically, you can drag and drop movies in the order you choose

is this a combination of javascript and php ?
how would you go about creating something like this to order rows in 
your own CMS ?

extremely cool
g

-- 
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] NetFlix Drag and Drop Row Ordering

2005-03-24 Thread Nathan Tobik
Here is the code we used at the time:

http://dhtmlkitchen.com/scripts/draglib/index.jsp

I modified it a bit to meet our needs, if you're doing an open-source
project it's free to use.  In my experience if you take your time
JavaScript can be made to work in any browser.  

We actually don't use the code anymore, the needs of the application
changed, so we went from the drag and drop ordering to a sorting method
using arrows to indicate up and down.  It is still driven by JavaScript.

I never read any books on JavaScript, it's similar syntactically to PHP
or any language like that, the big thing is to learn the JavaScript DOM.
I just found some good reference pages and learned from there.  I have
the most useful ones memorized, anything else I'll Google for it.  If
you can code in PHP JavaScript will be a piece of cake.

The advantage of JavaScript over PHP is that it's client side.  This
means you don't have to do a page reload for each action a user takes.
You can sort tracks in your application with PHP but each time a user
selects an item to move up you have to submit the page, then re-present
the page.  With JavaScript the user can reorder all they want, then
submit the page once.  I then take the list of items in the new order
and submit them to the DB. 

Best of luck...

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Graham Anderson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 2:29 PM
To: php-general@lists.php.net; Nathan Tobik
Subject: Re: [PHP] NetFlix Drag and Drop Row Ordering 

thanks for the tip

I am pretty unfamilar with javascript..
But for my purposes, I guess I better learn it
I am fairly conversant in a couple of languages so hopefully it won't 
be too bad
recommend a good book ?


Essentially, I want CMS users to be order their own playlist of 
multimedia tracks.
Is there any reason not to take a javascript approach ?
because this would be for a CMS only  the javascript does not have to 
work for EVERY browser

Out of curiosity, are you still using this approach? Or, was it too 
problematic ?
g

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



RE: [PHP] Having problems connecting to MS SQL2000 server on PHP5

2005-05-02 Thread Nathan Tobik
Hi,

We run PHP with SQL server no problems here.  You never
mentioned it so I thought I would, if you're running on Linux you need
the FreeTDS library installed on the machine.  If you are running on
Windows you need the SQL Server client tools installed on the machine
that PHP is on.  Hope this helps.

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Vernon Jenewein [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 29, 2005 2:11 PM
To: php-general@lists.php.net
Subject: [PHP] Having problems connecting to MS SQL2000 server on PHP5

Hi,
Follwoing is a problem I'm having following some advice in a book called

"PHP5 in easy steps" written by Mike McGrath:
This is a connection that seems not to work according to the writer of
"PHP 
5 in easy steps" :


 MS SQL2000 Connection Test 





 

He originally wrote  (for line 6) $connection = mysql_connect (
"localhost", 
"root", "" )
or die ("Sorry - unable to connect to connect to MySQL");

All I am doing is trying to use MS SQL2000 which I have running on my 
comptuer, along with Apache Server (1.3.33)and  PHP5 (5.0.4)  And get a 
result that does not connect.  Give it a try and you will see.  I
created a 
file in the htdocs folder of Apache and it is named mssqltest.php  and
has 
the above scripts.  Rather than using the MySQL that the author has 
suggested to use, I'm using my exisiting MS SQL2000 that is up and
running.

Also I have not had much success with Apache Server 2.0.54 as yet.. any
one 
else?

Would be nice if authors would not assume that you ALWAYS want to use
MySQL 
or any other database manager, and just put in a few examples from
different 
angles.

thanks in advance if you have some ideas for me.
CHEERS!!
Vernon



Flintknapper Forums at:
http://scottieluvr.com/v-web/bulletin/bb/index.php

Vernon Jenewein

6658 116th Ave.
Fennville, MI 49408
269-227-8748
"You will know the truth, and the truth will set you free." (Jn 8:23)

[EMAIL PROTECTED]
[EMAIL PROTECTED]   (secondary) 

-- 
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] PEAR and stored procedures

2005-07-07 Thread Nathan Tobik
We stopped using OUTPUT parameters with PEAR because of this limitation.
I could never figure out how to get it to work.  We use SQL Server, and
the OUTPUT parameters do infact work with the generic mssql functions in
PHP.  Best of luck.

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 07, 2005 12:26 PM
To: PHP General
Subject: [PHP] PEAR and stored procedures

I've tried google and also the PEAR documentation but I can't 
figure out how to run a stored procedure that uses an OUTPUT
parameter.  I keep getting an error saying that the variable used
as the OUTPUT parameter must be declared.  But how can I
declare it using PEAR?
Has anyone run across this? If so, what was your solution?

thnx,
Chris

-- 
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] Two websites need to share part of one database, suggestions please

2005-07-11 Thread Nathan Tobik
This seems to be the best option of the one you presented.  If you start
duplicating data you will have a situation where your data will get out
of sync eventually.  You can have a lookup table with the keys to the
items that belong to website two, just look in the lookup table to get
your key, then get the row.  This eliminates the need to have an extra
column on every table.  Best of luck

Nate Tobik
(412)661-5700 x206
VigilantMinds

4. Add a field to each table that will differentiate which website the
record belongs to. e.g. 'SELECT * FROM orders WHERE website = 2'.

Now that I'm thinking about it, this option seems to ultimately be the
same as #1. I can't think of any inherent benefits to this option.


Which option should I go for? Is there another option I'm not
considering?


Thanks!
Chris.

-- 
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] Access and PHP

2005-08-03 Thread Nathan Tobik
Have you checked out FreeTDS?  We use FreeTDS to connect PHP on Linux to
SQL Server 2000.  Best of luck.

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 03, 2005 10:47 AM
To: php-general@lists.php.net
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Access and PHP

Just looked into this recently and here's a brief rundown of what I've
found:

1. If you run PHP on a non-Windows system, your only option seems to be
making a connection to a remote ODBC data source (hosted on a Windows
machine presumably).  There was something..err..  ODBTP (?) that would
work on linux to connect to remote ODBC connections

If you run PHP on a Windows server, then you have the following options:

2. ODBC connection via DSN
3. DSNLess connection (you can do this with a DB abstraction layer like
ADODB)
4. COM connection (requires Access be installed on the server and, in my
opinion, is the worst solution out of the group due to it's resource
use)


There doesn't appear to be a good direct way to read Access files on a
linux machine.  I may have come across a commercial Access driver ($$$)
for linux, but can't remember.  If I did, I would have dismissed it
fairly quickly as 'free' is more my budget right now :)

If you need links to the stuff above, let me know and I'll try to dig up
some.  I also have a script I wrote using WinBinder and ADODB on a
Windows box to hit an Access database, pull data, scrub it, then insert
it into a MySQL database via ODBC.


-TG

= = = Original message = = =

I am looking for some resources to use my Access Databases with PHP,
anyone have a good link?

David


___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
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] currency class?

2005-08-08 Thread Nathan Tobik
Have you ever considered using the Java class within PHP using something
like the PHP-Java bridge?  Here is a link for the bridge, PHP can call
the Java objects natively.  It's pretty cool.  

http://php-java-bridge.sourceforge.net/

I would use the bridge in a few situations:
1. The Java classes do a lot of under the hood things that are
to slow in PHP or PHP is unable to accomplish the task
2. The PHP class that does the same thing as the Java class is
unwritten and would require a lot of work to port it to PHP.  If this
is the case and it might be easier/cheaper to just use the Java class


Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Jon Hill [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 08, 2005 11:22 AM
To: php-general@lists.php.net
Subject: [PHP] currency class?

Hi

Does anyone know of a simple PHP Currency Class that is similar to the
one in 
Java (java.util.currency)?

I just need something that will provide methods such as 

getSymbol() and getDefaultFractionDigits()

regards

Jon

-- 
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] Gathering CPU info from Linux and FreeBSD and placing it into aMySQL db

2005-08-10 Thread Nathan Tobik
Can I ask why you are trying to write a script that from what I
understand goes to each box to retrieve the data instead of pushing the
data to the central db?  

You could write a little script in PHP that gathers the required
information and then does an insert into your database.  Then from the
database you can create a webpage that is a view of all of your
machines.  On the local machine you can schedule your script to run
every X minutes via crontab.

If I misread your email and headed down the wrong path please let me
know.

Nate Tobik
(412)661-5700 x206
VigilantMinds





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



RE: [PHP] PHP and Active Directory

2005-08-11 Thread Nathan Tobik
Here is a php class for Active Directory:

http://adldap.sourceforge.net/


Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: xfedex [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 11, 2005 2:41 PM
To: php-general@lists.php.net
Subject: [PHP] PHP and Active Directory

Hi,

Have someone make PHP to authenticate against AD?
Any comment, suggestion will be greatly appreciated.

Thanks,
pancarne.

-- 
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] Re: PHP vs. ColdFusion

2005-08-23 Thread Nathan Tobik
..
As long as we are doing stats;


For an internal app our source code alone is 2MB zipped, using SQL
Server, over 30 databases, about 1000 stored procedures, all tied
together with PHP...

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



RE: [PHP] PHP vs. ColdFusion

2005-08-23 Thread Nathan Tobik


Have you tried PHP 4.x?  Give that a shot and see what effects that has 
on the application.


We have used PHP with IIS and SQL Server like you said, I can say from
experience that PHP 5 had the same problems as the initial poster
described.  The pages would time out and hang randomly.  I put a 4.x
version of PHP on the machine and it's been working ever since.

Also if you plan on using PHP with SQL Server and Linux we have been
using 5 with no problems for over a year now.  It gets pretty heavy use
daily.  The only gripe I have is FreeTDS only allows one connection at a
time, I'd love to use a JDBC driver with PHP.  We're looking at using
PHP and Hibernate which would let us use JDBC..  Best of luck.

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



RE: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Nathan Tobik
Does your load balancer support sticky sessions?  What this means is a
client will make a request and the request will be sent through a load
balancer.  That LB will remember the client and always point the
client's requests to the same webserver.  This way you don't have to
write your own session handler like someone else suggested.  I know the
F5 load balancers are able to support sticky sessions, I don't know if
what you're using is able, but it might be worth an hour or two to look
into it.

Nate Tobik
(412)661-5700 x206
VigilantMinds



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



RE: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Nathan Tobik
I've never looked into some of the open-source load balancing solutions,
but I know they exist are are out there.  The F5's I mentioned are
probably around $20k each, and you need two obviously, so if you're on a
limited budget those are not the solution for you.  I'd google for open
source load balancer.  I know OpenBSD has some failover capacity through
something called CARP, but I'm not sure how that would work with your
solution.

Nate Tobik
(412)661-5700 x206
VigilantMinds

. 

Thanks for the reply, Nathan -

Are there any such interfaces that are software-based?  I think that
Jasper's suggestion would be the most feasable, but I'd still like to
know my options.

In my mind, hardware immediately equates to $$$, whereas software
immediately does not.

Thanks
-dant

-- 
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] ASP (VBScript) to PHP Converters?

2005-09-09 Thread Nathan Tobik
We have a few apps which were written in ASP (VBScript) that we needed
to port to PHP.  For a few pages I went through and converted everything
ex:

<%if a = 10 then%>
to

line by line..

After finishing a page or two like that I realized that was not the best
way.  The problem with using a converter or porting straight over was
that you are not able to leverage a lot of the PHP specific
functionality that ASP might not have had.  The other problem is there
are a lot of times where the best way to do something in ASP is not the
best way to do it in PHP.  I would recommend taking a look at the pages
and seeing if you can rewrite it in PHP, take all the logic and all the
presentation code from the previous pages, but put new PHP code to that
instead of trying to port.  Porting is possible, but trust me you'll rip
your hair out in the process.  

We use PHP with SQL Server and it works great, there are many features
missing in MySQL that we consider essential with SQL Server.  Not to get
into DB holy wars but are you trying to switch them to MySQL just
because it's open source, or is there another driving factor for the
switch (i.e. mysql does something sql server doesn't?).  Now that I've
said that, we also use PostgreSQL and that can do nearly everything SQL
Server except it's missing an awesome GUI front end like Enterprise
Manager.  People knock SQL Server for being a Microsoft product, but I
have yet to see a DB app that works as well as Enterprise Manager.  Even
tools for Oracle pale in comparison.

Nate Tobik
(412)661-5700 x206
VigilantMinds

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



RE: [PHP] Is php 5.0.4 using isapi unreliable?

2005-09-09 Thread Nathan Tobik
We never had any luck with PHP 5 and IIS, we downgraded to 4.  PHP 5
would crash on us randomly like you said.  I have not tried 5 in a few
months so I'm not sure if it's been fixed.

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Ben Duffy [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 6:11 AM
To: php-general@lists.php.net
Subject: [PHP] Is php 5.0.4 using isapi unreliable?

Hi,

We have a Windows 2003 server that seemed reliable using php as a cgi,
then
due to placing authentication on directories, we needed to switch to the
isapi method about three months ago. The server reboots randomly maybe
five
times per week, but never outside office hours.  I have read articles
suggesting the isapi module is unreliable, is this still the case with
php
5?

Thanks.

-- 
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] Re: PHP combined with JAVA

2005-09-16 Thread Nathan Tobik
I would approach this problem in one of two ways

1. put all the values from the Java User object into PHP variables and store 
those in the session.  You might have to deal with serialization issues as 
mentioned below, but I think copying to PHP would get rid of this issue.

2. It almost sounds like he's trying to accomplish data persistence with the 
Java class.  At this point I would recommend looking into using Hibernate and 
PHP which would accomplish this, or look at some JavaBeans/Servlet solution 
which would negate the need for PHP. Most people accomplish persistence with a 
DB, like mentioned below the PHP/Java bridge is torn down after the page is 
done.

As a side note I know with the PHP-Java Bridge on sourceforge you can setup the 
JVM so that it won't deconstruct after each page execution.  This saves the 
expense of loading a JVM each time. 

To me the real advantage of PHP/Java is being able to use presentation code 
written in PHP with objects that are in Java.  The heavy lifting is in the Java 
code and the PHP just presents the data.  If more interaction than that is 
required I'd seriously look at the whole servlet/bean/j2ee/ejb route. 

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Oliver Grätz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 15, 2005 8:40 PM
To: php-general@lists.php.net
Subject: [PHP] Re: PHP combined with JAVA

If I read this correctly then your question is in no way JAVA-specific.
You want to instantiate an object (which you suppose to be of large size
and slow in instantiation) and save this object in the session during
page requests.

First of all, any data put in the session array will be serialized
(read: converted into a string containing all the data in this object).
This in itself is slow for large objects. A performance gain for large
objects through using a session isn't likely.

The second problem with this - and this is the point where JAVA kicks in
- not all data in objects is serializable. The Java-API of PHP is just
some kind of adapter to the Java system. If you serialize an adapter
object then your adapter is saved but not the Java object it uses
(because PHP has no control over it). Think of the Java API as some kind
of socket connection where you only see the stuff on your side (the
client side) and the JAVA object on the "server" side is not under your
control but just used.

What happens is: you save you adapter object and the script terminates.
The JAVA VM notices that an object is no longer referenced and it is
thrown away by the garbage collection.

What could you do? Well, you could use it the other way round (Servlet
uses PHP), because then you control the JAVA side. Or you still do it
the way you do it now but write some clever JAVA code that keeps running
and retains your objects. You give those objects a name known to both
the PHP and JAVA side and this name can be serialized. You can then
re-reference any object on the next page request by its name.

AllOLLi

Jayne spits a large glob of saliva on his blade,
wipes it on his shirt, shining it.
"Could you NOT do that while we're ever!"
[Simon on firefly 09]

-- 
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] Re: OOP Newbie - why does this not work?

2005-10-21 Thread Nathan Tobik
You have to show us the definition for your class, also your syntax for
new is wrong.  It should be:

$liveclass = new Test();

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: John Taylor-Johnston
[mailto:[EMAIL PROTECTED] 
Sent: Friday, October 21, 2005 7:57 AM
To: php-general@lists.php.net
Subject: [PHP] Re: OOP Newbie - why does this not work?

Here,s my guess:

>   var $liveclass;
>   $liveclass = new(Test);
>   echo $liveclass->get() ;
>   echo "" ;
>  echo "This is in the php code block" ;

-- 
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] PHP and MSSQL on Linux

2005-11-02 Thread Nathan Tobik
Are you running apache in a sandbox, I know on OpenBSD this is the
default behavior for Apache.  If this is the case then you need to copy
the required libraries inside the sandbox.

Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 02, 2005 1:30 PM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP and MSSQL on Linux


An interesting development.  I found some reference to running my PHP
script from the command line to take Apache out of the picture.  Lo and
behold, the script worked.  I was able to connect to the server.  So the
issue seems to be related with Apache.  Any idea what I would need to do
there to make the script work via the web?

Robbert

[EMAIL PROTECTED] wrote on 11/02/2005, 05:50:01 PM:
> 
> Thanks for your help.  I'd love to hear if you have any success with
the
> RPMs.  Something I've seen over and over again in the documentation is
> the compilation of php adding "--with-mssql".  My PHP info output does
> not include that marker.
> 
> The output is as follows
> './configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux'
> '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
> '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
> '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
> '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
> '--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--cache-file=../config.cache'
> '--with-libdir=lib' '--with-config-file-path=/etc'
> '--with-config-file-scan-dir=/etc/php.d' '--disable-debug'
'--with-pic'
> '--disable-rpath' '--with-bz2' '--with-curl'
'--with-exec-dir=/usr/bin'
> '--with-freetype-dir=/usr' '--with-png-dir=/usr'
> '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext'
'--with-gmp'
> '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
> '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr'
> '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp'
> '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
> '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
> '--enable-trans-sid' '--enable-yp' '--enable-wddx'
> '--with-pear=/usr/share/pear' '--with-kerberos'
> '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr'
> '--enable-memory-limit' '--enable-shmop' '--enable-calendar'
> '--enable-dbx' '--enable-dio'
'--with-mime-magic=/etc/httpd/conf/magic'
> '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml'
> '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd'
> '--without-odbc' '--disable-dom' '--disable-dba'
> 
> Howver, under additional .ini files parsed, I see the mssql file:
> /etc/php.d/ldap.ini, /etc/php.d/mssql.ini, /etc/php.d/mysql.ini,
> /etc/php.d/mysqli.ini, /etc/php.d/odbc.ini
> 
> And further on down are the mssql configuration settings.
> Rick Emery  wrote on 11/02/2005, 05:19:06 PM:
> > Quoting [EMAIL PROTECTED]:
> > 
> > >
> > > Yup, I thought that was the problem too but when I added my server
to
> > > the conf file, there was no change.  When you set up your MSSQL
> > > connection in fedora, did you install anything else other than
MSSQL
> > > and PHP-MSSQL?  Or did you have to set anything in your php.ini
file to
> > > use the new extension?
> > 
> > Well, I didn't have the rpms; I compiled from source. I don't have
that 
> > box available anymore, but I've checked my notes. First, I compiled 
> > freetds (nothing special in the configure line), then I compiled php

> > using "--with-mssql=/usr" (to point to the freetds libraries). All
of 
> > this should have been handled within the rpms, though, and if
phpinfo 
> > is showing the mssql extension loaded, I'm not sure why it wouldn't
be 
> > working. I don't remember modifying php.ini at all for the mssql
stuff.
> > 
> > Hopefully over the next couple of days I'll have some time to set up
a 
> > test box and try the rpms to which you pointed me, to see if I run
into 
> > the same trouble.
> > 
> > Rick
> > 
> > -- 
> > 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] java .vs php

2005-11-10 Thread Nathan Tobik
Google uses Java also:
http://java.sun.com/developer/technicalArticles/J2SE/google/limoore.html


Nate Tobik
(412)661-5700 x206
VigilantMinds

-Original Message-
From: Gustavo Narea [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 10, 2005 10:25 AM
To: php-general@lists.php.net
Subject: Re: [PHP] java .vs php

Google uses PHP too.

For example: http://toolbar.google.com/failed.php 
http://toolbar.google.com/whatsnew.php3

http://www.google.co.ve/search?q=%22google+uses+php%22

Regards.

Skippy wrote:
> Quoting [EMAIL PROTECTED]:
> 
>>I know Yahoo! uses PHP and I've heard Google does as well?
> 
> 
> Google uses Python.
> 
> http://www.python.org/Quotes.html
> 

-- 
Gustavo Narea.
PHP Documentation - Spanish Translation Team.
Valencia, Venezuela.

-- 
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] fopen on windows

2005-11-11 Thread Nathan Tobik
I've always used:

fopen("C:\\dir\\dir\\file.txt");

on windows, I'm not sure how PHP interprets the slashes internally
though...

Nate Tobik
(412)661-5700 x206
VigilantMinds



> $theFile = fopen("docs/InstallationInstructionMaster.txt", "rb") ||
die;

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