php-windows Digest 4 Jun 2002 18:30:15 -0000 Issue 1175
Topics (messages 14066 through 14071):
Re: Double quotes question
14066 by: Tomator
Re: a problem.
14067 by: D.Terziev
form Post action
14068 by: Martin.Andrew
14069 by: Ilker Cetinkaya
PHP 4.2.1. on PWS...
14070 by: Mircea Goia
Re: notice:undefined variable
14071 by: Michael Davey
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 ---
"Clay Culver" <[EMAIL PROTECTED]> wrote:
>
> I have a script that lists the files in a directory, and
> create links accordingly but if the files contain spaces then the link
> won't come out correctly. I am fairly new to PHP and have no real idea
> on how I can get it to make links show as <a href="link"></a> currently
> it will put links like <a href=link></a> which is causing the problem.
Quotes are not enough. If your filename contains spaces or other 'special'
characters you will still have the problem. I suggest you try use function
urlencode() to create URLs.
print ("<A HREF=\"urlencode($link)\">link descr.<A>")
This could be helpfull, but you must check it.
--- End Message ---
--- Begin Message ---
Thanks to all for the answers! I've made it! :-)
with $HTTP_GET_VARS , $_REQUEST and so on...
It works ok... thanks again.
"D.Terziev" <[EMAIL PROTECTED]> wrote in message
002001c20a2f$9a1ae630$0100a8c0@azure">news:002001c20a2f$9a1ae630$0100a8c0@azure...
> Hi
>
> I have a problem and I hope that you can help me.
>
> It's my second time when I install PHP on Win XP Pro useing IIS
WebServices.
> The first time
> all was Ok. I use the CGI version of PHP (php.exe). So, the problem is
that
> when i type
> http://localhost/php/myscript.php?var=something
>
> PHP return error that $var is undefined variable.
> when I set $var = something in the source code all is working Ok, but it
> doesn't via Web Browser.
>
> Can you help me? What's wrong?
>
> Are you need any other info about my system?
>
> Thanks in advance.
>
>
>
--- End Message ---
--- Begin Message ---
I have a strange Bug that only appears in Netscape 4.7*
I have a set of user vaiables in a form in the menu frame, I copy these
variables (using javascript) to another form in the main frame of the
application, when I post this form I echo the name of the form input values.
In all browsers the variables are displayed correctly except in Netscape
4.7* I if I look into the code of the generated page I see the following...
<TITLE>Missing Post reply data</TITLE>
<H1>Data Missing</H1>
This document resulted from a POST operation and has expired from the
cache. If you wish you can repost the form data to recreate the
document by pressing the <b>reload</b> button.
Reloading the frame doesn't work! I tried clearing the cache but doesn't
help.
Anyone any ideas?
Thanks.
--- End Message ---
--- Begin Message ---
hi martin,
maybe you're mangling post and get together....
example
<form action='test.php?bla=bla' method='post'>
watch that action url contains a get parameter and method is post
afaik won't work with ns4.7
hth
ilker
"Martin.Andrew" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a strange Bug that only appears in Netscape 4.7*
>
> I have a set of user vaiables in a form in the menu frame, I copy these
> variables (using javascript) to another form in the main frame of the
> application, when I post this form I echo the name of the form input
values.
>
> In all browsers the variables are displayed correctly except in Netscape
> 4.7* I if I look into the code of the generated page I see the
following...
>
> <TITLE>Missing Post reply data</TITLE>
> <H1>Data Missing</H1>
> This document resulted from a POST operation and has expired from the
> cache. If you wish you can repost the form data to recreate the
> document by pressing the <b>reload</b> button.
>
> Reloading the frame doesn't work! I tried clearing the cache but doesn't
> help.
> Anyone any ideas?
>
> Thanks.
>
--- End Message ---
--- Begin Message ---
Hi,
I've installed PHP 4.2.1 (Windows installer) on Windows 98 which uses
Personal Web Server 4.
And when I'm trying to access a .php page I get this:
~~~~~~~
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This
means that a page will only be served up if the REDIRECT_STATUS CGI
variable is set, e.g. via an Apache Action directive.
For more information as to why this behaviour exists, see the manual
page for CGI security.
For more information about changing this behaviour or re-enabling this
webserver, consult the installation file that came with this
distribution, or visit the manual page.
~~~~~~~~
What this means? I visited those two links but I didn't understand
too much (my background is ASP/SQL server)
When I used PHP 4.1.1. (also Windows installer) on the same
configuration all worked well.
What should I do for PHP 4.2.1.to work?
Thanks,
Mircea
--
Mircea Goia
Web Developer and web design team coordinator
http://www.deep.ro (DEEP Foundation)
http://www.jiuvalley.com (Jiu Valley regional web portal)
----------------
Mircea Goia
Dezvoltator web si coordonator echipa web design
http://www.deep.ro (Fundatia DEEP)
http://www.valeajiului.ro (portalul regional al Vaii Jiului)
--- End Message ---
--- Begin Message ---
OK - couple of things first:
a) The PHP mailing list is for programmers of PHP looking for help making
their own scripts - not for people who want support for implementing someone
else's script. There is a link on the site where I found a copy of your
script offering support, this is where you should have gone first.
b) This is a mailing list, and as such replies should be made to the list -
not to individuals who subscribe the list.
c) You still didn't send the source code for the form - I had to go and look
for it myself on the net.
> Hi Michael,
>
> Our client uses the formmail.php script. He said to me that he
> used it as is
> with his previous ISP - it was not necessary for him to change anything.
> I configured the php.ini in the NTWin directory correctly. As a test I do
> not add anything to the email field (on the form) but it does not make any
> difference in the errror message.
>
> The page can be found at www.reservationhouse.co.za and then the
> link on the
> lefthand side: bookings and information.
However, the problem appears to be quite simple - if you create a simple
script like the one below and run it on your server, you should see a
setting called "register_globals". This setting need to be "On" for your
script to work. Newer versions of PHP disable this by default as it
compromises both speed and security.
List config script:
<?
phpinfo();
?>
If you are leasing space, you will probably not have access to the php.ini
file to make this change. You can however specify php settings in a file
named ".htaccess" placed in your root web directory, eg:
.htaccess:
php_value register_globals On
regards,
Mikey
--- End Message ---