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 to

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

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 /td 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.: img

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

[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 editor (it

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

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 variable

[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

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

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

2002-06-04 Thread 1LT John W. Holmes
img src=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

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

2002-06-04 Thread Martin Smetak
img src=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

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

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

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

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

[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

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

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

[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

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

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

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 $cmd =

[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

[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

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,Austria; AZ,Azerbaidjan; BS,Bahamas; BH,Bahrain;

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 |

[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: ?php echo table width=600 border=1 wraptrtd; $filetext1 = implode(,(file(vcd_1.gif))); // $filetext1 = bin2hex($filetext1); $newfiletext1 = ; for ($i = 0; $i strlen($filetext1); $i++) { $currchar =

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

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

[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

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

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

[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
script function myopen() { window.open(foobar.html?var1=?= $var1; ?var2=?= $var2; ?); } /script a href=javascript:myopen();click for new window/a -Original Message- From: Igor Portnoy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:52 AM To: [EMAIL PROTECTED] Subject:

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:

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

2002-06-04 Thread Jason Soza
Couldn't you also do: a href=foobar.php?var1=1var2=2 target=_blankLink/a 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]

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,American Samoa; AD,Andorra;

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

RE: [PHP] User Authentication

2002-06-04 Thread John Holmes
Sessions use cookies as it is...so what do you really want to do...what do you want to protect? ---John Holmes... -Original Message- From: Jule Slootbeek [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 9:49 PM To: php-general Subject: [PHP] User Authentication Hey guys,

RE: [PHP] User Authentication

2002-06-04 Thread Jarrad Kabral
I wouldnt rely on cookies or standard sessions (which use cookies) as a means of security. You can use sessions, but make sure you have the ini_alter(session.use_cookies, 0); so that no cookies are used for the session id. This means you'll have to pass the session id in the querystring or

Re: [PHP] User Authentication

2002-06-04 Thread Jule Slootbeek
John Holmes wrote: Sessions use cookies as it is...so what do you really want to do...what do you want to protect? ---John Holmes... Oh ok, that explains it then... Well thanks for the info anyway. I was basically just wondering which method was reccommended.. Jule -- Jule

Re: [PHP] User Authentication

2002-06-04 Thread Analysis Solutions
Hi Jule: On Tue, Jun 04, 2002 at 09:48:36PM -0400, Jule Slootbeek wrote: 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... Regardless of what you do,

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

2002-06-04 Thread Curtis Gordon
This is how I do it. I fire a javascript when the link is clicked, which in turn submits a form targetting the page you openned (named of course). function donewpage(){ open window named mywindow submit form targetting mywindow blah blah blah } sorry to be so brief but the hockey

[PHP] error handler

2002-06-04 Thread Gerard Samuel
I got an error handler setup, and Im using trigger_error() to do certain things. function errorhandler($type, $msg, $file, $line) { switch ($type) { /* case E_NOTICE: $exit = FALSE; break; */ case E_USER_WARNING: pretty_error_display($msg);

[PHP] install php as CGI?

2002-06-04 Thread brian-phplist
how can i install php as CGI? Brian Feliciano EMC-Tech I know that there are people in this world who do not love their fellow man, and I hate people like that. - Tom Lehrer

Re: [PHP] findin colors in gif files

2002-06-04 Thread Tom Rogers
hi you will need to find the hex values for each individual number which i think should be (without the hash) 76763636 Tom At 05:06 PM 5/06/2002, johannes reichardt wrote: 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

Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray
you know, that's a good question. How would I determine that on the server? Peter wrote: 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

Re: [PHP] install php as CGI?

2002-06-04 Thread Pushkar Pradhan
./configure --prefix=/rstc/user1/erc/pushkar/php-4.0.6 --with-regex=system --enable-discard-path --enable-dbase Actually you just need one --enable-discard-path for security reasons, others are customized for my use and yes prefix is also a must. how can i install php as CGI?

Re: [PHP] PHP as HTML

2002-06-04 Thread Pushkar Pradhan
If you do a phpinfo() you get a columen Server API, mine lists CGI as it is what I installed php as. you know, that's a good question. How would I determine that on the server? Peter wrote: Tom, this does work fine... doing what Kevin says... ie the AddType application/x-httpd-php .html

[PHP] Passing variable to the next page

2002-06-04 Thread Igor Portnoy
Here is scenario that I am working on but have a problem. I have 10 thumbnail images on the page with information for them created from database. For example: + + + Some Image + + + Name of Image: Blah Author of

Re: [PHP] Passing variable to the next page

2002-06-04 Thread Pushkar Pradhan
Tag the variables onto the url: http://mysite.com/newpage.php?firstvar=somevaluesecondvar=othervalue;. for arrays ?layer[]=alayer[]=blayer[]=c. or use sessions. Here is scenario that I am working on but have a problem. I have 10 thumbnail images on the page with information for them

RE: [PHP] Passing variable to the next page

2002-06-04 Thread David Freeman
Here is scenario that I am working on but have a problem. I have 10 thumbnail images on the page with information for them created from database. (I am pulling more info about that image from database, but on this page I only display Name of Image and Author of image, the

Re: [PHP] PHP as HTML

2002-06-04 Thread Tom Ray
Thanks. I got the issue figured out. There was an .htaccess file in the root of the website that I had forgotten about, it was affecting everything due to it's bad config. Pushkar Pradhan wrote: If you do a phpinfo() you get a columen Server API, mine lists CGI as it is what I installed php

[PHP] Retrieving Info from Cookies

2002-06-04 Thread Tom Ray
I've been playing with cookies, and I've been able to write information to a cookie, but now what I want to do is pull that information from the cookie. Is there something special I need to do to pull that info or should I just be to get that data by delcaring a variable in the php script?

[PHP] Cookies?

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

[PHP] Apache+PHP+mod_perl configures ok, but Apache won't build

2002-06-04 Thread Dan Serban
Scenario: Red Hat Linux 7.3 minimal install (no X, no daemons except the bare essentials) Apache 1.3.24 source PHP 4.2.1 source mod_perl 1.26 source Steps taken: 1. /opt/src/apache_1.3.24/configure --with-layout=RedHat 2. /opt/src/mod_perl-1.26/perl Makefile.PL EVERYTHING=1 USE_APACI=1 3.

Re: [PHP] Secure File Upload

2002-06-04 Thread Lowell Allen
From: Christoph Starkmann [EMAIL PROTECTED] 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

[PHP] PHP.INI Lockdown

2002-06-04 Thread David Redmond
Hi All, Is there anyway to lockdown PHP so that only the INI file from C:\WinNT\ is used? Currently, you can place an INI file into the same directory as the php script your viewing through a browser and instead of loading the INI file located in the C:\WinNT\ directory, it will load the INI

Re: [PHP] Retrieving Info from Cookies

2002-06-04 Thread Tom Ray
when I do that it comes up with Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' Justin French wrote: you should be able to access it via $_COOKIE['name'], or what I do, $cookie = $_COOKIE['name']. Justin French on 05/06/02 2:19 PM, Tom Ray ([EMAIL

Re: [PHP] Retrieving Info from Cookies

2002-06-04 Thread Jason Wong
On Wednesday 05 June 2002 13:22, Tom Ray wrote: when I do that it comes up with Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' Justin French wrote: you should be able to access it via $_COOKIE['name'], or what I do, $cookie = $_COOKIE['name']. Justin

Re: [PHP] User Authentication

2002-06-04 Thread Jason Wong
On Wednesday 05 June 2002 10:05, Analysis Solutions wrote: Hi Jule: On Tue, Jun 04, 2002 at 09:48:36PM -0400, Jule Slootbeek wrote: 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

RE: [PHP] Converting non latin characters

2002-06-04 Thread Martin Towell
'ð' is an accented 'o' - just like these are: 'ò', 'ó', 'ô', 'õ', 'ö' I've never seen an 'o' accented that why before, so I have no idea how you're meant to pronounce it. But going from Tokyo then I guess it's pronounced oe as in toe I dunno what function (built-in or otherwise) you can use to

[PHP] Converting non latin characters

2002-06-04 Thread Andy
Hi there, I have a table containing cities of the world. Now I am running into problems because people are starting to complain that some mayor cities are not in the db like Tokyo. After checking my table I discovered that there lots of cities are written with some non latin characters. Tokyo

[PHP] Re: Cyber Cafe software

2002-06-04 Thread Steve Buehler
Bret Thanks for the reply. I put that message up on three list (PHP, MySQL, RedHat) and this has been the only reply. There are a lot of software packages that I found searching google.com, but they are all for cyber cafe's that have the computers all ready set up for people to log

Re: [PHP] Cronjob security

2002-06-04 Thread Edgard Berendsen
If you go to the URL I receive a mail telling me if anybody of my DB has birthday. Nothing special. Thanks! Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Sire: ... but I've read it is un-secure. Is this true? Depends. What happens if

[PHP] Bot?!

2002-06-04 Thread Martin Thoma
Hello! Perhaps you know the programms called Bot, which allows the user to ask questions just by writing it in natural speak or which guides the user in some process. I wonder if there is a (free?) solution of this somewhere in the net. Martin -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] email attachments and PHP

2002-06-04 Thread Henry
I was wondering if there is a way to attach files to emails sent via a PHP script. I just checked the 'mail functions' chapter of the php manual, but it doesn't seem to mention attachments. The attached files will come from the same server that php is running on BTW. check my reply and homegrown

RE: [PHP] keep alive refresh

2002-06-04 Thread okey okey
thanx for your reply I had already tryed that one but it didn't work. It's not the script which times out but rather the web server (apache), and I can't touch apache configuration. cheers mauro From: John Holmes [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Mauro' [EMAIL

Re: [PHP] Bot?!

2002-06-04 Thread Liam MacKenzie
And what exactly has this got to do with PHP? - Original Message - From: Martin Thoma [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 3:14 PM Subject: [PHP] Bot?! Hello! Perhaps you know the programms called Bot, which allows the user to ask questions just by

[PHP] File Appended can not be viewed properly in Windows

2002-06-04 Thread Manisha
Some tricky things are happening : Our local network environment : server - Win2K, my computer Win 98 and Linux Red Hat. I have map network drive to Linux and working on File Append / Write programs. I am creating the file in append / write mode. It is getting appended / created properly.

Re: [PHP] Bot?!

2002-06-04 Thread Martin Thoma
Well, the bot should work on a webpage and obviously php would be the best solution. And what exactly has this got to do with PHP? - Original Message - From: Martin Thoma [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 3:14 PM Subject: [PHP] Bot?! Hello!

Re: [PHP] Re: PHP Hex Numbers

2002-06-04 Thread Marek Kilimajer
You might consider using BCMath Arbitrary Precision Mathematics Functions cid:[EMAIL PROTECTED] Jason Teagle wrote: - Original Message - From: Jonathan Rosenberg [EMAIL PROTECTED] To: Jason Teagle [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, June 03, 2002 3:18 PM Subject: RE:

[PHP] Logic -- conditional statements

2002-06-04 Thread Ricardo Fitzgerald
Hi to all, I'm trying to echo a neat table with values from a form, depending on the values it echoes a table with one row with two or with three: Then I have conditional nested statements, to validate these variables and wrote the table with the proper values in each case, the problem is the

Re: [PHP] File Appended can not be viewed properly in Windows

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 15:20, Manisha wrote: Some tricky things are happening : But have nothing to do with PHP. Our local network environment : server - Win2K, my computer Win 98 and Linux Red Hat. I have map network drive to Linux and working on File Append / Write programs. Are you

Re: [PHP] Download Script - Newbie Alert

2002-06-04 Thread Marek Kilimajer
You can also check $HTTP_REFERER, it's much simpler Marek Clay Loveless wrote: Something else along these lines -- I really, really wish that more sites that use this method would test across multiple browsers and platforms. I agree with everything John is saying regarding testing

Re: [PHP] Writing IPTC tags

2002-06-04 Thread Ulf Wendel
Dirk Bonenkamp - Bean IT wrote: Just wanted to know if it's possible to write iptc tags with php, and, if so, how? http://www.php.net/manual/en/function.iptcembed.php Ulf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Download Script - Newbie Alert

2002-06-04 Thread John Holmes
That can be spoofed, though, and not all browsers set it, and will not stop anyone from just typing in the URL... http://www.example.com/files/mydoc.doc ---John Holmes... -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:58 AM To:

RE: [PHP] Cronjob security

2002-06-04 Thread John Holmes
You should put a check in your script to see if the mail has already been sent for the day and don't send another if it has. That way someone can't go to the page and hit refresh a bunch of times and cram your inbox full of mails. ---John Holmes... -Original Message- From: Edgard

[PHP] running php on console

2002-06-04 Thread Brian Feliciano
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? any help would be appreciated. thanks in advance.. I know that there are people in this world who do not love their fellow man, and I hate people

RE: [PHP] Logic -- conditional statements

2002-06-04 Thread Naintara Jain
The problem here is that you have defined three different variables $value1,$value2,$value3. Keep only one variable (say,$valueChk) that can take values 1,2 or 3. Then check for the condition. And there's another mistake in the script, you are checking ---if ($value2 ==0)--- twice, you probably

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

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

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 Source

[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

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 empty

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

  1   2   >