Re: [PHP] Oudoor database website - waypoints - please review

2001-08-19 Thread B. van Ouwerkerk
At 21:07 19-8-01 -0600, WildOutThere wrote: >I just got done (am still improving) building a website to share waypoints >and file related. Database is still thin, but i want to know if the >features work and are intuitive. You should figure out by yourself whether it works or not. Two little re

Re: [PHP] Passing variables to a file

2001-08-19 Thread Daniel Rezny
Hello Seb, Sunday, August 19, 2001, 11:44:59 PM, you wrote: SF> OK I know this can be done like so: SF> file.php4?foo=bar SF> but what if I want to keep the value of foo secret from the user? SF> - seb I don't know if it's best idea but you can try to encode link with base64_encode() and ba

[PHP] GD & ISAPI don't work

2001-08-19 Thread Juraj Hasko
Hi, I've encounter strange problem with GD library. I'm running PHP 4.0.6 on WinNT 4.0 and IIS 4.0. While I use CGI version, each of extensions including php_gd.dll works fine. But when I try change it to ISAPI, it works but without php_gd.dll. All others libraries works fine, but when I add

RE: [PHP] print two Digits after decimal point

2001-08-19 Thread Fotwun
> -Original Message- > From: Andonny [mailto:[EMAIL PROTECTED]] > Sent: Sunday, August 19, 2001 11:21 PM > To: [EMAIL PROTECTED] > Subject: [PHP] print two Digits after decimal point > > > Hi, > I need to print on the webpage two digits after the decimal point. > This is what I have at

[PHP] print two Digits after decimal point

2001-08-19 Thread Andonny
Hi, I need to print on the webpage two digits after the decimal point. This is what I have at the moment: I need to have for example $5.00 not $ 5 as it does at the moment. Thanks for your help Andonny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

[PHP] flash and php

2001-08-19 Thread Jack
I know this issue has been talk a lot already, but can anyone guide me where can I find information about how to build a dynamic content flash file driven by database? Jack [EMAIL PROTECTED] "Love your enemies, it will drive them nuts"

Re: Fw: [PHP] Re: option tags and WHILE

2001-08-19 Thread David Robley
On Mon, 20 Aug 2001 15:05, Chris Schneck wrote: > Thanks to CC Zona and David Robley for their help in gettin this code > out. This code is really nice for satisfying search engines. It offers > different page content every time you refresh and if you feel like > spamming, just use print_keywords(

Re: [PHP] Virtual Servers (apache) and php

2001-08-19 Thread B. van Ouwerkerk
>AddType application/x-httpd-php .php .php3 > AddType application/x-httpd-php-source .phps If those lines aren't you should get your code in your browser. 403 might be a rights issue. Say you created the file you're trying to open as root you should chown it to the user under which apa

[PHP] E-Commerce - Integrating Sessions With Charging Processes That rePOST

2001-08-19 Thread Fotwun
Hi, I have basically seen and used two methods for integrating credit card gateways into PHP code. The first method is one that opens a socket to the gateway server and sends the data from within the code. The second is where FORM data is posted to a https URL with the URL is should send the re

RE: [PHP] option tags and WHILE

2001-08-19 Thread Rudolf Visagie
Also while ($array[1] >= $array[0]) { and not while ($array[1] => $array[0]) { Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: 20 August 2001 07:01 To: CGI GUY; [EMAIL PROTECTED] Subject: Re: [PHP] option tags and WHILE On Mon,

Fw: [PHP] Re: option tags and WHILE

2001-08-19 Thread Chris Schneck
Thanks to CC Zona and David Robley for their help in gettin this code out. This code is really nice for satisfying search engines. It offers different page content every time you refresh and if you feel like spamming, just use print_keywords(); here and there to be more relevant :) I'll post the c

Re: [PHP] option tags and WHILE

2001-08-19 Thread David Robley
On Mon, 20 Aug 2001 12:23, CGI GUY wrote: > What's wrong with this code? I keep getting a parse > error at the form/select lines... > > $array = mysql_fetch_array($mysql_result) or die("no > go"); > > print (""); > print (""); > while ($array[1] => $array[0]) { > print (" ">$array[1]\n"); > } > p

[PHP] security check - virtual host and mod php setup

2001-08-19 Thread Dave
please hack apart this solution and point out the error/insecure nature of the setup. goal, provide php access to name based virtual hosts on FreeBSD boxes problem, security of PHP access to base system and other user scripts solution, apache compiled with suexec # set user and group to unique

[PHP] unix permission converter

2001-08-19 Thread Raphael Pirker
Hi, I have written a "Permission Converter" which converts unix permissions (the ones we know from CHMOD) into a "-" delimited string of numbers. I also made it that it supports one more level (unix only has 3 different types of permissions, (r,w,x) while mine can handle a fourth one. Since I'm j

[PHP] flash and mysql

2001-08-19 Thread Jack
Hi people I want to make a flash file with dynamic content, driven by database(Mysql in this case), is there anyone know where can I get more information about this? Jack [EMAIL PROTECTED] "Love your enemies, it will drive them nuts"

RE: [PHP] Count total

2001-08-19 Thread Don Read
On 19-Aug-2001 Martin Kampherbeek wrote: > Hi, > > Who can help me with the following problem? > I have the tables score and totalscore. > > Score: > id > userid > name > score > > Totalscore: > userid > name > totalscore > > In the table score one user can have mutiple scores. But in totalsc

[PHP] Oudoor database website - waypoints - please review

2001-08-19 Thread WildOutThere
I just got done (am still improving) building a website to share waypoints and file related. Database is still thin, but i want to know if the features work and are intuitive. www.wildoutthere.com Features include: online sketching on maps and topos user rating system slide shows upload files s

[PHP] Re: option tags and WHILE

2001-08-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cgi Guy) wrote: > What's wrong with this code? I keep getting a parse > error at the form/select lines... > print ("$array[1]\n"); See if adding curly braces, {$array[1]}, doesn't work better for you. -- CC -- PHP General Mailing List (ht

[PHP] Re: array in and out

2001-08-19 Thread CC Zona
In article <010101c1291b$378fa0a0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Chris Schneck) wrote: > function print_keywords() > { > echo ($mykewords); > } $mykeywords is a global var; it's undefined in the function's local scope. Either pass it into the function a

[PHP] option tags and WHILE

2001-08-19 Thread CGI GUY
What's wrong with this code? I keep getting a parse error at the form/select lines... $array = mysql_fetch_array($mysql_result) or die("no go"); print (""); print (""); while ($array[1] => $array[0]) { print ("$array[1]\n"); } print (""); print (""); ?>

Re: [PHP] Re: Shuffle Cards Function

2001-08-19 Thread Robert Schultz
Well, I required a function to mimick a human shuffle. Because the online shuffle was to help the user predict what sort/types of deals he would get with a given deck based upon a normal human shuffle. Plus, I've heard some bad things about shuffle, and of course, shuffe doesn't mimick a non-perf

Re: [PHP] array_unique() and count issue

2001-08-19 Thread David Robley
On Sat, 18 Aug 2001 17:27, CGI GUY wrote: > OK, I want to count the number of unique elements in > an array, then print the total. However, both methods > I've tried return "1"; the man pages explain that the > count() function will return 1 if the var is set but > not an array. But if you look

Re: [PHP] array in and out

2001-08-19 Thread David Robley
On Mon, 20 Aug 2001 11:25, Chris Schneck wrote: > Since i have little experience with arrays, and the manuals / readme > files online havent been able to help me, I was wondering if anyone had > any ideas why this code doesnt work? > > // get the keywords from db > $keyquery = ("select fld

[PHP] array in and out

2001-08-19 Thread Chris Schneck
Since i have little experience with arrays, and the manuals / readme files online havent been able to help me, I was wondering if anyone had any ideas why this code doesnt work? // get the keywords from db $keyquery = ("select fld_keyword_word from tbl_keyword order by rand()"); $

Re: [PHP] MySQL substrings?

2001-08-19 Thread David Robley
On Mon, 20 Aug 2001 02:12, Chris Lambert wrote: > It'd help if you have us the mysql_error() returned. > > Try the following: > > SELECT *, substring_date AS SUBSTRING(date,5,2) FROM $table ORDER BY > substring_date > Date is a reserved word in Mysql. Also, that might work better, after renaming

Re: [PHP] Using mcrypt in PHP

2001-08-19 Thread Jason Brooke
hopefully someone who knows what they're doing can reply to you, but in the meantime this should get you going - it works for me: $td = mcrypt_module_open(MCRYPT_TripleDES, "", MCRYPT_MODE_ECB, "/usr/lib/mcrypt-modes"); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND); mcrypt_gene

[PHP] Using mcrypt in PHP

2001-08-19 Thread Dr. Evil
There seems to be no reliable information in the manual about how to do this. I'm trying to use mcrypt 2.4 with php4.06, which should be a compatible combination. So far, I have gotten it to work like this: $cypher = MCRYPT_RIJNDAEL_128; $encrypted = mcrypt_encrypt($cypher, $key, $plaintext, M

[PHP] passing variables between PHP and Perl

2001-08-19 Thread Tom Beidler
I'm integrating a telephony service into a clients site. I'm pretty handy with PHP but I don't have much knowledge of perl. I've setup up my client's site using PHP and the service provided me with a Perl script to make the telephone connection. I used virtual() in my PHP script to pass variables

[PHP] Include/requrie secure pages

2001-08-19 Thread TomazSa
I can not include / require secure pages (https). Is that the way it is in php? If so how can I do that another way? lp, tomaz -- 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 admi

[PHP] Re: Two-Byte Regular Expressions

2001-08-19 Thread Yasuo Ohgaki
"Stephen Cremin" <[EMAIL PROTECTED]> wrote in message news:20010819210056.XGVA20588.mta05-svc.ntlworld.com@[62.252.202.64].. . > I note that the latest build of PHP4 comes with Japanese string support. > Does this include support for two-byte regular expressions? If yes, does it > also work with C

Re: [PHP] Re: Shuffle Cards Function

2001-08-19 Thread Tom Carter
I could be wrong in thinking this, but wasn't the purpose of the presented function to shuffle a deck in a deliberately imperfecatly random way? ie. mimicking a human shuffler beats why one would want to do this as an academic excersize, but hey, I like it ;-) - Original Message - From

Re: [PHP] Re: HTTPS oddity

2001-08-19 Thread speedboy
> Try throwing a on each port and see what else you are > getting... > > > > This has worked for ages - but sometime last night the behaviour of my/our > > server changed and now over an non-SSL connection, $HTTPS = ON and over a > > SSL connection $HTTPS = on (note the change in case). This is

[PHP] showing submitted images

2001-08-19 Thread Simon Lysbjerg Hansen
Please help, I'm trying to submit a .jpg image via a html form and showing it with the following piece of code File to show: but I only get the binary contents of the .jpg file. What's wrong? My hostmaster has an infobar running at the top of my page [check www.

[PHP] strange upload/db-insert problem with ie5.5

2001-08-19 Thread Serge Adamowsky
dear community, i've got a script which handles the correct upload of certain documents. the way: 1)select the document, then upload through form with method post -> target same document 2)do the checking stuff with the document, if ok call the same script again for displaying the property-page

[PHP] Re: PHP based authentification -----------

2001-08-19 Thread Richard Lynch
> How can I "logout" from a PHP based auth (with PHP_AUTH_USER and PHP_AUTH_PW > and appropriate headers sent at the beginning)? > It seems like unset($PHP_AUTH_USER) does not wotk in this case... unset() won't do anything because the *BROWSER* re-sends the username/password for that Realm when i

[PHP] Re: --enable-memory-limit - What does it do?

2001-08-19 Thread Richard Lynch
I think it allows you to COMPILE the darn thing when you've only got, like, 16Mb machine... Or *MAYBE* it's the thing in php.ini about limiting how much RAM a PHP script can chew up before puking... It *SHOULD* be documented on http://php.net in the Installation and Configuration section. -- WA

[PHP] Re: Sessions in pop-up windows

2001-08-19 Thread Richard Lynch
If Cookies are off, you may need to provide more than just "#" as the HREF. While "#" will "work", it's not technically speaking a valid URL, and PHP is probably not inserting the SID into the URL, or else inserting it in the "wrong" place. Use "View Source" in your browser to see what PHP is do

[PHP] Re: sendmail

2001-08-19 Thread Richard Lynch
> I'm on virtual hosting that lets me configure anything with .htaccess > file. I was recomended by provider to specify location of sendmail in > case I want to use php mail() function I know that I may do it in > htaccess file by adding php_value sendmail_path > /usr/sbin/sendmail The qwestion is

[PHP] Re: Function to Build Trees

2001-08-19 Thread Richard Lynch
> Given a multidimensional array with words as keys, I want to match > the values of each array with the keys of the array and build a new > array that reflects these relationships as a sort of tree. So, in > the list below, "fruit", "apples", "oranges", "red" are the keys and > in the "fruit" ar

[PHP] Re: Shuffle Cards Function

2001-08-19 Thread Richard Lynch
http://php.net/shuffle will be much faster and just as random... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Origina

[PHP] Re: HTTPS oddity

2001-08-19 Thread Richard Lynch
Try throwing a on each port and see what else you are getting... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Orig

[PHP] Re: coding standards

2001-08-19 Thread Richard Lynch
> - Is declaring all variables a good idea - so theres no unassigned > variables hanging around ? (no warnings produced when error reporting > set to E_ALL) You mean INITIALIZING. There are no variable declarations in PHP. And, yes, it's a good idea so you're never surprised by a variable that

[PHP] Re: Help with weird error..

2001-08-19 Thread Richard Lynch
> anyone know what > Fatal error: input in flex scanner failed in /home/k/kyle/public_html on line > means? Either the PHP compilation itself is whack, or you typed something so unlike PHP script that you've *really* managed to confuse it... Do other PHP scripts work? What's your source look li

[PHP] Passing variables to a file

2001-08-19 Thread Seb Frost
OK I know this can be done like so: file.php4?foo=bar but what if I want to keep the value of foo secret from the user? - seb -- 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 admi

[PHP] PHP to EJB (Sybase EP, Jaguar engine)

2001-08-19 Thread Alain Fontaine
Hello, I'm looking for ressources, links, articles, or contacts regarding the above subject, namely interfacing PHP to an EJB, particularly Sybase Enterprise Portal (formerly known as Jaguar). Thanks for any input, I appreciate it. -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Two-Byte Regular Expressions

2001-08-19 Thread Stephen Cremin
I note that the latest build of PHP4 comes with Japanese string support. Does this include support for two-byte regular expressions? If yes, does it also work with Chinese and Korean text? If no, what other options do I have without, for example, going through say JPerl or whatever? Stephen Cre

[PHP] FrontBase?

2001-08-19 Thread Stephen Cremin
The thread discussing the relative merits of mySQL and PostgreSQL have been very informative. I've been looking at the possibility of using FrontBase (http://www.frontbase.com/), primarily for its support of ACID and Unicode since I'm primarily working with Chinese, Japanese and Korean data. Mov

RE: [PHP] Sessions in pop-up windows

2001-08-19 Thread Quentin Gillet
be sure session.auto_start=1 and session.use_trans_sid=1 and that session.gc_maxlifetime has a reasonable value -Message d'origine- De : Chris Cameron [mailto:[EMAIL PROTECTED]] Envoye : dimanche 19 aout 2001 20:28 A : [EMAIL PROTECTED] Objet : [PHP] Sessions in pop-up windows I'm havin

[PHP] Re: virtual() ignoring str_replace()

2001-08-19 Thread jimw
Charlie Romero <[EMAIL PROTECTED]> wrote: > $results = virtual("/cgi-bin/search.cgi?q=hello&m=world"); virtual doesn't return the content of the subrequest, it sends it to the browser. you need to use something like popen() to do what you're trying to do. jim -- PHP General Mailing List (http

[PHP] SV: Weird problems passing variables

2001-08-19 Thread JOHANSSON JÖRGEN
Thanks dude, that looks way nicer. I did however get it working by changing the casting (tried to post my correction, but hit the wrong button), the corrected, and after Lynch's enlightening me on mktime´s behaviour even butt uglier code can be found below. (Change in arguments is solely due to a

[PHP] Re: virtual() ignoring str_replace()

2001-08-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Charlie Romero) wrote: > it just prints the virtual include w/out replacing > the word "window" w/ the word "DOG" in my example. What am I doing wrong? > > $results = virtual("/cgi-bin/search.cgi?q=hello&m=world"); > print str_replace("window",

Re: [PHP] Errors

2001-08-19 Thread Steve Edberg
Well, since you're getting a PHP error, PHP is obviously parsing the page. My guess is that your error reporting (in php.ini, httpd.conf or .htaccess) is set very high, so that uninitialized variables generate a warning. You could either (1) initialize $page at the top of your program:

[PHP] Sessions in pop-up windows

2001-08-19 Thread Chris Cameron
I'm having some issues passing a session to a pop-up window. The pop-up window is you average DreamWeaver popup: Link When you click on the link, the session doesn't get passed. I have trans-sid enabled. Any ideas on how I could go about passing my sid? Thanks, Chris -- Chris Cameron System

[PHP] Function to Build Trees

2001-08-19 Thread Sondra Russell
Hello everyone, I've been tearing my hair out trying to write a function in PHP that will accomplish the following: Given a multidimensional array with words as keys, I want to match the values of each array with the keys of the array and build a new array that reflects these relationships as

[PHP] HTTPS oddity

2001-08-19 Thread Nigel Jewell
Dear all, I have a SSL server set up and I check in PHP that its running over SSL by doing: if ($HTTPS) { ... } This has worked for ages - but sometime last night the behaviour of my/our server changed and now over an non-SSL connection, $HTTPS = ON and over a SSL connection $HTTPS = on (note t

Re: [PHP] MySQL substrings?

2001-08-19 Thread Chris Lambert
It'd help if you have us the mysql_error() returned. Try the following: SELECT *, substring_date AS SUBSTRING(date,5,2) FROM $table ORDER BY substring_date /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

Re: [PHP] problems with a netscape post

2001-08-19 Thread Steve Lawson
Try giving the form a name? I normally use something like... Any it works in NS 4+ SL - Original Message - From: "Quentin Gillet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 19, 2001 10:06 AM Subject: RE: [PHP] problems with a netscape post > I have the same pr

[PHP] --enable-memory-limit - What does it do?

2001-08-19 Thread Kai Schaetzl
Well, there's no explanation for it in the manual and I didn't find any by searching all relevant archives with deja. So, what does it EXACTLY do when I compile it in and are there configuration options for it? (f.i. the amount of memory to limit to ;-) Kai -- Kai Schätzl, Berlin, Germany G

[PHP] More SNMP Functions for PHPv4

2001-08-19 Thread Robert Schultz
A while ago, Vilius Benetis, an engineer from Lithuania created some great new SNMP functions for PHP 3 (snmp_getnext(), etc.) Well I've modified the code so that it will compile under PHP v4 now. (This is a replacement to the PHP source code, and not actually PHP Code) It can be found at: http:

RE: [PHP] problems with a netscape post

2001-08-19 Thread Quentin Gillet
I have the same problem, I'm curious to hear what people say about this -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : dimanche 19 août 2001 16:34 À : [EMAIL PROTECTED] Objet : [PHP] problems with a netscape post Hi, I am trying to post some form dat

Re: [PHP] class variables and methods

2001-08-19 Thread Tom Carter
There is a distinct chance of many difference schools of thought... my background is Java (mostly at IBM.. so of course could be very different).. but all the java gurus I've known have worked on the principle private variable and public methods.. declaring all variables (except constants.. php do

[PHP] virtual() ignoring str_replace()

2001-08-19 Thread Charlie Romero
I'm trying to include a .cgi using the virtual() function and then do a string replace on a string w/in the included page. The virtual seems to ignore the str_replace it just prints the virtual include w/out replacing the word "window" w/ the word "DOG" in my example. What am I doing wrong? T

RE: [PHP] class variables and methods

2001-08-19 Thread Joe Sheble \(Wizaerd\)
But when designing classes, isn't it normal to have private and public variables or properties. Granted my OOP experience is very limited, having access to OOP development in CA-Visual Objects, Clipper, VB, and ASP. But it was normal to have a series of public properties one could access direct

RE: [PHP] MySQL substrings?

2001-08-19 Thread Seb Frost
This doesn't work: $result = mysql_query("SELECT * FROM $table ORDER BY SUBSTRING(date,5,2)") Any idea why? - seb -- 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,

Re: [PHP] MySQL substrings?

2001-08-19 Thread Tom Carter
very hard obviously.. I've looked quite a bit before to no avail! I tried guessing it, obviously stupidity prevailed (note to self.. go back and use substring function instead) - Original Message - From: "Chris Lambert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 19,

[PHP] Re: Browser Detection & Redirection -- PHP or Apache ???

2001-08-19 Thread Elias Santiago
Why not use something easier like phpSniff. http://phpsniff.sourceforge.net/ You don't need a browscap.ini or troubling around with get_browser(); Elias Santiago "Christopher Raymond" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > PHP Folks: > > Does PHP

Re: [PHP] MySQL substrings?

2001-08-19 Thread Chris Lambert
There is a SUBSTRING() function, its just hard to find with their search system. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Tom Carter <[EMAIL PROTECTED]> To: Seb Frost <

[PHP] Errors

2001-08-19 Thread BRACK
Hi I'm getting strange errors if I add "LoadModule php4_module ../php/sapi/php4apache.dll" to http.conf If I don't load it everything is working with php.exe without any errors but as I load it as a modul I get for example - Warning: Undefined variable: page in d:\abria sql\apache\htdocs\inc\

[PHP] sendmail

2001-08-19 Thread BRACK
Hi, I'm on virtual hosting that lets me configure anything with .htaccess file. I was recomended by provider to specify location of sendmail in case I want to use php mail() function I know that I may do it in .htaccess file by adding php_value sendmail_path /usr/sbin/sendmail The qwestion is

[PHP] PHP based authentification -----------

2001-08-19 Thread Alex Sofronie
Hi all! How can I "logout" from a PHP based auth (with PHP_AUTH_USER and PHP_AUTH_PW and appropriate headers sent at the beginning)? It seems like unset($PHP_AUTH_USER) does not wotk in this case... Any help would be appreciated! Alex Sofronie [EMAIL PROTECTED] -- PHP General Mailing List (

Re: [PHP] MySQL substrings?

2001-08-19 Thread Tom Carter
You can achieve the same effect by using left and right - Original Message - From: "Seb Frost" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 19, 2001 3:12 PM Subject: [PHP] MySQL substrings? > This is thew sort of thing I want: > > SELECT * FROM table ORDER BY substr(f

[PHP] problems with a netscape post

2001-08-19 Thread P
Hi, I am trying to post some form data to a php page that then updates a mysql database and echos back to the browser that the data has been inputted. Here is the general form of my post;- .. form widgets here . this works perfectly with IE and opera, but with netscape 4.* it either ta

[PHP] error in source !

2001-08-19 Thread nafiseh saberi
my problem solved, because of not match in {}. 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] Re: error in source !

2001-08-19 Thread Hugh Bothwell
"Nafiseh Saberi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I write it with php to relationship with databasein database server > (with postgres). > to update on field of one special row. > > $up = pg_exec($conn,"update personel set exit_m ='now' where

[PHP] MySQL substrings?

2001-08-19 Thread Seb Frost
This is thew sort of thing I want: SELECT * FROM table ORDER BY substr(field,5,6) but I don't know the correct function, if there is one, or how to implement it. cheers, - seb -Original Message- From: Michael [mailto:[EMAIL PROTECTED]] Sent: 19 August 2001 12:51 To: [EMAIL PROTECTED]

[PHP] error in source !

2001-08-19 Thread nafiseh saberi
hi. I write it with php to relationship with databasein database server (with postgres). to update on field of one special row. $up = pg_exec($conn,"update personel set exit_m ='now' where name= '$ID' and date='now' "); what is the error in it?? thanks. -- PHP General Mailing List

[PHP] Re: transaction

2001-08-19 Thread Michael
Nafiseh Saberi wrote: > > hi. > in large database with php,postgres > and when in each time come many request , > how do we implement transactions?? > nafiseh. If you are wanting to run several queries in the one script though the one transaction - you'll need to send a begin(as a query) and ex

[PHP] Smarty: Assigning custom function section variable

2001-08-19 Thread Alexander Skwar
Hi! I'm having some problem assigning a custom function ({math}) a value of a {section} block. I've got a section where I want to do some easy math. But somehow I'm stuck Here's my template: Section Test {section name=people loop=$FirstName} {$FirstName[people]} {$LastName[people]} {m

Re: [PHP] mysql , postgres

2001-08-19 Thread Michael
Indrek Siitan wrote: > > Hi, > > > Well just my opinion but I think that Postgresql development is > > advancing quicker. With Red Hat joining in development and no > > infighting bewteen Postgresql developers things are looking > > good for the future. > > just to clear one issue - there has

[PHP] coding standards

2001-08-19 Thread Michael
Ive read through the PEAR coding standards but was wondering about a few things not talked about in them - - Is declaring all variables a good idea - so theres no unassigned variables hanging around ? (no warnings produced when error reporting set to E_ALL) - Naming of include files - .inc or .ph

Re: [PHP] mysql , postgres

2001-08-19 Thread indrek siitan
Hi, > Well just my opinion but I think that Postgresql development is > advancing quicker. With Red Hat joining in development and no > infighting bewteen Postgresql developers things are looking > good for the future. just to clear one issue - there has never been a "fight between mysql develo

Re: [PHP] mysql , postgres

2001-08-19 Thread Tom Carter
> Chris Lambert wrote: > > > > MySQL is easier to use and faster to develop with for 90% of web > > applications. Sure, PostgreSQL has some huge advantages, but not everyone > > needs the same thing. > > easier to use ? I'm not sure why anyone would say that > faster to develop ? nope - I find p

Re: [PHP] mysql , postgres

2001-08-19 Thread Michael
Tom Carter wrote: > > What would you say the advantages were? > Well just my opinion but I think that Postgresql development is advancing quicker. With Red Hat joining in development and no infighting bewteen Postgresql developers things are looking good for the future. > other than just the f

Re: [PHP] mysql , postgres

2001-08-19 Thread Michael
Chris Lambert wrote: > > MySQL is easier to use and faster to develop with for 90% of web > applications. Sure, PostgreSQL has some huge advantages, but not everyone > needs the same thing. easier to use ? I'm not sure why anyone would say that faster to develop ? nope - I find postgresql quicke

Re: [PHP] Count total

2001-08-19 Thread Rasmus Lerdorf
On Sun, 19 Aug 2001, Martin Kampherbeek wrote: > Hi, > > Who can help me with the following problem? > I have the tables score and totalscore. > > Score: > id > userid > name > score > > Totalscore: > userid > name > totalscore > > In the table score one user can have mutiple scores. But in total

Re: [PHP] mysql , postgres

2001-08-19 Thread Chris Lambert
Rules, triggers, subselects, built in transactions, etc. I haven't used it myself, but it does have features which relieve a lot of the client programming (PHP) required with MySQL. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - ww

Re: [PHP] mysql , postgres

2001-08-19 Thread Tom Carter
What would you say the advantages were? other than just the fact the the postgres implementation of sql is more powerful (sub-selects etc). I'ld be very interested to see some performance comparisions if anyone has any - Original Message - From: "Chris Lambert" <[EMAIL PROTECTED]> To: <[

Re: [PHP] Count total

2001-08-19 Thread Chris Lambert
Assuming MySQL... /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Martin Kampherbeek <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 19, 2001 5:34 AM Subject

[PHP] Count total

2001-08-19 Thread Martin Kampherbeek
Hi, Who can help me with the following problem? I have the tables score and totalscore. Score: id userid name score Totalscore: userid name totalscore In the table score one user can have mutiple scores. But in totalscore the userid is unique. Now I want to count all the score's of a user en

Re: [PHP] mysql , postgres

2001-08-19 Thread Chris Lambert
MySQL is easier to use and faster to develop with for 90% of web applications. Sure, PostgreSQL has some huge advantages, but not everyone needs the same thing. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ -

Re: [PHP] transaction

2001-08-19 Thread Chris Lambert
I believe that'd be a question best suited for the PostgreSQL mailing lists, since its handled at the database level with "begin" and "commit". /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Mes

Re: [PHP] class variables and methods

2001-08-19 Thread Tom Carter
There was a long discussion on this in a java forum I am part of, the product of which was basically this... 1. All variables in a class are best left to be private (not sure PHP has this, but the programmer can work the principle in mind.. that is only the class can access them). 2. Generic vari

[PHP] Files from db vs. filesystem (was MySql or flat database using PHP)

2001-08-19 Thread Tom Carter
Andrew/All, Following on from this I am interested to find out some performance comparisons/opinions of storing files in a db vs. storing in the file system and being redirected by php I think I've heard from elsewhere that file system is more effecient. The sistuation storing is pretty muc

Re: [PHP] Protecting include files

2001-08-19 Thread Tom Carter
In addition to this you can place the file out of the web tree PHP can, AFAIK, include files based on their absolute file path, eg /home/config.inc. This means that there is no way to directly browse to a file (web tree is the part of a server/whatever that the webserver (eg apache) uses to l

[PHP] mysql , postgres

2001-08-19 Thread nafiseh saberi
hi. why most of you , use mysql and not postgres? nafiseh. -- 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] transaction

2001-08-19 Thread nafiseh saberi
hi. in large database with php,postgres and when in each time come many request , how do we implement transactions?? nafiseh. -- 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 admini

[PHP] Re:if else

2001-08-19 Thread nafiseh saberi
hi. use only at the end and first line to work better and not crowd. -- 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] Re: Browser Detection & Redirection -- PHP or Apache ???

2001-08-19 Thread Lutz Horn
* Christopher Raymond [Fri, 17 Aug 2001 16:14:40 -0500]: > For example: I don't want users with browsers less than 4.0 to > actually load a page on our site. Instead, I want them redirected to a > page that let's them know their browser is in-compatible. Why do you want to do this? If a browser c