Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-11 Thread * RzE:
*Always* validate your data. If you validate your data and never trust anything which comes from the client side of the connection, your problem goes away. I mean, you wouldn't pass user data to exec() or fopen() without some serious checking, would you? ;) Sure, PHP could try to prevent

Re: [PHP] Creating an array with a file

2002-02-11 Thread DL Neil
Scott, I am seeking some thoughts on if this is the way I should tackle this problem. I have two files, both of them tab delimited text files that I need to combine and then output a new file. My idea was to put both files in an array, calling the fields I need, i.e. $field[0], $field[1]

[PHP] Help with my image

2002-02-11 Thread hugh danaher
Help! I have attached the code with which I am having difficulty (I have also attached the php configuration of my host provider). What is happening is that I can call up a jpeg file from ./maps and see that it makes it through to the next page, and I can then call the next jpeg file in the

[PHP] how can i pass a javascript variable into a PHP variable?

2002-02-11 Thread Simon De Deyne
Hi, does anyone has an idea and example how to get the value of a js variable into a PHP variable, preferably working with sessionvariables or a hiddenform? thank you! Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to get IP address?

2002-02-11 Thread Balaji Ankem
Hi friends, I would like to get or extract the IP address from the URL in to a variable. How can I do that? Any help very appreciable. Thanks in advance -Balaji **Disclaimer Information contained

[PHP] Printing from a PHP program

2002-02-11 Thread dennis lanigan
Hello, I'd like to send prints from a PHP program but I see there are Printer Functions only for Windows (http://www.php.net/manual/en/ref.printer.php). I'm running on Linux and would like to stay in that environment. Any suggestions on automated printing under Linux? Dennis

[PHP] Making apps

2002-02-11 Thread LaserJetter
I remeber a while ago there was a question asking if you could make standalone applications but written in PHP rather than VisualBasic or C etc and somebody replied with a website which could help. Could someone re-post the message please! I can't find it in the archives! I think GTK might be

[PHP] How to pass URL??

2002-02-11 Thread Balaji Ankem
How to pass the current URL to this function? parse_url (string url) This function call is in calling file ... say some http://10.145.2.68/auto/test.php test.php contains the parse_url funcction. I want to pass the same URL to this function. Because IP address changes every time.

[PHP] IP - URL

2002-02-11 Thread Balaji Ankem
No Renze, what I really want is in the calling php file itself I want to get the IP address. Say some test.php..I call this file like http://10.145.2.23/test.php I want to get 10.145.2.23 in test.php file itself. I think parse_url will help me. But I don't know how to pass the current

[PHP] i need a free php/mysql host with no ads!

2002-02-11 Thread Balazs Laszlo
Hi! I need a free php/mysql host with no ads! Thanks for your answer! __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] i need a free php/mysql host with no ads!

2002-02-11 Thread Liam MacKenzie
Okay, you're looking for somewhere to try out your PHP and MySQL skills, correct? I can host these for you on my server, I'm preparing to be a proper host for these things, but not yet ready, therefore there may be some problems. Send me an email back (make sure it doesn't go to the PHP mailing

RE: [PHP] i need a free php/mysql host with no ads!

2002-02-11 Thread Navid Yar
Ok, I don't need a server, as I have plenty. But I just had to say that we need more people like you in our world. You're a very nice guy, Liam. Take it easy... :) -Original Message- From: Liam MacKenzie [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 4:19 AM To: Balazs

[PHP] Re: cookie problem

2002-02-11 Thread Hasan Niyaz
Hi all, Perhaps some one can help me. If I send a cookie like setcookie(+ACI-cookie+AF8-agtpasswd+ACI-,+ACQ-form+AF8-agent+AF8-pass, time()+-1200, +ACI-/+ACI-)+ADs- it does not work on the terminal which has a new version of windows 2000 and with IE6. The browser does not store the cookie.

[PHP] Solaris 2.6 make problem - php_network.h:47: parse error before ` socklen_t'

2002-02-11 Thread Mikael Petterson (ERA)
I´m using [EMAIL PROTECTED] since php-install seems dead :-) Hi, I am using: * SunOS wcsw707 5.6 Generic_105181-26 sun4u sparc SUNW,Ultra-60 * php-4.1.1.tar.gz * apache_1.3.23 I am trying to use DSO in apache. I have done: ./configure --prefix=/home/eraonel/apache_1.3.23

[PHP] FATAL ERROR

2002-02-11 Thread Jérome Moisy
Hy, I have install this weekend PHP 4.10 and Microsoft SQL Server Developper on Windows XP professionnal. I use IIS for the web server. When I test the Web Site I have this message: FATAL_ERROR unientify command mssql_connect(); Anyone know what does it means. Thanks -- PHP General

Re: [PHP] IP - URL

2002-02-11 Thread Girish Nath
Hi $HTTP_SERVER_VARS[SERVER_ADDR] ? Girish -- www.girishnath.co.uk - Original Message - From: Balaji Ankem [EMAIL PROTECTED] To: * RzE: [EMAIL PROTECTED] Cc: Php-General [EMAIL PROTECTED] Sent: Monday, February 11, 2002 10:00 AM Subject: [PHP] IP - URL No Renze, what I really want

[PHP] Libre !!!!

2002-02-11 Thread Nicolas Costes
Salut, olivier, ca va ??? bon, tiens, une adresse qui m'est arrivé ce matin : http://interactif.lemonde.fr/article/0,5611,2861-7110-261386-0,FF.html Dis, une idée pour les cours de Linux que tu donne aux AMI's : Fais leur donc installer LFS (Linux From Scratch, http://linuxfromscratch.org )

Re: [PHP] Libre !!!!

2002-02-11 Thread Liam MacKenzie
Ay! Me no speak no French! - Original Message - From: Nicolas Costes [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 11, 2002 9:36 PM Subject: [PHP] Libre Salut, olivier, ca va ??? bon, tiens, une adresse qui m'est arrivé ce matin :

[PHP] PHP, SQL and all that stuff...

2002-02-11 Thread Liam MacKenzie
Ok guys, I've been pondering over setting up a free PHP/SQL hosting service for some time now, but never really actually done it. It looks like just the mention of it got some seriously positive feedback, so I'm keen to actually do it properly. But... I need some help with security. With a

[PHP] ereg

2002-02-11 Thread Christoph Starkmann
Hi there! Is there any mean to tell PHP to use ereg etc. greedy? Thanx, Kiko - It's not a bug, it's a feature. [.nfq] christoph starkmann tel.: 0821 / 56 97 94 34 fax.: 0821 / 56 97 94 38 http://www.fh-augsburg.de/~kiko ICQ: 100601600 - -- PHP General Mailing List

Re: [PHP] how can i pass a javascript variable into a PHP variable?

2002-02-11 Thread val petruchek
You can add hidden field in form and before posting set it value to js variable value that can be easily used by PHP script Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Making apps

2002-02-11 Thread David
Laserjetter said something on 11 Feb 2002, in php.general: I remeber a while ago there was a question asking if you could make standalone applications but written in PHP rather than VisualBasic or C etc and somebody replied with a website which could help. Could someone re-post the message

RE: [PHP] escaping ?

2002-02-11 Thread Jerry Verhoef (UGBI)
this should work $contents = str_replace(?xml version=\1.0\?, , $contents); btw. a welformed xml documented uses a space between 1.0 and ? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 11:07 PM To: 'Steven Jarvis'; [EMAIL

[PHP] help - to get client IP

2002-02-11 Thread mlists123
Someone please help me of how I could get the client IP using PHP, when i use $remote_addr it gives me the server IP, Kindly help how I could get the IP of clients who are connected to my server or website. Regards Kris

Re: [PHP] help - to get client IP

2002-02-11 Thread val petruchek
$remote_addr returns exactly client ip; but if user is behind proxy then $remote_addr will return you proxy ip and you can do nothing with it Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Error in PHP installation/execution

2002-02-11 Thread Maurice Barnes
I am getting the following error after upgrading from PHP4.0.3 to PHP4.1.1 on Apache 1.3.9 and RedHat Linux 6.1. Complied as a dynamic module. Cannot load /usr/modules/libphp4.so into server: /usr/modules/libphp4.so: undefined symbol: ssl_onceonlyinit Could anyone indicate why I may possibly be

[PHP] Airport location database

2002-02-11 Thread Marko Karppinen
This may be slightly off the topic, but I imagine there may be someone interested here. I've just put together an SQL table from the data of a little more than 8000 airports around the world. It has most of the stuff you'd find useful, including the three-letter airport codes, two-letter country

Re: [PHP] backslashes added to POST value

2002-02-11 Thread Michael Sims
At 12:34 PM 2/11/2002 -0600, news.php.net wrote: My post values have backslashes added to them (such as to protect a double-quote). All the magic_quote_* settings are turned off in php.ini. Any ideas why this is happening? As someone else has already mentioned, this setting could be coming from

Re: [PHP] MsSQL PASSWORD()

2002-02-11 Thread Michael Sims
At 06:34 PM 2/11/2002 +0200, val petruchek wrote: Hello, list! I'm looking for analog of Mysql password() func in MsSQL. My goal is not to store certain field (i.e. user passwords) as a clear text. I don't know the equivalent off the top of my head, but a coworker of mine has used it before.

[PHP] Includes in your document root (was: Re: [PHP] MsSQL PASSWORD())

2002-02-11 Thread bvr
In that case, forget what I said ';) But since you can't say this enough, here is it once more: *** Always remember to keep those includes *out of* your document root; This prevents accidental displaying of source code or (which I heard on this list could even be worse) out-of-context

RE: [PHP] A MYSQL COUNTER

2002-02-11 Thread Matthew Walker
This is too much for a text file. You should definitely use MySQL for this. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP] A

Re: [PHP] REMOTE_ADDR probs

2002-02-11 Thread Michael Sims
At 09:41 AM 2/11/2002 -0600, cyberskydive wrote: $user = getenv('REMOTE_ADDR'); [...] It works great on windows running apache php 4.0.1 but on solaris php 4.06 if I add a print($first); it returns the servers IP address, but everywhere else it returns the users IP address. On the Solaris

[PHP] Funny stiff in my logs

2002-02-11 Thread Scott Haneda
Hello, I am running only php with apache on a OSX 10.1.2 machine, in my apache error log, I have some odd lines in there statfs failed because: No such file or directory Here is a summarization of where I am at now First I did a grep -r 'statfs\ failed' / To see if any files on the

[PHP] Re: Implement @-domains with PHP?

2002-02-11 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Christian Blichmann) wrote: Anybody got some code how to access the first part of a URI (the string just before the @)? I don't want to use HTTP-authentication and I'm using Win2k with IIS as CGI... Example: http:[EMAIL

[PHP] can I sandwich html docs with PHP

2002-02-11 Thread Peter J. Schoenster
Hi, With mod_perl I can set a handler to handle any documents so it's quite easy to dump a database where each select output is saved to a file. I can have my handler take any file in the output directory and create the html page on the fly (where the contents of the file can be manipulated,

Re: [PHP] can I sandwich html docs with PHP

2002-02-11 Thread Michael Sims
At 04:46 PM 2/11/2002 -0600, Peter J. Schoenster wrote: How can I do this with PHP? I want the urls to be like: http:://www.mydomain.com/page.html http:://www.mydomain.com/page2.html http:://www.mydomain.com/page3.html etc. One motive is to be sure that no search engines are discouraged from

Re: [PHP] Novice question - please help

2002-02-11 Thread Adrian Murphy
use str_replace() instead of ereg_replace() ...in the same way described - Original Message - From: brendan conroy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 11, 2002 9:15 PM Subject: [PHP] Novice question - please help Hi, THANK YOU for reading this.I would

[PHP] image generation issues

2002-02-11 Thread Adrian Murphy
Hi, I'm using the code in the manual to draw text on a png. but Its not working - ImageString() works but not ImageTTFText() I uploaded arial.ttf from windows to fonts/ folder Any Ideas: as a side note: PNG's - any real disadvantage to using them instead of gifs - not withstanding the

RE: [PHP] configuring webhost

2002-02-11 Thread mm fernandez
we're using a Windows 2000 server here... So after we install PHPTriad, what configurations do we need to make? //mm fernandez From: Rick Emery [EMAIL PROTECTED] To: 'mm fernandez' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] configuring webhost Date: Mon, 11 Feb 2002 08:38:28 -0600

[PHP] file reading and array's

2002-02-11 Thread Scott
Hi gang: In my constant effort to improve my perl conversion project, I have a question regarding file reading. I am taking two files and combining them in an array and then writing out a new file. Is there a way to: a)strip out the first line of the second file b)test for conditions based on

Re: [PHP] configuring webhost

2002-02-11 Thread Liam MacKenzie
http://www.e-gineer.com/instructions/index.phtml Follow this man's instructions carefully and you'll have your system set up in no time! It's an extremely good tutorial. Good luck, - Liam - Original Message - From: mm fernandez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL

RE: [PHP] image generation issues

2002-02-11 Thread Martin Towell
when you say it doesn't work, do you mean that you get an error message or it just doesn't write the text to the image? -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: [PHP] image generation issues

Re: [PHP] image generation issues

2002-02-11 Thread hugh danaher
Adrian, If you're using the code displayed, you need to use $im before you destroy it. If you want to deal with it as a .png then use: ImagePNG($im,some_name.png,100); and then pick up the file anytime using img src=some_name.png You can later remove it from the server using:

[PHP] Massive amounts of data to SQL

2002-02-11 Thread Liam MacKenzie
Hi everyone, I know this is a relatively simple question, but what would be the most efficient way of entering the contents of a large form (nearly 400 fields) into a MySQL database? Every day the form must be able Please provide an example script that I can use to refer to if you have time.

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
i get 'Could not read font in..' i set permissions to 777 on both file and folder - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Adrian Murphy' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 2:36 AM Subject: RE: [PHP] image generation issues when

[PHP] Re: Funny stiff in my logs

2002-02-11 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello, I am running only php with apache on a OSX 10.1.2 machine, in my apache error log, I have some odd lines in there statfs failed because: No such file or directory Here is a summarization of where I am at now First I

[PHP] Re: image generation issues

2002-02-11 Thread David Robley
In article 00ce01c1b36b$46c0d640$02646464@ade, [EMAIL PROTECTED] says... Hi, I'm using the code in the manual to draw text on a png. but Its not working - ImageString() works but not ImageTTFText() I uploaded arial.ttf from windows to fonts/ folder Any Ideas: as a side note: PNG's - any

RE: [PHP] image generation issues

2002-02-11 Thread Martin Towell
unfortunately, the unix php version I've got access to doesn't have support for TTFs :( but the Windows box does - I have to specify the full path to the font - try that and see if that helps. -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12,

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
tried everything suggested and still get 'could not read font' oh well thanx. - Original Message - From: hugh danaher [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 3:00 AM Subject: Re: [PHP] image generation issues Adrian, If you're using the code

[PHP] Form Data History

2002-02-11 Thread Steven Walker
Hi, I'm having some problems with form data disappearing and wondered if anyone has experience with this. On a secure server I'm using PHP to handle form data to collect personal information. If data is missing or incorrect, the user is alerted to 'go back'... but upon going back in history,

Re: [PHP] image generation issues

2002-02-11 Thread Adrian Murphy
Thanx for all the help.I discovered the STUPID little problem.my ftp software was set so it uploded .ttf in ascii instead of binary.all works now. thanks again - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 3:38 AM Subject:

[PHP] Cache Being Bad

2002-02-11 Thread nate
I have a text box on my page and a submit button. The text box value is whatever it grabs from the database. If the user deletes what is in the text box and puts in his own text, then hits submit, the script updates that field with whatever the user inputs. Problem is, after the user hits

Re: [PHP] Form Data History

2002-02-11 Thread Analysis and Solutions
Howdy Steven: Steven Walker wrote: If data is missing or incorrect, the user is alerted to 'go back'... but upon going back in history, all the data that was in the form is lost. This did not occur on my regular not-secure web server. Page caching. You can alter that through the header()

[PHP] My php goes poof.

2002-02-11 Thread Floyd Baker
Hi phpeople. Can anyone tell me why my php just stops working periodically? I have a win32/apache/php4.1/mysql set up. I can do things here for about an hour or so and then all of a sudden I get nothing but html remains. I need to take down apache and restart it for the php parsing to

Re: [PHP] My php goes poof.

2002-02-11 Thread Liam MacKenzie
I'd be willing to bet that it's a M$ thing! As it says in all the documentation, neither apache, mysql nor php were designed for M$ systems. Other than bag M$, I can't help you, sorry! ;-) - Original Message - From: Floyd Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

Re: [PHP] REMOTE_ADDR probs

2002-02-11 Thread cyberskydive
I will try to call with the other meythodds you suggested and see what happens. I may have not been really clear. on windows everythings working fine on solaris it logs the IP address as the users/visitors (on a nother page) but when using the code I included in my first post to check for

Re: [PHP] can I sandwich html docs with PHP

2002-02-11 Thread Peter J. Schoenster
On 11 Feb 2002, at 19:30, Michael Sims wrote: I'm not sure I really know what you're asking, but if you are asking if you can use PHP code within HTML files (with *.html extensions) then the answer is yes. If you're running Apache, add the following to your httpd.conf: Please disregard if

[PHP] function? variable?

2002-02-11 Thread Jason Whitaker
Is there a way to set a variable or is there a function that takes the information between the title tags and prints to the screen where you command? ei: //head //title // ?php // echo ?witakr home? // ? // //LINK REL=stylesheet HREF=css/sCSS.css TYPE=text/css ///title ///head where as i would

Re: [PHP] Cache Being Bad

2002-02-11 Thread nate
Nevermind everyone. I was just being an idiot and fetching from the database BEFORE updating it. Well maybe this will at least help some people not make the same stupid mistake. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 11, 2002 8:19 PM

[PHP] Re: function? variable?

2002-02-11 Thread Jason Whitaker
I just saw something with my code there.. i have my link tag inside the title tag.. i will have to fix that :) -- Jason Whitaker Jason Whitaker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... : Is there a way to set a variable or is there a function that takes

[PHP] Calendar - loop 365 times?

2002-02-11 Thread Lauri Vain
Hello there, I have a task to modify a quite problematic calendar that wasn't created by me -- currently only weeks and months are shown (for that, all days of the week/month are looped through). For every day, 7 queries are done -- one for each table (there are different tables for weekly,

Re: [PHP] My php goes poof.

2002-02-11 Thread Floyd Baker
On Tue, 12 Feb 2002 14:25:17 +1000, you wrote: I'd be willing to bet that it's a M$ thing! As it says in all the documentation, neither apache, mysql nor php were designed for M$ systems. Other than bag M$, I can't help you, sorry! ;-) I have better docs... Mine say cross platform. g

Re: [PHP] Re: function? variable?

2002-02-11 Thread Keith V. (Vance Consulting LLC)
Can you be more specific? I am just guessing here but is this what you want: ? $title = home; ? html head title ? echo $title; ? /title /head body ? echo $title; ? /body /html Perhaps, I am not getting what you are asking for. On 11 Feb 2002 at 23:34, Jason Whitaker wrote: I just saw

Re: [PHP] Re: function? variable?

2002-02-11 Thread Steven Walker
Jason, If I understand your question, you want to display the contents of a variable to screen? Try this: html head title/title /head body ? $test_variable = this is a test; echo Here is what it says: $test_variable; ? /body /html Also note that you do not need

[PHP] preserving variable values across pages.

2002-02-11 Thread Andrew Slezak
Found this on the php.net, querying the PHP mailing list: test.php -- $blah=10; include whatever.php; whatever.php - echo The value of blah is: {$blah}; It just keeps the variable since it's global.. When ur using a function. It can be

[PHP] preserving variable values across pages.

2002-02-11 Thread Tehn Yit Chin
Hi all, If I have the following code, ?php global $some_var FORM action=next_page.php method=post type=submit name=submit value=foobar /FORM ? When the user hits the submit button, the value in some_var disappears? Is there a way of perserving the value in $some_var. thanks

Re: [PHP] preserving variable values across pages.

2002-02-11 Thread Keith V. (Vance Consulting LLC)
You could do it a number of ways. 1. Use a hidden input field in your form,. input type=hidden name=some_var value=? echo $some_var; ? 2. Put $some_var in a session variable. 3. Pass the value of some_var in the url. Each has it's advantages/disadvantages. Just remember that just because you

Re: [PHP] preserving variable values across pages.

2002-02-11 Thread Jason Wong
On Tuesday 12 February 2002 14:22, Tehn Yit Chin wrote: Hi all, If I have the following code, ?php global $some_var FORM action=next_page.php method=post type=submit name=submit value=foobar /FORM ? When the user hits the submit button, the value in some_var disappears?

Re: [PHP] a user_auth script. The Script

2002-02-11 Thread Jason Wong
On Tuesday 12 February 2002 07:11, Matthew Darcy wrote: spotted 1 error already missing the starting after the printf statment. Any more ? -Original Message- From: Matthew Darcy [mailto:[EMAIL PROTECTED]] Sent: 11 February 2002 23:09 To: Roy Cabaniss; php Subject: RE: [PHP] a

Re: [PHP] MsSQL PASSWORD()

2002-02-11 Thread val petruchek
My current project runs on Win2k, MsSQL 2k, and PHP 4.0.6 My problem is that i can not enable md5 extension because of Unable to load dynamic library 'c:\windows\php\extensions/php_mcrypt.dll' - The specified procedure could not be found. in Unknown on line 0 So,... Valentin Petruchek (aki