[PHP] HTTP Server vars

2002-01-12 Thread Gerard Samuel
Hey all. I was wondering. Is it safe to use HTTP global variables ie $HTTP_POST_VARS etc in my scripts? Thought I read somewhere that they weren't safe. Got a lot of forms to work with, it sure would make life easier... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] OT kind of..

2002-01-12 Thread Richard Baskett
Ok I have looked everywhere to try to figure out why I get the stupid warning: Warning: Failed opening '/phpinc/query.inc' for inclusion (include_path='.:/usr/local/lib/php') in /Users/murlyn/Sites/bakos/ index.htm on line 2 Ok I know that it's because it can't find the script, but my problem

Re: [PHP] OT kind of..

2002-01-12 Thread Rasmus Lerdorf
Includes are not relative to your DocumentRoot. They are system paths. A ScriptAlias would have absolutely no effect. -Rasmus On Sat, 12 Jan 2002, Richard Baskett wrote: Ok I have looked everywhere to try to figure out why I get the stupid warning: Warning: Failed opening

Re: [PHP] name and value tags in a form

2002-01-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 12-01-02 at 10:18 * Kunal Jhunjhunwala said Hey, Is there any way one can get the name tags for a form?? other then explicitly defining the tags in an array or any such thing. I just want to be able to get the name tags and there

Re: [PHP] name and value tags in a form

2002-01-12 Thread Kunal Jhunjhunwala
Hi, Here is an example form field: Forgot Password Subject: INPUT TYPE=TEXT NAME=fname SIZE=10 VALUE=kunal Now, I want my php script or get the field name, that is fname, and whatever the user entered, in this case kunal. I can easiuly get kunal by echoing $fname. But, how do i get what $fname

Re: [PHP] name and value tags in a form

2002-01-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 12-01-02 at 10:54 * Kunal Jhunjhunwala said Hi, Here is an example form field: Forgot Password Subject: INPUT TYPE=TEXT NAME=fname SIZE=10 VALUE=kunal Now, I want my php script or get the field name, that is fname, and whatever

[PHP] Fatal error: Cannot instantiate non-existent class

2002-01-12 Thread millw0rm
i hav just upgraded from php3 to php4 i m getting this error through out my website what can be the problem... can anyone help me out Fatal error: Cannot instantiate non-existent class -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Fatal Error

2002-01-12 Thread millw0rm
i hav just upgraded from php3 to php4 i m getting this error through out my website what can be the problem... can anyone help me out Fatal error: Cannot instantiate non-existent class -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] name and value tags in a form

2002-01-12 Thread Kunal Jhunjhunwala
Hey, Did the trick. Thanks! Regards, Kunal Jhunjhunwala - Original Message - From: Nick Wilson [EMAIL PROTECTED] To: php-list [EMAIL PROTECTED] Sent: Saturday, January 12, 2002 3:30 PM Subject: Re: [PHP] name and value tags in a form -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 *

Re: [PHP] Fatal error: Cannot instantiate non-existent class

2002-01-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 12-01-02 at 11:10 * millw0rm said i hav just upgraded from php3 to php4 i m getting this error through out my website what can be the problem... can anyone help me out Fatal error: Cannot instantiate non-existent class Let's see

[PHP] multiple replaces...

2002-01-12 Thread Lauri Vain
Hello there, I have about 30 markers in the text which need to be replaced with the value of a variable or an array. Common sense comes up with eregi_replace(!one!,blah,eregi_replace(!heh!,'foobar',eregi_replace(blah,ho-ho-ho,text))); The list above could go on and on... I'm sure there

Re: [PHP] multiple replaces...

2002-01-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 12-01-02 at 12:49 * Lauri Vain said Hello there, I have about 30 markers in the text which need to be replaced with the value of a variable or an array. Common sense comes up with

RE: [PHP] multiple replaces...

2002-01-12 Thread Lauri Vain
Hi Nick, Yes, I thought about that. But, what should I do when the markers are absolutely NOT in any sequence. I also thought about something like $replace[1][1] = !one!; //marker $replace[1][2] = hehee; //replace with $replace[1][1] = test;

[PHP] Whoops (was:RE: [PHP] multiple replaces...)

2002-01-12 Thread Lauri Vain
Whoops, forgot to change the first number in every one of those. The first numbers in the brackets should increase after every two lines... The correct one: $replace[1][1] = !one!; //marker $replace[1][2] = hehee; //replace with $replace[2][1] = test;

Re: [PHP] multiple replaces...

2002-01-12 Thread 'Nick Wilson'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 12-01-02 at 13:02 * Lauri Vain said Hi Nick, Yes, I thought about that. But, what should I do when the markers are absolutely NOT in any sequence. I also thought about something like $replace[1][1] = !one!; //marker

Re: [PHP] multiple replaces...

2002-01-12 Thread DL Neil
Yes, I thought about that. But, what should I do when the markers are absolutely NOT in any sequence. =sequence would matter if it was possible that one of the markers could replace some text and that replacement subsequently became the marker for a further replacement ... nightmare=recursion!

Re: [PHP] multiple replaces...

2002-01-12 Thread [EMAIL PROTECTED]
No need to loop. str_replace() already supports arrays! check the manual. bvr. On Sat, 12 Jan 2002 12:57:10 -, DL Neil wrote: Yes, I thought about that. But, what should I do when the markers are absolutely NOT in any sequence. =sequence would matter if it was possible that one of the

Re: [PHP] multiple replaces... (2)

2002-01-12 Thread [EMAIL PROTECTED]
And so does preg_replace() if you need any regular expressions. Though str_replace() is probably faster when this is not the case. http://www.php.net/manual/en/function.str-replace.php http://www.php.net/manual/en/function.preg-replace.php bvr. -- PHP General Mailing List

Re: [PHP] PHP question regarding Cold Fusion

2002-01-12 Thread Wandrer
At 09:43 PM 1/11/02 -0500, you wrote: The tag I am talking about is CFHTTP. This tag allows you to emulate the posting of a form, but also allows you to capture the results of the post. There are a couple of forms written in CF that connect to the merchant account, check a credit card, for

Re: [PHP] PHP question regarding Cold Fusion

2002-01-12 Thread [EMAIL PROTECTED]
I believe another option is the CURL library module for PHP. see manual: XII. CURL, Client URL Library Functions bvr. On Sat, 12 Jan 2002 09:01:39 -0500, Wandrer wrote: At 09:43 PM 1/11/02 -0500, you wrote: The tag I am talking about is CFHTTP. This tag allows you to emulate the posting of

Re: [PHP] multiple replaces...

2002-01-12 Thread Victor Boivie
If you only want to replace strings, then drop the regular expression functions! (a common mistake) Use for example str_replace, or in this case, strtr which is better because it accepts an array as replacement pattern. For example: $foo = array(foo = apple, bar = banana); $string = I

[PHP] Development environment

2002-01-12 Thread Morten Nielsen
Hi, Can anybody recommend a good development environment? It should support PHP, HTML and JavaScripts. Another question...Is it normal procedure to mix the above 3 languages on a single page or is it possible to only use 1...i.e PHP? Regards, Morten -- PHP General Mailing List

Re: [PHP] Development environment

2002-01-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 12-01-02 at 17:00 * Morten Nielsen said Hi, Can anybody recommend a good development environment? It should support PHP, HTML and JavaScripts. What do you mean by 'development enviornment'? Another question...Is it normal

[PHP] Mysql('mydb, SHOW TABLES FROM mydbname) ???

2002-01-12 Thread Chris
I’m trying to display the tables in my database using $tables = mysql(‘mydb”, “SHOW TABLES FROM mydbname”) but this statement doesn’t seem to behave like selecting records from a table. Does this query return an array of table names? If I use something like $records = mysql(‘mydb”, “SELECT *

[PHP] beginer

2002-01-12 Thread Vania Lavielle Castro
i have a sql server and i connected with my database but the query no execute on server. my code is it $conexion = @mssql_connect(servername,username,userpass); // this work if($conexion){ $db = mssql_select_db(Estudiante,$conexion); $qr = mssql_query(select * from

Re: [PHP] Mysql('mydb, SHOW TABLES FROM mydbname) ???

2002-01-12 Thread Miles Thompson
Well, did you try looping though tables with mysql_fetch_array($tables)? But, how 'bout mysql_list_tables()? Cheers - Miles Thompson PS There's a bunch of other interesting stuff relating to database manipulation there too. /mt At 11:48 AM 1/12/2002 -0800, Chris wrote: I'm trying to display

[PHP] beginer

2002-01-12 Thread Vania Lavielle Castro
I need a file php.ini and some advices about configuration of a web server as internet information server to use php. Also i need to know how use the sqlserver 2000 on my php's pages. i use Dreamweaver UltraDev 4 too and i think that i must configurate it. thanks vania. -- PHP General

[PHP] DUH!!!! Why didn't I see that?

2002-01-12 Thread Chris
DUH Why didn't I see that.. Thanks.. Chris Miles Thompson wrote: Well, did you try looping though tables with mysql_fetch_array($tables)? But, how 'bout mysql_list_tables()? Cheers - Miles Thompson PS There's a bunch of other interesting stuff relating to database manipulation

[PHP] Re: beginer

2002-01-12 Thread Deron
Go to http://www.interakt.ro/products/PHAkt/index.php for a kick butt PHP development platform extension for DW Ulreadev! Deron Creation Nation Vania Lavielle Castro [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need a file php.ini and some advices about

php-general Digest 12 Jan 2002 18:34:40 -0000 Issue 1107

2002-01-12 Thread php-general-digest-help
php-general Digest 12 Jan 2002 18:34:40 - Issue 1107 Topics (messages 80266 through 80299): two mysql issues :) 80266 by: Mehmet Kamil ERISEN Re: preg_replace help 80267 by: Jimmy Re: Newbie looking for mentor 80268 by: P. Westover Re: PHP question regarding Cold

[PHP] mysql_fetch_row win32 to Linux

2002-01-12 Thread sundogcurt
Hi everybody, I have some scripts running on win32 Apache mySQL and they all run great. I have copied the entire application to my Linux box which I think I have running pretty smoothly now. The database is there and I can access it just fine etc etc. Here is the hitch (there's always a

[PHP] Is DOMXML reliable??

2002-01-12 Thread Emile Bosch
Hi list, It seems like domxml is kinda unreliable to build an CMS with because in lotta versions the syntax is different :( Is DOMXML reliable?? Or should i use an alternative, does anyone know an alternative?? Warm regards, Emile Bosch -- PHP General Mailing List (http://www.php.net/) To

[PHP] help with include

2002-01-12 Thread Brian's News
Hi, I need some help with the include function. I have a phpBB script and want to put the config.inc.php file in a password protected directory, Easy peasy you might say, and I know it is, but the problem comes because the password protected directory isn't on the site the script is on, mainly

Re: [PHP] Development environment

2002-01-12 Thread Rafael Perazzo
I know two good IDEs for PHP: PhpEdit - http://www.phpedit.com PhpCode - http://www.phpide.de Have fun!! Rafael Perazzo --- Morten Nielsen [EMAIL PROTECTED] wrote: Hi, Can anybody recommend a good development environment? It should support PHP, HTML and JavaScripts. Another

Re: [PHP] help with include

2002-01-12 Thread sundogcurt
I think you can use a URL when you specify your value in the include statement, can you not? [EMAIL PROTECTED] wrote: Hi, I need some help with the include function. I have a phpBB script and want to put the config.inc.php file in a password protected directory, Easy peasy you might say, and I

[PHP] Event based applications?

2002-01-12 Thread Morten Nielsen
Hi, I am about to make an homepage. It is going to be very event based. When the user presses different buttons different functions should be called. At the same time I am going to use a database to store some data. My question is: Should I use PHP or JavaScripts? I would like to have a server

Re: [PHP] Event based applications?

2002-01-12 Thread Andrew Brampton
How do you plan to place stuff in a database without using a Server based page? I think you will need to use a combination of the 2. Make the JScript call PHP pages to do the handling of your events. Andrew - Original Message - From: Morten Nielsen [EMAIL PROTECTED] To: [EMAIL

RE: [PHP] Event based applications?

2002-01-12 Thread Matt Friedman
JavaScript runs on the client, PHP runs at the server. PHP cannot access client side events directly. JavaScript cannot access the database (actually it can through Internet Explorer, but that's different story...) You'll use a combo of both languages. Matt Friedman Web Applications Developer

[PHP] Record Paging Using Arrays

2002-01-12 Thread Joe Van Meer
Hi there, I have a small php/data driven website and would like to incorporate record paing. Unfortunately I'm working with sql Server temporarily, but I'm still required to do this. So since I wasn't allowed to use the handy LIMIT in my sql statement I figured I'd dump my results into a

[PHP] form get method

2002-01-12 Thread Gerard Samuel
Hey all. I was making a menu, and I was using too many links, so I figure use a form with drop down lists. Im trying to use the form using the get method. echo 'form action=test.php?ft=first method=get'; It doesn't seem to behave correctly. Can one use test.php?ft=first in the action of a get

RE: [PHP] preg_replace help

2002-01-12 Thread Boaz Yahav
Here are some scripts to help you : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1235 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1234 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1401

Re: [PHP] multiple replaces...

2002-01-12 Thread Paul Roberts
have a look at eval() Paul Roberts [EMAIL PROTECTED] From: Lauri Vain [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 12, 2002 11:44 AM Subject: [PHP] multiple replaces... Hello there, I have about 30 markers in the text which need to be replaced with

Re: [PHP] mysql_fetch_row win32 to Linux

2002-01-12 Thread mike cullerton
on 1/12/02 11:45 AM, sundogcurt at [EMAIL PROTECTED] wrote: myquery = SELECT * FROM xpackage Warning: Supplied argument is not a valid MySQL result resource in /path to page with error/default.php on line 5 Line 5 is this part while($myrowz = mysql_fetch_row($myresult)){ this tells me

Re: [PHP] multiple replaces...

2002-01-12 Thread Dennis Moore
try str_replace() ... it allows you to pass an array into the replace function. /dkm - Original Message - From: Paul Roberts [EMAIL PROTECTED] To: Lauri Vain [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, January 12, 2002 4:35 PM Subject: Re: [PHP] multiple replaces... have a

[PHP] Please \n problem????

2002-01-12 Thread Dani
Hi! thanks for reviewing this email. I have wrote this script and I have checked it but for some reasons (I don't know what) it doesn't work. Could any body please check and give some feedback please? ?PHP include(heading.inc); echo Result :\n; - THIS DOESN'T GIVE

Re: [PHP] Please \n problem????

2002-01-12 Thread Gianluca Baldo
Dani - D echo Result :\n; - THIS DOESN'T GIVE ME A D NEW LINE- WHY ? If you look at the source code of your page you'll see a new line there. If you want a new line in the browser output, you must place a BR at that point, not a \n since it's HTML. Hope this helps.

Re: [PHP] Please \n problem????

2002-01-12 Thread Dennis Moore
I assume you your displaying a web page. HTML ignores \n ... You need to insert a br. - Original Message - From: Dani [EMAIL PROTECTED] To: PHP LIST [EMAIL PROTECTED] Sent: Saturday, January 12, 2002 8:25 PM Subject: [PHP] Please \n problem Hi! thanks for reviewing this email.

[PHP] Re: continue [PHP] Please \n problem????

2002-01-12 Thread Dani
Thanks Alot Guys!!! It works! now my next question is : When do I actually use \n??? Thank you so much! Gianluca Baldo wrote: Dani - D echo Result :\n; - THIS DOESN'T GIVE ME A D NEW LINE- WHY ? If you look at the source code of your page you'll see a

Re: [PHP] multiple replaces...

2002-01-12 Thread Rambo Amadeus
- Original Message - From: Dennis Moore [EMAIL PROTECTED] To: Paul Roberts [EMAIL PROTECTED]; Lauri Vain [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: 12. siječanj 2002 23:33 Subject: Re: [PHP] multiple replaces... try str_replace() ... it allows you to pass an array into the replace

Re: [PHP] Re: continue [PHP] Please \n problem????

2002-01-12 Thread Thomas Holton
The \n can be useful for when you want to look at the source code from an HTML page. It will not make a new line within the browser, but it sure can make reading the source alot easier... otherwise all of the code goes onto the same line... which also can be useful if you want it be difficult

[PHP] Print ONCE ONLY?????

2002-01-12 Thread Dani
Hi Again! Why does this print only one record? 1. I have checked on the table on MYSQL and I have 2 records with this data. 2. Can I actually use the word and twice or three times for filtering the data that I need during query?? (example: $query = select * from main_table where item_type =

[PHP] Re: Print ONCE ONLY?????

2002-01-12 Thread Michael Kimsal
Dani wrote: Hi Again! Why does this print only one record? 1. I have checked on the table on MYSQL and I have 2 records with this data. 2. Can I actually use the word and twice or three times for filtering the data that I need during query?? (example: $query = select * from

Re: [PHP] Print ONCE ONLY?????

2002-01-12 Thread Dennis Moore
move the following inside your while loop echo $row[item_id],BR; - Original Message - From: Dani [EMAIL PROTECTED] To: PHP LIST [EMAIL PROTECTED] Sent: Saturday, January 12, 2002 8:54 PM Subject: [PHP] Print ONCE ONLY? Hi Again! Why does this print only one record?

RE: [PHP] Re: Print ONCE ONLY?????

2002-01-12 Thread Pavel Kharitonov
I think this is actually the problem The first time you do $row = mysql_fetch_array($result); it reads the first row. Then you don't do anything with that data, but move on to the next one right away in the while: while ($row = mysql_fetch_array($result)) and only then you print out the data. So

[PHP] Thanks! Re: [PHP] Print ONCE ONLY?????

2002-01-12 Thread Dani
Thanks very much! it works! Sincerely, Dani Thomas Holton wrote: You should be able to use and as many times as you want. You should also make sure that the query you are making below is returning the number of records you think it should be: $numrecords = mysql_num_rows($result); then

Re: [PHP] Development environment

2002-01-12 Thread Zeev Suraski
At 06:00 PM 1/12/2002, Morten Nielsen wrote: Hi, Can anybody recommend a good development environment? It should support PHP, HTML and JavaScripts. http://www.zend.com/store/beta.php - it doesn't have any special JavaScript support, but it's by far the strongest one for PHP itself. Zeev --

[PHP] Piping data into a select box

2002-01-12 Thread Dean Householder
Does anyone know how to give a select pulldown box a default value from a PHP variable? I've been able to figure out how to pipe data into every type in input type of form element except for a select element. Any solutions would be helpful! Dean

[PHP] Time Zone Offset?

2002-01-12 Thread Marvin Sanders
Hopefully a quick question: I'm using the PHP date() function on my site, but since my hosting company (Pair Networks) is on the East Coast and I'm on the West Coast, everything shows as three hours later (for most of my visitors, anyway). Pair tells me there's no setting I can make on my

[PHP] form values and the back button

2002-01-12 Thread Alastair
Is there a way to ensure that the data in a form is not cleared when you click the back button? I have numerous forms that all have some PHP error checking. The standard error page has a simple JavaScript back command. Every time I click it (or the browser's back button), it clears the form on

Fw: [PHP] Piping data into a select box

2002-01-12 Thread hugh danaher
- Original Message - From: hugh danaher [EMAIL PROTECTED] To: Dean Householder [EMAIL PROTECTED] Sent: Saturday, January 12, 2002 7:12 PM Subject: Re: [PHP] Piping data into a select box Dean, give this a try. form action=?php print $php_self? method=post ?php select type=text

[PHP] Re: HTTP Server vars

2002-01-12 Thread Alastair
I'm not exactly sure what you are asking.. Are you wondering if it is safer to have register_globals on or off? If it is off, you will have to access all the globals through the $HTTP_*_VARS variables. They are quite a bit safer but require a bit of getting used too (just look at my posts in

Re: [PHP] help with include

2002-01-12 Thread Mehmet Kamil ERISEN
I have installed phpBB several times. Your problem should not be the password protected directory. The install.php script tries to wright into the config file. so, you have to chmod your file and give r/w access to everybody. once insallation is completed, then change it the was it was

[PHP] Re: preg_replace help

2002-01-12 Thread Gaylen Fraley
First of all, thanks to everyone who replied! I have several good suggestions. Here is one that seems to work pretty well, to cover a multitude of situations: $msg = eregi_replace(([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/=]),a href=\\\1://\\2\\3\ target=\_blank\\\1://\\2\\3/a, $msg);

Re: [PHP] Piping data into a select box

2002-01-12 Thread Jimmy
Hi Dean, Does anyone know how to give a select pulldown box a default value from a PHP variable? ? function generate_option_list ($key_value,$set) { // This function will return option list and set the selected attribute // $key_value : the associative array which contain the key and the

php-general Digest 13 Jan 2002 07:34:05 -0000 Issue 1108

2002-01-12 Thread php-general-digest-help
php-general Digest 13 Jan 2002 07:34:05 - Issue 1108 Topics (messages 80300 through 80334): mysql_fetch_row win32 to Linux 80300 by: sundogcurt 80312 by: mike cullerton Is DOMXML reliable?? 80301 by: Emile Bosch help with include 80302 by: Brian's News

[PHP] Send output before header location

2002-01-12 Thread Alawi
How can I output before send header I see some site some output and after that it Jump to other site !! Is that maked by header localtion ??

[PHP] Re: Send output before header location

2002-01-12 Thread David
How can I output before send header I see some site some output and after that it Jump to other site Is that maked by header localtion ?? no, if there\'s output first, then it\'s not using header(\Location: whatever.php\), because headers MUST be sent before any other output to the browser.