Re: [PHP] Re: Mailing list

2001-09-11 Thread B. van Ouwerkerk
At 23:50 11-9-01 -0500, Richard Lynch wrote: >You could examine the web-server logs... > >But you either have to assume people only read it once, or count IPs and >ignore AOL/DHCP/Hotmail etc users whose IPs will change more or less at >random. The problem is that you may not be able to count IP'

Re: [PHP] Changing perl to PHP

2001-09-11 Thread ReDucTor
\n"; } else { fputs ($fp, "GET https://www.paypal.com/cgi-bin/webscr HTTP/1.1\015\012"); fputs ($fp, "HOST www.paypal.com\015\012"); fputs ($fp, "Content-type: application/x-www-form-urlencoded\015\012"); fputs ($fp, "Content-Length: ". strlen($query)."\015\012"); fputs ($fp, "

Re: [PHP] Changing perl to PHP

2001-09-11 Thread Jason Brooke
> # read the post from PayPal system and add 'cmd' > read (STDIN, $query, $ENV{'CONTENT_LENGTH'}); > $query .= '&cmd=_notify-validate'; > > # post back to PayPal system to validate > use LWP::UserAgent; > $ua = new LWP::UserAgent; > $req = new HTTP::Request 'POST','https://www.paypal.com/cgi-bin/w

[PHP] Changing perl to PHP

2001-09-11 Thread Richard Kurth
Could somebody tell me how to convert this little bet of code to PHP. The rest of the code for this was easy to do but I dont know what to do with this. Can I call LWP from php and if yes how? # read the post from PayPal system and add 'cmd' read (STDIN, $query, $ENV{'CONTENT_LENGTH'}); $query .=

Re: [PHP] terror

2001-09-11 Thread Richard Baskett
We, well I can't speak for everyone, but I appreciate your sentiments and I am sure many people do. Pray, pray for those survivors, pray for those who are possibly still trapped in/under the world trade center, pray for the relatives of victims, spread the word of peace. Like I heard earlier all

[PHP] Re: PHP module unloadable

2001-09-11 Thread Kevin Way
> I think uncompress may be in zlib, which you said not to use... DOH! Yeah, that was the problem... I Embarassed, Kevin Way -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admi

[PHP] terror

2001-09-11 Thread nafiseh saberi
in IRAn all people hear bad news about terror. and want to help. how are you,are you safe ??? - Best regards. Nafiseh Saberi Iran - Shiraz Try to always happy and hopefull. The smooth sea never made a skillful mariner. Love your enemie

Re: [PHP] CheckBoxes and Arrays

2001-09-11 Thread Don Read
On 12-Sep-2001 Christopher William Wesley wrote: > On Tue, 11 Sep 2001, Ryan Stephens wrote: > >> Im trying to output a list of options, each with a checkbox named "ChkBox" > ... > > Name each checkbox "ChkBox[]" ... the brackets are the key. > > When the form is submitted, you'll have an arra

[PHP] reading a pop3 without imap functions

2001-09-11 Thread Carry Ian
Hello, I want to read mails from a pop3 account. Our ISP doesn't support IMAP with PHP. Can anybody help me how to do it using php. Any help will be highly appreciated. Thanks in advance. Regards, Carry Carry Ian e-mail: [EMAIL PROTECTED] ---

[PHP] Re: enumerations // collections

2001-09-11 Thread Richard Lynch
First of all, you're going to have an awfully slow site if you end up calling mysql_connect as often as it looks like you will. You really only want to call mysql_connect once per script... Collections in PHP are handled with arrays. http://php.net/array -- WARNING [EMAIL PROTECTED] address is

[PHP] Re: Accessing Variable !!!

2001-09-11 Thread Richard Lynch
PHP lives on the server. JavaScript lives on the browser. Consider the sequencing of events: 1: Browser sends GET request 2: Apache begins processing request, decides to invoke PHP 3: PHP begins processing, starts sending out HTML (or other data) 4: Apache passes through PHP's HTML/data 5: Browse

[PHP] Re: PHP4 in .html. HELP!

2001-09-11 Thread Richard Lynch
Try it without the . in .html -- Just html, no . -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message -

[PHP] Re: php apache server problem

2001-09-11 Thread Richard Lynch
What do you mean by an overloading of the server?... It's possible that your configuration of MySQL number of clients that can connect is lower than the number of httpd children that can live. At some point, you'll have requests asking for MySQL connections, but MySQL won't hand out any more...

[PHP] Re: the proverbial "mail() is not supported in this PHP build"

2001-09-11 Thread Richard Lynch
It's entirely possible your ISP turned it off on purpose to foil spammers... You *may* be able to http://php.net/exec sendmail and do an end-run around that, if they were not smart enough to close off that access... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROT

[PHP] Re: Can' connect to ldap server

2001-09-11 Thread Richard Lynch
Check your Apache log for any errors... And, it's *possible* PHP was configured to log errors elsewhere as well... See php.ini, or write some intentionally broken code to be sure you get error messages to the browser. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL P

[PHP] Re: Problem with session_destroy

2001-09-11 Thread Richard Lynch
The file isn't written out until the end of your script, and you're trying to kill it?... Since you haven't registered any variables nor set them, deleting the session doesn't seem like a big deal... What's your overall design goal here? -- WARNING [EMAIL PROTECTED] address is an endangered spe

[PHP] Re: Uploading Photos to MySQL

2001-09-11 Thread Richard Lynch
Rasmus' classic Photo Album is still online with source code. Google: "Rasmus Lerdorf" and "Photo Album" -- 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://

[PHP] Re: check box help.

2001-09-11 Thread Richard Lynch
Add [] to the name if you expect multiple checkboxes of the same name... http://php.net/FAQ.php -- 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.

[PHP] Re: Hierarchic menus using Javascript and PHP?

2001-09-11 Thread Richard Lynch
See my response to Girish' post. You can't have JavaScript talking to PHP in real-time for user-interaction. You either need to send your ENTIRE tree to JavaScript, or make the user choose on each page from a sub-menu... For that, you would just need to have JavaScript set the location to somethi

[PHP] Re: Ramesus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY

2001-09-11 Thread Richard Lynch
Did anybody disable the mail() function in PHP? What did you put in php.ini to call sendmail? Are there any error messages in your Apache logs? Re-posting with Rasmus' name is probably not particularly useful... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTE

[PHP] Re: PHP module unloadable

2001-09-11 Thread Richard Lynch
I think uncompress may be in zlib, which you said not to 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: http://chatmusic.com/volunteer.htm - Original

[PHP] Re: Getting a script to download files from an ftp server?

2001-09-11 Thread Richard Lynch
header("Content-type: application/x-octet-stream"); You'll also need differing Content-disposition: headers for IE and Netscape. And, just for fun, you need Content-length: if you expect the pretty progress meter to work. For total fun, there's also a minor version of some browser where you need t

[PHP] Re: mysql help

2001-09-11 Thread Richard Lynch
A "create" SQL statement is just an SQL statement. Send it the same way you would send "Select" You'll have to have the permissions set up right, so use mysql_error() until you figure out what's going on. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wan

[PHP] Re: Mailing list

2001-09-11 Thread Richard Lynch
You could examine the web-server logs... But you either have to assume people only read it once, or count IPs and ignore AOL/DHCP/Hotmail etc users whose IPs will change more or less at random. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me o

Re: [PHP] Posts about the WTC Trajedy

2001-09-11 Thread Richard Baskett
Amen, Ill second that Rick > From: Chip <[EMAIL PROTECTED]> > Date: Tue, 11 Sep 2001 20:27:41 -0700 > To: [EMAIL PROTECTED] > Subject: [PHP] Posts about the WTC Trajedy > > > I find the 'tone' of this thread to be very shameful! At a time like this we > should be supporting one another in any

[PHP] PERL TO PHP

2001-09-11 Thread programmer
Can anybody help me convert this perl code to PHP This line in particular while( /hidden name=(.*?)>/gs ) { but I have included more of the source below: Thanks in Advanace Randy undef $/; #print "$curlargs"; #print "$sysstring"; open(foo, "$sysstring|") || die ("Failed FO $!_"); while(){

[PHP] Posts about the WTC Trajedy

2001-09-11 Thread Chip
I find the 'tone' of this thread to be very shameful! At a time like this we should be supporting one another in any way we can, not making off-handed remarks, finger-pointing or making facetious comments. I am on about a dozen differant lists and they all have threads going on this subject, a

[PHP] Re: word wrap

2001-09-11 Thread Adam
http://php.net/manual/en/function.wordwrap.php -Adam www.wangallery.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] word wrap

2001-09-11 Thread Justin French
Hi, I'm having trouble with some email clients not wrapping text. So, what I'd like to do is create a wrap function which enables me to wrap a long text string at say 60 characters, by inserting a \n. Of course I don't want to wrap RIGHT ON 60 chars, I want to wrap at the space just before the

Re: [PHP] CheckBoxes and Arrays

2001-09-11 Thread Christopher William Wesley
On Tue, 11 Sep 2001, Ryan Stephens wrote: > Im trying to output a list of options, each with a checkbox named "ChkBox" ... Name each checkbox "ChkBox[]" ... the brackets are the key. When the form is submitted, you'll have an array called $ChkBox that will contain the data only from the checked

[PHP] CheckBoxes and Arrays

2001-09-11 Thread Ryan Stephens
Im trying to output a list of options, each with a checkbox named "ChkBox" and with a value of the ID number from the database. This is no prob. The thing is, i want to be able to select some of those checkboxes (any number, in combination) and delete the information from the database that is asso

Re: [PHP] mysql_db_query create table error

2001-09-11 Thread David Robley
On Wed, 12 Sep 2001 01:19, mkrisher wrote: > All, > > I am trying to create a table in a mySQL database, seems like it would > be easy enough, but for some reason it is not working, below is the > code: > > // Query to create table and columns > $sql = "CREATE TABLE 'products' ( >

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Christopher CM Allen
>>Well, exactly not! Just look at the track record of "believe". May I >>remind you of the "great" deeds in the name of god (which god doesn't >>matter). Let me remind you of the deeds not done in Gods name -> Hitler Deed's & Stalin Deed's. Enough said... take it off the list. -- PHP Genera

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Nael Mohammad
This is a PHP list and off the topic Nael Mohammad 180 Montgomery St. Suite 2000 San Francisco CA, 94104 Phone: 415-403-7300 x314 Fax: 415-403-7373 Mobile: 415-793-0609 www.neomar.com -- Neomar - "When Wireless Means Business" -- PHP General Mailing List (http://www.php.

Re: [PHP] Other lists

2001-09-11 Thread Data Driven Design
The lists from the html writers guild are good. www.hwg.org Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Message - From: "Seb Frost" <[EMAIL PROTECTED]> To: "php list" <[EMA

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Alexander Skwar
So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 17:36:59 +0100 : > I'm sure your is the view shared by the VAST, VAST majority on both "sides". > > Michael > > > Quoting Clint Tredway <[EMAIL PROTECTED]>: > > > > > I am sorry, but the problem is the exact opposite. If people would turn > > bac

[PHP] NEW !! ecTemplate !! NEW

2001-09-11 Thread Jeroen Olthof
http://www.millipede.nl/ectemplate/ hi, I was inspired by fasttemplate. the idea of separate your HTML code from the PHP code. but when I first start usinging fasttemplate, it removed all my javascript function definitions. This was a reson for me to do a rewrite in my own way. starting from scr

Re: [PHP] More thoughts about PHP: Taglibs

2001-09-11 Thread Michael Kimsal
Dr. Evil wrote: >It seems to me that one of the problems with PHP is that you have to >include code in your HTML pages. Even with the cleanest design, you >end up with HTML that looks like this: > > >Hello, . Your last login was showlastlogin(); ?>. > > No, you don't. Have a script file th

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
Thankyou, that works fine. -- Chip "Jack Dempsey" <[EMAIL PROTECTED]> on 09/12/2001 12:03:20 AM Internet mail from: To: <[EMAIL PROTECTED]> cc: <[EMAIL PROTECTED]> Subject: RE: [PHP] date/time of current page > I'm not sure what you mean, but here is what I have tried - try this:

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
> I'm not sure what you mean, but here is what I have tried - try this: jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
"Michael Geier, CDM Systems Admin" <[EMAIL PROTECTED]> on 09/11/2001 11:46:50 PM Internet mail from: To: "Jack Dempsey" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject: RE: [PHP] date/time of current page document.write('some text ' + document.lastmodifie

RE: [PHP] date/time of current page

2001-09-11 Thread chip . wiegand
"Jack Dempsey" <[EMAIL PROTECTED]> on 09/11/2001 11:42:07 PM Internet mail from: To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject: RE: [PHP] date/time of current page have you tried parsing out the name from $PHP_SELF? I would think that php wouldn't care if it gets 'index.php' o

RE: [PHP] date/time of current page

2001-09-11 Thread Michael Geier, CDM Systems Admin
document.write('some text ' + document.lastmodified + ' some other text.'); -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 4:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] date/time of current page have you tried p

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
have you tried parsing out the name from $PHP_SELF? I would think that php wouldn't care if it gets 'index.php' or (some processing) "index.php", know what i mean? jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 1:01 PM To: [EM

[PHP] date/time of current page

2001-09-11 Thread chip . wiegand
I want to put, into a footer include file, the last modified date of the current file being viewed. I have the following code that works when I hard code the file name - But of course that won't work as a footer for a site with over two hundred pages. What is the parameter for the current page?

[PHP] Other lists

2001-09-11 Thread Seb Frost
I've found this list so helpful - can anyone recommend a similar thing for javascript/html/etc? cheers, - seb --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001 -- PHP General

[PHP] PROBLEM SOLVED - was [PHP] Rasmus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY]

2001-09-11 Thread Badger
This is a forwarded message From: Badger <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Monday, September 10, 2001, 11:04:54 PM Subject: [PHP] Rasmus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY ===8<==Original message text=== This is a forwarded message From: Badger <[

[PHP] PHP and SecurID

2001-09-11 Thread Scarbrough, Jeb (ISS Atlanta)
Has anyone used PHP with SecurID and Netscape Enterprise server? Can this be done? Jeb Scarbrough [EMAIL PROTECTED] Internet Security Systems, Inc. 6303 Barfield Road Atlanta, Georgia 30328 Phone: 404-236-3292 Fax: 404-236-2626 _ -- PH

Re: [PHP] How do I get the resolution of my screen?

2001-09-11 Thread MailingLists
nope, it don't... but you could easily do this in JavaScript: function OpenCenter() { // we're going to center the popup screen nLeft = ( screen.width - 350 ) / 2 ; nTop = ( screen.height - 300 ) / 2; // open the window var newWind = window.open( "som

[PHP] How do I get the resolution of my screen?

2001-09-11 Thread Don
Hi, I have a link that opens a small window. I'd like to center it in the screen regardless of the resolution in use. Does PHP have a way of returning the width/height of the current screen in pixels? Thanks, Don

[PHP] Uploading Photos to MySQL

2001-09-11 Thread Mike Gifford
Hello, Has anyone developed another class for uploading images to a MySQL database? I downlaoded upload_db.zip from: http://circle.ch/scripts/ as it was a phplib based and it looks like it should do what is required. However it doesn't seem to be working. Does anyone else have any goo

Re: [PHP] MySql Help

2001-09-11 Thread Alnisa Allgood
At 12:31 PM -0600 9/11/01, Jared Mashburn wrote: > >I am tring to run a query On the First Column and place the data into an >array. The problem that I am running into >Is that there are doubles, triples, and sometimes more of the same name >in that column. Each name represents something differn

[PHP] MySql Help

2001-09-11 Thread Jared Mashburn
Hello, I have a database with 4 Columns |ID|First|Second|Third| I am tring to run a query On the First Column and place the data into an array. The problem that I am running into Is that there are doubles, triples, and sometimes more of the same name in that column.

RE: [PHP] single quote replace

2001-09-11 Thread Jack Dempsey
php does;-) $text = str_replace("'","replace_text",$text); -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: [PHP] single quote replace Does anyone have a function that will replace single quotes i

Re: [PHP] How to list 2-6 in while script?

2001-09-11 Thread Alexander Skwar
So sprach »Jan Grafström« am 2001-09-11 um 16:48:59 + : > Hi! > I have this script and wonder how to change it to get it list only number 2 to >number 6 and > not each? > while (list ($key,$val) = each ($headers)) { > print ""."$val".""; > } Hmm $i = 1; while (list ($key,$val) = each ($hea

[PHP] single quote replace

2001-09-11 Thread Clint Tredway
Does anyone have a function that will replace single quotes inside a string? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Unable to find stream pointer

2001-09-11 Thread Andreas Gietl
Hi PHP-Users, I am having problems with php and imap now for several days on several servers. I just get the following Error: Warning: Unable to find stream pointer in on line This error does not occur in every execution, but only sometimes. I read a lot about this error on the internet, bu

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Erik Mathy
"Sean C. McCarthy" <[EMAIL PROTECTED]> said: > Dear All, > > Please I beg you not to start a discussion over this. It is a very sad > moment, and I think everybody agrees with me. I send my condolences to > all the people who has family in these tragic terrorism acts. > > Sean C. McCart

[PHP] How to list 2-6 in while script?

2001-09-11 Thread Jan Grafström
Hi! I have this script and wonder how to change it to get it list only number 2 to number 6 and not each? while (list ($key,$val) = each ($headers)) { print ""."$val".""; } Thanks in advance. Regards Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Sean C. McCarthy
Dear All, Please I beg you not to start a discussion over this. It is a very sad moment, and I think everybody agrees with me. I send my condolences to all the people who has family in these tragic terrorism acts. Sean C. McCarthy Clint Tredway wrote: > > I am sorry, but the problem i

RE: [PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread Brian Paulson
Here is something that I use and works good Thank You Brian Paulson Sr. Web Developer The Pueblo Chieftain Online [EMAIL PROTECTED] http://www.chieftain.com > -Original Message- > From: nayco [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 11, 2001 9:48 AM > To: Zhu George-CZZ

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread mstearne
I'm sure your is the view shared by the VAST, VAST majority on both "sides". Michael Quoting Clint Tredway <[EMAIL PROTECTED]>: > > I am sorry, but the problem is the exact opposite. If people would turn > back to God and seek his face and live according to His will, the World > would benefit

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Clint Tredway
I am sorry, but the problem is the exact opposite. If people would turn back to God and seek his face and live according to His will, the World would benefit greatly. My 2 cents. -- Original Message -- From: Alexander Skwar <[EMAIL PROTECTED]> Date: Tue,

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Alexander Skwar
So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 08:55:49 -0600 : > > We need the receive the help from Got, I believe He is the only one who can > help us on this situation Well, you know: *EXACTLY* this is the problem! Your so called "god". If it weren't for this superstition, the world wo

[PHP] Translation table not working

2001-09-11 Thread Peter Ostry
I cannot manage correct HTML encoding, here is the example from the manual: --- $trans = get_html_translation_table(HTML_ENTITIES); $str = "Hallo & & Krämer"; $encoded = strtr($str, $trans); The $encoded variable will now contain: "Hallo & & Krämer". --- If I do exactly the same, I get:

[PHP] Php

2001-09-11 Thread Nael Mohammad
Has anyone had luck with apache 2.0 beta, jakarta, and php 4.06 on solaris 8 on netra t-1.? If so email me: how go about it, I get tons of compiling errors. But on my linux box, it works , no problems. Is incompatable with certain glibc librarys? I have glibc 2.01. Help me community! Nael Moh

Re: [PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread B. van Ouwerkerk
Yes. STFW --> www.php.net type detect browser in the searchbox --> click pulldownbox --> select online documentation and click on the little arrow.. http://www.php.net/manual/en/function.get-browser.php http://www.php.net/manual/en/language.variables.predefined.php Next time you can search the

[PHP] mysql_db_query create table error

2001-09-11 Thread mkrisher
All, I am trying to create a table in a mySQL database, seems like it would be easy enough, but for some reason it is not working, below is the code: // Query to create table and columns $sql = "CREATE TABLE 'products' ( id INTEGER UNSIGNED NO

Re: [PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread nayco
with some environnement variable er, i'm going to take a look, wait. (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: Zhu George-CZZ010 <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 11, 2001

[PHP] Is it possible to detect the Browser type/version in PHP?

2001-09-11 Thread Zhu George-CZZ010
Hi, I once had the Javascript codes to detect the browser type/version (but unfortunately, I lost the codes), does anyone have the Javascipt code? or can PHP do the same job (how?) Thank you very much in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Fwd: Re: [PHP] Just had a cool idea!

2001-09-11 Thread B. van Ouwerkerk
This reply was send to my private mailbox.. >how may i go around doing this though... and sorry for yelling Think logical. Visitor is 499, the next comes along, one visitor is added so your current visitor is 500 and BINGO he just won the jackpot.. your link.. whatever. Before asking any furt

[PHP] Once more, with feeling

2001-09-11 Thread billfarr
Dear All: Due to popular demand I've put the newest version of the Code Red detector on one of my servers in public, anonymous FTP. The URL is ftp://ftp.compuphrase.net/pub/codered . After some research (annotated in the propaganda), I added the last 10

[PHP] Re: problem in the small code

2001-09-11 Thread Robin Vickery
[EMAIL PROTECTED] (Balaji Ankem) writes: > What is the problem with following code.. > $sql1="DELETE from tinventory where inv_tag='$inv_tag'; no closing doublequote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread Michael Kimsal
Perhaps you should just use cold fusion then, if you're that hot and heavy into tag-based languages. tagservlet.com has a Java/CF hybrid which may hold some interest. PHP's strength, IMO, is that it's NOT a tag-based language. You can create any functions you want and call them already from a

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread ignacio . estrada
We need the receive the help from Got, I believe He is the only one who can help us on this situation Atte. Ignacio Estrada F. Centro Nacional de Control de Energia Area de Control Occidental 025+6463, 025+6464, 025+6469

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread nayco
?> This is not PHP, yeah, but important enough ... Don't you fear a GLOBAL $war; ??? It smells bad . the ones who did that are ugly Mo**rs, but very strong how could they do that ??? http://nayco.free.fr - Original Message - From: Jeff Lewis <[EMAIL PROTECTED]> To:

[PHP] problem in the small code

2001-09-11 Thread Balaji Ankem
What is the problem with following code.. if ( $row!=0 ) { $res=mysql_fetch_object($result); if( $res->inv_status=="ASSIGNED") { echo "It is in assigned state. Please first return it and then change the status"; exit; } elseif( $res->inv_status=="AVAILABLE

[PHP] Problem with session_destroy

2001-09-11 Thread Rosen
I have the code: "") {session_destroy();} } When the page loads the first time I receive error: "Warning: Session object destruction failed in main.php on line 9" but when I make "Refresh" of page, there is no error !! Can someone any ideas ? Thanks Rosen -- PHP General Mailing Lis

Re: [PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Jeff Lewis
Yeah not really a PHP topic but a very serious one! I can't believe this! Two planes with the WTC, one into each tower. One of the towers have now collapsed as well. A helicopter crashed into the Pentagon with unconfirmed reports of a third hijacked plane also crashing into the Pentagon. A pla

[PHP] Re: World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread alex Deh
what is it for a f.. day america? from germany realex "Lewi Hirvela" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

[PHP] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Lewi Hirvela

RE: [PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Nicolas Guilhot
I understand that RegEx works on strings, but I don't understand why this function modifies the replacement parameter as it is not pass by-reference. Nicolas -Message d'origine- De : Andrey Hristov [mailto:[EMAIL PROTECTED]] Envoyé : mardi 11 septembre 2001 14:34 À : [EMAIL PROTECTED] Ob

Re: [PHP] how to ?

2001-09-11 Thread Clint Tredway
thanks for the help! I am using MySQL. -- Original Message -- From: "Andrey Hristov" <[EMAIL PROTECTED]> Date: Tue, 11 Sep 2001 15:44:08 +0300 Look for mysql_affected_rows() docs. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS

Re: [PHP] Anagram Solution in PHP

2001-09-11 Thread nayco
maybe you forgot something like: . $letter=26-(ord($word[$i])-65);// excellent !!! if (($letter<1)||($letter>26)) $letter=0; $total+=$letter; (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr - Original Message - From: David

[PHP] Re: how to ?

2001-09-11 Thread _lallous
$ok = mysql_query("INSERT INTO table(field) VALUE('asdf')"); if (!$ok) { echo "error!"; } else { echo "good!"; } "Clint Tredway" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > is there a way to tell if an insert failed while a in a loop. I tried this: $qu

Re: [PHP] how to ?

2001-09-11 Thread David Otton
On Tue, 11 Sep 2001 08:40:05 -0400, you wrote: >is there a way to tell if an insert failed while a in a loop. I tried this: $query = >"my query"; >if (!$query) >{ >logic here >} > but this is not working... is this even possible? By query, are you talking about SQL? I'm assuming you're trying t

Re: [PHP] how to ?

2001-09-11 Thread Andrey Hristov
Look for mysql_affected_rows() docs. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Clint Tredway" <[EMAIL PROTECTED]> To: "Php General MailingList" <[EMAIL PROTECTED]> Sent: Tuesday, September 11, 2001 3:40 PM Subject: [PHP] how

[PHP] how to ?

2001-09-11 Thread Clint Tredway
is there a way to tell if an insert failed while a in a loop. I tried this: $query = "my query"; if (!$query) { logic here } but this is not working... is this even possible? thanks! Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

[PHP] a bug???

2001-09-11 Thread hassan el forkani
hi, i'm recently observing a strange behaviour of php when using a combination of ob_start() and ignore_user_abort() in the same page, php hangs (after the script is executed) and is unable to create/write to /destroy sessions!! i'm observing this on my win98 machine with apache 1.20 and php 4

Re: [PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Andrey Hristov
Hmmm, RegEx work on strings, so the engine needs strings. Because of that your integers are converted to strings, if you want to give their life back make foreach ($arr as $k=>$v){ $arr[$k]+=0; } Now all are integers. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS

Re: [PHP] Anagram Solution in PHP

2001-09-11 Thread David Otton
On Mon, 10 Sep 2001 01:25:36 -0700, you wrote: >So let's say the word 'acronym' > >A + C + R + 0 + N + Y + M >26 + 24 + 9 + 12 + 13 + 2 + 14 = 100 > >My thoughts were to download a list of words in the dictionary, then read >the file and somehow replace each letter by its number, then add ea

[PHP] SSL and PHP = problems?

2001-09-11 Thread Magnus
I have a webpage that uses php4 and a SSL connection for some sensitive information like credit card number and such, it's a registration process. When MacOS users access the page it all goes well and no problems at all. But... when PC/Windows users access the page they get some problems and it s

Re: [PHP] MySQL query help

2001-09-11 Thread Michael George
On Mon, Sep 10, 2001 at 03:59:36PM -0500, Sheridan Saint-Michel wrote: > Well, I played with this a little more and it seems to be acting oddly when > you first > call this select unless you set the variable first. So if the below doesn't > work try > actually doing this > > $query="set @count=N

[PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Nicolas Guilhot
Hi guys, When I use preg_replace with an array of integer as the replacement parameter, this function modifies the type of each array element to string. I don't understand why it alters the content of the array while this variable is not pass by reference (True or not ??). I have just upgraded t

Re: [PHP] More thoughts about PHP: Taglibs

2001-09-11 Thread Tim
A good template library (and there's quite a few out there) will take care of this issue. You can have nearly pure HTML files and pure PHP files and maintenance and readability of your projects is much improved. - Tim http://www.phptemplates.org On Tue, 2001-09-11 at 01:04, Dr. Evil wrote: >

Re: [PHP] Apache redirection by PHP

2001-09-11 Thread Tim
Look in the Apache manual at the section on mod_rewrite. - Tim On Tue, 2001-09-11 at 05:58, Andrew Perevodchik wrote: > I have the DNS alias on my server for "*" (which > means any name). So that any requests for > http://anyname.my.host are recieved by one virtual > server. I need to make apach

[PHP] Re: regexp (?:

2001-09-11 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Andrew Perevodchik) wrote: > ereg ("aaa(?:bbb|ccc)aaa", $string); > > It causes an error. However "?:" command is > documented in a manual of my version of PHP4. AFAIK, that is only documented in the preg_* chapter, and only applies to the pr

RE: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread Niklas Lampén
session_start(); if (!session_is_registered("Session")) { toStart(2); exit; }; $Session = $GLOBALS[Session]; This is what I do on every page. I don't think it's timeout, since the session might get broken just after 5 minutes. function toStart() is used to move user to the login

RE: [PHP] Re: variables

2001-09-11 Thread webgenie
Thanks, I'll implement sessions... :) regards Bart -Oorspronkelijk bericht- Van: _lallous [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 11 september 2001 13:30 Aan: [EMAIL PROTECTED] Onderwerp: Re: [PHP] Re: variables In that case you'll have to use session_variables or cookies.

Re: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread _lallous
Can't tell like that No more ideasmaybe somecode would help?! "Niklas lampén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hmm.. How do I know how fast they timeout? And it seems that all of my users > drop at the same time, not sure about it thou. >

  1   2   >