FW: [PHP] Logic -- conditional statements

2002-06-04 Thread Naintara Jain
One correction, Ricardo for appending the rows, you will have to change the condition //for 1st row if($valueChk >= 1 && $valueChk <= 3) //for 2nd row if($valueChk >= 2 && $valueChk <= 3) //for 3rd row if($valueChk == 3) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROT

[PHP] Printing Large Blocks of Text

2002-06-04 Thread webmaster
What is the best way to print large blocks of text within a PHP function?   JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] running php on console

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 16:51, Brian Feliciano wrote: > how can i run my php scripts on the command line just like perl scripts? > how can i do this on a linux/apache server and windows/iis4 server? You need to compile a CGI (standalone) version of PHP. -- Jason Wong -> Gremlins Associates -> w

Re: [PHP] Printing Large Blocks of Text

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 17:34, [EMAIL PROTECTED] wrote: > What is the best way to print large blocks of text within a PHP function? echo(), print()? Perhaps you can elaborate on what you want to do and what you want to know. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Sour

[PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Teagle
Sorry if this is an ignorant question, but I want to do one simple thing - create an empty MySQL-type database to upload to the server so I can start using PHP to access it... how can I do this? I don't really want to have to download the whole MySQL product just to create an empty database! If t

RE: [PHP] Logic -- conditional statements

2002-06-04 Thread John Holmes
Switches come in handy here... Switch($valueChk) { case 1: do_whatever1(); case 2: do_whatever2(); case 3: do_whatever3(); break; } If the variable is 1, then all three functions will be called. I don't remember what the original question was or if this even applies, but

RE: [PHP] MySQL - Creating The Database

2002-06-04 Thread David Freeman
> Sorry if this is an ignorant question, but I want to do one > simple thing - create an empty MySQL-type database to upload > to the server so I can start using PHP to access it... how > can I do this? I don't really want to have to download the > whole MySQL product just to create an e

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Teagle
- Original Message - From: "David Freeman" <[EMAIL PROTECTED]> To: "'PHP Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 11:50 AM Subject: RE: [PHP] MySQL - Creating The Database > Ummm, not sure exactly what you're asking but you can use mysql_query to > issue the relev

RE: [PHP] Printing Large Blocks of Text

2002-06-04 Thread Saso Prijatelj
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Printing Large Blocks of Text On Tuesday 04 June 2002 17:34, [EMAIL PROTECTED] wrote: > What is the best way to print large blocks of text withi

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 19:03, Jason Teagle wrote: > > Ummm, not sure exactly what you're asking but you can use mysql_query to > > issue the relevant sql commands to create your database and tables and > > Am I correct in saying that none of the SQL functions in PHP can actually > create a datab

RE: [PHP] MySQL - Creating The Database

2002-06-04 Thread David Freeman
> Am I correct in saying that none of the SQL functions in PHP > can actually create a database file when no file existed > before? In other words, an empty database file must exist > before SQL functions can be called on it? If you have appropriate access you can. You do need 'root' acc

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Marek Kilimajer
You cannot create a database from within PHP, you need to connect to mysql server ( my guess is the same applies to MS Access), and with root priviledges call something like mysql_query("CREATE TABLE nuke_stories ( sid int(11) NOT NULL auto_increment, catid int(11) NOT NULL default '0',

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Michael Hall
If your site is hosted in a *nix machine with shell access, another option might be to create a database and write up the SQL you need to structure it in a text file, then just feed it straight into MySQL like this: mysqladmin -uusername -ppassword create yourdatabase mysql -uusername -ppassword

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Teagle
David Freeman said: > From memory, you also have a few php commands that will help - why not > consult your local friendly php manual in the section under mysql > commands for choices and information. Jason Wong: >The problem is that you haven't read the (mysql) manual. Either read the >manual

Re: [PHP] Printing Large Blocks of Text

2002-06-04 Thread Michael Davey
print << wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 04 June 2002 17:34, [EMAIL PROTECTED] wrote: > > What is the best way to print large blocks of text within a PHP function? > > echo(), print()? > > Perhaps you can elaborate on what you want to do and what you want

[PHP] Help! Configuring PHP with Personal Web Server

2002-06-04 Thread Jesse Segovia
So far I've found about five different ways to install PHP with PWS and none of them work. Can anyone who has done this please send detailed instructions about how to do it, or point me to instructions that work? Thanks very much in advance. -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Help! Configuring PHP with Personal Web Server

2002-06-04 Thread Brian Feliciano
[EMAIL PROTECTED] writes: >So far I've found about five different ways to install PHP with PWS and >none of them work. Can anyone who has done this please send detailed >instructions about how to do it, or point me to instructions that work? > >Thanks very much in advance. > any error msgs? it'll

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 19:59, Jason Teagle wrote: > to be fair, it is customary to get all the tools and other preparations > (including necessary files) ready before embarking on a project. Thus, it > is logical to get a blank database ready before beginning. Why read yards > of documentati

RE: [PHP] MySQL - Creating The Database

2002-06-04 Thread David Freeman
> Also, if a person doesn't _know_ that PHP can create a > database for you, how would they know that somewhere in the > list of PHP functions is the answer to the problem? It would > be foolish to expect someone to read the _whole_ of the > documentation on MySQL or PHP just to see if t

Re: [PHP] MacOSX / php.ini newbie question

2002-06-04 Thread Verdon Vaillancourt
Hi Peter, Thanks for the reply. Yes, I have searched using both locate and find in the terminal, and sherlock, though I don't think sherlock will find anything in system folders. BTW... I updated my locate db before doing the search. :) verdon On 6/3/02 10:19 PM, "Peter" <[EMAIL PROTECTED]> wr

[PHP] fopen() question

2002-06-04 Thread Jose Jeria
What I want to do is to the save a file with its new content, but when i save the file and the new content is less than it was before i opened it, you can see the old content after the new shorter content. How can i avoid this? Now using: $fd = fopen($arrFileName, "r+"); fwrite($fd, $arrFileCon

[PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jay Blanchard
Quite frequently on this list and others there are questions where it is obvious that the manual or list archives have not been searched. Heck, some of these are cross posted to many lists where the sender may think that they will get relevant information. On the MySQL list the footer even has thi

Re: [PHP] fopen() question

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 21:17, Jose Jeria wrote: > What I want to do is to the save a file with its new content, but when i > save the file > and the new content is less than it was before i opened it, you can see the > old content > after the new shorter content. How can i avoid this? > > Now usi

Re: [PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating TheDatabase

2002-06-04 Thread Rasmus Lerdorf
If you had searched the list archives yourself you would have seen that this has been suggested a few times and rejected each time because nobody would stick around and answer the newbie questions and newbies, being newbies, would figure out where the people who can answer their questions hang out

RE: [PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jay Blanchard
[snip] If you had searched the list archives yourself you would have seen that this has been suggested a few times and rejected each time because nobody would stick around and answer the newbie questions and newbies, being newbies, would figure out where the people who can answer their questions h

Re: [PHP] RE: Time to Divide Lists? WAS: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 21:22, Rasmus Lerdorf wrote: > If you had searched the list archives yourself you would have seen that > this has been suggested a few times and rejected each time because nobody > would stick around and answer the newbie questions and newbies, being > newbies, would figure

[PHP] include/require porblem

2002-06-04 Thread Mitja Pagon
I have the following problem. code of index.php --- 0)) { include_once(ROOT."/admin/main.php"); } else { header("Location: " . generate_URL("/admin/login")); }#end if ?>

[PHP] include/require porblem

2002-06-04 Thread Mitja Pagon
I have the following problem. code of index.php --- 0)) { include_once(ROOT."/admin/main.php"); } else { header("Location: " . generate_URL("/admin/login")); }#end if ?>

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Jason Teagle
- Original Message - From: "David Freeman" <[EMAIL PROTECTED]> To: "'Jason Teagle'" <[EMAIL PROTECTED]>; "'PHP Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 1:58 PM Subject: RE: [PHP] MySQL - Creating The Database How very sad. It's not new - I've seen things like this

RE: [PHP] Cronjob security

2002-06-04 Thread SP
Or you could do this to make the page only accessable to you. http://www.mysite.com/cronpage.php?secretpassword= iud88383 -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: June 4, 2002 4:45 AM To: 'Edgard Berendsen'; [EMAIL PROTECTED] Subject: RE: [PHP] Cronjob secu

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Christopher Riordan
He'll Be Back, they all come back Chris - Original Message - From: "Jason Teagle" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 9:45 AM Subject: Re: [PHP] MySQL - Creating The Database > > - Original Message - > From: "David Freeman

[PHP] php IDE for linux

2002-06-04 Thread Pedro Jorge Dias Cardoso
please tell me a good PHP editor for linux, wich one you prefer. or a package for PHP in Xemacs. i try the bluefish but i dont like it. Thanks, Pedro Cardoso -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help! Configuring PHP with Personal Web Server

2002-06-04 Thread Jesse Segovia
"Brian Feliciano" <[EMAIL PROTECTED]> writes: >>So far I've found about five different ways to install PHP with PWS and >>none of them work. Can anyone who has done this please send detailed >>instructions about how to do it, or point me to instructions that work? > any error msgs? it'll help a

[PHP] PHP_AUTH_USER

2002-06-04 Thread Fifield, Mike
I have a bunch of pages on my site inside an apache .htaccess protected directory. After visitors have logged in I am on part of my site I need to find out which user it is that has logged in. I thought this information was stored in the $PHP_AUTH_USER variable, but when I print this variable it i

Re: [PHP] php IDE for linux

2002-06-04 Thread Scott
I have been using Zend Studio on Windows and they have a Linux client. You can get a demo key at www.zend.com. I am pretty sure that xemacs has a php mode as well. -Scott On Tue, 4 Jun 2002, Pedro Jorge Dias Cardoso wrote: > > please tell me a good PHP editor for linux, wich one you prefe

Re: [PHP] php IDE for linux

2002-06-04 Thread José León Serna
Hello: > please tell me a good PHP editor for linux, wich one you prefer. > or a package for PHP in Xemacs. I like very much this under linux http://quanta.sourceforge.net/ Best Regards. QaDRAM Studio, RAD Development for the WEB http://studio.

Re: [PHP] PHP_AUTH_USER

2002-06-04 Thread José León Serna
Hello: > I have a bunch of pages on my site inside an apache .htaccess protected > directory. After visitors have logged in I am on part of my site I need to > find out which user it is that has logged in. I thought this information was > stored in the $PHP_AUTH_USER variable, but when I print thi

[PHP] ignore this whole thread

2002-06-04 Thread Mitja Pagon
It turned out to be my coding error. Thanks for all the replies! Mitja "Mitja Pagon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have the following problem. > > code of index.php > ---

[PHP] Re: Probs with MIME multipart/alternative generated with PEAR mime.php (bug)

2002-06-04 Thread mike
Thanks to a heads up fom Malcolm Dew-Jones on the comp.mail.mime newsgroup, I belive a bug and resolution has been located in mime.php that addresses the problem I raised below. It would seem that certain MTA's are chocking on the line "Content-Type: multipart/alternative; boundary="=_f74fc4c7192

Re: [PHP] MySQL - Creating The Database

2002-06-04 Thread Juan Pablo Aqueveque
ops! ops! ops! I wonder : Who does have the reason in this discussion? Mr. Jason Teagle or Mr. David Freeman Being honest, I would say 50% and 50%. At 09:45 04/06/02, Jason Teagle wrote: >- Original Message - >From: "David Freeman" <[EMAIL PROTECTED]> >To: "'Jason Teagle'" <[EMAIL PRO

RE: [PHP] MySQL - Creating The Database

2002-06-04 Thread Naintara Jain
This is rather sad, the PHP mailing list is pretty good. Agreed, sometimes the answers are curt, that's because a lot of the questions have been asked a zillion times and can be found in the archives. And sometimes there's no response, perhaps the solution is not evident to those on the list. But

[PHP] countries

2002-06-04 Thread Justin French
Apologies for being slightly OT, but has anyone got an array or list of countries that I can use to populate a pull-down menu? Or maybe a link to a resource to find this sort of stuff? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Re: php IDE for linux

2002-06-04 Thread Henrik Hansen
[EMAIL PROTECTED] (Pedro Jorge Dias Cardoso) wrote: > please tell me a good PHP editor for linux, wich one you prefer. > or a package for PHP in Xemacs. I saw recently that phpedit comes out on linux now thats a good editor (it costs). Else try Kate for KDE and Quanta for GTK. -- Henrik Hans

RE: [PHP] countries

2002-06-04 Thread Jay Blanchard
[snip] Apologies for being slightly OT, but has anyone got an array or list of countries that I can use to populate a pull-down menu? Or maybe a link to a resource to find this sort of stuff? [/snip] A quick search on Google (http://www.google.com/search?hl=en&lr=&ie=UTF8&oe=UTF8&q=%22list+of+co

RE: [PHP] PHP_AUTH_USER

2002-06-04 Thread António Afonso Martins
>I have a bunch of pages on my site inside an apache .htaccess protected > directory. After visitors have logged in I am on part of my site I need to > find out which user it is that has logged in. I thought this > information was > stored in the $PHP_AUTH_USER variable, but when I print this yo

Re: [PHP] countries

2002-06-04 Thread José León Serna
Hello: > Apologies for being slightly OT, but has anyone got an array or list of > countries that I can use to populate a pull-down menu? http://phpclasses.warmafrica.com/browse.html/package/406.html This could be useful. Best Regards. QaDRAM

Re: [PHP] PHP_AUTH_USER

2002-06-04 Thread Christopher Riordan
Set a Cookie then you can pull it out that way. PHP_Auth is based upon Cookies from what I was able to figure out. Chris - Original Message - From: "Fifield, Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 9:59 AM Subject: [PHP] PHP_AUTH_USER > I have a b

RE: [PHP] Re: Cyber Cafe software

2002-06-04 Thread Steve
What your looking for is more of a router/switch management software. If that doesn't do it for you, then you might want to look into a web proxy. Configure the reporting per your requirements from your earlier post and require that the user to log in before getting 'out'. You might try squid. Ch

[PHP] Ho to write output of sql query to txt file?

2002-06-04 Thread andy
Hi there, I am trying to get only records out of a table mathing a query. This should be piped into a textfile. My problem is that I have to transmit this records to a new machine. So the output should be a kind of sql commands which I could run with phpadmin or similar to import them to the othe

RE: [PHP] Ho to write output of sql query to txt file?

2002-06-04 Thread Jay Blanchard
[snip] I am trying to get only records out of a table mathing a query. This should be piped into a textfile. My problem is that I have to transmit this records to a new machine. So the output should be a kind of sql commands which I could run with phpadmin or similar to import them to the other db

Re: [PHP] Ho to write output of sql query to txt file?

2002-06-04 Thread andy
Original question: > [snip] > I am trying to get only records out of a table mathing a query. This should > be piped into a textfile. My problem is that I have to transmit this records > to a new machine. So the output should be a kind of sql commands which I > could run with phpadmin or similar

RE: [PHP] Ho to write output of sql query to txt file?

2002-06-04 Thread Jay Blanchard
[snip] I did read on mysql.com and your article. Than I tryed to transfer the datasets. Export worked ok. The textfile contains the records. Import message: Query OK, 35 rows affected (0.04 sec) Records: 35 Deleted: 0 Skipped: 0 Warnings: 630 The warning already tells it. the datasets are tota

Re: [PHP] Logic -- conditional statements

2002-06-04 Thread Analysis & Solutions
On Tue, Jun 04, 2002 at 04:40:26AM +0400, Ricardo Fitzgerald wrote: > > I'm trying to echo a neat table I've GOT to bust your chops. That table and your code are anything BUT neat. For neat, you need to put tags to close each cell. Also nest your code properly... if ($value2 ==0) {

[PHP] multisite hit counter, includin session statistics

2002-06-04 Thread Martin Smetak
Hi! I want to write some multisite hit counter, but including session statistics. Anyone knows how to do that? I mean: I need to place some link on the page, on not allways php enabled site - probably in form of blank image, which will run script on my server. Ex.: http://my_serv.org?site=0011";>

Re: [PHP] Cronjob security

2002-06-04 Thread Analysis & Solutions
On Tue, Jun 04, 2002 at 09:51:18AM -0400, SP wrote: > Or you could do this to make the page only accessable to you. > http://www.mysite.com/cronpage.php?secretpassword=iud88383 You could also use .htaccess or checking $_SERVER['REMOTE_ADDR'] to see that the request is coming from your server. O

[PHP] Re: php IDE for linux

2002-06-04 Thread J Smith
Quanta is for KDE, too, not GTK. J Henrik Hansen wrote: > [EMAIL PROTECTED] (Pedro Jorge Dias Cardoso) wrote: > > > please tell me a good PHP editor for linux, wich one you prefer. > > or a package for PHP in Xemacs. > > I saw recently that phpedit comes out on linux now thats a good > ed

[PHP] HTTP_RAW_POST_VARS

2002-06-04 Thread Daniel Kushner
This variable isn't getting populated! Environment: PHP 4.1.2 Linux Apache always_populate_raw_post_data is on (php.ini). Any ideas? --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MacOSX / php.ini newbie question

2002-06-04 Thread 1LT John W. Holmes
Did a php.ini-dist or php.ini-recommended file come with your installation files? Locate those, edit them accordingly, and save it as php.ini in /usr/lib/ ---John Holmes... - Original Message - From: "Verdon Vaillancourt" <[EMAIL PROTECTED]> To: "Peter" <[EMAIL PROTECTED]>; <[EMAIL PROTE

Re: [PHP] PHP_AUTH_USER

2002-06-04 Thread 1LT John W. Holmes
> I have a bunch of pages on my site inside an apache .htaccess protected > directory. After visitors have logged in I am on part of my site I need to > find out which user it is that has logged in. I thought this information was > stored in the $PHP_AUTH_USER variable, but when I print this varia

[PHP] Secure File Upload

2002-06-04 Thread Christoph Starkmann
Hi There! When uploading a file with PHP, AFAIK I can only control what will be stored on the server. So if someone sends me 100 MB, these will be deleted immediately. But, unfortunately, the traffic is produced nevertheless. Is there any way to check the file size before uploading the file or an

Re: [PHP] MacOSX / php.ini newbie question

2002-06-04 Thread Verdon Vaillancourt
Hi John, Thanks for answering. Apparently not. I have tried both the builds provided by Marc (well respected) at http://www.entropy.ch/software/macosx/ and the default build included with Apple's MacOSX (10.1.4). Neither include these files. Marc says that the file is not included and just instru

Re: [PHP] multisite hit counter, includin session statistics

2002-06-04 Thread 1LT John W. Holmes
http://www.yourserver.com/image.php?ID=xxx";> Do what you need to do with the PHP code as far as keeping a count of visitors, etc, and then create an image header and send it the data for a 1x1 pixel transparant image. Got a question for everyone else, b/c I'm not sure on this. If I have a link

Re: [PHP] multisite hit counter, includin session statistics

2002-06-04 Thread Martin Smetak
http://www.yourserver.com/image.php?ID=xxx";> Well, how can this help me? This is the way I need to use the counter on web page, it solves nothing. I need the same thing u are asking to, but this way it doesn't work. But there are counters-sites that uses this method(img) producing session statis

RE: [PHP] PHP_AUTH_USER

2002-06-04 Thread Fifield, Mike
Correction Redhat7 :-) Got it working thanks for all the help! -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 9:36 AM To: Fifield, Mike; [EMAIL PROTECTED] Subject: Re: [PHP] PHP_AUTH_USER > I have a bunch of pages on my site inside a

Re: [PHP] HTTP_RAW_POST_VARS

2002-06-04 Thread Philip Olson
A bug existed in 4.1.x regarding this directive, and was fixed in 4.2.0. Sorry I can't give any specifics (as I've forgotten them) but see the changelog: http://www.php.net/changelog Regards, Philip Olson On Tue, 4 Jun 2002, Daniel Kushner wrote: > This variable isn't getting populated!

[PHP] proxy looses cookie

2002-06-04 Thread Emiliano Marmonti
Dear PHP-People: Anybody knows why when I configure in my Explorer that uses a proxy, the value of the cookie that I has set with setcookie(...) is lost. When I disable the proxy, the cookie value is remained. Anybody has had the same problem? Thanks a lot. Emiliano Marmonti

Re: [PHP] Alguine me puede Ayudar...S.O.S...mi PHP no sube .....!!!!

2002-06-04 Thread Gregory Watson
Ok, here's that email in English, if anyone can help this guy... I can't unfortunately. "Hello It is that I have problems so that works PHP in a servant NT 4,0 with IIS 3,0 and this PHP does not work to see. 4.2.1) since when doing some of the examples that no encloses (codigos) works. Hicela pro

Re: [PHP] PHP_AUTH_USER

2002-06-04 Thread 1LT John W. Holmes
And the solution was? remember, other people actually search the archives before they post, so giving the solution to your problem will help those people out. (Even if it was something simple) ---John Holmes... - Original Message - From: "Fifield, Mike" <[EMAIL PROTECTED]> To: "'1LT John

Re: [PHP] multisite hit counter, includin session statistics

2002-06-04 Thread 1LT John W. Holmes
No problem bud, sorry I tried to help. Anyhow, this does work, you just do not know how to write image.php so that it returns the correct data for an image counter. maybe i misunderstood your first email, but I thought you were looking for a "hidden" way of keeping track of page hit counts and us

[PHP] Re: php IDE for linux

2002-06-04 Thread Henrik Hansen
[EMAIL PROTECTED] (J Smith) wrote: > Quanta is for KDE, too, not GTK. > you are right I was thinking about glimmer :) but kate,quanta for kde then :) -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP_AUTH_USER

2002-06-04 Thread Fifield, Mike
The information is stored in the $PHP_AUTH_USER variable but only appears to be accessible while you are viewing a page that is protected by that .htaccess file. To make it available to other pages I assigned $PHP_AUTH_USER to a session variable. :o) -Original Message- From: 1LT John W

Re: [PHP] Alguine me puede Ayudar...S.O.S...mi PHP no sube .....!!!!

2002-06-04 Thread Josué Figueira Machado
Qual o erro que você está recebendo? Qual o módulo que você está usando? CGI ou SAPI? Veja que se você está usando o módulo ISAPI, ele não funciona com IIS 3.0. Você terá que instalar o Option Pack 4. Aqui vai a informação do install.txt: "For the ISAPI module, an ISAPI 4.0 compliant Web serve

Re: [PHP] Alguine me puede Ayudar...S.O.S...mi PHP no sube .....!!!!

2002-06-04 Thread Josué Figueira Machado
Sorry, this was meant to go off-list. At 01:38 PM 6/4/2002 -0400, Josué Figueira Machado wrote: >Qual o erro que você está recebendo? Qual o módulo que você está usando? >CGI ou SAPI? > >Veja que se você está usando o módulo ISAPI, ele não funciona com IIS 3.0. >Você terá que instalar o Option

FW: [PHP] MacOSX / php.ini newbie question

2002-06-04 Thread Clay Loveless
Verdon, Maybe you didn't see my response to your message yesterday, since I saw a few more posts from you after I replied wondering where you can get a php.ini file. Just go to http://www.php.net/downloads Download the .tar.gz file for the version you're using from entropy.ch Within, you will

Re: [PHP] MacOSX / php.ini newbie question

2002-06-04 Thread Verdon Vaillancourt
Thanks Clay :) got it! On 6/4/02 1:49 PM, "Clay Loveless" <[EMAIL PROTECTED]> wrote: > Verdon, > > Maybe you didn't see my response to your message yesterday, since I saw a > few more posts from you after I replied wondering where you can get a > php.ini file. > > Just go to http://www.php.

[PHP] RE: notice:undefined variable

2002-06-04 Thread Michael Davey
OK - couple of things first: a) The PHP mailing list is for programmers of PHP looking for help making their own scripts - not for people who want support for implementing someone else's script. There is a link on the site where I found a copy of your script offering support, this is where you s

[PHP] Re: notice:undefined variable

2002-06-04 Thread Michael Davey
Ooops, now I feel silly - sent this to the wrong list! Hangs head in shame! :-) "Michael Davey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > OK - couple of things first: > > a) The PHP mailing list is for programmers of PHP looking for help making > their o

[PHP] Can't Connect to INFORMIX DB

2002-06-04 Thread Gastón
Hi, I need some help (or maybe a lot), to get PHP connecting to my Informix DB. I'm pretty new to PHP, and i don't have a clue of what i'm doing wrong. I'm using IIS 4.0 under Win NT 4.0. with PHP 4.2.1 I've tried to connect throw ODBC driver, and directly from native functions but both fail. Th

Re: [PHP] using stdin in php

2002-06-04 Thread Jason Wong
On Thursday 30 May 2002 08:55, [EMAIL PROTECTED] wrote: > Could somebody look at this a tell me way it does not set the > password correctly. I know it has to run at root this has been > handled. > I think my problem is with --stdin. It sets a password but it does not > set it correctly > > $

[PHP] General IIS Implementation Question

2002-06-04 Thread Dennis Moore
I have written an PHP application using LAMP. However, I have a client who wants me to install the application on his Win2K server. My application uses PHP sessions with trans-SID enabled. I remember reading on this list where people were having problems getting PHP on Windows to work. I do

[PHP] findin colors in gif files

2002-06-04 Thread johannes reichardt
hi everybody, i am new to this list & php and i have a big question that i would love to be answered ;) i have a small gif file that has a part in #ff3366 colored - so what i thought is to do a mean hack for my website: instead of opening all images in a graphicseditor and change the color manual

Re: [PHP] countries

2002-06-04 Thread Michael Cronström
What about this? Michael Cronstrom Web Inventor "AF","Afghanistan"; "AL","Albania"; "DZ","Algeria"; "AS","American Samoa"; "AD","Andorra"; "AO","Angola"; "AI","Anguilla"; "AQ","Antarctica"; "AG","Antigua and Barbuda"; "AR","Argentina"; "AM","Armenia"; "AW","Aruba"; "AU","Australia"; "AT","Austri

Re: [PHP] countries

2002-06-04 Thread Analysis & Solutions
On Tue, Jun 04, 2002 at 09:52:23PM +0200, Michael Cronström wrote: > "TP","East Timor"; The ISO met in May and changed this code to "TL" --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layouts

[PHP] finding colors in gif files

2002-06-04 Thread johannes reichardt
sorry- last mail i forgot the gif file, here it is though: also the complete code i got so far: "; $filetext1 = implode("",(@file("vcd_1.gif"))); // $filetext1 = bin2hex($filetext1); $newfiletext1 = ""; for ($i = 0; $i < strlen($filetext1); $i++) { $currchar = substr($filetext1, $i, 8); $newfi

[PHP] PHP as HTML

2002-06-04 Thread Tom Ray
Hey there- I'm trying to use an .htaccess file to parse .php files as .html does anyone know how to do this? It doesn't work with the same structure as parsing the .shtml files. any suggestions would be great. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP as HTML

2002-06-04 Thread Kevin Stone
AddType application/x-httpd-php .html AddType application/x-httpd-php .htm - Original Message - From: "Tom Ray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 2:41 PM Subject: [PHP] PHP as HTML > Hey there- > > I'm trying to use an .htaccess file to parse .php

[PHP] problems with attachment to email for mail() function

2002-06-04 Thread Dave
have a form where user uploads "attachment" and provides email address and a brief note regarding the attachment. The below script should grab all that and email the note with the attachment to our target user. Email appears with text portion and attachment icon, but no attachment (Outlook 2000)

Re: [PHP] PHP as HTML

2002-06-04 Thread Richard Heyes
"Tom Ray" <[EMAIL PROTECTED]> wrote: > I'm trying to use an .htaccess file to parse .php files as .html does anyone > know how to do this? It doesn't work with the same structure as parsing the > .shtml files. Assuming you're using the module version, add this into your .htaccess file:

RE: [PHP] General IIS Implementation Question

2002-06-04 Thread Peter
Hi There! I'm running wink2 with php and apache, I've found no problems with this and have not had any issues that have found their way to the surface yet I did try running php & IIS on here how ever I found that IIS (for some reason ... most likely me) was cutting out at a maximum of 10 conn

[PHP] resolution

2002-06-04 Thread Doron
is it possible to check the visitors's resolution with php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] resolution

2002-06-04 Thread Martin Towell
I think this was asked recently by someone else You need to use javascript/vbscript to grab the dimensions then pass it to php php is server side and doesn't know anything about the client unless it's told about it HTH Martin -Original Message- From: Doron [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray
I tried this, and it just prompts me to download the file from the server. I can't see what the issue is. - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 5:35 PM Subject: Re: [PHP] PHP as HTML > AddType application/x-htt

[PHP] Creating pop-up window and passing variable to it?

2002-06-04 Thread Igor Portnoy
How can I create a pop up window in my index.php (for example) when user clicks on the link and pass value of the variable from my index.php to this new window?

RE: [PHP] Creating pop-up window and passing variable to it?

2002-06-04 Thread Martin Towell
function myopen() { window.open("foobar.html?var1=&var2="); } click for new window -Original Message- From: Igor Portnoy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating pop-up window and passing

RE: [PHP] PHP as HTML

2002-06-04 Thread Peter
Tom, this does work fine... doing what Kevin says... ie the AddType application/x-httpd-php .html AddType application/x-httpd-php .htm is PHP installed as a module or cgi ver? Cheers -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 5 June 2002 9:49 AM To: Ke

Re: RE: [PHP] Creating pop-up window and passing variable toit?

2002-06-04 Thread Jason Soza
Couldn't you also do: Link I think you can subsitute "Resource Window" for "_blank" and get the same effect. HTH Jason Soza - Original Message - From: Martin Towell <[EMAIL PROTECTED]> Date: Tuesday, June 4, 2002 3:55 pm Subject: RE: [PHP] Creating pop-up window and passing variable

RE: RE: [PHP] Creating pop-up window and passing variable to it?

2002-06-04 Thread Martin Towell
Depends if you want to have more control over the window that gets open If you don't mind what the window looks like, use the method Jason mentioned. If you want to set the size or turn on/off the status bar/tool bar/etc (to name a few) then use the javascript version -Original Message-

Re: [PHP] countries

2002-06-04 Thread Justin French
Thanks! I found another one (minus two char codes)... but this looks more comprehensive. Justin on 05/06/02 5:52 AM, Michael Cronström ([EMAIL PROTECTED]) wrote: > What about this? > > Michael Cronstrom > Web Inventor > > "AF","Afghanistan"; > "AL","Albania"; > "DZ","Algeria"; > "AS","Americ

Re: [PHP] countries

2002-06-04 Thread Eugene Lee
Why not go to the source? http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html -- Eugene Lee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] User Authentication

2002-06-04 Thread Jule Slootbeek
Hey guys, What is the best way for user authentication (now i'm talking about the most secure and easiest way). Now i've been using sessions, and i was wondering if cookies were better and easier... any thoughts? thanks, Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net

  1   2   >