[PHP] question from a php newbie

2001-08-17 Thread 602e23
I'm so new to this, in fact, that I may not be able to even frame my question correctly. Please bear with me. Suppose that I had a list in a data base of, say, countries and that I built an array as $states = array ( array("abbr"=>"MA", "name"=>"Massachusetts"),

RE: [PHP] looong date formatting for MySQL

2001-08-17 Thread Maxim Maletsky
Still, read this php.net/date it has a variety of functions, dates with zeros and without... Another thing you can do is using the mySQL manual. Did you know that mySQL has a WHOLE BUNCH of date functions? Cheers, Maxim Maletsky -Original Message- From: CGI GUY [mailto:[EMAIL PROT

RE: [PHP] debugger_on() undefined?

2001-08-17 Thread Matthew Loff
PHP docs are weak on debugger_on() because the debugger isn't a feature in PHP 4 :) It was not included in the transition from PHP 3 to 4. You'll have to use a 3rd-party debugger for PHP code. Search the archives for this list, it has been discussed in the past. -Original Message-

RE: [PHP] question from a php newbie

2001-08-17 Thread Maxim Maletsky
You know, what you can do (strongly not recommended, but still) is to insert that whole thing into a database and then pull this string out and pass it through eval(). ie: eval($record); another way would be to take all that, addslashes($it) and then write into a file with stripslashes($it). Bu

RE: [PHP] History of the browser

2001-08-17 Thread Maxim Maletsky
The last page browser visited and clicked on 'you' would be available in $HTTP_REFERER. But, as the whole history, you would need some javascript to do that. It should also be impossible to do due security reasons. Cheers, Maxim Maletsky -Original Message- From: Ing. Raul Glez Rdguez [

Re: [PHP] Large sites that use PHP

2001-08-17 Thread Tom Malone
how about ScreamingMedia http://www.screamingmedia.com Tom Malone Web Designer http://www.tom-malone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [

[PHP] ADODB Library

2001-08-17 Thread Jochen Kaechelin
Anyone made good experiences with the ADODB Library for PHP4? -- WA-P : Jochen Kaechelin Programmierung - Beratung - Hosting Stuttgarter Strasse 3, D-73033 Göppingen Tel. 07161 - 92 95 94, Fax 92 95 98 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] Problems with cookies....

2001-08-17 Thread Marius Pertravčius
Sveiki, php-general, I want to put cookies to know how I have to open window (new window or same window), but I'm making some mistake. Please help me. Here is the code --- Pasirinkite --- Same Window New Window

[PHP] Help compiling CVS

2001-08-17 Thread Evan Nemerson
lm -ldl -lnsl -lresolv -lcrypt stub.lo: file not recognized: File truncated collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/local/cvs/php4' make: *** [all-recursive] Error 1 grrr. Any ideas? I have the latest stable version alrea

[PHP] FW: Large sites using PHP

2001-08-17 Thread Maxim Maletsky
Dear PHP gurus: I've been following here the ever-growing-never-to-be-stopped discussions related to the largest sites using PHP. Apparently, most of the PHP developers are trying to convince their bosses to use Open Source language PHP instead of other 'silly' commercial solutions those 'brains

[PHP] Search for PHP Motivation Studies

2001-08-17 Thread Björn Schotte
Hi, for a well-known PHP advocacy site we are searching for motivation studies of (big) companies who decided to use PHP. A "PHP motivation study" is not like a normal case study where you tell the reader about the application foobar.com. Instead, you tell 'em about why, when and how you decided

[PHP] SQL Highlighting in PHP?

2001-08-17 Thread Chris Lambert
Hey all, I'm wondering if anyone's created a custom function that'll perform SQL highlighting, similar to the highlight_file/string functions for PHP source. I made a quick hack, but I'd love to have something more consistent. Any ideas? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Netwo

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Martín Marqués
On Vie 17 Ago 2001 20:41, Dave.O wrote: > I was looking for the command something like mysql_insert or something, > just found dba_insert() is this it ?!? dba is not MySQL! Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL?

[PHP] problems with require

2001-08-17 Thread Martín Marqués
I'm having problems with the require_once command. I have an ini_set, changing my include_path variable, but the starge thing is that some files get included and others don't, and I have to right the full relative path. Any ideas on what that can be? It's on a PHP-4.0.4pl1. Saludos... :-) --

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
Thanks - Original Message - From: "ERISEN, Mehmet Kamil" <[EMAIL PROTECTED]> To: "Dave.O" <[EMAIL PROTECTED]>; "Martín_Marqués" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 12:42 AM Subject: Re: [PHP] Adding records to a MySql database > Here is how this

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Martín Marqués
On Vie 17 Ago 2001 19:17, you wrote: > I am new to MySql but wanting to use PHP to update and maintain a database. > I thought I might use MySql. > > I have installed MySql, and in PHP have created a database called 'mydir'. > I am trying to find php functions to add new records/fields to the > da

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
Thanks - Original Message - From: "Martín Marqués" <[EMAIL PROTECTED]> To: "Dave.O" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 12:43 AM Subject: Re: [PHP] Adding records to a MySql database > On Vie 17 Ago 2001 20:39, Dave.O wrote: > > No offence but you

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
I have read the documentation already. I am trying to create a directory, which information can be added and maintained through a the web browser. I thought that using a MySql database would be a good idea rather than writing it all to a file. You saying that MySql is a waste of time for this ?

Re: [PHP] Re: [PHP-WIN] Installation failed ! Please Help!

2001-08-17 Thread Phil Driscoll
On Thursday 16 August 2001 7:35 pm, Elias Santiago wrote: > I believe that IIS passes the script name to php.exe with the first %s. I > think IIS replaces the first %s with the script name. From the second > article, I suppose that if the %s is changed to %S, the name passed to > php.exe would be

Re: [PHP] Re: [PHP-WIN] Installation failed ! Please Help!

2001-08-17 Thread Elias Santiago
Me too, I've never had any problems with PHP running it with or without the %s %s. I guess that IIS 3 required that, but IIS 4./5 not necessarily require it (a useful bug??). Nevertheless, it work without them anyways. I only wish that the PHP ISAPI module is FINALLY made stable (production qua

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Martín Marqués
On Vie 17 Ago 2001 20:14, Dave.O wrote: > I have read the documentation already. > > I am trying to create a directory, which information can be added and > maintained through a the web browser. I thought that using a MySql > database would be a good idea rather than writing it all to a file. Yo

[PHP] ldap compile problem. Please read.

2001-08-17 Thread Johan Vikerskog (ECS)
I sended this E-mail to two PHP mailing lists yesterday. Both this one and the installation mailing list. Doesnt seem that anyone can solve this problem for me but i dont believe that. Can someone PLEASE help me! > I get the following error message: > > gcc -I. -I/expor

[PHP] RE: [PHP-INST] ldap compile problem. Please read.

2001-08-17 Thread Johan Vikerskog (ECS)
Sorry! Here comes more information. This is how my configure looks when i am trying to compile. The ldap directory is were i installed OpenLDAP. The compilation of OpenLDAP was succesfull and uses BerkeleyDB's ldbm. I compile on a Solaris 8 machine and the compilation of PHP works without any erro

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
No offence but you are telling me stuff I already know ! This mailing list is very good so dont take offence due to my frustration. I know how to connect to the server, create the database and more or less query it, but cant find the command to add/insert records or am I doing something very wr

[PHP] FW: [PHP-WIN] Re: [PHP] Re: [PHP-WIN] Installation failed !Please Help!

2001-08-17 Thread Angie Tollerson
Jim, I'm trying to figure out what in the world you are doing differently than me that you are getting any failures without the %s %s ? I have been running php for 9 months now, and having at one point 10 extensions turned on including added ones not from the php.net package, and I have never

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Dave.O
I was looking for the command something like mysql_insert or something, just found dba_insert() is this it ?!? - Original Message - From: "Martín Marqués" <[EMAIL PROTECTED]> To: "Dave.O" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, August 18, 2001 12:23 AM Subject: Re: [PH

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread ERISEN, Mehmet Kamil
Here is how this is done: $sql = "insert into employees values ('10','John','Smith','Engineer') "; $result = mysql_query($sql) or die ('Insert failed'); with php, you can execute any SQL statement as long as you have access... to update a table $sql = "update employees set job

Re: [PHP] Adding records to a MySql database

2001-08-17 Thread Martín Marqués
On Vie 17 Ago 2001 20:39, Dave.O wrote: > No offence but you are telling me stuff I already know ! This mailing > list is very good so dont take offence due to my frustration. I know how > to connect to the server, create the database and more or less query it, > but cant find the command to ad

[PHP] [PHP-WIN] Re: [PHP] Re: [PHP-WIN] Installation failed ! PleaseHelp!

2001-08-17 Thread Angie Tollerson
Elias, I spoke with the original developer for the windows version of php, Shane Caraveo. He told me and many others at the PHP conference last month that his #1 objective for php in the upcoming months is to build a stable version of the isapi module for windows. So it may be sooner than you

<    1   2