RE: [PHP] image code

2001-06-20 Thread Andrew Chase
I wrote thumbnailing script that did exactly what you said below, but to eliminate the needless regeneration of existing thumbnails I just did a check to see if the thumbnail already exists: if(!file_exists("/path/to/thumbnail.jpg")){ //Create the thumbnail here } If the thumbnail alre

[PHP] RE: bad form...

2001-06-20 Thread Andrew Chase
As long as your code is well-formatted and well-commented, I don't think it's a problem, especially for simple forms for quick DB inserts or sending e-mail. You can do nice error handling without annoying Javascript alerts, too; when the form is submitted you can check for missing/invalid field v

RE: [PHP] Forum script

2001-06-20 Thread Andrew Hill
www.phorum.org Best regards, Andrew > -Original Message- > From: Rosen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 20, 2001 11:23 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Forum script > > > Hi > Can someone recommend me some good script for fo

[PHP] javascript label inside php code.

2001-06-21 Thread Andrew Austin
Warning: Cannot add header information - headers already sent by (output started I understand that one of the reasons for this erro message is if their is a trailing space after a ?>. I have some PHP code which produces javascript rollover code. Above this there are a few includes referencing d

RE: [PHP] Which DB abstraction ?

2001-06-21 Thread Andrew Hill
t www.iodbc.org Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message- > From: Robert Mena [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June

RE: [PHP] protect source code

2001-06-21 Thread Andrew Chase
You might want to check out APC - an open-source alternative to Zend's commercial product. I've never used it, but it looks pretty good: http://apc.communityconnect.com/ -Andy > -Original Message- > > I am on a project and the issue that struck me is how to > protect my source > > cod

RE: [PHP] how to pass PhP variables thru HREF command

2001-06-22 Thread Andrew Kirilenko
Hello! Yes, you are right. And ou can get passed values in the predication.php via: global $HTTP_GET_VARS; $hometeam = $HTTP_GET_VARS["hometeam"]; $awayteam = $HTTP_GET_VARS["awayteam"]; Best regards, Andrew Kirilenko, Seniour Programmer / System Administrator, Internet Ser

[PHP] OOP

2001-06-23 Thread Andrew Kirilenko
} } class three extends two { function three() { echo "three"; } } $foo = new three(); <--- And the output of this programm is "three", but not "one two three" :( Best regards, Andrew Kirilenko, Seniour Programmer / System A

RE: [PHP] converting Word documents to something sensible

2001-06-24 Thread Andrew Kirilenko
Hello! Try to use StarOffice. Seems, it's possible to make automatic conversion from word.DOC into something more suitable. Or, you can use PDF printer (standard adobe tool), but only under windows. Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Se

Re: [PHP] Can any one spot the Parse error Here

2001-07-02 Thread Andrew Halliday
Brace count mismatch. You are missing a '}'. God knows where it is...inconsistent spacing and code too lengthy. Functionise/objectise your code! AndrewH - Original Message - From: "ReDucTor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 02, 2001 4:17 PM Subject: [PHP] Ca

[PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)

2001-07-02 Thread Andrew Halliday
> Only typed it up in like 20 min, i normaly do that [code tidying] after :) hehe tisk tisk...the merits of design havent been hammered through you yet? you are lucky!!! But, this does raise an interesting issuegood PHP code structure/form. What do people consider good PHP form? Ive coded i

Re: [PHP] PHP Form (aka:Re: [PHP] Can any one spot the Parse error Here)

2001-07-02 Thread Andrew Halliday
> It's more of a pain if I have to remember what order the parameters go Yeah, good point. I can see that. What i have been doing is componentising the page into functions which are responsible for rendering a discrete section of that page...ie if a page consists of a title bar and a form and t

RE: [PHP] where can I find a good documentation on regular expressions?

2001-07-05 Thread Andrew Kirilenko
Hello! Try to find some good PERL or PHP book. You can get one from http://194.84.74.116/iced/lp.tar.gz Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -Original Message- From: Mick Foster [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05

[PHP] RE: upgrading to gd2.0.1

2001-07-06 Thread Andrew Chase
If you want to manipulate PNG or JPEG images, you need to make sure you have the PNG and JPEG libraries, and recompile PHP with GD as before, and adding --with-png-dir=/path/to/pnglib, --with-jpeg-dir=/path/to/jpeglib For the complete list of compilation options, see http://php.net/manual/en/inst

RE: [PHP] Sort an array by its values

2001-07-08 Thread Andrew Braund
} } if($nfiles>1){ usort($files, create_function( '$a,$b', 'return $a["date"]==$b["date"]?0:($a["date"]<$b["date"]?1:-1);') ); } closedir($handle); } } HTH Andrew Braund >

[PHP] session management

2001-07-08 Thread Andrew Austin
Can a web hosting company decide whether or not session control is allowed in their servers. it is something you need to have access top the server to control. ie set up in the php.ini file or similar thanks andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Polls

2001-07-08 Thread Andrew Brampton
have 2 tables. Questions Table: Question ID Date Question Answers Table: Question ID Answer Then you can make as many answers as you like as long as the Question ID is for your question This make sense? Andrew - Original Message - From: "Marius Pertravèius" <[EMAIL P

[PHP] session variable name into form

2001-07-08 Thread Andrew Austin
I have a session variable called auth_user and want to put the variable into a form field. I have tried the following and similar but am not succeeding. how else might it be done aa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: [PHP]somebody help me out here!

2001-07-09 Thread Andrew Chase
There's a search engine optimization tutorial at Webmonkey: http://hotwired.lycos.com/webmonkey/01/23/index1a.html?tw=e-business It mentions doing the Amazon-style search-engine friendly URLs and links to a page about mod_rewrite for Apache: http://httpd.apache.org/docs/mod/mod_rewrite.html -

[PHP] RE: sorting results of opendir()

2001-07-09 Thread Andrew Chase
Try reading the directory contents into an array, sorting it, *then* outputting the contents of the array: $dir = opendir("."); $dirlist = array(); $index = 0; while($file = readdir($dir) && $file != "." && $file != ".."){ $dirlist[$index++] = $file; } sort($dirlist); foreach($dirlist

RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Andrew Hill
Bob, Why doesn't odbc_fetch_into give you what you want? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message- > From: Bob Horton

RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Andrew Hill
Bob, Perhaps use odbc_field_name or even odbc_specialcolumns with odbc_fetch_into? I do agree that mysql_fetch_array is quite useful. Dan - what do you think? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access &

RE: [PHP] ODBC Function equivalent to MySql_Fetch_Array

2001-07-11 Thread Andrew Hill
Bob, Perhaps use odbc_field_name or even odbc_specialcolumns with odbc_fetch_into? I do agree that mysql_fetch_array is quite useful. Dan - what do you think? Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access &

[PHP] how would i do this ?

2001-07-12 Thread Andrew Austin
Hi I need to fill a variable a value (writers name) with the data coming from 2 different tables depending on the choice from the previosu page (add a new article or edit an old one). Is their an easier way to do this as the sql is rather ugly that I am using later as itis not clean in its cho

RE: [PHP] Upcoming wrox php/flash book?

2001-07-13 Thread Andrew Chase
Also, PHP's .SWF generating capabilities aside, PHP could also be used to generate included text on the fly - I forget the exact command, but I know you can define the contents of a variable from an external file in Flash. This would lend itself to updating a newsfeed or "What's New" blurb within

[PHP] OOP Problems

2001-07-14 Thread Andrew Kirilenko
---> test! test! test! Fatal error: Call to a member function on a non-object in c:\www\a.php on line 8 <--- How to solve this problem??? Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] does php have a response.flush function

2001-07-15 Thread Andrew Austin
Does php have a funciton like reponse.flush in asp aa -- 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]OT I know, but WTF...

2001-07-15 Thread Andrew Brampton
did someone point out to you that IE6, is BETA... ie if it doesn't work, don't expect it to. But there may be a solution, have a quick search on Microsoft's Site... Andrew - Original Message - From: "Chris Cocuzzo" <[EMAIL PROTECTED]> To: "PHP Gene

[PHP] RE: "report" generation with PHP

2001-07-16 Thread Andrew Chase
There's more than one way to skin a cat - if not directly from PHP to PDF, why not PHP to a .TeX LaTeX file, then use exec() to run latex and dvi2pdf on it. No license restrictions there that I know of, and you can get some very nice results with LaTeX. -Andy > -Original Message- > From

Re: [PHP] GET Command

2001-07-17 Thread Andrew Brampton
.com and click the Vulnibilitys link on the left Andrew - Original Message - From: "Clayton Dukes" <[EMAIL PROTECTED]> To: "Matthew Loff" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, July 17, 2001 7:37 PM Subject: Re: [PHP] GET Command >

Re: [PHP] sleep() function question

2001-07-22 Thread Andrew Brampton
ooking, I found "ob_implicit_flush" that may help as well.. Hope I could help Andrew - Original Message - From: "drb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 22, 2001 11:25 PM Subject: [PHP] sleep() function question > just wanted to make sur

RE: [PHP] date HELP !!!!!

2001-07-23 Thread Andrew Braund
I thought this might do it... if( date("d") == date("d",mktime (0,0,0,date("n"),0,0)) ){ echo "last day"; } But it doesn't seem to handle February in non leap years; 8<== $testMktimeArray = array( "7/23/2001", "1/1/2001", "12/31/2001", "2/28/1999", "2/29/1999", "2/28/1

Re: [PHP] progress dbi?

2001-07-25 Thread Andrew Hill
, and supports the ODBC 3.5 API and includes a GUI control panel on Mac OS X, Linux, and many Unix platforms. OpenLink's commercial drivers download with a free non-expiring 2 user license. Support is available at http://www.openlinksw.com Best regards, Andrew Hill Director of Techn

RE: [PHP] Apache + Oracle + PHP on HPUX

2001-07-26 Thread Andrew Hill
. This should get your environment fairly well setup. If you require assistance, free support is available at http://www.openlinksw.com/support/suppindx.htm Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access &

Re: [PHP] IE -> View Source

2001-07-26 Thread Andrew Brampton
How about you get one of these HTML encypting type JScripts... it converts the page into /0D type codes, and then decodes it with a built in JScript function... If you view source they will only see lots of /0D looking things, but the page will display like normal (but maybe a bit slower) Andrew

RE: [PHP] can't get gd working at all

2001-07-26 Thread Andrew Chase
Glad your host got that straightened out - for future reference, an easy way to look at the server's PHP config is to make a page using phpinfo - It will show you whether GD (and other extensions) are installed, as well as the image format(s) supported and whether or not Freetype support is inc

Re: [PHP] PHP on win2k/Weblogic?

2001-07-28 Thread Andrew Brampton
I think you can use ActivePerl & PHP on that type of webserver. I personally haven't tried installing on there, but ActivePerl has instructions for installing on weblogic, and PHP can run as a exe so hopefully weblogic can do that... Andrew - Original Message - From: "

Re: [PHP] regarding password in mysql?

2001-07-28 Thread Andrew Brampton
I was just looking in the help to find out what PASSWORD does... but I can't find it. But I can offer this advice. You can't decypt the password, so to check if the password entered is valid, you encypt it, and compare the 2 hashed passwords.. Andrew - Original Message ---

RE: [PHP] Connecting PHP to SQL Server

2001-07-30 Thread Andrew Hill
free download and come with a non-expiring 2-user license. Free support is also available at http://www.openlinksw.com/support/suppindx.htm should you run into problems. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access

RE: [PHP] PHP-Linux >> Sybase-Windows

2001-08-02 Thread Andrew Hill
ing 2-user license, and free support is available at http://www.openlinksw.com/support/suppindx.htm. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message

Re: [PHP] Uptime script

2001-08-06 Thread Andrew Brampton
it seems that www.uptimes.net has shut down, I would of liked to see a site like that. And tsk tsk, couldn't you of moved your machine while it was on :).. All the "hard core" web server admins carry theirs with a UPS attacked and a Radio Link net connection :) hehehe Andrew

Re: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Andrew Brampton
Just a very big guess. Can you use system or exec command to run one of those telnet commands from a PHP script? Or even better idea, can you ask your hosts to do it for you :) Andrew - Original Message - From: "elias" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP] Archives

2001-08-08 Thread Andrew Hill
Richard, Check out http://marc.theaimsgroup.com The WWW section contains many PHP list archives. I couldn't live without this resource. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration T

RE: [PHP] Loop error?

2001-08-14 Thread Andrew Braund
> -Original Message- > From: PHP List [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 15 August 2001 09:20 > To: php > Subject: [PHP] Loop error? > > > Hi, > Can anyone tell me why this is a never ending loop? > > $i=0; > $count = 1; > while ($count > $i); ^ > { >

[PHP] Re: installation on windows

2001-08-14 Thread Andrew Stopford
hope that helps Andrew Stopford <[EMAIL PROTECTED]> wrote in message news:OF5D6BE043.08223383-ON65256AA2.003974DD@domain... > Dear Friends, > > I am new to PHP (but familiar with ASP,JSP) and would like to have some > guidance notes from you. > I am using windows 98 OS on my

[PHP] RE: could i get a clue?

2001-08-15 Thread Andrew Chase
No sure how you mean 'calling' the script... but in addition to using something like document.location='myscript.php' It would theoretically be possible to pass javascript variables to a PHP script in the same way by using something like var foo = "Some Text"; var bar =

[PHP] record each page

2001-08-15 Thread Andrew Austin
If i select a group of records from a mysql db is there a way to place each record on a separate page. Could I put them in an array which is connected to a session object? Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] Slow LDA Queries

2001-08-18 Thread Andrew Libby
;][0]; > ldap_close( $ds ); > return( $s_RealName ); >} > } > ?> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the

Re: [PHP] MySql or flat database using PHP ?

2001-08-18 Thread Andrew Libby
ks, email addresses etc >etc. What do you think is best a MySql database or writing it to a file using >fopen/fwrite (flat file) ??? Your thoughts would be very much appreciated. > > > Thanks > > Dave > > > -- ------

Re: [PHP] class variables and methods

2001-08-18 Thread Andrew Libby
imit that people follow? > > > > -- > 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] Extract email address from string

2001-08-18 Thread Andrew Libby
ECTED] > 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] &

Re: [PHP] Need Regex Help

2001-08-18 Thread Andrew Libby
o prices to the right into a new > html table? > I think the answers will help me understand better. > Thanks > Craig ><> > [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For addit

Re: [PHP] PHP and the Console

2001-08-20 Thread Andrew Libby
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] > -- ------ Andrew Libby Director of Techno

[PHP] RE: ImagePNG problem

2001-08-20 Thread Andrew Chase
Make sure you have GD 2.0.1 and PHP 4.0.6 or later for creating true-color PNGs, per the manual: http://php.net/manual/en/function.imagecreatetruecolor.php -Andy > -Original Message- > From: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]] > > Is there any way to tell ImagePNG() to create

Re: [PHP] mcrypt trouble

2001-08-21 Thread Andrew Libby
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] > -- -- Andrew Libby Director of Technology CommNav, Inc [EMAIL PROTECTED] -- PHP G

Re: [PHP] AudioGalaxy-like stuff

2001-08-21 Thread Andrew Brampton
When you click on the image it reloads the image which is really a PHP page which returns a image. That way when it loads the image, it can actually run some PHP and do whatever is required, once done it returns the approiate image That make sense? Andrew - Original Message - From

Re: [PHP] mcrypt trouble, still

2001-08-23 Thread Andrew Libby
-- > Dominic > > > > -- > 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] AudioGalaxy-like stuff

2001-08-25 Thread Andrew Brampton
+ SID (Where SongID & SID are used for something) Where this is actually calling a PHP script, that returns a image to be displayed while also doing some DB stuff... Does this clear it up for you? Andrew - Original Message - From: "Christian Dechery" <[EMAIL PROT

[PHP] RE: What development environment do you use for PHP?

2001-08-27 Thread Andrew Chase
I keep my web documents in a CVS repository on a Linux box, and use WinCVS (GNU) to check files in and out on my WinNT desktop. I use ConTEXT (freeware) for editing. Documentation and help are always available at php.net and google.com. I have an Apache 'staging' server, and to keep the docume

RE: [PHP] RE: What development environment do you use for PHP?

2001-08-27 Thread Andrew Chase
WinCVS is available from http://www.wincvs.org - they also have Mac and X versions, although I've never tried them. -Andy > -Original Message- > From: John Meyer [mailto:[EMAIL PROTECTED]] > > Where do you get WinCVS , by the by? > -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Use PHP to connect to Oracle 8i database

2001-08-27 Thread Andrew Hill
also available if you encounter problems. Best regards, Andrew Hill Director of Technology Evangeslim OpenLink Software http://www.openlinksw.com XML and eBusiness Infrastructure Technology Providers On Monday, August 27, 2001, at 05:04 PM, Joe Conway wrote: >> I want to use php to connect to a

Re: [PHP] Best Way?

2001-08-28 Thread Andrew Brampton
n it saves them writing their password each day Andrew - Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 28, 2001 4:56 PM Subject: [PHP] Best Way? > Hi All, > I have a php/mysql authentication page where

Re: Re: [PHP] Sorry, i need HTML help

2001-08-29 Thread Andrew Brampton
So is javascript :) or should I say that IE & NS don't agree on standards. Andrew - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 29, 2001 12:47 PM Subject: Re: Re: [PHP] Sorry, i need HTML help > > >>

Re: [PHP] Really weird problem: cross-server databasing *g*

2001-09-02 Thread Andrew Brampton
cript on Server A Does this wierd idea make sense? Andrew - Original Message - From: "Markus Mayer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, September 02, 2001 3:42 AM Subject: [PHP] Really weird problem: cross-server databa

RE: [PHP] iODBC Troubles / Troubles in ODBC Land

2001-08-28 Thread Andrew Hill
question on the DB list - the cross post to the general list isn't necessary. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message- > From: Jo

RE: [PHP] iODBC support (--with-iodbc[=DIR])

2001-09-04 Thread Andrew Hill
Simon, The HOWTO on www.iodbc.org walks through the steps with links to specific file downloads. As far as what libc version you need, do the following on your RedHat box: rpm -qa |grep libc the latest version number that shows up is what you need compatibility for. Best regards, Andrew Hill

RE: [PHP] PHP with Access?

2001-09-04 Thread Andrew Hill
ng on Windows is you have not configured your PHP installation to support ODBC :) Either view the install docs to enable the extension: http://www.php.net/manual/en/install-windows.php or upgrade to 4.0.6 or later, which will support ODBC on Windows by default. Best regards, Andrew Hill Direct

[PHP] Load testing

2001-09-04 Thread Andrew Brampton
Hi, I'm looking for a app that I can run across my network that will load test my webserver & pages... Something like a program that will open 100 pages at once and tell me the response times or error occuring etc... Does anyone know of such a app? Thanks Andrew

Re: [PHP] Site Layouts/Designs

2001-09-09 Thread Andrew Brampton
I got a couple of URLs http://www.uidesign.net/ Not sure whats there but I bookmarked it http://www.guistuff.com/ This site is REALLY REALLY good... it contains lots of free templates in many different formats to allow easy use Hope these help Andrew - Original Message - From: "ReD

RE: [PHP] HELP!!!

2001-09-10 Thread Andrew Hill
Boris, Compiling with ODBC translates to linking with an ODBC Driver Manager. An Open Source Driver Manager is iODBC - www.iodbc.org There is also a HOWTO on the site for PHP compiling --with-iodbc. You will still need a driver for your ASA, but it appears you have this. Best regards, Andrew

[PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Andrew Penniman
I am trying to figure out how to use PHP to redirect the user to a new location *after* processing and most likely outputting a bunch of code. Because this redirection would happen late in the game I can't use header("Location: ".$redirect_to); I come from a ColdFusion background and am used to C

RE: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Andrew Penniman
The Steve Edberg (option #2) and Michael Kimsal suggestions to use ob_start() output buffering work like a charm. Thanks so much! I would have been a long time coming before I mad this connection on my own. Guess I need to hone my archive querying skills... I think it would be _really_ swell if

Re: [PHP] IE and '404 not found' custom script

2001-09-10 Thread Andrew Brampton
you said you added some headers, how about padding the html out with   but I'm not sure what you are doing here, so that may not apply/work :) Andrew - Original Message - From: "Enrique Vadillo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

[PHP] regexp (?:

2001-09-11 Thread Andrew Perevodchik
Why doesn't this simple example work? ereg ("aaa(?:bbb|ccc)aaa", $string); It causes an error. However "?:" command is documented in a manual of my version of PHP4. -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Apache redirection by PHP

2001-09-11 Thread Andrew Perevodchik
quot; depends on the user's request. I have tried to catch the requested name of server, and add it to $DOCUMENT_ROOT variable. It changed as I expected it to, but still /files/example.txt is returned. I've also tried to use setenv() -- the same result. Is there any way to do this kind of

Re: [PHP] suming up in MySQL

2001-09-11 Thread Andrew Perevodchik
TM> id - price TM> 1 1000 TM> 2 300 TM> 3 200 TM> How to sum up price row ? This can be done by MySQL rather than PHP. mysql_query ("SELECT SUM (price) FROM table"); -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re[2]: [PHP] How to list 2-6 in while script?

2001-09-12 Thread Andrew Perevodchik
,$val) = each ($headers) and $key <= 6 and $key >= 2) { print ""."$val".""; } Eh? -- Andrew Perevodchik [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] Dynamic Form

2001-09-12 Thread Andrew Hill
Here is my take on it, cobbled together with the help of a js wizard friend of mine: Dynamic Dropdown Menus

Re: [PHP] double values in array

2001-09-12 Thread Andrew Perevodchik
Hello! You wrote: TB> What am I doing wrong? You should use this line: $y = mysql_fetch_array ($getrec_result, MYSQL_ASSOC); -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: [PHP] PHP + FreeBSD + ODBC --> Progress Database

2001-09-13 Thread Andrew Hill
at http://www.openlinksw.com/support/suppindx.htm if you require assistance configuring your connection. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original

[PHP] minus in [] groups in ereg

2001-09-13 Thread Andrew Perevodchik
Is this a bug or feature? The only way to include a minus characher in [] groups in regex is to put \- right gefore ] [[A-Za-z0-9\_\-\=\%\.]] won't work with "-" as it is supposed to [[A-Za-z0-9\_\=\%\.\-]] is ok Uh? -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mai

Re[2]: [PHP] minus in [] groups in ereg

2001-09-13 Thread Andrew Perevodchik
Hello! You wrote: JK> Feature. By placing a "dash" next to the JK> bracket, there is no confusion that the dash JK> is being used to specify a range. Doesn't slash before dash mean that??? -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] imap_search

2001-09-14 Thread Andrew Perevodchik
$search = imap_search ($mail, "TO reply", SE_UID); returns the same values as $search = imap_search ($mail, "TO reply"); search whorks ok, but it doesnt return message id's. or this is imap-only flag and it won't work with pop3 connection? -- Andrew Perevodch

Re[2]: [PHP] html formating trouble

2001-09-14 Thread Andrew Perevodchik
e single quotes instead: AS> echo 'ovo je javna strana END; -- Andrew Perevodchik [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[2]: [PHP] html formating trouble

2001-09-14 Thread Andrew Perevodchik
ML and insert variables in there without ;) However in the book I'm using about PHP they recomend not to use it. But no good reasons are given... -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re[2]: [PHP] if(isset($a)) vs if($a)

2001-09-14 Thread Andrew Perevodchik
rning unless you use "@" :( -- Andrew Perevodchik [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] comparing

2001-09-15 Thread Andrew Braund
How about; SELECT product, count(*) AS Total FROM table GROUP BY product ORDER BY total DESC > -Original Message- > From: Teqila MAN [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 15 September 2001 16:43 > To: [EMAIL PROTECTED] > Subject: [PHP] comparing > > > Hello, > > What is the simple

Re: [PHP] Help a newbie?

2001-09-15 Thread Andrew Hill
Apache is my vote. And change your system date, please - it's messing with my inbox sort :) Cheers, Andrew Hill OpenLink Software On Sunday, August 2, 1998, at 03:14 AM, Peter Gibson wrote: > Hi! > > Simple question... > Should I use IIS (5.0) or apache for development of PH

Re: [PHP] \n not working

2001-09-16 Thread Andrew Brampton
Browsers don't parse \n as a new line, try using which will make a new line Andrew - Original Message - From: "alpherjo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 16, 2001 9:51 PM Subject: [PHP] \n not working > I am just learni

Re: [PHP] Re: Compiling php like C

2001-09-16 Thread Andrew Perevodchik
>> Has anyone done this to date?? I was thinking >> of compiling my programs for better perfomance, >> and of course, protect the source code. Anyone >> have any ideas on this issue? Another question: is it possible to compile PHP script in COM or EXE file? -- A

RE: [PHP] Performance: PHP vs. Visual Basic

2001-09-17 Thread Andrew Hill
ODBC isn's slow, but some ODBC drivers are. Comparison test if you have performance issues. ODBC can be faster than native. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology

[PHP] imap

2001-09-17 Thread Andrew Perevodchik
ion: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-UIDL: 80d991297a6d3b18a50c311202c5 -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] chewing up apache logs

2001-09-17 Thread Andrew Brampton
le on the bottom of my website to view my stats (www.planetcnc.com/ra2mod) Andrew - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Tuesday, September 18, 2001 12:45 AM Subject: [PHP] chewing up apache logs &g

Re: [PHP] Stupid Cookie Question

2001-09-17 Thread Andrew Perevodchik
n1c> SetCookie("password","$password"); n1c> SetCookie("cwname","$cwname"); SetCookie("password"); SetCookie("cwnamd"); B-) -- Andrew Perevodchik [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Getting IP address

2001-09-19 Thread Andrew Semark
Can anybody tell me how to get the IP address of the remote machine looking at the web page. I have two versions of PHP 4 On the box with version 4.0.1 I can use $HTTP_SERVER_VARS["REMOTE_ADDR"], but on the other server running 4.0.0 this don't work. Is there another way of doing this as it's not

RE: [PHP] Progress database

2001-09-21 Thread Andrew Hill
Richard, Regarding Progress, you are probably going to come back to ODBC :) When you do, feel free to give our drivers a try. You will be pleasantly surprised. Let me know if I can help in any way. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http

RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle

2001-09-21 Thread Andrew Hill
Jeffrey, Set your ORACLE_HOME environment variable. putenv("ORACLE_HOME=/path/to/oracle/home/dir"); etc. HTH Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers &

RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle

2001-09-21 Thread Andrew Hill
Ensure that this is sent in the envrionment before compiling php and starting apache as well. Cheers, Andrew > -Original Message- > From: Jeffrey Iskandar Ahmad [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 21, 2001 11:50 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTE

RE: [PHP] Create Array??

2001-09-22 Thread Andrew Braund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 23 September 2001 15:39 > To: [EMAIL PROTECTED] > Subject: [PHP] Create Array?? > > > Hi, > > If I have a value $num = 32; based on this how can I create an Array of > numbers 1 - 32, something li

RE: [PHP] Create Array?? More

2001-09-23 Thread Andrew Braund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 23 September 2001 16:46 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Create Array?? More > > > Ok, > > Thanks for the input, unfortunately it didn't help me solve my overall >

<    1   2   3   4   5   6   7   8   9   10   >