[PHP] HELP: Still Learning

2001-10-27 Thread jtjohnston
Still learning! But need syntax help. This works: $myconnection = mysql_pconnect($host,"MyAccount","MyPassword"); ... $news = mysql_query("SHOW TABLE STATUS FROM MyAccount LIKE 'MyTable'"); ... This does not: $MyAccount = "MyAccount"; $MyTable = "MyTabl

Re: [PHP] phpmyadmin is installed, now how to access it?

2001-10-27 Thread Jason Brooke
In your web browser like you would any other web interface on your machine jason - Original Message - From: "Chip" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, October 28, 2001 4:39 PM Subject: [PHP] phpmyadmin is installed, now how to access it? > I just installed the Fre

[PHP] phpmyadmin is installed, now how to access it?

2001-10-27 Thread Chip
I just installed the FreeBSD port for PHPMyAdmin and was reading the docs on the php wizard site but cannot figure out how to actually access the interface. Is it through a particular port like webmin? Can some clue me in please? -- Chip W. -- PHP General Mailing List (http://www.php.net/) T

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

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

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

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

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] 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} {$DATA_AR

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

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

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

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

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

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[":)"] = ""; > $faces[":P"] = ""; > $faces[":D"] = ""; > $faces[":("] = ""; > $fa

[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? -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: [PHP] I'm not , 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 encrypte

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

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

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] 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, etc)

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 w

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

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

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

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 General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

[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

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

Re: [PHP] HELP: Re: Table comments

2001-10-27 Thread Mike Eheler
Mike jtjohnston wrote: >>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: > > $myconnection = mysql_pconnect("localhost","",""); > mysql_select_db("",$myconn

[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: I'm still new to this. A post & reply would be appreciated, Thanks, John -- PHP General Mailing List (http://w

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 "key1/subk

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

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

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

[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: user_track.inc.php: -- the problem is why does it NEVER go into the 'else'... it seems that the session is registered... but as soon as I refres

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

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: > /usr/include/bit

[PHP] can't seem to compile 4.0

2001-10-27 Thread Ray Todd Stevens
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: /usr/include/bits/errno.h:25: linux/errno.h: No such file or directory

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

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

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 thin

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 som

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

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

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

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

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

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

[PHP] I'm not , 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 a

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

[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: " . mysql_error()); mysql_close(); ?> Thanks, Robby - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman

[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} {$DATA

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 g

[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[":)"] = ""; $faces[":P"] = ""; $faces[":D"] = ""; $faces[":("] = ""; $faces[";)"] = "";

[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[":)"] = ""; $faces[":P"] = ""; $faces[":D"] = ""; $faces[":("] = ""; $faces[";)"] = "";

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

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() { d

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() co

[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

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

[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

Re: [PHP] Re: checkboxes

2001-10-27 Thread Arvydas V.
I have another idea - to use javascript to change hidden value () 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 = document.GetElementById('chkbox'); if (box_name