[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 h

[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.*

[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 w

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 so

[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: http://www.eubylon.de/html/de.eub

[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 bloc

[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. Befor

[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: > > include ("file.txt"); > ?> http://php.net/fopen http://php.net/fread Note that include not only in

[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 Database

[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

RE: [PHP] Adopt A Newbie (ME)

2001-08-03 Thread Tyrone Mills
I agree, IMHO that is the best MySQL book there is. That and the manual are all you are likely to need. -Original Message- From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 10:55 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Adopt A Newbie (ME) >I've was h

[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. C

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 on

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 Nu

[PHP] Re: Oh and one more thing

2001-08-03 Thread elias
I guess you mean by "extra functions" the what so called extensions. Actually mail() and date() are builtin but if you want extra functions you have to install extra extensions. "Kyle Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How do i set up extra f

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 s

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-Alverdis

[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

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 wit

[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: http://chatmusic.com/voluntee

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

2001-08-03 Thread Richard Lynch
> magicphppage.php I don't want the public to be able to simply type > www.mysite.com/php/ and have all of my php files show up on a funky > "virtual directory". In httpd.conf, there are settings like Allow SymLink and Deny All and suchlike. One of them, whose name I forget, means "let peo

[PHP] php

2001-08-03 Thread Eduardo Kokubo
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? I know I should test these, but sending a message is ea

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

2001-08-03 Thread Richard Lynch
> Maybe the problem is a poor educational system; some people are just too > lazy to do research / properly phrase a query for a search engine / > experiment a bit before posting? They've been trained by Microsoft and other commercial software vendors whose documentation sucks, whose help systems

[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$

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 c

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 "$Education\n"; > echo "Bachelor's Degree\n"; > > It uses a $PHP_SELF target. After the form is submitted, on the new > page, in the textbox I have Bachelor\\\'s De

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

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

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? >

[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 pro

Re: [PHP] another REGEX question

2001-08-03 Thread Richard Lynch
Y'all should also be aware that there is a http://php.net/strip_tags function to rip out all the HTML tags except a select few you want to allow... > Preg functions are faster, though. And, if you're interested in > little speed tweaks, use single quotes - ' - rather than double > quotes - " - he

[PHP] Re: Phone Number #s Only?

2001-08-03 Thread James Holloway
> > 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. > > While the solution given will work, consider the following perfectly valid > phone numbers: >

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

2001-08-03 Thread James Holloway
Hi, phpMyAdmin allows you to import comma separated files into your mysql tables (dunno about .csv but certainly .txt files).. http://phpwizard.net/projects/phpMyAdmin/ Also read up on this: http://www.mysql.com/doc/L/O/LOAD_DATA.html as you may eventually need to set up something to enable a

RE: [PHP] Spot the difference?

2001-08-03 Thread billfarr
Hokay, my 2p... I'm a (former) ASP programmer who just made the leap from ASP to PHP about 2 weeks ago. A week ago I got my entire web-portal recoded to use PHP, a move that experience tells me can't be done as quickly and easily with ASP. All religious arguments aside, one must admit that (1)

Re: [PHP] Adopt A Newbie (ME)

2001-08-03 Thread Tim
I hereby nominate Kyle as the official George W. Bush of the PHP General mailing list. Anyone second it? - Tim On 02 Aug 2001 15:07:49 -0700, Kyle Smith wrote: > zillion is actually a number? i just downloaded a program which reads out > text for you cause it just gets really boring reading the

RE: [PHP] Re: How can I make a Loading... screen?

2001-08-03 Thread Martin Marconcini
I would recommend using Layers. Check on google for Layers (and check for browser type, Netscape and IE had some slight differences). Basically you can easily create some sort of (PLEASE INGORE THIS SYNTAX IS ONLY PSEUDO-CODE) THIS IS MY LAYER and then you can do a layer 1 show or layer 1.

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 D

Re: [PHP] ? about PHP includes

2001-08-03 Thread Christian Reiniger
On Friday 03 August 2001 05:59, Craig Westerman wrote: > $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 a

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 (http://www.php.n

[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 PR

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

[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 a

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 >title='$title',spea

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

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 t

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 "$Education\

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 Hollowa

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 notepa

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

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 L

[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 h

[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 entit

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 stateme

[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 com

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 PROTECTED]">news

[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,$connectio

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 [mailto:[

[PHP] php/sql code gives blank page

2001-08-03 Thread sono
I created a little php script to run and display stuff on my browser for printing. When I run the command I get a blank page though. I tested the syntax of my command in mysql and on phpMyAdmin to make sure it worked. Here is the code: -

[PHP] mail the contents of an array

2001-08-03 Thread Geoffrey Makstutis
Hi, I'm sure that I'm missing something obvious (probably sleep), but how can I take the contents of several arrays and send them via email? I'd like to take each value from the arrays and include them in the message portion of a mail() command. Any help would be greatly appreciated. Geoffrey

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 http://www.someth

[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 tags. Anyone have a quick solution? Thanks, Chuck -- PHP General Mailing List (http

[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 a

[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! > >

[PHP] Re: [php] undefined offset?

2001-08-03 Thread Chris Lee
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 showing, personal opinion. -- Chris Lee [EMAIL PROTECT

[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: I can only select one file. Is there a possibillity to select more, like in windows explorer? -- PHP General Maili

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 t

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 wrote in message news:[EMAIL PROTECTED]... Hi: I'm coding my first programs in PHP using MySQL in Windows. I instaled the Xitami Web Server for Windows.

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

[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 try

Re: [PHP] web traffic report

2001-08-03 Thread Eric Wood
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 rather fond of Webalizer (www.mrunix.net/webalizer). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] IF ELSEIF ELSE??

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

[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

[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

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 time:

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 PROT

[PHP] PHP Grammar Definition

2001-08-03 Thread José León 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 h

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 follow

[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 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] Wanna help me ou

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 [mailto:[E

[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.\n"; } if Why would

[PHP] another REGEX question

2001-08-03 Thread Julian Simpson
I have a string can look like either of the following: some stuff some stuff I want to use eregi_replace to take out the first p tag whether it be or with a space I assumed that $str = eregi_replace ("", " ",$str); but it matches the entire string and thus turns the whole string into one spac

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 the

[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 "$Education\n"; echo "Bachelor's Degree\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 and the more I submit t

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: http://l-i

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

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'

  1   2   >