php-windows Digest 18 Sep 2003 20:50:13 -0000 Issue 1916
Topics (messages 21415 through 21441):
Re: CGI Error
21415 by: Nick H. - Network Operations
Re: ANY ONE CAN ANSWER ME!!
21416 by: toby z
21417 by: nabil
21419 by: toby z
generate img with fonts...
21418 by: Bobo Wieland
21420 by: toby z
Retrieving Database Table Names
21421 by: Herhuth, Ron
21424 by: Jared Steckel
21425 by: Henrik Hornemann
Re: PHP -> ODBC -> Remote Access
21422 by: Aidal
passthru(), system(), exec()
21423 by: Aidal
21427 by: John
21428 by: John Ellingsworth
Stop Verisign DNS Abuse
21426 by: Rodney Green
shmop & windows
21429 by: Sek-Mun Wong
PHP and MYSQL don't shake hands
21430 by: Frank Tudor
PHP and PDF
21431 by: Paulo Nunes
21432 by: Charles P. Killmer
Quick Question
21433 by: Ben Wheeler
21434 by: Ben Wheeler
21436 by: Derrick Hermanson
21437 by: John Ellingsworth
21438 by: Jim Hunter
Connection times out from PHP to MySQL
21435 by: David Kafrissen
Problem with $PHP_SELF and possibly some others
21439 by: Luís Sousa
21440 by: Luís Sousa
21441 by: Anthony Saffer
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
This probably has nothing to do with your php.ini but rather how you have
either PHP setup in IIS or your script itself. Please ensure that you have
php configured in IIS properly and then check to make sure that your script
is ok.
Regards,
Nick H.
Network Operations Center
[EMAIL PROTECTED]
Please rate my performance! http://www.supportteam.net/rate.php3
Please submit all new support requests to
http://ticketmonster.hostingsupport.com/
-------------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately if you or your
employer do not consent to Internet email for messages of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by it.
--- End Message ---
--- Begin Message ---
nabil
can you share the exact error and the code with us ?????
toby
--- nabil <[EMAIL PROTECTED]> wrote: > I m going to tear my
hair off, I can not solve the problem..
>
> The specified CGI application misbehaved by not returning a
> complete set of
> HTTP headers
>
> but in php.ini i made :
> cgi.rfc2616_headers = 1
> cgi.force_redirect = 0
>
> what should I do next ?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--- End Message ---
--- Begin Message ---
when I open any local php file like phpmyadmin , I have to refresh many time
to get the page displayed.. or if I used header function (after successful
login)
and I m just getting
CGI ERROR
The specified CGI application misbehaved by not returning a complete set of
HTTP Headers
nabil
"Toby z" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> nabil
>
> can you share the exact error and the code with us ?????
>
> toby
>
> --- nabil <[EMAIL PROTECTED]> wrote: > I m going to tear my
> hair off, I can not solve the problem..
> >
> > The specified CGI application misbehaved by not returning a
> > complete set of
> > HTTP headers
> >
> > but in php.ini i made :
> > cgi.rfc2616_headers = 1
> > cgi.force_redirect = 0
> >
> > what should I do next ?
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> ________________________________________________________________________
> Want to chat instantly with your online friends? Get the FREE Yahoo!
> Messenger http://mail.messenger.yahoo.co.uk
--- End Message ---
--- Begin Message ---
well any local php file wouldnt necessarily include phpmyamdin as
thats a folder
if you r encountering this problem only for myadmin files like
db_details.php or index.php
you ll have to check ur config file for myadmin
fixup the localhost address and stuff
but if u get this for all other php pages too .....
lemme know and ill try to fixup ur php.ini and httpd.conf
o by the way what server r u using ?????
toby .....
--- nabil <[EMAIL PROTECTED]> wrote: > when I open any local
php file like phpmyadmin , I have to refresh
> many time
> to get the page displayed.. or if I used header function (after
> successful
> login)
> and I m just getting
>
> CGI ERROR
> The specified CGI application misbehaved by not returning a
> complete set of
> HTTP Headers
>
>
> nabil
>
>
>
> "Toby z" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > nabil
> >
> > can you share the exact error and the code with us ?????
> >
> > toby
> >
> > --- nabil <[EMAIL PROTECTED]> wrote: > I m going to tear
> my
> > hair off, I can not solve the problem..
> > >
> > > The specified CGI application misbehaved by not returning a
> > > complete set of
> > > HTTP headers
> > >
> > > but in php.ini i made :
> > > cgi.rfc2616_headers = 1
> > > cgi.force_redirect = 0
> > >
> > > what should I do next ?
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
>
________________________________________________________________________
> > Want to chat instantly with your online friends? Get the FREE
> Yahoo!
> > Messenger http://mail.messenger.yahoo.co.uk
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--- End Message ---
--- Begin Message ---
Hi!
I've never tried generating graphics with php before but thought that I might have to
because of a problem with non-standard web fonts. Because a css with the following
code...
font-family: "BlissIf Caps BoldItalic", verdana, helvetica;
...would most certanly show verdana in the users browser.
So, my question is this; If I take my font (BlissIf Caps BoldItalic) and install it on
the server, could I use php to generate a graphic, lets say a transparent gif with the
text "Welcome" - with the text in the Bliss...-font?
.bobo [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
ofcourse u can ....
:)
toby
--- Bobo Wieland <[EMAIL PROTECTED]> wrote: > Hi!
>
> I've never tried generating graphics with php before but thought
> that I might have to because of a problem with non-standard web
> fonts. Because a css with the following code...
>
> font-family: "BlissIf Caps BoldItalic", verdana, helvetica;
>
> ...would most certanly show verdana in the users browser.
>
> So, my question is this; If I take my font (BlissIf Caps
> BoldItalic) and install it on the server, could I use php to
> generate a graphic, lets say a transparent gif with the text
> "Welcome" - with the text in the Bliss...-font?
>
>
> .bobo [EMAIL PROTECTED]
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--- End Message ---
--- Begin Message ---
I am trying to build a dynamic database map that will return a page that
shows each Table in the database along with the Column names and the
datatype of each column in a rather large Microsoft SQL Server database.
I know how to extract the column names for the tables, as well as the
datatypes of the column...but for the life of me I can't figure out the
SQL query to use to retrieve a list of the tables a database contains. It
is important that the script be able to account for changes to the
database.
Does anyone know the SQL to extract the user created tables in a MSSQL
database?
Thanks,
Ron
--- End Message ---
--- Begin Message ---
On Thu, 18 Sep 2003, Herhuth, Ron wrote:
The database that you're looking at should have a table called
sysobjects. I'd get everything in that table where xtype = U (I think)
>
> I am trying to build a dynamic database map that will return a page that
> shows each Table in the database along with the Column names and the
> datatype of each column in a rather large Microsoft SQL Server database.
> I know how to extract the column names for the tables, as well as the
> datatypes of the column...but for the life of me I can't figure out the
> SQL query to use to retrieve a list of the tables a database contains. It
> is important that the script be able to account for changes to the
> database.
>
> Does anyone know the SQL to extract the user created tables in a MSSQL
> database?
>
> Thanks,
> Ron
>
>
--- End Message ---
--- Begin Message ---
Hi,
Here is a script that I use to pull this and some other information
mssql_select_db("$db");
$res=mssql_query("select name,id from sysobjects where type='u' order by name");
while (list($table,$id) = mssql_fetch_row($res)) {
$res2 = mssql_query("select count(*) from $table");
list($rows)=mssql_fetch_row($res2);
$res2=mssql_query("select syscolumns.name, systypes.name as type,
syscolumns.length
from syscolumns join systypes on syscolumns.xtype=systypes.xusertype
where syscolumns.id =$id order by colid");
echo "<table border=1><tr><td width=200><b>$table</b><br> - ialt $rows
poster</td><td width=300>";
echo "<table>";
while (list($name,$type,$size) = mssql_fetch_row($res2)) {
[EMAIL PROTECTED]("select count(*) from $table where $name > ' '") or
$res3=mssql_query("select count(*) from $table where $name is not
null");
list($comp) = mssql_fetch_row($res3);
$comp = ($rows > 0)?round($comp/$rows*100,1):100;
echo "<tr ><td height=8>$name</td><td>$type [$size] $comp %
</td></tr>";
}
echo "</table></td></tr></table></body>";
}
hth Henrik Hornemann
> -----Oprindelig meddelelse-----
> Fra: Herhuth, Ron [mailto:[EMAIL PROTECTED]
> Sendt: 18. september 2003 15:07
> Til: [EMAIL PROTECTED]
> Emne: [PHP-WIN] Retrieving Database Table Names
>
>
>
> I am trying to build a dynamic database map that will return
> a page that
> shows each Table in the database along with the Column names and the
> datatype of each column in a rather large Microsoft SQL
> Server database.
> I know how to extract the column names for the tables, as well as the
> datatypes of the column...but for the life of me I can't
> figure out the
> SQL query to use to retrieve a list of the tables a database
> contains. It
> is important that the script be able to account for changes to the
> database.
>
> Does anyone know the SQL to extract the user created tables in a MSSQL
> database?
>
> Thanks,
> Ron
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Yeah that was what I was expecting to hear.
We are using MySQL ofcause (remote), but the boss wanted to have our PHP
app. (remote) to speak to some old crappy Windows app. (local) which could
use Access if requested of it, and otherwise some DB that dosn't even have
ODBC-drivers.
As i saw it, only stuff like SQL Server running some Access DB could handle
the task and that is out of the question.
I thought the idea was way out of date, almost before it was even made
suggested aka I thoght the idea was a joke.
Thanks for the reply :o)
/Aida
"Hubo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> There is no way to access a remote MS-Access Database over the internet.
Try
> to switch to mysql or any other database system which is *not* designed
for
> desktop access only.
>
>
> "Aidal" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> > Hi everyone.
> >
> > I'm trying to figure out how to make my PHP connect to a remote Access
> > database.
> >
> > So far the idea I have is to somhow share out a DSN for the Access
> database,
> > and then make PHP odbc_connect to it somhow over the Internet. How to do
> > this however, I'm not sure about.
> >
> > If anyone has tried to do somthing similar, knows it's not possible,
knows
> > how to do it or whatever - it would be greatly appreciated!
> >
> > NOTE: I have full control over the Access database and the server
running
> > it - It's my PHP which is remote to my location.
> >
> > Thanks for your time...
> > /Aidal
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--- End Message ---
--- Begin Message ---
Hi everyone.
I have absolutely no doubt that this has been asked and answered before
somewhere, but anyway...
How is it that you work around the problem with spaces in the file path when
using passthru(), system() or exec() ?
I have had the problem before a while back and I can't remember how I solved
it back then.
Any suggestions?
/Aidal
--- End Message ---
--- Begin Message ---
On a guess, I would say quote marks. Also using a regular slash / instead of
a backslash \ works for me.
John
"Aidal" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi everyone.
>
> I have absolutely no doubt that this has been asked and answered before
> somewhere, but anyway...
>
> How is it that you work around the problem with spaces in the file path
when
> using passthru(), system() or exec() ?
>
> I have had the problem before a while back and I can't remember how I
solved
> it back then.
>
> Any suggestions?
>
> /Aidal
--- End Message ---
--- Begin Message ---
Here's how I do it with passthru():
$cmd = "mycmd.exe Keyword(\"+$keyword[$k];|d:$origpath\")";
passthru($cmd);
Thanks,
John Ellingsworth
http://mail.med.upenn.edu/~jellings/
-----Original Message-----
From: Aidal [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 9:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] passthru(), system(), exec()
Hi everyone.
I have absolutely no doubt that this has been asked and answered before
somewhere, but anyway...
How is it that you work around the problem with spaces in the file path when
using passthru(), system() or exec() ?
I have had the problem before a while back and I can't remember how I solved
it back then.
Any suggestions?
/Aidal
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Dear PHP Users,
I have just read and signed the online petition:
"Stop Verisign DNS Abuse"
hosted on the web by PetitionOnline.com, the free online petition
service, at:
http://www.PetitionOnline.com/icanndns/
I personally agree with what this petition says, and I think you might
agree, too. If you can spare a moment, please take a look, and consider
signing yourself.
Best wishes,
Rodney Green
--- End Message ---
--- Begin Message ---
anyone played with shmop on windows?
in particular, i'm looking to create a persistent store where I can
serialize large chunks of data (well, "large" meaning 64-128Mb) and stick it
into memory. Maybe there's even an in-memory caching class out there.
I've currently got a class for caching serialized chunks in db (mysql), but
the core set of application fw objects are large and if there's not need to
go to disk i/o all the better.
Anybody tried this b4 in php?
--- End Message ---
--- Begin Message ---
Guys,
I have moved from a foxserv(apache, php, mysql, all in one
install tool) windows test environment to a Linux apache php
mysql setup specifically mandrake linux production server.
The problem I am having is that when I try to pass values to the
database the php fails.
I think I have singled it down to the connection string but I am
not sure.
basically, I have tested the sample code in the book 'beginning
php' by (wrox).
I have made no changes.
I think that the dbhost is the problem.
when I look at the phpinfo page it shows me not localhost but a
'name.com'
so I try $dbhost = 'name.com';
and then i also try $dbhost = 'localhost';
and neither seem to work.
Can anyone tell me what I'm doing wrong?
Here is my sample code:
My db connect include file::::::
<?php
//common_db.inc
$dbhost = 'localhost';
$dbusername = 'name';
$dbuserpassword = 'pass';
$default_dbname = 'test';
$MYSQL_ERRNO = '';
$MYSQL_ERROR = '';
function db_connect() {
global $dbhost, $dbusername, $dbuserpassword,
$default_dbname;
global $MYSQL_ERRNO, $MYSQL_ERROR;
$link_id = mysql_connect($dbhost, $dbusername,
$dbuserpassword);
if(!$link_id) {
$MYSQL_ERRNO = 0;
$MYSQL_ERROR = "Connection failed to the host $dbhost.";
return 0;
}
else if(empty($dbname) && !mysql_select_db($default_dbname))
{
$MYSQL_ERRNO = mysql_errno();
$MYSQL_ERROR = mysql_error();
return 0;
}
else return $link_id;
}
function sql_error() {
global $MYSQL_ERRNO, $MYSQL_ERROR;
if(empty($MYSQL_ERROR)) {
$MYSQL_ERRNO = mysql_errno();
$MYSQL_ERROR = mysql_error();
}
return "$MYSQL_ERRNO: $MYSQL_ERROR";
}
?>
My php sample code:::::::
<?php
//db_connect.php
include "common_db.inc";
error_reporting(0);
$link_id = db_connect();
if(!$link_id) die(sql_error());
else echo "Successfully made a connection to $dbhost.<BR>";
?>
My error is a white screen
and this is simple code out of the book.
Could it be my dbhost is incorrect. I checked my services and
Mysql is running.
Apache running and parsing other php pages that don't do a db
connect so I'm pretty sure it's the db connect stuff.
Thanks,
Frank
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--- End Message ---
--- Begin Message ---
I ve been trying to use the PDF function to create/read PDF files, but i ve
many problems.
Can anyone give a clue how can i create/read PDF files with PHP?
Thanks...
--- End Message ---
--- Begin Message ---
An issue that I ran into involved two things.
First: Inorder for IE to send the pdf to Acrobat, the pdf data must not
be Gzipped. Turn of output compression
Second: Don't use sessions on the page that sends the headers and the
pdf data
Charles Killmer
-----Original Message-----
From: Paulo Nunes [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 7:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP and PDF
I ve been trying to use the PDF function to create/read PDF files, but i
ve many problems. Can anyone give a clue how can i create/read PDF files
with PHP? Thanks...
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Has anyone heard of this company? I just bought a motherboard from them for $20
dollars, seems to good to be true.
http://www.tigersurplus.com
Thanks
BJ
--- End Message ---
--- Begin Message ---
Has anyone heard of this company? I just bought a motherboard from them for $20
dollars, seems to good to be true.
http://www.tigersurplus.com
Thanks
BJ
--- End Message ---
--- Begin Message ---
Doesn't really have to do with php now does it.
-----Original Message-----
From: Ben Wheeler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 2:11 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Quick Question
Has anyone heard of this company? I just bought a motherboard from them for
$20 dollars, seems to good to be true.
http://www.tigersurplus.com
Thanks
BJ
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
<?
phpinfo();
?>
Thanks,
John Ellingsworth
http://mail.med.upenn.edu/~jellings/
-----Original Message-----
From: Ben Wheeler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 3:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Quick Question
Has anyone heard of this company? I just bought a motherboard from them for
$20 dollars, seems to good to be true.
http://www.tigersurplus.com
Thanks
BJ
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This is a cross post spam! I have already replied to him once and told him
not to post this to a software list but I guess he just doesn't learn. This
is the e-mail that I sent him:
--------------
I just did a Google on them (now package2you.com) and ResellerRatings.com
(before they died) had many reviews of this company, many of them very bad.
People received broken items and the company sells 'As Is' so they could
return the items and pay a %15 restocking fee or just keep the broken stuff.
Some people tried to get a resolution a dispute and never heard back from
the company. One guy placed 3 orders and only a mouse worked among
everything he purchased. If it were me, I would not even attempt to order
from them.
FYI, this sort of question does not belong on a software mail list. And what
s with putting your e-mail address up 5 times in the From: field? If I was
not such a trusting sole, I would go public and accuse you of spamming for
that company. But I am giving you the benefit of a doubt this time and only
sending this response to you.
Jim
--------------
So I guess I am no longer trusting and I am publicly accusing him of
spamming. To me it looks like he is connected in some way with this web site
IMHO this web site should be avoided at all cost.
Sorry to use up precious space on this list, but at least now no one else
will have to reply to it, I think I have said enough about it.
Jim
-------Original Message-------
From: Ben Wheeler
Date: Thursday, September 18, 2003 11:40:38
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Quick Question
Has anyone heard of this company? I just bought a motherboard from them for
$20 dollars, seems to good to be true.
http://www.tigersurplus.com
Thanks
BJ
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
--- End Message ---
--- Begin Message ---
Greetings,
I am new to PHP and MySql so be gentle. I have just installed the latest
versions of PHP and MySql under Windows XP and IIS. PHP works and MySql
works as I can log into the MySql prompt and create tables and such.
However from a php script in a web page the mysql_connect time outs after 60
seconds. I am not sure what settings I am mussing.
I installed the default windows binary with mysql support.
Anyone can help?
Thanks in advance,
Dave
--- End Message ---
--- Begin Message ---
i just recently installed apache2 on my computer and then php4.3.3, so i
could test my scripts (im learnin) and I think im missing something
configuring php, i was trying out my scripts and this message came up:
Forbidden
You don't have permission to access /<br /><b>Notice</b>: Undefined
variable: PHP_self in <b>C:/site/assignement5advanced.php</b> on line
<b>26</b><br /> on this server.
i cant find anything related to php_self funtion on the php.net site, or at
least the search engine cant :P, someone has a clue on what it could be?
_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
--- End Message ---
--- Begin Message ---
yeah, i can also run scripts, i stopped testing when that funtion didnt work
tho so i dunno if i cant do any more funtions
From: "John Ellingsworth" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: Luís Sousa <[EMAIL PROTECTED]>
Subject: RE: [PHP-WIN] Problem with $PHP_SELF and possibly some others
Date: Thu, 18 Sep 2003 15:08:24 -0400
Can you view a plain-jane html page in the same directory?
Thanks,
John Ellingsworth
http://mail.med.upenn.edu/~jellings/
-----Original Message-----
From: Luís Sousa [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 3:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Problem with $PHP_SELF and possibly some others
i just recently installed apache2 on my computer and then php4.3.3, so i
could test my scripts (im learnin) and I think im missing something
configuring php, i was trying out my scripts and this message came up:
Forbidden
You don't have permission to access /<br /><b>Notice</b>: Undefined
variable: PHP_self in <b>C:/site/assignement5advanced.php</b> on line
<b>26</b><br /> on this server.
i cant find anything related to php_self funtion on the php.net site, or at
least the search engine cant :P, someone has a clue on what it could be?
_________________________________________________________________
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
--- End Message ---
--- Begin Message ---
I had the same problem.
For me, the solution was adding 'global $PHP_SELF' at the beginning of the
file and it suddenly started working.
Anthony
----- Original Message -----
From: "Luís Sousa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 12:22 PM
Subject: RE: [PHP-WIN] Problem with $PHP_SELF and possibly some others
> yeah, i can also run scripts, i stopped testing when that funtion didnt
work
> tho so i dunno if i cant do any more funtions
>
>
> >From: "John Ellingsworth" <[EMAIL PROTECTED]>
> >Reply-To: <[EMAIL PROTECTED]>
> >To: Luís Sousa <[EMAIL PROTECTED]>
> >Subject: RE: [PHP-WIN] Problem with $PHP_SELF and possibly some others
> >Date: Thu, 18 Sep 2003 15:08:24 -0400
> >
> >Can you view a plain-jane html page in the same directory?
> >
> >Thanks,
> >
> >John Ellingsworth
> >http://mail.med.upenn.edu/~jellings/
> >
> >
> >
> >
> >-----Original Message-----
> >From: Luís Sousa [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, September 18, 2003 3:01 PM
> >To: [EMAIL PROTECTED]
> >Subject: [PHP-WIN] Problem with $PHP_SELF and possibly some others
> >
> >
> >i just recently installed apache2 on my computer and then php4.3.3, so i
> >could test my scripts (im learnin) and I think im missing something
> >configuring php, i was trying out my scripts and this message came up:
> >
> >Forbidden
> >You don't have permission to access /<br /><b>Notice</b>: Undefined
> >variable: PHP_self in <b>C:/site/assignement5advanced.php</b> on line
> ><b>26</b><br /> on this server.
> >
> >i cant find anything related to php_self funtion on the php.net site, or
at
> >least the search engine cant :P, someone has a clue on what it could be?
> >
> >_________________________________________________________________
> >MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> _________________________________________________________________
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---