[PHP] Re: Attitude of B van Ouwerkerk

2001-08-03 Thread Inércia Sensorial
When on mailing lists such discussion get longer and longer, like 'Attitude of B van Ouwerkerk', I always remember of this email. Could everyone give a moment of thought and get back to the purpose of this list? I know that this includes myself too, which I apologize for my behavior: Q: How

[PHP] Re: Get when it should be Post

2001-08-03 Thread Richard Lynch
Is it maybe one of those where you mixmatch your GET/POST? FORM ACTION=foo.php?x=1 METHOD=POST Try moving the ACTION before the METHOD. No, it shouldn't matter... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: ULTIMATE TUTORIAL? (where)

2001-08-03 Thread Richard Lynch
There has to be an ultimate php tutorial out there which goes from start to finish being easy on the brain. if someone finds a tutorial this good, i may be forced to post less on this list. and i wouldnt like that Try the WebMonkey and the DevShed ones, I think... Or just try the first

Re: [PHP] MySql help #1

2001-08-03 Thread elias
Miles, The LIMIT works great with UPDATE too. Miles Thompson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Come on, you're pushing SQL in directions it's not supposed to go! It is set oriented after all. So it's experimentation time. I've never tried, but

Re: [PHP] mySQL Autoincrement Field

2001-08-03 Thread mike cullerton
on 8/2/01 9:01 PM, Ralph Guzman at [EMAIL PROTECTED] wrote: In mySQL, how do I set an auto increment field to start at a certain number-let's say 1? Do I just insert the first record with the desired number I wish to start with? it appears to depend on the table type. i believe you are

[PHP] Re: How to Compare dates?

2001-08-03 Thread Richard Lynch
Can someone tell me how to properly compare the value returned from the db to see if it is blank ? Depending on how you got it in there, I suspect the value from the db could be: NULL -00-00 00:00:00 0 You may need to test if the value is == '' to catch the NULL case. Everything else

[PHP] Re: Mysql join and aliasing with mysql_fetch_object()

2001-08-03 Thread Richard Lynch
select tableA.*, tableB.* from tableA, left join tableB ON tableA.keyfield = tableB.keyfield When I then try to access the column keyfield, after using select tableA.keyfield as mykeyfield, tableA.*, tableB.* ... Unless you actually need *EVERY* field, do *NOT* use tableA.*, tableB.* Every

[PHP] Re: can't get gettext() to work!

2001-08-03 Thread Richard Lynch
setlocale(LC_ALL, ''); putenv('LANG=fr');/* changed here */ setlocale(LC_ALL, ''); WILD GUESS ALERT! My gut says you need setlocale(LC_ALL, 'fr') or similar in the French one... And maybe even 'en' for the English one. Even if the docs say you don't. There was

RE: [PHP] ----- BEING AN ASS CLICK HERE NOT ABOVE!!!!!

2001-08-03 Thread Lawrence . Sheed
Kyle, Apache runs as a background program. When you've installed apache, and php, you don't actually run them from the commmand line. What you have to do is open up a browser window, and point it to your computer. Open up Internet Explorer (you're running windows it looks like), and type in

[PHP] New lists (was [PHP] Attitude of B van Ouwerkerk)

2001-08-03 Thread Darren Henderson
On Tue, 31 Jul 2001, B. van Ouwerkerk wrote: There's nothing wrong with being a newbie.. the only newbie-problem I see/have is the lazy one.. ask ask ask ask without taking the time to read the manual or to do a search in the archive. Sure there are newbies who read the manual.. get some

[PHP] Messevorbereitung - Übersetzungen

2001-08-03 Thread Die Übersetzer
Sehr geehrte Damen und Herren, Sie benötigen regelmäßig Übersetzungen von Fachtexten und Webseiten - und das am besten in Stunden, und nicht in Tagen? In nur 60 Sekunden können Sie sich hier umfassend über unseren innovativen B2B Übersetzungsdienst informieren:

[PHP] Re: timing functions / debug

2001-08-03 Thread Richard Lynch
Does anyone know of any functions / tools / utilities / whatever that can be used to provide a timing of the execution of each line of a php program? I'm guessing this would probably be a test harness or a debug app or something. I've used timing functions to record the execution of blocks

[PHP] Re: GET/POST name=value query var convention?

2001-08-03 Thread Richard Lynch
Does anyone know of a more-or-less authoritative source that states that the common convention for HTTP GET/POST queries is a series of name=value pairs joined by characters? I know I'm not just making this up, but I need to persuade someone that it is a commonly-accepted practice. Before you

[PHP] Re: ? about PHP includes

2001-08-03 Thread Richard Lynch
I just discovered PHP this week. I'm reading about include statements. If I have a text file 2000 characters in length that I want to include, I would do this to include to whole file: ?php include (file.txt); ? http://php.net/fopen http://php.net/fread ?php $path = file.txt;

[PHP] References: in front of functionnames

2001-08-03 Thread Rolf Rensaa
Hello. I've read a book, PHP DEVELOPER'S COOKBOOK, with great interest and it's a great contribution to my bookcollection :-) There is something I would like to know thoughI have searched through all my books and sites on PHP, but didn't find the answer In chapter 16 (Creating a

[PHP] Oh and one more thing

2001-08-03 Thread Kyle Smith
How do i set up extra functions on my computer like mail() and date() -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

[PHP] Re: Netscape Enterprise Server

2001-08-03 Thread Richard Lynch
Any body there with experience setting up Netscape Enterprise Web Server with PHP as CGI binary. I need to know how to configure Netscape Web Server. If Netscape Enterprise Web Server has a HowTo for setting up Perl as a CGI binary, do PHP exactly the same way. Except for the Perl-PHP bit, of

[PHP] Re: New lists (was [PHP] Attitude of B van Ouwerkerk)

2001-08-03 Thread Richard Lynch
selecting behavior possible. Currenty all questions go to php-general. If there were, say, a php-newuser and a php-questions list then perhaps php-general could be used for slightly higher level discussions. Actually This paricular can of worms has been discussed *WAY* too often already.

Re: [PHP] MySql help #1

2001-08-03 Thread Miles Thompson
Come on, you're pushing SQL in directions it's not supposed to go! It is set oriented after all. So it's experimentation time. I've never tried, but as LIMIT works on a SELECT, try it on an update. And let us know what happened. Miles At 10:30 AM 8/2/01 +0200, elias wrote: How can I update

RE: [PHP] Phone Number #s Only?

2001-08-03 Thread Jack Dempsey
No, the ^ inside the [] means the negation of whatever's inside...so, it'll strip out anything except 0-9. jack -Original Message- From: Martin Cameron [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 8:40 PM To: mike cullerton Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Phone

Re: [PHP] mail the contents of an array

2001-08-03 Thread Tim
You could use the implode() function to convert the arrays to strings and then pass the concatenated strings to the mail() function. - Tim On 03 Aug 2001 09:00:04 +, Geoffrey Makstutis wrote: I'm sure that I'm missing something obvious (probably sleep), but how can I take the contents of

[PHP] stop a file called foo.bar

2001-08-03 Thread void
stop a file called foo.bar from being downloaded with a web server ? Say you'r web site's name is foobar.net. ..and... Script-kiddy Johny knows that, but also knows that you'r secret file is called foo.bar and it is saved in the root dir. of you'r web site. in a http browser little Johny can

Re: [PHP] Re: FAQ

2001-08-03 Thread Werner Stuerenburg
If I am talking to non geeky types, and they bother to ask, I go with Professional Hypertext Processor. Now that's a good one I will keep in mind! -- Herzlich Werner Stuerenburg _ ISIS Verlag, Teut 3, D-32683 Barntrup-Alverdissen

[PHP] Re: UDP Port listening, can it be done?

2001-08-03 Thread Richard Lynch
I'm currently just playing around with a few things and want to write a script that will listen on a UDP port and then log/process the information. The problem i have it that i don't know if php can do this. I know that you can connect to a UDP port but can you listen on one? And if you cant

Re: [PHP] shtml or php ??

2001-08-03 Thread Richard Lynch
Can anyone help me with this, I am using apache and assume that this virtual command should work, am I best to leave it in shtml or should I change to php as I am using php more and more ??? Please can somebody help me There's using Apache with PHP as a Module, and there's using Apache with

[PHP] Re: PHPTriad users

2001-08-03 Thread Richard Lynch
http://php.net/tut.php Then jump over to WebMonkey and run through their tutorial. -- 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:

[PHP] Re: How to create session??

2001-08-03 Thread elias
Please post in text format. session_start(); if (isset($login)) { session_register(name, pwd); $name= $pwd = } else if (isset($logout)) { session_unregister(name); session_unregister(pwd); } - Balaji Ankem [EMAIL PROTECTED] wrote in message 00db01c11be2$57e26c20$[EMAIL

Re: [PHP] SQL syntax error in PHP script. dunno what's wrong

2001-08-03 Thread Werner Stuerenburg
insert into test values (0,''; DELETE FROM test; ',1); ERROR 1064: You have an error in your SQL syntax near '' at line 1 what about insert into test values (0,'\'; DELETE FROM test; ',1); the character ' is used to denote the beginning and the end of a field value. If you have this

Re: [PHP] (//// === huh??)

2001-08-03 Thread David Robley
On Fri, 3 Aug 2001 14:07, Gerard Samuel wrote: In my script that puts out a form I have a drop down list which include == echo option$Education/option\n; echo optionBachelor's Degree/option\n; It uses a $PHP_SELF target. After the form is submitted, on the new page, in the textbox I have

Re: [PHP] References: in front of functionnames

2001-08-03 Thread Tim
The function return value is by reference. http://www.php.net/manual/en/language.references.php - Tim Ex. in DB/standard.php; function db_fetchall($args=array()){ ... I've seen and used the pass by reference syntax on function parameters but not on functionnames. What effect does

Re: [PHP] Spot the difference?

2001-08-03 Thread Kyle Smith
Well which is easier to program? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: scott [gts] [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 8:45 AM

Re: [PHP] Re: Netscape Enterprise Server

2001-08-03 Thread Herman Tolentino
Sorry I missed the important detail: Solaris Sparc (2.6). I already saw the site you mentioned. Thanks. - Original Message - From: R. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 11:07 AM Subject: [PHP] Re: Netscape Enterprise Server On which system? You

[PHP] Re: php

2001-08-03 Thread Richard Lynch
I'm still trying to compress an entire directory on a linux server to be decompressed probably in windows client. I'm trying to use exec command and tar (compressor for linux), but I don't know how to do it. Can anybody pleeeaase help me? So, like, do they download it later, or is your PHP

Re: [PHP] Q: Hiding Folder Directories from public while still...

2001-08-03 Thread Jon Yaggie
i dont know if this is elagant but ti works. but a fake index.htmlin your directory for browsers to default to. . .. - Original Message - From: Marcus James Christian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 12:30 AM Subject: [PHP] Q: Hiding Folder

Re: [PHP] ? about PHP includes

2001-08-03 Thread Christian Reiniger
On Friday 03 August 2001 05:59, Craig Westerman wrote: ?php $txtfile = fopen(text.txt, r); while (!feof($filePointer)) $txtfile instead of $filePointer { $line = fgets($txtfile, 250); fgets reads a line (i.e. up to a newline) with at most the specified numbers of characters. So

[PHP] again

2001-08-03 Thread Eduardo Kokubo
I'm still trying to transfer a directory form one server to another but with no results. I have the username and password of the ftp account source and I know I'll have to ask for the username and password of the destination. I can't simply upload or copy the directory, but there must have an

Re: [PHP] Mysql Help #2

2001-08-03 Thread Tom Carter
Depends what is to happen to the array afterwards, but in general no. An interesting thing is to put timing method calls around a block of code in question, you will find something like this (depending upon size of db) takes somehting like 0.005 seconds. Timing things can be useful measures of a

[PHP] How to add an excel file directly to MySQL database using PHP?

2001-08-03 Thread Yeong CN
How can I add an excel file with *.xls extension directly into MySQL database..is it possible to do or I need to convert it into *.csv format or *.txt format first? Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/ -- PHP General Mailing List

[PHP] PHP developers needed

2001-08-03 Thread Jack Sameron
I need PHP developers for potential big project. The site is extremely big with ecommerce, membership areas... If you're interested, please reply to me with a plaintext resume and the URLs of sites you've built in PHP. Also, I'd like to know your rate. Thanks, Jack.

[PHP] PHP Manual in PDF Format

2001-08-03 Thread Pere Vineta
Dear friends, Any one of you know when PHP Manual in PDF Format will be available? Thanks Pere -- 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

RE: [PHP] New lists (was [PHP] Attitude of B van Ouwerkerk)

2001-08-03 Thread Martin Marconcini
IMO: There should be something like the OpenBSD-misc = PHP General, and OpenBS-Tech = A more advanced list... Please do not cross post... Regards, Martin Marconcini www.marconcini.com.ar Life must be lived looking forward and can be understood only looking backward. Soren Kierkegaard

Re: [PHP] Re: Phone Number #s Only?

2001-08-03 Thread mike cullerton
on 8/2/01 9:55 PM, Richard Lynch at [EMAIL PROTECTED] wrote: While the solution given will work, consider the following perfectly valid phone numbers: 312-555-1234x1001 1-800-MY-STUFF Also, once you strip out all the spaces and dashes, nobody but a computer can use it... Do you

[PHP] Phone Number #s Only?

2001-08-03 Thread Jeff Oien
Is there a routine out there to strip all characters from a phone number except the numbers? I was going to write my own but figured there must already be one out there I can use. Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] SQL syntax error in PHP script. dunno what's wrong

2001-08-03 Thread Chris Worth
Thanks everybody, and Sam, that makes sense WRT the multiple words causing troubles. On Wed, 1 Aug 2001 12:54:01 -0400, Sam Masiello wrote: You will need to put single quotes around your variables in your SQL statement. Like this: $sql = UPDATE TABLE seminar SET

Re: [PHP] PHP Manual in PDF Format

2001-08-03 Thread Andreas D. Landmark
At 03.08.2001 10:36, Pere Vineta wrote: Dear friends, Any one of you know when PHP Manual in PDF Format will be available? Thanks Probably when Adobe stops picking on innocent cryptographers pointing out weaknesses in their software and stops hiding the source for what they forced through as

Re: [PHP] web traffic report

2001-08-03 Thread Andreas D. Landmark
At 03.08.2001 04:44, mike cullerton wrote: another vote for analog. Dunno what this has got to do with php, but my vote is for webalyzer... fast and easy to use... -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and

Re: [PHP] (//// === huh??)

2001-08-03 Thread ReDucTor
$var = stripslashes($var); - Original Message - From: Gerard Samuel [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, August 03, 2001 2:37 PM Subject: [PHP] ( === huh??) In my script that puts out a form I have a drop down list which include == echo

Re: [PHP] Spot the difference?

2001-08-03 Thread Jon Yaggie
isnt this fact a good enough reason to believe it worthless??? - Original Message - From: Kyle Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 6:34 AM Subject: [PHP] Spot the difference? Whats the difference between ASP and PHP cause ASP has gotta have

[PHP] Re: How to add an excel file directly to MySQL database using PHP?

2001-08-03 Thread Chris Lee
I dont mean to be picky but .. .. allows you to import comma separated files .. dunno about .csv .. csv = comma seperated values so yes mysql can import csv using the LOAD DATA func or user writen php func :) sorry about pointing that out. -- Chris Lee [EMAIL PROTECTED] James Holloway

RE: [PHP] ? about PHP includes

2001-08-03 Thread Craig Westerman
OPen the file and read in the required number of characters (short explanation). Have a look at the file handling functions. -- David Robley Thanks David, I came up with this, but it doesn't work. Does text file need to be in a special format? It is 4 paragraphs of plain text created in

Re: [PHP] stop a file called foo.bar

2001-08-03 Thread Matt Greer
on 8/3/01 4:22 AM, void at [EMAIL PROTECTED] wrote: stop a file called foo.bar from being downloaded with a web server ? Say you'r web site's name is foobar.net. ..and... Script-kiddy Johny knows that, but also knows that you'r secret file is called foo.bar and it is saved in the

Re: [PHP] George W.

2001-08-03 Thread Philip Olson
Please everyone, stop talking about this it's getting old. If you have issues with a list member, take it off the list. We, your fellow list members, don't want to hear about it. Publically making fun of someone isn't cool but rather, it's stupid. Regards, Philip -- PHP General Mailing

[PHP] Minutes between tow dates

2001-08-03 Thread Augusto Cesar Castoldi
Hi. I'm using the timestamp format (AAMMDDHHMMSS) on my session. how can I know the minutes between two dates. I'm doing: $date = $row_secao['date']; $date_now=date(ymdHis); $x=$date_atual-$date; if ($x 1000) { echo Session expired.; } but I have

[PHP] How to create session??

2001-08-03 Thread Balaji Ankem
Hi! dearest friend, how to create session while login and hoe to end session after pressing logout button. Thanks in advance. Regards -Balaji The Information contained and transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
I'm in the exact same position. It's definitely not a PHP problem. The problem with the way you're redefining your timestamp is that you may get January 32, June 31st, etc. I'm tempted to simply check for spring-forward and fallback before I advance the timestep, but that's one extra if

[PHP] Syntax

2001-08-03 Thread BRACK
Thank you everyone who replied on my treat Syntax There was just a typo and problem is solved Youri God is our provider http://www.body-builders.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] MySql help #1

2001-08-03 Thread elias
the structur is like: id, item name, items in stock , frogserialnumber, status 1, frog, 7, 002121, Reserved 2, frog, 7, 101011, Free 1, frog, 7, 212001, Free that's why I want to mark only N entries Reserved, Lawrence Sheed [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] echo

2001-08-03 Thread Jeremy Morano
$sql = SELECT first_name, last_name, address, state, zip_code, country, company, occupation, telephone, fax, email, entry_name, password, package, registration_date, valid_until, max_users FROM $table_name WHERE uid = \$uid\ ; $result = @mysql_query($sql,$connection)

Re: [PHP] PHP Manual in PDF Format

2001-08-03 Thread George Pitcher
Er, that's a MySQL manual and it doesn't have much in terms of php coding i n it, IIRC. GP - Original Message - From: Augusto Cesar Castoldi [EMAIL PROTECTED] To: Andreas D. Landmark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 3:51 PM Subject: Re: [PHP] PHP

RE: [PHP] php date bug ?

2001-08-03 Thread Johnny Nguyen
I wasn't sure if mktime(0,0,0,1,32,2001) would work. BUT!!! I stand corrected. you are absolutely right. PHP is smart enough to know that January 32nd is really February first. :) Next Time I'll test the code before i respond. Johnny Nguyen -Original Message- From: Steve Brett

RE: [PHP] fopen a URL with = in it

2001-08-03 Thread Corey Chapman
It does not work with the = right in the URL.. PHP gives me a warning about the fopen statement or file statement if I do.. and then returns nothing. If I escape it, it loads the proper URL, but then the page it opens does not recognize the defined variables because it loads

[PHP] html parsing question

2001-08-03 Thread Chuck Barnett
Hi I have a question about parsing a page on another server to grab some headlines. I want to search down the page until I find a string -headlines- then I want to grab everything between the next pair of table/table tags. Anyone have a quick solution? Thanks, Chuck -- PHP General Mailing

[PHP] thoughts on sessions and members

2001-08-03 Thread mike cullerton
hey folks, hope the day is treating you well. here's a programming theory/methodology type question for y'all. i am relatively new to programming and very new to object-oriented(ness). suppose i have a site using sessions managed with an object $dog. $dog contains a member object $dog-member

[PHP] Re: can't get gettext() to work!

2001-08-03 Thread Colin Viebrock
Richard Lynch [EMAIL PROTECTED] wrote in message 050001c11be5$c93a81c0$6401a8c0@Lynchux100">news:050001c11be5$c93a81c0$6401a8c0@Lynchux100... setlocale(LC_ALL, ''); putenv('LANG=fr');/* changed here */ setlocale(LC_ALL, ''); WILD GUESS ALERT! My gut says you

[PHP] Re: [php] undefined offset?

2001-08-03 Thread Chris Lee
?php $test[0] = 0; $test[1] = 1; echo $test[8]; ? you never defined test[8] thats why its undeined. more likley then not check in your php.ini file, i bet you have warning = ~E_WARNINGS E_ALL; in your linux box and warning = E_ALL; in your win box. I like all warnings and errors

[PHP] Multiple File Upload

2001-08-03 Thread Arne
Hi, I want to upload multiple files in one step. I know how to handle the things on PHP side, but how can I select more than one file in the select box. It does not work with: FORM ENCTYPE=multipart/form-data ACTION=_URL_ METHOD=POST INPUT NAME=userfile TYPE=file/FORM I can only select one

Re: [PHP] Re: Hmmm?

2001-08-03 Thread Ryan Fischer
You wrote: additionally I also tend to always provide an alternative, especially if dealing with nested ifs or loops, even if just a comment... call it habit (from where I don't know). if($condition){ do this }else{ # oops, $condition didn't exist } saves a hell of alot of time when

Re: [PHP] web traffic report

2001-08-03 Thread Corey Chapman
Can't you just run a cron job (set it to do it automatically every so often) to delete the file from your web account's tmp folder.. ? Has anyone figured a way to purge access-log files after webalizer is done using to data only so far back? -eric - Original Message - I'm

[PHP] Re: Error using databases

2001-08-03 Thread Steve Brett
check the cache settings in IE and change to check for new version always. sounds like you're reading a cached version of your page. Steve Jorge Fernando Tamez Seceñas wrote in message news:[EMAIL PROTECTED]... Hi: I'm coding my first programs in PHP using MySQL in Windows. I instaled the

Re: [PHP] Database classe to work with Oracle

2001-08-03 Thread Werner Stuerenburg
pierre-yves schrieb am Donnerstag, 2. August 2001, 21:50:55: Hello, I need to convert an application that run on mysql to an oracle database. The application strickly use the db_mysql class from phplib. Can anyone suggest me another class and maybe common pitfalls to avoid ? As far as I

[PHP] PayFlow Pro Problems

2001-08-03 Thread Graham Wooden
RedHat 6.2 / Apache 1.3.14 w/ matching modssl and openssl 0.9.6b Latest SDK (3.0?) for Linux. Hello all! Problem is this: PHP compiles just fine with --with-pfpro=shared,/home/verisign/payflowpro/linux ... but I keep getting Fatal error: Call to undefined function: pfpro_init() when trying

Re: [PHP] IF ELSEIF ELSE??

2001-08-03 Thread Richard Baskett
if (!$HTTP_POST_VARS) exit(); else { if (!$Age) { echo Please enter your age.br\n; } if (!$Email) { echo Please enter your email.br\n; } if (!$State) { echo Please enter your Location.br\n;} if ($Age $Email $State) echo Thanks for your submission.; } Your if and else statements used

[PHP] Re: Error using databases

2001-08-03 Thread Richard Lynch
It's also remotely possible that some sort of transaction support is going on, and/or in conjunction with mysql_pconnect that only after a _pconnect is dead will the insert get committed... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out?

Re: [PHP] php date bug ?

2001-08-03 Thread Richard Lynch
Just to throw one more unwelcome cat amongst the pigeons.. Different countries/time zones have summer time, I think almost all countries do, but the actual days when they switch vary from country (yes I know, bloody nusiance isn't it?) I know as an example of this theres about three weeks

[PHP] Netscape Enterprise Server

2001-08-03 Thread Herman Tolentino
Dear folks, Any body there with experience setting up Netscape Enterprise Web Server with PHP as CGI binary. I need to know how to configure Netscape Web Server. TIA, Herman Tolentino

Re: [PHP] Re: Left Join extremely slow (MySQL)

2001-08-03 Thread William Poarch
explain - - - - - - - - - - Scott Poarch www.globalhost.com - - - - - - - - - - From: Richard Lynch [EMAIL PROTECTED] Organization: Lynch Interplanetary Enterprises Date: Fri, 3 Aug 2001 17:09:49 -0500 To: [EMAIL PROTECTED] Subject: [PHP] Re: Left Join extremely slow (MySQL) Use

Re: [PHP] again

2001-08-03 Thread Richard Lynch
Then you'll need to do an ftp_cd or something to go down in that sub-directory and do ftp_nlist again, I think... -- 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

Re: [PHP] shtml or php ??

2001-08-03 Thread Rasmus Lerdorf
I have tried the virtual() command but keep receiving error - undefined function, can someone give an example in how to use this ? virtual() only works if you are running PHP as an Apache module. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] PHP Grammar Definition

2001-08-03 Thread Jos Len Serna
Hello: I'm looking for the formal grammar definition for PHP, Do you know where I can find it? I'm trying to make a parser for it. Best Regards. QaDRAM, RAD development for the WEB http://www.qadram.com VCLCrawler.com, your VCL search engine

RE: [PHP] html parsing question

2001-08-03 Thread Dave
below is a snippet from a larger code used to capture a daily output graphic file from a site... I put your requirements into it and removed a lot of superfluous stuff, but it is not set to capture text spanning more than one line, but you should be able to modify it accordingly if you can

[PHP] Re: Retriving data from http request,

2001-08-03 Thread Richard Lynch
How do I get the raw data from a http request? There's some variable for it... Add ?php phpinfo();? to your POST-processing script to find out what the name is. :-) Or, search http://php.net for raw URI -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED]

Re: [PHP] again

2001-08-03 Thread Miles Thompson
Eduardo, Are you trying to do this in PHP or interactively? If with PHP I won't be much help, as the I've not used its FTP functions. Otherwise it's a straightforward FTP operation. There may be a problem doing it from within PHP as the webserver is probably running as nobody, who usually,

Re: [PHP] web traffic report

2001-08-03 Thread mike cullerton
another vote for analog. on 8/2/01 9:46 PM, Chris Fry at [EMAIL PROTECTED] wrote: analog seems to be the industry standard - use it with the extended log format. http://www.statslab.cam.ac.uk/~sret1/analog/ -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] weird behavior with a form

2001-08-03 Thread Ben Bleything
Submit should get set when you click the submit button... it is not used anywhere else... Again, it works when you click the button, just not when you press enter... = I'm going to try what Richard just suggested, and I'll get back to you. Ben -Original Message- From: Queen

[PHP] Re:[PHP] IF ELSEIF ELSE??

2001-08-03 Thread Jack Sasportas
First you should manage your code nicer so that it is easier to read and troubleshoot. Go through this to find my notes... if (!$HTTP_POST_VARS) { exit();} elseif ($HTTP_POST_VARS) { if (!$Age) { echo Please enter your age.br\n; } if Why

[PHP] another REGEX question

2001-08-03 Thread Julian Simpson
I have a string can look like either of the following: psome stuff/p p align = leftsome stuff/p I want to use eregi_replace to take out the first p tag whether it be p or p align.. with a space I assumed that $str = eregi_replace (p.*, ,$str); but it matches the entire string and thus

Re: [PHP] php date bug ?

2001-08-03 Thread Tom Carter
Just to throw one more unwelcome cat amongst the pigeons.. Different countries/time zones have summer time, I think almost all countries do, but the actual days when they switch vary from country (yes I know, bloody nusiance isn't it?) I know as an example of this theres about three weeks of

[PHP] huh??

2001-08-03 Thread Gerard Samuel
In my script that puts out a form I have a drop down list which include == echo option$Education/option\n; echo optionBachelor's Degree/option\n; It uses a $PHP_SELF target. After the form is submitted, on the new page, in the textbox I have Bachelor\\\'s Degree getting outputed by $Education

Re: [PHP] web traffic report

2001-08-03 Thread Richard Lynch
Your process should be: logrotate access_log Use Webalizer on old log. Purge old log. Webalizer does not need the raw data after it has processed it once. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

Re: [PHP] PHP Manual in PDF Format

2001-08-03 Thread Richard Lynch
Probably when Adobe stops picking on innocent cryptographers pointing out weaknesses in their software and stops hiding the source for what they forced through as the defacto standard for document distribution... Last I heard, Adobe had dropped charges, and it was the US Government that won't

Re: [PHP] Q: Hiding Folder Directories from public while still...

2001-08-03 Thread Jon Yaggie
dont knwo if ti easier but much better yes . . . - Original Message - From: scott [gts] [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Friday, August 03, 2001 12:38 AM Subject: RE: [PHP] Q: Hiding Folder Directories from public while still... if you're using apache, there's a

[PHP] Re: ----- BEING AN ASS CLICK HERE NOT ABOVE!!!!!

2001-08-03 Thread Richard Lynch
http://www.stupeedstudios.f2s.com/probs.gif You turned on browscap, but didn't snag a valid browscap.ini file anywhere, and the default one with PHP is blank (I think) or maybe you just didn't configure php.ini to find the good browscap.ini file where you put it... Or, wait... Line 8206 is a

RE: [PHP] How to Compare dates?

2001-08-03 Thread Johnson, Kirk
Can someone tell me how to properly compare the value returned from the db to see if it is blank ? if ( ( mysql_result($db_result,$db_record,'order_date')=00) ) ) { Two things, Jack. Enclose 00 in quotes, since it is a string, but more importantly, use '=='

[PHP] PHP MyAdmin Error---weird

2001-08-03 Thread John Monfort
Hello everyone, Need some help. I installed phpMyAdmin on this new server and cannot get it to work. I've installed this tool many times, so i'm pretty comfortable with the installation process. However, I've never ran into the errors I am getting today. The server is Apache+PHP 4.0.6

Re: [PHP] Re: Left Join extremely slow (MySQL)

2001-08-03 Thread Queen
explain Use MySQL's built in analyze (describe? SQL statement to see what's taking so long). The statement is called EXPLAIN. You can find it described here: http://www.mysql.com/doc/E/X/EXPLAIN.html I'm betting on one server having an INDEX on the id or ex fields, and the other not. If

[PHP] Re: PHP Grammar Definition

2001-08-03 Thread Richard Lynch
I'm pretty sure PHP uses bison/flex/yacc/lex stuff, so there might be an input file in the source you can use... -- 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:

Re: [PHP] Re:[PHP] IF ELSEIF ELSE??

2001-08-03 Thread Richard Baskett
Just curious but that last else you told him to put in... what is that referring to? There is already an else statement, you can't have another. Unless you're putting the else statement after the if (!$State) which you would need to subtract the } before the else, but this would give you

Re: [PHP] Re:[PHP] IF ELSEIF ELSE??

2001-08-03 Thread Jack Sasportas
Yes, I see what you mean... In showing why the last section didn't work, I messed up the actual overall logic of the code. I should have noticed that...nice catch so for clarification where it says (MARK) should be echo Thanks for your submission.; } Thanks... Jack Sasportas wrote:

RE: [PHP] How to Compare dates?

2001-08-03 Thread scott [gts]
or, if the field is a MySQL DATE field, try comparing to -00-00, since that's what a blank date defaults to. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 10:34 AM To: Jack Sasportas Cc: php Subject: Re: [PHP] How to Compare

[PHP] Re: Left Join extremely slow (MySQL)

2001-08-03 Thread Richard Lynch
Use MySQL's built in analyze (describe? SQL statement to see what's taking so long). I'm betting on one server having an INDEX on the id or ex fields, and the other not. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a

  1   2   >