[PHP] mail - sendmail

2001-08-03 Thread Michael Mehlmann
Hi! I wanted to use the full SMTP-Protocol including "MAIL FROM:" and "RCPT TO:", and therefore I can't use mail(). I have written a perl-script, I call from PHP, that connects to the SMTP-server directly and this worked fine - until a server went down, and my ISP's-SMTP-Server told my perl-scrip

[PHP] Installation error..

2001-08-03 Thread Ryan Christensen
Quick question.. I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It compiles fine (I've even slimmid down the modules I'm compiling it with down to just apxs+mysql), but when I try to restart apache, it gives me the following error: Starting httpd: Syntax error on line 241 of /etc/h

Re: [PHP] Phone Number #s Only?

2001-08-03 Thread mike cullerton
actually, it removes everything from $string that is not in the range 0-9. when a ^ is the first character inside [], it negates whatever is inside. ereg_replace ("^[0-9]","",$string); would remove the first character from $string if it were in the range 0-9. on 8/2/01 6:39 PM, Martin Cameron at

RE: [PHP] Syntax

2001-08-03 Thread Jack Dempsey
I'm almost positive there's no reason the first should work while the second fails...can you post what you've done...it's probably a typo... jack -Original Message- From: BRACK [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 11:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Synta

Re: [PHP] Spot the difference?

2001-08-03 Thread kath
I think the response to this will probably be equally informative and hilarious. - k - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 7:34 PM Subject: [PHP] Spot the difference? Whats the difference between ASP and PHP

Re: [PHP] Adopt A Newbie (ME)

2001-08-03 Thread Kyle Smith
WHY AM I GEORGE BUSH!?!?!? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: "B. van Ouwerkerk" <[EMAIL PROTECTED]> To: "Tim" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thu

Re: [PHP] Linux & PHP Install Problems (was: Oh and one more thing)

2001-08-03 Thread Joel Ricker
> > 1) format your harddrive > > 2) take out your motherboard and spraypaint it > > bright orange. Ok I did that. > > 3) dance around the desk three times holding the > > motherboard above your head chanting > > "mail mail, give me mail" > > "date date, give me date" > > "ga booga woooga sho

RE: [PHP] another REGEX question

2001-08-03 Thread Steve Edberg
At 5:19 PM -0400 8/2/01, Jack Dempsey wrote: >Try >$str = preg_replace("", " ",$str); > >jack Or $str = eregi_replace(']*>', ' ', $str); This matches , then the trailing >. Preg functions are faster, though. And, if you're interested in little speed tweaks, use single quotes - ' - rat

RE: [PHP] Apache

2001-08-03 Thread Angerer, Chad
add yourself to the apache group in the groups file. This will allow you to do a chmod for the group on the apaceh dir so you are able to write to it. chmod +775 I think you would want to do on the directory. C -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Re: Best way to use ocilogoff and ocifreestatement?

2001-08-03 Thread Richard Lynch
> functions that have many multiple exit points This is your real problem. Don't do that. Re-structure the logic to have one, and only one, exit point to the function at the bottom. Non-local exit (exit points not at the end of a function) should be reserved for truly disastrous situations tha

RE: [PHP] Adopt A Newbie (ME)

2001-08-03 Thread Lawrence . Sheed
He's young. Impatience is a documented feature of the youth of today (hmmm, am I old now ;( ) I've was helping him offlist with php/mysql yesterday - he seems to have it installed now. All he needs to do now is learn php, and mysql, and courtesy. Shouldn't take more than another thousand or tw

Re: [PHP] PHP MyAdmin Error---weird

2001-08-03 Thread CW Huang
> > > 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

[PHP] Reading with C 'struct' data

2001-08-03 Thread CW Huang
I have a file written by C whit a c-style struct like this: struct BACACHE { char author[300][100]; int top; time_t uptime; time_t touchtime; int busystate; }; is there any way to get these data into PHP with certain variable type ? I've tried to use " unpack() " function, but I foun

[PHP] Re: ULTIMATE TUTORIAL? (where)

2001-08-03 Thread Philip Olson
Hi Kyle, Yes, one such ultimate tutorial exists, it's called the PHP Manual. It's large and nice and contains many examples and user comments. If you find it scary, try out some less ultimate tutorials first. Go through the tutorials on devshed.com phpbuilder.com zend.com and related places,

Re: [PHP] Oh and one more thing

2001-08-03 Thread Jeff Lewis
Ok, I have to admit, that made me laugh out loud here in the office :) Jeff - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 1:05 PM Subject: RE: [PHP] Oh and one more thing > it's a little bit complicated, but he

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

2001-08-03 Thread Miles Thompson
Darren, et. al., Everything gets posted here - general syntax, database and install questions. Just look at the volume of php-mysql related questions; if they were directly posted on php-db the volume would drop to a more manageable level. Similarly, usage of php-install would help reduce traf

Re: [PHP] Adopt A Newbie (ME)

2001-08-03 Thread Werner Stuerenburg
Kyle Smith schrieb am Donnerstag, 2. August 2001, 22:36:57: > Ok, im trying to cut down on the posts here but this time im really stuck, so could >somebody guide me through the usage of mySQL and PHP and show me how to input data >into a mySQL database and read > it, or just redirect me to an

[PHP] Re: creating archive [<-- was re: php]

2001-08-03 Thread David Minor
There is a nice library that handles this called pcltar at http://phpconcept.free.fr/index.en.php3 on 8/2/01 11:37 PM, Eduarko Kokubo wrote: > 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 >

[PHP] Re: Multiple search options...

2001-08-03 Thread Richard Lynch
> Now I can do one or two of these seperate but can anyone suggest a logic to > take to allow someone to say: I'd like to search for Computer Programmers > between 1 and 3 years experience in Kitchener and that have these keywords. > > But the next person may come and say I want Computer Programme

Re: [PHP] Oh and one more thing

2001-08-03 Thread Brian White
Ditto! At 13:27 2/08/2001 -0400, Jeff Lewis wrote: >Ok, I have to admit, that made me laugh out loud here in the office :) > >Jeff >- Original Message - >From: "scott [gts]" <[EMAIL PROTECTED]> >To: "php" <[EMAIL PROTECTED]> >Sent: Thursday, August 02, 2001 1:05 PM >Subject: RE: [PHP] Oh

RE: [PHP] What would you want in a PHP web host?

2001-08-03 Thread Jeff Pearson
I am currently working with a hosting company that is striving to attain everything you all have mentioned. Check out http://www.eaccounts.net/ref/jp52950052/referer=emaillink I do the Beta testing for them and have all of my sites hosted there. If there is something missing, let me know and I'll

[PHP] Re: bind() function always reporting Invalid argument.

2001-08-03 Thread Richard Lynch
Naive Question: Your BIND server is running on port 1?... Is that for sure? I would have expected a port number < 1024. I believe the protocal (3rd arg) argument to socket() should be 'udp' or 'tcp' rather than the documented int type and value of 0 you used... At least, there's a user-co

Re: [PHP] Re: YA Session Problem

2001-08-03 Thread Richard Lynch
> - file 1 --- What filename is this?... > > session_start(); > > if (!isset($var1)) { > session_register("var1"); > session_register("var2"); > header("location: index.php"); That should be Location with a capital 'L'. It matters. If you are using Cookies for ses

[PHP] Re: Hmmm?

2001-08-03 Thread Richard Lynch
> Why you ppl. do this: > if ($condition) { > file://action 1 > file://action 2 > file://action 3 > > } Because they have been saved. > instead of this: > if ($condition) > { > file://action 1 > file://action 2 > file://action 3 > } Because they are damned to h

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

2001-08-03 Thread Corey Chapman
So you're saying that I should be able to pass the = sign in just fine into the fopen call with no errors? I understand what you mean that if = was what the variable was defined as, then THAT is where I'd use urlencode ;) I wasn't too sure about that, but now I am. Quite odd that it reports er

RE: [PHP] Spot the difference?

2001-08-03 Thread scott [gts]
ASP is basically like PHP, only it uses a VB-based language instead of perl/c-based one. which means it sucks - vb is evil. > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] Spot the difference? > > isnt this fact a good enough reason to believe it

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

2001-08-03 Thread scott [gts]
and since you're running Win32, i'd *highly* suggest running apache to a service... so that you dont have to spawn a console window everytime you want to use your webserver. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 02, 2001 5:5

Re: [PHP] Adopt A Newbie (ME)

2001-08-03 Thread Kyle Smith
why am i the bush? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: "Tim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 7:23 AM Subject: Re: [PHP] Ado

Re: [PHP] PHP Manual in PDF Format

2001-08-03 Thread Augusto Cesar Castoldi
You can get here: http://monica.inf.ufsc.br/Docs/MySQL.pdf see you. Augusto On Fri, 3 Aug 2001, Andreas D. Landmark wrote: > 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 Ad

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

[PHP] Re: Minutes between tow dates

2001-08-03 Thread Richard Lynch
Something like: select date_format('unix-timestamp', yoursessiontimestampcolumn) from sessiontable; Then, you can just use time() and subtract to get the number of seconds, and divide by 60 for the minutes. Or, better yet, you can use MySQL functions to select sessions that are old/new or whate

[PHP] trigger email with submit button

2001-08-03 Thread Jerry Lake
I'm sure this is possible, but I'm not sure if this is the right way to go about it. if ($submit) { mail($from,$to etc...) } any input is kindly regarded Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pa

[PHP] grab newsgroup posts

2001-08-03 Thread Steph
Hi Im working on a project where Im want to connect using PHP to a particular newsgroup and grab particular posts based on subject and store (if possible) the posts into MySQL. Any help would be great! Steph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

[PHP] PHP & JAVA: Odd Behavior

2001-08-03 Thread Marcos
Hi, I got something very odd while trying to run php with java. First, my system specs: My System: Windows NT4.0 SP6 (same happens on Windows XP) Apache 1.3.20 PHP 4.0.6 Sun Microsystems JDK 1.3.1 Java settings from php.ini: [Java] java.class.path="D:\php406\java\php_java.jar;D:\jdk\lib" java.h

RE: [PHP] Light bulbs (was attitude of ....)

2001-08-03 Thread Jon Haworth
> 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: >

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

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] 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 undesi

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

[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] 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] 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 pr

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'

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

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

[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

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

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] 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,

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

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

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

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]

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

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

[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

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

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

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

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

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

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

[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

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

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

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

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

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

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

[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

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

  1   2   >