Re: [PHP] Re: checkboxes

2001-10-27 Thread Arvydas V.
I have another idea - to use javascript to change hidden value (input type=hidden id=chkbox value=0) When you check this box - javascript changes hidden value to 1 and submits form ( function chkboxAndSubmit() { var box_name = document.GetElementById('box_name'); var chkbox =

[PHP] SMTP

2001-10-27 Thread Lucas Chan
Hi, I have PHP running on my Debian (unstable distribution) box. I'm trying to generate an email via the mail() function. It keeps failing because I do not have a properly installed/configured SMTP daemon on my machine. This is despite the fact that I have modified the SMTP variable in the

[PHP] help with dbase!!!

2001-10-27 Thread Alejandro Viana
I'm trying to read a record from a dbase data base so I've previously opened it successfully. The problem is that I call the function dbase_get_record, but it returns no records. The database is ok because I call the funcion dbase_numfields and dbase_numrecords and they give me correct

[PHP] Re: help with dbase!!!

2001-10-27 Thread Lucas Chan
I don't really know anything about dbase. But don't you need to tell it which tables and fields you wish to retrieve? Regards, [ lucas ] Alejandro Viana [EMAIL PROTECTED] wrote in message 001e01c15ec9$d3d566a0$9db2243e@miordenador">news:001e01c15ec9$d3d566a0$9db2243e@miordenador... I'm

Re: [PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-27 Thread ~~~i LeoNid ~~
On Fri, 26 Oct 2001 20:54:00 -0400 impersonator of [EMAIL PROTECTED] (Gerard Onorato) planted I saw in php.general: Hi, Another solution I have used when I have to do conditional includes which may cause the same page to be included twice Unfortunately, you can't include FUNCTION()

Re: [PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-27 Thread Kodrik
I include files in each other all the time, and some of them might call the same functions (like database functions). I just use a string in all function declaration with the name of the functions or set of functions in the file. if(!$function_test) { $function_test=1; function test() {

Re: [PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-27 Thread Tamas Arpad
Unfortunately, you can't include FUNCTION() conditionaly (well, you can, but then you can't use it out of this if():). Why only such dumn restriction, PHP developers? I think it's only true for php3 I use many many class definitions in php4 that are inluded conditionally in another classes'

[PHP] Replace text

2001-10-27 Thread Daniel Harik
Hello guys function replace_text_smiley(){ global $comment; // To add a relation between a text smiley a an image smiley do this: // $faces[text smiley here] = img tag to image smile here; $faces[:)] = IMG SRC=\emoticons/smile.gif\; $faces[:P] = IMG SRC=\emoticons/tongue.gif\; $faces[:D]

[PHP] RE: help with dbase!!!

2001-10-27 Thread Alejandro Viana
It has only 1 table . Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Replace text

2001-10-27 Thread Daniel Harik
Hello guys function replace_text_smiley(){ global $comment; // To add a relation between a text smiley a an image smiley do this: // $faces[text smiley here] = img tag to image smile here; $faces[:)] = IMG SRC=\emoticons/smile.gif\; $faces[:P] = IMG SRC=\emoticons/tongue.gif\; $faces[:D]

Re: [PHP] Replace text

2001-10-27 Thread Valentin V. Petruchek
What if pass some parameters to function - i mean not use global $comment but do like function replace_text_smiley($comment) - Original Message - From: Daniel Harik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 28, 2001 12:20 AM Subject: [PHP] Replace text Hello guys

[PHP] Multi-dimensional nested arrays in Smarty

2001-10-27 Thread Chad Guilette
I've asked a few questions before on Smarty here and I've worked through them but this one really has me. I checked the Smarty lists for answers and couldn't find a clear answer. Here is my problem. i want to do something to this effect {section name=loop_index loop=$DATA_ARRAY}

[PHP] HELP PLEASE!! Get query error when inserting into MySql

2001-10-27 Thread robby
Hi There, I have a query whenever I try to insert something into a mysql table. This is the code I am using: ? $host1 = gethostbyaddr($REMOTE_ADDR); $date = date(Y-m-d h:i:s); $link = mysql_connect($host, $user, $passwd); mysql_select_db($database, $link); $sql = INSERT INTO vcstats VALUES('',

Re: [PHP] HELP PLEASE!! Get query error when inserting into MySql

2001-10-27 Thread Valentin V. Petruchek
What if you single quotes like this: '$REMOTE_ADDR' ??? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 27, 2001 3:20 PM Subject: [PHP] HELP PLEASE!! Get query error when inserting into MySql Hi There, I have a query whenever I try to insert

[PHP] I'm not username, log me out....

2001-10-27 Thread Andy Lewis
Hello All, I'm trying to use php sessions to logout a user that may be sharing a computer with another user. In other words. I don't want user1 to access my site and then user2 be able to access user1's account with an auto login because the session was saved. I've seen a few sites that have

[PHP] Excel to MySQL

2001-10-27 Thread Daniel Harik
Hello guys Thank You very much for your previous replies, could u help me with 1 more thing? You see i have huge(for me) 100 000 record access table, i wanted to convert it to mysql, i thought of making php convertor that uses odbc and mysql, but maybe there is faster way? And other thought

Re: [PHP] Excel to MySQL

2001-10-27 Thread Jeff Gannaway
At 04:11 PM 10/27/01 -0800, Daniel Harik wrote: You see i have huge(for me) 100 000 record access table, i wanted to convert it to mysql, i thought of making php convertor that uses odbc and mysql, but maybe there is faster way? Daniel, You're making it too hard on yourself. 1. CREATE TABLES

[PHP] Feauture request/proposal: import

2001-10-27 Thread Andreas Aderhold
Hi All, What do you guys think of a import feauture for php. This allows developers to use packages and a package trees for including files. We're using a php written import for the binarycloud app framework with grat success. It's extremly handy, easy to use, clear and straight forward. We

[PHP] Feauture request/proposal: import

2001-10-27 Thread Andreas Aderhold
Hi All, What do you guys think of a import feauture for php. This allows developers to use packages and a package trees for including files. We're using a php written import for the binarycloud app framework with grat success. It's extremly handy, easy to use, clear and straight forward. We

[PHP] FTP or Telnet files/directories with PHP?

2001-10-27 Thread Jeff Gannaway
Here's the problem: I want a PHP scrip ton my shared server to be able to create some directories and files. I don't want to make a directory with 777 permissions. Also, I'm going to distribute this script, so I don't want to do set web or nobody as having write access in my system. Solution?

[PHP] How do I check if apache processes php?

2001-10-27 Thread evan
I try the simplest script and it just shows in Netscape 6.0 and it just shows the php code, it does not process the information. How do I check to see it apache processes the information? Thanks, Evan P. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Excel to MySQL

2001-10-27 Thread Gerard Onorato
Another idea that may work... and I say may because I have never done it myself. Is to use MyODBC drivers and do the import code native to Access. I would be interested to hear if others have done this. Gerard -Original Message- From: Jeff Gannaway [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Excel to MySQL

2001-10-27 Thread Mike Eheler
Yet another good way (if you have Windows) is to grab a copy of the MSDE (comes with most distros of Office, on the CD.. you'll hafta search for it), which is essentially a stripped down version of Microsoft SQL Server. Install that, and on your start menu somewhere (it'll say like MSDE or

Re: [PHP] Re: Error: Can't redeclare already declared function (PHP 3.0.15)

2001-10-27 Thread ~~~i LeoNid ~~
On Sat, 27 Oct 2001 13:21:58 +0200 impersonator of [EMAIL PROTECTED] (Tamas Arpad) planted I saw in php.general: Unfortunately, you can't include FUNCTION() conditionaly (well, you can, but then you can't use it out of this if():). Why only such dumn restriction, PHP developers? I think it's

Re: [PHP] fsockopen and https

2001-10-27 Thread John
From: Brad Hubbard [EMAIL PROTECTED] I am using fsockopen to post data to a dll on a SSL server. I setup the socket data and successfully posted the data to port 80 but as soon as I switch to port 443 I received no errors or text. Does this help? I use this on web servers to test

Re: [PHP] Excel to MySQL

2001-10-27 Thread Daniel Harik
I used Jeff's method http://adsl20066.estpak.ee/emt here is it working live Thank You Jeff so much -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

Re: [PHP] can't seem to compile 4.0

2001-10-27 Thread Brian Clark
Hi Ray, @ 1:56:29 PM on 10/27/2001, Ray Todd Stevens wrote: I have been trying to get the php code to compile and can't seem to make this work. I keep getting an error In file included from /usr/include/errno.h:36, from zend_language_scanner.c:2718:

Re: [PHP] Excel to MySQL

2001-10-27 Thread Kurt Lieber
On Saturday 27 October 2001 17:11, Daniel Harik wrote: You see i have huge(for me) 100 000 record access table, i wanted to convert it to mysql, i thought of making php convertor that uses odbc and mysql, but maybe there is faster way? Your subject says excel but above, you say access. If,

[PHP] problems with sessions (not working)

2001-10-27 Thread Christian Dechery
I have a file called miec.php that does quite a lot of processing and then include()s user_track.inc.php... miec.php: ? a lot of db processing (NO OUTPUT whatsoever) include(user_track.inc.php); UserTrack($products); the output starts here... ?

[PHP] overloading variables in child classes

2001-10-27 Thread Alain Dresse
Hi all, I am a bit puzzled by the way PHP treates variables that have the same name in a base class and a child class. It seems to me that if a child class and its parent both have a variable with the same name, then they should be different variables. Instead, the example below indicates that

[PHP] Getting arrays out of HTTP_POST_VARS

2001-10-27 Thread Ian Evans
My mind is going blank here and I feel like I'm missing something basic. I have an insert form for movie profiles that takes cast members, writers and directors and inserts them into the tables for the correct movieid. In the old version of the script I would repeat the inserting section of

Re: [PHP] Getting arrays out of HTTP_POST_VARS

2001-10-27 Thread Mike Eheler
$HTTP_POST_VARS['middlecasts']['key']['subkey']['wecould']['go_on']['forver']; ;) Mike Ian Evans wrote: My mind is going blank here and I feel like I'm missing something basic. I have an insert form for movie profiles that takes cast members, writers and directors and inserts them into

[PHP] help needed for multimania.com

2001-10-27 Thread Kamran H. Hassan
Hi, Thanks for the info. about free web hosting www.multimania.com , i will be greateful if any one help in the steps of config. mysql and php on this web hosting, the problem is that site is in non-english language (i think its in french which i dont understand). if any one let me know briefly

Re: [PHP] Getting arrays out of HTTP_POST_VARS

2001-10-27 Thread Mike Eheler
Onething I should note.. this doesn't work within a string. For example: let's say: $HTTP_POST_VARS['key']['subkey'] = 'Hello World!'; $HTTP_POST_VARS['key2'] = 'World #2!'; if we do: echo key2: $HTTP_POST_VARS[key2]; The output will be: key2: World #2! However, if we do: echo

[PHP] HELP: Re: Table comments

2001-10-27 Thread jtjohnston
In my phpadmin, I have something called: Table comments. Can I acccess this somehow? Can't find it in the function database. I've tried this since, but can't get syntax right: ?php $myconnection = mysql_pconnect(localhost,,); mysql_select_db(,$myconnection); $rows = mysql_query(SHOW TABLE

Re: [PHP] HELP: Re: Table comments

2001-10-27 Thread Mike Eheler
?php $db = mysql_connect('localhost','user','password'); mysql_select_db('database', $db); $sql = 'SHOW TABLE STATUS LIKE table_name'; $result = mysql_query($sql); // Only returning 1 row, but I put it in a while() loop in case the result is empty // Then I don't get any

Re: [PHP] Getting arrays out of HTTP_POST_VARS

2001-10-27 Thread Ian Evans
Wow, that holds the land speed record for a reply. Thanks for your help! Mike Eheler wrote: $HTTP_POST_VARS['middlecasts']['key']['subkey']['wecould']['go_on']['forver']; -- Ian Evans Digital Hit Entertainment - News and Information http://www.digitalhit.com -- PHP General Mailing List

[PHP] RE: overloading variables in child classes

2001-10-27 Thread Andrew Kirilenko
Hello! Is there something I don't understand ? Yes. According OOP concepts, derived class inherits all functionality and data from the base. So, if you have $shared variable in the base class, your derived class will have it automatically. But PHP allows you to declare this variable once again

NOPE: [PHP] HELP: Re: Table comments

2001-10-27 Thread jtjohnston
I'm still getting Supplied argument is not a valid MySQL result resource for: while ($data = mysql_fetch_array($result)) { mysql_free_result($result); presumably $result ?php $myconnection = mysql_pconnect(localhost,,); mysql_select_db(,$myconnection); $sql = 'SHOW TABLE STATUS

[PHP] RE: can't seem to compile 4.0

2001-10-27 Thread Andrew Kirilenko
Hello! Yiu must have linux includes installed. Best regards, Andrew Kirilenko. -Original Message- From: Ray Todd Stevens [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 27, 2001 8:56 PM To: [EMAIL PROTECTED] Subject: [PHP] can't seem to compile 4.0 I have been trying to

[PHP] command line option f -- how do i get the name of the file?

2001-10-27 Thread Lucas Rockwell
Hello, I am writing a script using php's command line ability and I am lost on how to work with a file when I don't kow what the file's name is. Example: script.php -f file In my script, how do I reference the file when I have no idea what it's name is going to be? The scrip will get called

[PHP] mail and eregi problem

2001-10-27 Thread Nikola Karovi
Hi, I'm having some trouble with this formToEmail script. It shuld take variables from html form, send them to me, and then send auto reply to the person who filed the form. But the problem is that, if the person dont enter e-mail, or enter "sjhdfzg" or leave empty, i receieve internal server

Re: NOPE: [PHP] HELP: Re: Table comments

2001-10-27 Thread Mike Eheler
That's because you're not selecting a database. You need to either put the database name in mysql_select_db, or change the query to: SHOW TABLE STATUS FROM databasename LIKE 'table_name'; so change the line to: $sql = SHOW TABLE STATUS FROM db_name LIKE 'bookmark_unit4'; Mike jtjohnston

[PHP] function for hashing URL strings to check integrity?

2001-10-27 Thread Kurt Lieber
Does anyone know of a function that assists with checking URL strings to make sure they haven't been monkeyed with? Ideally something that calculates the md5 hash of a string and then automatically verifies it when a user clicks a link. I've checked the usual places (hotscripts, devshed,

Re: [PHP] Excel to MySQL

2001-10-27 Thread Daniel Harik
Guys getting more serious here now, 3 500 000 records, foxPro i'll try Jeff's method -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] include-ing results in variable?

2001-10-27 Thread Nathaniel Merriam
This is what I'm trying to do, and I think I'm just missing some logic in how to think like PHP. I have a global included file (global.inc) where I set up variables, open the database, etc, and I include it in the header of every HTML file on the site. One thing I would like to set as a

[PHP] Re: include-ing results in variable?

2001-10-27 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Nathaniel Merriam) wrote: I have this at the top of the page: ?php $banner = include (banner.inc); ? (which immediately spits out the result of the include!) But I want to print the results several times a page with this: ?=$banner?

RE: [PHP] I'm not username, log me out....

2001-10-27 Thread Matthew Loff
I found sessions to be kind of fussy to get working, perhaps that's just because I didn't have any experience with them until the last site I did... A simple call to session_unset() won't erase the session, but should clear whatever username/passkey (I say passkey, assuming/hoping it's

[PHP] Re: FTP or Telnet files/directories with PHP?

2001-10-27 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jeff Gannaway) wrote: Can PHP run some FTP or TELNET commands? http://php.net/ftp http://php.net/fsockopen -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Replace text

2001-10-27 Thread DL Neil
Hello guys function replace_text_smiley(){ global $comment; // To add a relation between a text smiley a an image smiley do this: // $faces[text smiley here] = img tag to image smile here; $faces[:)] = IMG SRC=\emoticons/smile.gif\; $faces[:P] = IMG SRC=\emoticons/tongue.gif\;

Re: [PHP] command line option f -- how do i get the name of the file?

2001-10-27 Thread DL Neil
I am writing a script using php's command line ability and I am lost on how to work with a file when I don't kow what the file's name is. Example: script.php -f file In my script, how do I reference the file when I have no idea what it's name is going to be? The scrip will get

[PHP] Q: System user and password

2001-10-27 Thread taipan
Hi! I plan to build a web page which will use my system user. So what function should I use to check the system password. FYI I'm using Linux RedHat. Thanks in advance. -TaiPan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] array_search()

2001-10-27 Thread Ashley M. Kirchner
I'm trying to figure out how am I supposed to write this snippet properly: if (($index = array_search($search, array_keys($pages))) !== false) { echo index: $index\n; } else { echo Not found\n; } When I search for something that I know exists, it returns the $index just fine.

Re: [PHP] help needed for multimania.com

2001-10-27 Thread Andrew Brampton
http://babelfish.altavista.com That URL may help you translate the page... Andrew - Original Message - From: Kamran H. Hassan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 27, 2001 7:22 PM Subject: [PHP] help needed for multimania.com Hi, Thanks for the info. about

[PHP] Re: include-ing results in variable?

2001-10-27 Thread Nathaniel Merriam
Thanks for your help, I've got it working now (I think!). You're right, I had an echo at the bottom of the included script and I think was loathe to mess with it since I spent about 12 hours getting that one to work! I had read the man page for include -- even the example with the return! --

[PHP] Multi-dimensional nested arrays in Smarty

2001-10-27 Thread Chad Guilette
I've asked a few questions before on Smarty here and I've worked through them but this one really has me. I checked the Smarty lists for answers and couldn't find a clear answer. Here is my problem. i want to do something to this effect {section name=loop_index loop=$DATA_ARRAY}

Re: [PHP] how to recognize local or server execution?

2001-10-27 Thread John A. Grant
Dl Neil [EMAIL PROTECTED] wrote in message 0a4e01c15e72$c47db560$a516100a@jrbrown">news:0a4e01c15e72$c47db560$a516100a@jrbrown... Thanks for the idea. I have just resurrected and had another play with my 'testbench.php', running it from both IE/Apache and in a DOS box. It includes the

[PHP] Problem redirecting

2001-10-27 Thread Don
Hi, I have a form which when submitted, calls an html page which contains PHP code. Within that code, I wish to redirect my users to another page under certain conditions. So, in my code, I have the following lines: Header( Location:http://www.mydomain.com/mypage.html;); exit; However,

[PHP] Re: Problem redirecting

2001-10-27 Thread Justin Garrett
From the manual: Remember that the header() function must be called before any actual output is sent, either by normal HTML tags blank lines in a file, or from PHP. This is the cause of your error. Something is sending output before your call to header(); -- Justin Garrett Don [EMAIL

[PHP] some.php/value - on win32

2001-10-27 Thread c
hi, I can make an URL like www.some.com/index.php/value1/value2/ on Linux+Apache but I can't do it on my win2k+apache 1.3.22 machine. Why? How could I do it? (I want to get values with explode ('/',$PATH_INFO) ) Thanx a lot! c -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: problems with sessions (not working)

2001-10-27 Thread Yasuo Ohgaki
Christian Dechery wrote: I have a file called miec.php that does quite a lot of processing and then include()s user_track.inc.php... Where did you register the session variable? If you are registering local variable as session variable, it may not work... I suggest to use