[PHP] Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-10 Thread Glenn Sieb
Hi.. it's me again :) We have a few different servers here, most of which are FreeBSD, including our internal web server (Apache 1.3.24). We have PHP 4.2.0 installed as well. Currently I'm running my MSSQL query scripts on a Win2k webserver, as I can't seem to get PHP to talk to MSSQL on the F

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Sven Herrmann
> There is no phpmodule in there, so I cant activate it. I did include some > lines from my old config: > > AddType application/x-httpd-php .php4 .php3 .php > AddType application/x-httpd-php-source .phps > if you're using Apache 1.x you need to add: LoadModule php4_modulelibexec/libphp

[PHP] Re: "Self Destruct Code" & "Copy Protection"

2002-05-10 Thread [-^-!-%-
I agree. We have many out of states clients, and all were required to (and have) sign a contract. There are many ways to deliver contracts, you should not have to risk not getting paid because of delivery logistics. You can use: e-mail fax fedEx, Ups, or any other delivery systems. -use

Re: [PHP] Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-10 Thread Dave Goodrich
Look into Openlink. We used, they still use, MSSQL with PHP running on Unix/Linux at my last employer. I was a happy customer not a spokesperson. It worked as advertised, no fuss, no problems. In a production environment that is what you want. DAve > Hi.. it's me again :) > > We have a few

[PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Austin Marshall
Glenn Sieb wrote: > Hey everyone! > > Thanks for all the hints--here's what my boss and I eventually came out > with: > > /* ## > ## And for every row of data we pull, we create a table row... > ## */ > $company = 0; >

Re: [PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Austin Marshall wrote: >> This not only takes care of the table row colors, but also removes >> duplicate company names so it looks MUCH neater this way : > > Is there not a GROUP BY clause in MS SQL? I'm pretty sure there is. If > you group the query by company name

[PHP] Script Cannot Read File Field

2002-05-10 Thread Dr. Shim
I have a very nicely organized form, with a file field. The script can read all the fields, exepet for this one file field! I have no idea what is wrong. Maybe its scope? Well, anyhow, I could really use some help. The form's "enctype" is set to "multipart/form-data", so that can't be the problem.

Re: [PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Austin Marshall
Miguel Cruz wrote: > On Fri, 10 May 2002, Austin Marshall wrote: > >>>This not only takes care of the table row colors, but also removes >>>duplicate company names so it looks MUCH neater this way : >> >>Is there not a GROUP BY clause in MS SQL? I'm pretty sure there is. If >>you group th

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Andy
leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich dann: Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or direct

Re: [PHP] Re: Alternating Table Rows, Part Deux..

2002-05-10 Thread Glenn Sieb
On 04:58 PM 5/10/2002 -0500, Miguel Cruz wrote: >But he's dealing with cases where the company name remains the same but >other data in the row changes (for instance, a company with multiple >offices, where you wanted to list the phone number and address for each). >GROUP BY would discard that oth

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Shaun Thomas
On Fri, 10 May 2002, Glenn Sieb wrote: > Thanks for all the hints--here's what my boss and I eventually came > out with: This could use a few tweaks. First off, putting mysql_num_rows in the actual for loop executes it every iteration. Bad. Second, consider giving your code some readability

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Glenn Sieb
Thanks! I'll play with this!!! :) Glenn On 05:11 PM 5/10/2002 -0500, Shaun Thomas wrote: >This could use a few tweaks. First off, putting mysql_num_rows in the >actual for loop executes it every iteration. Bad. Second, consider >giving your code some readability by returning an associative ar

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Javier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What version of php and apache do you use? Andy wrote: | leider funktioniert das nicht. nach ausfuehren von configtest bekomme ich | dann: | | Syntax error on line 953 of /usr/local/apache/conf/httpd.conf: | Cannot load /usr/local/apache/libexec/libp

Re: [PHP] Apache is not rendering php pages. Config problem?

2002-05-10 Thread Eugene Lee
On Fri, May 10, 2002 at 11:34:28PM +0200, Andy wrote: : "Eugene Lee" <[EMAIL PROTECTED]> asked: : > On Fri, May 10, 2002 at 09:53:10PM +0200, andy wrote: : > : : > : I did just build abpache and php. Unfortuanatelly the http.conf : > : looks quit different to one I did install last year. There is

Re: [PHP] Alternating Table Rows, Part Deux..

2002-05-10 Thread Glenn Sieb
On 05:11 PM 5/10/2002 -0500, Shaun Thomas wrote: >This could use a few tweaks. Ok I got it now... This exhibits the behaviour I was looking for, and, thanks to you, is much easier to read and maintain! :))) Thanks, Shaun! Glenn $sPrevCompany = $sColor = ''; while ($aRow = mss

Re: [PHP] virtual host problem

2002-05-10 Thread Ian Newlands
Re question 2: You can set this using the php_value command in apache. I think you need to have the SAPI version configured for this to work though. You might want to check that out. I have only done this on XP, haven't tried it on linux yet. ServerAdmin [EMAIL PROTECTED] DocumentRoo

[PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Andy
I did find the prob! So for all guys struggeling with the same one.. First install apache, then php! I did reinstall apache after php. After compiling php again it is up and running. Thanx guys, Andy "Javier" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED

[PHP] httpS connection with FILE

2002-05-10 Thread Bert Buckley
I would like very much to retrieve data from an https server using the file function, but it only supports an http call. 1. Can someone suggest a good alternative 2. I understand this will be in PHP 4.3. Does anyone know a possible release date. Thanks Bert -- PHP General Mailing List (h

Re: [PHP] httpS connection with FILE

2002-05-10 Thread Stuart Dallas
On 10 May 2002 at 16:07, Bert Buckley wrote: > I would like very much to retrieve data from an > https server using the file function, but it only > supports an http call. > > 1. Can someone suggest a good alternative http://www.php.net/curl -- Stuart -- PHP General Mailing List (http://www

Re: [PHP] httpS connection with FILE

2002-05-10 Thread Danny Shepherd
It will be really cool when we can do that (in PHP4.3) but until then you'll have to make do with cURL (http://www.php.net/manual/en/ref.curl.php) HTH Danny. - Original Message - From: "Bert Buckley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 12:07 AM Subje

Re: [PHP] log analysis

2002-05-10 Thread Josh Edwards
Thanks for replying Miguel I'm new to php and wonder how I would check if the first field is an IP address. Do I open the file fget it and then use a regular expression to check. Also if I want to break up the first line of my array what delimiter do I look at as the fields in the log are sep

RE: [PHP] register_globals in php4

2002-05-10 Thread Luc Saint-Elie
Mike, Both of your bit of code are not equal. On my ISP in 4.0.6 isset returned false if the variable was not existing OR empty in 4.2 isset returns true if the variable exists but is empty, so you may want to check with empty instead of isset Luc At 12:16 10/05/2002 +0100, Ford, Mike

[PHP] Layout Help

2002-05-10 Thread Jason Soza
Hey all... I really do want to thank everyone for all the help and advice you give. I know my questions sometimes are probably more annoying than anything else, but your input really does help. Anyway, I have a stack of 76 playlists I need to consolidate and display. These are from radio shows

[PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-10 Thread Phil Powell
http://$HTTP_HOST/$path/menubar.cgi";, "r"); $menubar = fread($fileID, 100); fclose($fileID); return $menubar; } ?> This function exists in the file "menubar_functions.php" which is in the docroot. I have a PHP script in a subfolder /chat that produces a Fatal Error (call to undefine

RE: [PHP] problems with

2002-05-10 Thread David Freeman
> I've only just picked up on this thread, but why not put > each form inside a element? > > i.e. > > > ... > ... > > includes an implied so if you keep it inside your you'll end up with extra space in your cell. If your table has no dif

RE: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-10 Thread David Freeman
> So I should buy a commerical product from zend to > protect my code but since my code will be reversed > engineered anyways then what's the point of buying > from zend? That's your choice. It's also my point. If you can't be 100% secure then perhaps you should be looking at what you're t

[PHP] MySQL or FlatFile

2002-05-10 Thread David Duong
To store large values (100k+) and load them as much as 6+ times within the same hour what would be better MySql or Flatfile? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Layout Help

2002-05-10 Thread David Freeman
> Anyway, I have a stack of 76 playlists I need to consolidate and > display. These are from radio shows, so each playlist has > the date, the name of the radio show, and anywhere from 20 - 27 tracks, > artists, and albums on them. It's really more an sql question than a php question but.

RE: [PHP] Alternating table rows...

2002-05-10 Thread David Freeman
> I've been asked if I can alternate the colors of the > rows to make the report more legible. What I usually do is something like this: if ($colour == "blue") $colour = "red" else $colour = "blue"; Then the bit where you actually output display you use $colour to set display attributes and

RE: [PHP] randomize?

2002-05-10 Thread David Freeman
> I have a group table with 16 items, and I want them to be > randomly put in 4 different groups, with 4 in each group, > I've seen the $rand(x,x) thing, but is there any way to > limit to 4 in each group without 47839 rows of code? :P Wouldn't you just randomise all 16 items and take the

[PHP] Register Globals - Article

2002-05-10 Thread Justin French
Hi all, Since the hot topic of the last few weeks has definately been the new register_globals deal, I thought the following article will be of huge assistance to many. http://www.WebmasterBase.com/article.php?pid=0&aid=758 It's short, to the point, explains why the old way is bad, explains why

Re: [PHP] MySQL or FlatFile

2002-05-10 Thread Liam MacKenzie
MySQL - Original Message - From: "David Duong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 10:29 AM Subject: [PHP] MySQL or FlatFile To store large values (100k+) and load them as much as 6+ times within the same hour what would be better MySql or Flatfile

Re: [PHP] Re: Apache is not rendering php pages. Config problem?

2002-05-10 Thread Liam MacKenzie
That's strange.. I always compile in this order... 1. MySQL 2. PHP 3. Apache - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 11, 2002 9:10 AM Subject: [PHP] Re: Apache is not rendering php pages. Config problem? I did find the prob!

[PHP] Re: Layout Help

2002-05-10 Thread Austin Marshall
Jason Soza wrote: > Hey all... I really do want to thank everyone for all the help and > advice you give. I know my questions sometimes are probably more > annoying than anything else, but your input really does help. > > Anyway, I have a stack of 76 playlists I need to consolidate and > displ

[PHP] DOMXML [revisited]

2002-05-10 Thread Thalis A. Kalfigopoulos
Hi again and sorry to pose same question, but I'm about to pull out my hair here. There were some DOMXML questions in the past 24h but none replied to. Two of us till now have had the same problem: compiled DOM just fine and see it is there with phpinfo(); but cannot use its functions[1]. Can an

[PHP] Any difference between these 2 forms of syntax?

2002-05-10 Thread Richard Davey
Hi, I am wondering if there is any tangible difference between the following two commands: $x = $foo["status"]; $x = $foo['status']; The part in question being the use of ' or " around the "status" element of the array $foo. Both have the same end result in my case, I'm just purely wondering wh

[PHP] Re: MySQL or FlatFile

2002-05-10 Thread Austin Marshall
David Duong wrote: > To store large values (100k+) and load them as much as 6+ times within the > same hour what would be better MySql or Flatfile? > > I think it really depends on the content. If you are storing 100K+ per entry it sounds like it is probably something along the lines of an i

[PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Austin Marshall
Richard Davey wrote: > Hi, > > I am wondering if there is any tangible difference between the following two > commands: > > $x = $foo["status"]; > $x = $foo['status']; > > The part in question being the use of ' or " around the "status" element of > the array $foo. > Both have the same end resu

[PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Richard Davey
"Austin Marshall" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It all depends on what you use as a key... you just follow the normal > string standards. If you want a variable evaluated within the key, then > you must use "s if you purely use text then you j

[PHP] Re: Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-10 Thread Michael Kimsal
Glenn Sieb wrote: > Hi.. it's me again :) > > We have a few different servers here, most of which are FreeBSD, > including our internal web server (Apache 1.3.24). We have PHP 4.2.0 > installed as well. > > Currently I'm running my MSSQL query scripts on a Win2k webserver, as I > can't seem t

[PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Austin Marshall
Richard Davey wrote: > "Austin Marshall" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >>It all depends on what you use as a key... you just follow the normal >>string standards. If you want a variable evaluated within the key, then >>you must use "s if yo

Re: [PHP] Any difference between these 2 forms of syntax?

2002-05-10 Thread php3
Addressed to: "Richard Davey" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Richard Davey" <[EMAIL PROTECTED]> Sat, 11 May 2002 01:54:43 +0100 > > Hi, > > I am wondering if there is any tangible difference between the following two > commands: > > $x = $foo["status"]

[PHP] PHP >? for current PEAR

2002-05-10 Thread Brad Hubbard
I'm trying to install PEAR and having some problems. What's the minimum PHP version for the current PEAR? Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using function in PHP script n DOCROOT in PHP script in subfolder

2002-05-10 Thread Analysis & Solutions
Phil: On Fri, May 10, 2002 at 08:01:46PM -0400, Phil Powell wrote: > > How do I fix this problem? I do not want to duplicate the PHP script per > folder as there will be an enormous amount of dynamically-created subfolders > and I will have to copy a version per folder. I want to be able to use

Re: [PHP] Re: Any difference between these 2 forms of syntax?

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Austin Marshall wrote: >> I wonder if it matters from an overhead point of view, is PHP doing >> more work than it ought to using " instead of ' because it's expecting >> variables? > > I'd be interested to see if there were much a difference > performance-wise though. Quic

Re: [PHP] Using function in PHP script n DOCROOT in PHP script insubfolder

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Phil Powell wrote: > How do I fix this problem? I do not want to duplicate the PHP script per > folder as there will be an enormous amount of dynamically-created subfolders > and I will have to copy a version per folder. I want to be able to use the > one PHP script in the DO

Re: [PHP] Re: Debugger

2002-05-10 Thread Jason Wong
On Saturday 11 May 2002 04:07, Austin Marshall wrote: > Jose Leon wrote: > >>php -l will let you know where your syntax errors are. > > > > What? > > > > Regards > > If you invoke the interpreter from the command line (CGI). You can use > the -l flag to enable lint mode... that will check your sc

Re: [PHP] Re: Debugger

2002-05-10 Thread Rasmus Lerdorf
See DBG (http://dd.cron.ru/dbg/) On Sat, 11 May 2002, Jason Wong wrote: > On Saturday 11 May 2002 04:07, Austin Marshall wrote: > > Jose Leon wrote: > > >>php -l will let you know where your syntax errors are. > > > > > > What? > > > > > > Regards > > > > If you invoke the interpreter from the c

Re: [PHP] Re: Debugger

2002-05-10 Thread Jason Wong
On Saturday 11 May 2002 12:17, Rasmus Lerdorf wrote: > See DBG (http://dd.cron.ru/dbg/) I think the OP has already looked at it, and wanted something better :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Script Cannot Read File Field

2002-05-10 Thread Jason Wong
On Saturday 11 May 2002 05:59, Dr. Shim wrote: > I have a very nicely organized form, with a file field. The script can read > all the fields, exepet for this one file field! I have no idea what is > wrong. Maybe its scope? Well, anyhow, I could really use some help. The > form's "enctype" is set

[PHP] Packages Installed In html/doc root

2002-05-10 Thread Dennis Gearon
I've looked at a bunch of CMS(content management system)'s lately. There are some good ones, and I like the directions they're going. nadmin studio has the most incredible admin front end for midgard that you would believe. It's at: http://cmsdemo.hklc.com just type in demo for each of the blocks

[PHP] PHP Powers FreeMovie API for Flash

2002-05-10 Thread Jacek Artymiak
"PHP Powers FreeMovie API for Flash" http://www.oreillynet.com/pub/a/javascript/2002/05/09/freemovie.html Jacek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Display mail

2002-05-10 Thread Uma Shankari T.
Hello, Can anyone please tell me is there any to display the mails like mailing archieve, in one of the folder in Pine.. Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2