Re: [PHP] phps and iis

2004-02-15 Thread Marek Kilimajer
Anders Gjermshus wrote: Hi. Is it possible to get IIS 6 to show php sources. ( phps files ) And how do I do that, I have not found anything about it on php.net or www.google.com http://www.google.com/ Regards anders Is it possible to set a custom 404 handler in IIS? Than you can set it

php-general Digest 15 Feb 2004 10:11:54 -0000 Issue 2591

2004-02-15 Thread php-general-digest-help
php-general Digest 15 Feb 2004 10:11:54 - Issue 2591 Topics (messages 177715 through 177725): Re: phps and iis 177715 by: Anders Gjermshus 177722 by: John W. Holmes 177725 by: Marek Kilimajer include result from script in midle of other script 177716 by:

[PHP] Need help with output from form to .txt file

2004-02-15 Thread Kristers hotmail
Hi!! When i send data from a form and there is some special characters like ' \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it. It is a guestbook I'm using the script for so it is a

[PHP] Re: Need help with output from form to .txt file

2004-02-15 Thread Thorben
Kristers Hotmail wrote: Hi!! When i send data from a form and there is some special characters like ' \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it. It is a guestbook I'm using the

Re: [PHP] Need help with output from form to .txt file

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 05:59, Kristers hotmail wrote: I'm sendeing hello from the form The result I get in my gb.txt file is \hello\ You need to check out magic_quotes[1]. If you do not have access to php.ini, or want a way to disable it without changing php.ini see my previous post[2]. [1]

Re: [PHP] Question about php forwarding to javascript

2004-02-15 Thread David Otton
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote: Could be missing the point here because your question is quite vague. However... I am using a web page that uses the following php code to display the contents of a dynamically update webpage: ?php include(http://.../source.xls); ? Is it

Re: [PHP] ODBC with SQL Server

2004-02-15 Thread David Otton
On Fri, 13 Feb 2004 12:30:42 +0100, you wrote: I have a connectoin ODBC with a SQL Server database. A table has a field of type 'nvarchar'. This field contains japanese characters. How can I read these japanese characteres? When I read (with: select name from data) only read '?' character. I've

Re: [PHP] Re: phps and iis

2004-02-15 Thread zerof
Try starting your browser with: http://localhost/ - zerof http://www.educar.pro.br/PAGES/ - Anders Gjermshus [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] I have installed php on my iis server. What I'm looking for is how to get php sources to work on IIS. Like phps

Re: [PHP] phps and iis

2004-02-15 Thread John W. Holmes
Marek Kilimajer wrote: Anders Gjermshus wrote: Is it possible to get IIS 6 to show php sources. ( phps files ) Is it possible to set a custom 404 handler in IIS? Than you can set it to a php page, in the php page parse the request URI and highlight_file(). Good catch; never thought of that. It

[PHP] Simple while loop skipping first row of array

2004-02-15 Thread Verdon Vaillancourt
I'm not sure I phrased my subject well, but... The following is just to build a select menu from a table query result set. It sort of works, but doesn't return the first row in the result set, ie if I have the following rows in the table 'cats'; id title == 1 Pears 2 Oranges 3

Re: [PHP] Question about php forwarding to javascript

2004-02-15 Thread Peter Andersson
Thanks! It works like a charm! /peter On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote: Could be missing the point here because your question is quite vague. However... I am using a web page that uses the following php code to display the contents of a dynamically update webpage: ?php

[PHP] RE: Reading MS Access date/time field in PHP

2004-02-15 Thread YC Nyon
I'm trying to extract the year for a query from a date/time field in MS Access via PHP. The data type is Date/Time and formated as Long Integer. Viewing it in Access 31 December 2003 Viewing it in PHP without formating 2003-12-31 00:00:00 I want to create a query based on the year only. I could

[PHP] Re: Simple while loop skipping first row of array

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 try: echo select name=\cats\; $result = mysql_query(select * from cats order by title); while ($c = mysql_fetch_array($result)) { echo option value=\$c[id]\$c[title]/option; } echo /select; Verdon Vaillancourt wrote: I'm not sure I phrased my

[PHP] isset() question

2004-02-15 Thread Anthony Ritter
The following script is from Kevin Yank's book (Sitepoint). When I test it _without_ entering a name in the text box and hit submit, the _next_ page loads - however the same page should load beacuse of the conditional if (!isset($name) ): . If I replace !isset() with empty()

Re: [PHP] isset() question

2004-02-15 Thread Richard Davey
Hello Anthony, Sunday, February 15, 2004, 4:43:12 PM, you wrote: AR Why doesn't the call to !isset() with the negation mark loads the next page AR when a name is not entered? Because it's using isset() in the wrong capacity. isset() does not check to see if a variable HAS a value, it checks to

Re: [PHP] isset() question

2004-02-15 Thread Anthony Ritter
- Original Message - From: Richard Davey [EMAIL PROTECTED] Hello Anthony, I feel the book you're learning from might not be the best out there! Especially as it uses the horrible if : else : endif notation, includes code on the same line as the PHP tags themselves and is teaching

Re: [PHP] isset() question

2004-02-15 Thread Jason Wong
On Monday 16 February 2004 02:30, Richard Davey wrote: I feel the book you're learning from might not be the best out there! Especially as it uses the horrible if : else : endif notation, includes code on the same line as the PHP tags themselves What is horrible about that style? IMO doing

Re: [PHP] RE: Reading MS Access date/time field in PHP

2004-02-15 Thread Jason Wong
On Monday 16 February 2004 00:37, YC Nyon wrote: I'm trying to extract the year for a query from a date/time field in MS Access via PHP. What you have above and what you have below are different ... I want to create a query based on the year only. I could do it with some string functions.

[PHP] PHP on Apache 2.0.48

2004-02-15 Thread XMG
I know that use of PHP with Apache 2.x.x is discouraged. I use 1.3.29 for my main site. Currently I am doing some testing with SSL connections and because Apache 2.0.48 is already installed on my Redhat 8.0 server and configured with SSL I have been using that (for testing). All my testing is

[PHP] File Injection Bug

2004-02-15 Thread Bc. Radek Kreja
Hello, I found very interesting messages in my access log: http://www.cvok.cz/index.php?content=http://linkhacker.info/ilalang23/asu.txt?cmd=uname%20-a;id; It looks as trying of hack. Am I immune, if I have safe mod (because asu.txt is php script, which runs function system()).

[PHP] Variables??

2004-02-15 Thread Alessandro Rodiani
I have a problem. When I call the function phpinfo() I can correctly see the page with the informationabout the server; but when I use a form to pass some information from a php page to another phppage, if I use a print() or an echo() function, I can't seemy variables. Why??? Help me

RE: [PHP] Variables??

2004-02-15 Thread Julien Wadin
give the corresponding source code are you using POST or GET ? What about REGISTER_GLOBALS ??? PS : NO MAILS IN HTML ON THE LIST, PLEASE -Message d'origine- De : Alessandro Rodiani [mailto:[EMAIL PROTECTED] Envoyé : dimanche 15 février 2004 21:29 À : [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: [PHP] Simple while loop skipping first row of array

2004-02-15 Thread Verdon Vaillancourt
That did the trick, and I learned something new. thanks :) verdon On 2/15/04 11:38 AM, Duncan [EMAIL PROTECTED] wrote: Problem is, that the first row is already in the $categories variable - since you have the first mysql_fetch_array call there. change it to: echo select name=\cats\;

Re: [PHP] cli input and screen question(s)

2004-02-15 Thread Matthias Nothhaft
Hi Adam Bregenzer, you wrote: On Fri, 2004-02-13 at 18:25, Matthias Nothhaft wrote: The other problem is: I would like to draw a screen like midnight commander does. Is there a way to get that work with PHP ? Ahh, sounds like a Slackware fan. :) don't really know what it is. I just wanna write

[PHP] Re: PHP on Apache 2.0.48

2004-02-15 Thread Freedomware
Xmg wrote: I know that use of PHP with Apache 2.x.x is discouraged. Wow, thanks for the tip. I'm using Apache 2 and have had no problems, but I've only done very basic things with MySQL and PHP so far. I hope I don't have to switch to Apache 1.3 when I get in a little deeper! -- PHP General

Re: [PHP] Another preg question

2004-02-15 Thread Al
Thanks for the feedback. Here was my problem; I misunderstood how the + worked. It only applies to the last \n, not both n\n. Hans Juergen Von Lengerke wrote: From: Al [EMAIL PROTECTED] $text= preg_replace(/\n\n+/, \n\n, $text); // remove excess This doesn't seem to do anything.

[PHP] php as cgi with static libraries?

2004-02-15 Thread Marten Lehmann
Hello, when I'm building php as a cgi-module, a 'ldd php' shows a list of some libraries, that are linked in dynamically. How can I link some of them statically into the php-binary? I can't rely of external libs in some cases. Regards Marten -- PHP General Mailing List (http://www.php.net/) To

php-general Digest 15 Feb 2004 22:17:39 -0000 Issue 2592

2004-02-15 Thread php-general-digest-help
php-general Digest 15 Feb 2004 22:17:39 - Issue 2592 Topics (messages 177726 through 177751): Need help with output from form to .txt file 177726 by: Kristers hotmail 177727 by: Thorben 177728 by: Thorben 177729 by: Adam Bregenzer Re: Question about php

[PHP] Re: Simple while loop skipping first row of array

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 just fixing something hehe echo select name=\cats\; $result = mysql_query(select * from cats order by title); if ($result) { while ($c = mysql_fetch_array($result)) { echo option value=\$c[id]\$c[title]/option; } } echo /select; André

[PHP] Re: File Injection Bug

2004-02-15 Thread Andr Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 on index.php, are you including directly the file passed by content? if you are vulnerable, the autor of your index.php is the one to blame, not php hehe if safe mode is on, you may be immune to this asu.txt, but dont relly on it against everything

[PHP] PHP and Word...

2004-02-15 Thread Russell P Jones
I need to use PHP to pull the first page from a Word Document and then print it to the screen. It doesnt have to be fancy, so even if just the text is pulled that would be fine (although formatting would be grand too). Anyone got any ideas? I cant use the COM object since Im running this on a

[PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Birkholz, James
Is there something obviously wrong with this code? mail([EMAIL PROTECTED],[EMAIL PROTECTED],'[FLAG] Info edited: '.$theInfo.' by '.$REMOTE_HOST, 'From: '.$emailAdmin.\r\n); I'm trying to show the IP of the person who just edited some info, in the email that I send myself whenever

[PHP] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Vivian Steller
Hello, the following code shows my problem: ?php class MyElement extends DomElement { function __construct($name) { parent::__construct($name); } } $doc = new DomDocument(); $node = new

Re: [PHP] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 19:04, Vivian Steller wrote: As you can see it is impossible to set the namespace manually! I tried to set it with the help of a DomNamespaceNode-object but those objects are no real nodes (why!?!) and the consequence is that you couldn't append such a node with

[PHP] PHP Newbie Database Records?

2004-02-15 Thread PETCOL
PHP Newbie, I'm trying to find out if a username already appears in my database. I have two users in my table, one is colin so when I enter a username of colin I would normally under ColdFusion anyway just to something like: cfif $query_qUsername.RecordCount GT 0 User already exists do something

Re: [PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 19:03, Birkholz, James wrote: mail([EMAIL PROTECTED],[EMAIL PROTECTED],'[FLAG] Info edited: '.$theInfo.' by '.$REMOTE_HOST, 'From: '.$emailAdmin.\r\n); Try $_SERVER['REMOTE_HOST'] Also, if apache is not configured with HostnameLookups On this won't be set. You can get

RE: [PHP] $REMOTE_HOST in email subject

2004-02-15 Thread Birkholz, James
You're right, the addr is what I really want, and _SERVER[REMOTE_ADDR] works, but when I tried the _SERVER[REMOTE_HOST], it is still empty, so my web host must HostnameLookups OFF. Problem solved, and thanks to all! James -Original Message- From: [EMAIL PROTECTED]

Re: [PHP] php as cgi with static libraries?

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 17:19, Marten Lehmann wrote: when I'm building php as a cgi-module, a 'ldd php' shows a list of some libraries, that are linked in dynamically. How can I link some of them statically into the php-binary? I can't rely of external libs in some cases. You will need to

Re: [PHP] PHP Newbie Database Records?

2004-02-15 Thread Ryan A
Hi, Do a select query with a COUNT() in it if you dont understand that read the php manual for accessing the database and lookup the mysql COUNT -Ryan On 2/16/2004 1:35:42 AM, PETCOL ([EMAIL PROTECTED]) wrote: PHP Newbie, I'm trying to find out if a username already appears in my

Re: [PHP] PHP and Word...

2004-02-15 Thread Adam Bregenzer
On Sun, 2004-02-15 at 18:28, Russell P Jones wrote: I need to use PHP to pull the first page from a Word Document and then print it to the screen. It doesnt have to be fancy, so even if just the text is pulled that would be fine (although formatting would be grand too). [snip] I was

[PHP] PHP Kerberos examples/tutorials

2004-02-15 Thread Pablo Gosse
Hi folks. I'm wondering if anyone out there can point me in the direction of a good tutorial/article on how to implement authentication using Kerberos in a PHP application running on Apache 2.0. I've googled and searched the lists but I can't find any tutorials or articles which fully explain

[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... PHP Newbie, I'm trying to find out if a username already appears in my database. I have two users in my table, one is colin so when I enter a username of colin I would normally under ColdFusion anyway just to something like: cfif

[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I believe you forgot to read the manual. $query_qUsername = SELECT * FROM users WHERE username = '$username'; $num_rows = mysql_num_rows($query_qUsername); $query_qUsername is a String mysql_num_rows want a result resource as argument You have no

[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread PETCOL
Andre, Thank you, I had read the manual, understanding it fully when you've been coding in another language is another matter. I had relied on DreamweaverMX to create the Database connection which meant I didn't really understand how it was returning the results. I was able to output the

[PHP] PHP REDIRECT

2004-02-15 Thread ajay
hi! i'd like to redirect a person to another page but after a certain time interval has elapsed. this is because i have a generic error displaying page and i would like the person to go to this page, stay there for like 10 seconds and then be redirected to the index page. i was using header(url)

[PHP] error : session_start

2004-02-15 Thread ajay
hi! i have a login page that after validating the login and passwords does something like // initiate a session session_start(); // register some session variables session_register(SESSION); // including the username

Re: [PHP] PHP REDIRECT

2004-02-15 Thread Binay
use sleep(no of seconds).. Cheers Binay - Original Message - From: ajay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 16, 2004 9:54 AM Subject: [PHP] PHP REDIRECT hi! i'd like to redirect a person to another page but after a certain time interval has elapsed. this

Re: [PHP] error : session_start

2004-02-15 Thread Binay
set the session.save_path directive in php.ini file.. By default this is set to /tmp but as u working on win mchine please create a session directory and specify the corresponding path to aforesaid directive. Cheers Binay - Original Message - From: ajay [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] error : session_start

2004-02-15 Thread Tom Rogers
Hi, Monday, February 16, 2004, 2:27:21 PM, you wrote: a hi! a i have a login page that after validating the login and passwords does something a like a // initiate a session a session_start(); a // register some session variables a

[PHP] Re: PHP Newbie Database Records?

2004-02-15 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i think the query: SELECT count(uid) FROM users WHERE username='$username', will give a one row result, that row will have one field, and that field is the number of rows that match the where clause (you are using count(uid)) if there is no match, the

[PHP] Re:[SOLVED] PHP Newbie Database Records?

2004-02-15 Thread PETCOL
André, Thank you for your patience, solution one works fine. Regards Col André cerqueira [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i think the query: SELECT count(uid) FROM users WHERE username='$username', will give a one row

RE: [PHP] PHP REDIRECT

2004-02-15 Thread Chris
You can't view the page and have PHP redirect it. You would need to use a meta refresh tag or JavaScript. Chris -Original Message- From: ajay [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP REDIRECT hi! i'd like to

Re: [PHP] PHP Newbie Database Records?

2004-02-15 Thread John Nichel
PETCOL wrote: PHP Newbie, I'm trying to find out if a username already appears in my database. I have two users in my table, one is colin so when I enter a username of colin I would normally under ColdFusion anyway just to something like: cfif $query_qUsername.RecordCount GT 0 User already

Re: [PHP] PHP REDIRECT

2004-02-15 Thread John Nichel
ajay wrote: hi! i'd like to redirect a person to another page but after a certain time interval has elapsed. this is because i have a generic error displaying page and i would like the person to go to this page, stay there for like 10 seconds and then be redirected to the index page. i was using

[PHP] Re: [PHP-XML-DEV] Re: [PHP] PHP5: ext/dom - set namespace of node manually

2004-02-15 Thread Christian Stocker
On 2/16/04 1:24 AM, Adam Bregenzer wrote: On Sun, 2004-02-15 at 19:04, Vivian Steller wrote: As you can see it is impossible to set the namespace manually! I tried to set it with the help of a DomNamespaceNode-object but those objects are no real nodes (why!?!) and the consequence is that you