php-windows Digest 7 Jan 2003 10:17:00 -0000 Issue 1523
Topics (messages 17680 through 17694):
New to PHP
17680 by: Palli
17681 by: Mikey
17682 by: Asendorf, John
php.ini cached?
17683 by: Rad Craig
17684 by: Miha Nedok
17686 by: Rad Craig
17687 by: Christoph Grottolo
17691 by: Miha Nedok
newbie ...instal question.
17685 by: paradiddles
17688 by: Dash McElroy
Problem with 'include' function in PHP 4.3
17689 by: Mehran Ziadloo
17690 by: Christoph Grottolo
Re: Subject: GD, UNICODE & RTL
17692 by: Mottaghi
Using VS.NET for PHP Projects - Revisit
17693 by: Sean Malloy
Running php on windows98 with apache server !
17694 by: Raheel Hussain
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 ---
Hello
Im new to PHP and I have a little problem.
It seems that I always get a blank value from a query string.
This is my code
<a href="login.php?Action=Login">BLA </a>
and this is login.php
<tr>
<td width="100%" colspan="2">
<!--Main page-->
<?php
if (empty($Action))
{
include("MainPage.php");
}
else
{
if($Action == 'Login')
{
include("loginpage.php");
}
else
{
include("MainPage.php");
}
}
?>
</td>
</tr>
but the $Action is always empty.
ps. I´ve tried to change the variable name but no succes.
thanx
Palli
--- End Message ---
--- Begin Message ---
Have you set register_globals=On in your php.ini file? This is disabled by
default as it poses a security risk... in your case it would be better to
access your variable as $_GET['Action']
HTH,
Mikey
> -----Original Message-----
> From: Palli [mailto:[EMAIL PROTECTED]]
> Sent: 06 January 2003 20:53
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] New to PHP
>
>
> Hello
>
> Im new to PHP and I have a little problem.
> It seems that I always get a blank value from a query string.
>
> This is my code
>
> <a href="login.php?Action=Login">BLA </a>
>
> and this is login.php
>
> <tr>
> <td width="100%" colspan="2">
> <!--Main page-->
> <?php
> if (empty($Action))
> {
> include("MainPage.php");
> }
> else
> {
> if($Action == 'Login')
> {
> include("loginpage.php");
> }
> else
> {
> include("MainPage.php");
> }
> }
> ?>
> </td>
> </tr>
>
>
> but the $Action is always empty.
>
> ps. I´ve tried to change the variable name but no succes.
>
> thanx
> Palli
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
--- End Message ---
--- Begin Message ---
Your register_globals is probably turned off, and since you probably don't
have the ability to alter the ini file, try putting this at the top of your
code:
$Action = $_REQUEST['Action'];
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Palli [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 3:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] New to PHP
>
>
> Hello
>
> Im new to PHP and I have a little problem.
> It seems that I always get a blank value from a query string.
>
> This is my code
>
> <a href="login.php?Action=Login">BLA </a>
>
> and this is login.php
>
> <tr>
> <td width="100%" colspan="2">
> <!--Main page-->
> <?php
> if (empty($Action))
> {
> include("MainPage.php");
> }
> else
> {
> if($Action == 'Login')
> {
> include("loginpage.php");
> }
> else
> {
> include("MainPage.php");
> }
> }
> ?>
> </td>
> </tr>
>
>
> but the $Action is always empty.
>
> ps. I´ve tried to change the variable name but no succes.
>
> thanx
> Palli
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Does php.ini get cached by Win2k or IIS 5? I make changes to it, restart
IIS, run phpinfo() and none of the stuff I changed is different.
================================
Rad Craig
--- End Message ---
--- Begin Message ---
How do you restart it ? Just click on stop/start or you actually click
restart server ? And which version of PHP are you using and tell the
location of your php.ini .
-Mike
On Mon, 6 Jan 2003, Rad Craig wrote:
> Date: Mon, 6 Jan 2003 15:31:43 -0600
> From: Rad Craig <[EMAIL PROTECTED]>
> To: PHP Windows <[EMAIL PROTECTED]>
> Subject: [PHP-WIN] php.ini cached?
>
> Does php.ini get cached by Win2k or IIS 5? I make changes to it, restart
> IIS, run phpinfo() and none of the stuff I changed is different.
>
>
> ================================
> Rad Craig
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
PHP: 4.3.0
I click Stop, then Click Start.
php.ini is in the C:\WINNT directory (C:\WIN_NT actually since this is where
my windows runs from).
> -----Original Message-----
> From: Miha Nedok [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 3:35 PM
> To: Rad Craig
> Cc: PHP Windows
> Subject: Re: [PHP-WIN] php.ini cached?
>
>
>
> How do you restart it ? Just click on stop/start or you actually click
> restart server ? And which version of PHP are you using and tell the
> location of your php.ini .
>
>
> -Mike
>
>
> On Mon, 6 Jan 2003, Rad Craig wrote:
>
> > Date: Mon, 6 Jan 2003 15:31:43 -0600
> > From: Rad Craig <[EMAIL PROTECTED]>
> > To: PHP Windows <[EMAIL PROTECTED]>
> > Subject: [PHP-WIN] php.ini cached?
> >
> > Does php.ini get cached by Win2k or IIS 5? I make changes to
> it, restart
> > IIS, run phpinfo() and none of the stuff I changed is different.
> >
> >
> > ================================
> > Rad Craig
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
--- End Message ---
--- Begin Message ---
Rad Craig wrote:
> PHP: 4.3.0
>
> I click Stop, then Click Start.
>
> php.ini is in the C:\WINNT directory (C:\WIN_NT actually since this
> is where my windows runs from).
If you use the ISAPI version of PHP (not php.exe)
start a dos shell
type 'net stop iisadmin' and then 'Y'
type 'net start w3svc'
If you restart IIS with the buttons, it won't work. If you use CGI (php.exe)
restarting the web server is not necessary.
Christoph
--- End Message ---
--- Begin Message ---
Relocate your php.ini to C:\WIN_NT\SYSTEM32 and restart IIS with net stop
w3svc and net start w3svc.
-Mike
On Mon, 6 Jan 2003, Rad Craig wrote:
> Date: Mon, 6 Jan 2003 15:57:15 -0600
> From: Rad Craig <[EMAIL PROTECTED]>
> To: Miha Nedok <[EMAIL PROTECTED]>
> Cc: PHP Windows <[EMAIL PROTECTED]>
> Subject: RE: [PHP-WIN] php.ini cached?
>
> PHP: 4.3.0
>
> I click Stop, then Click Start.
>
> php.ini is in the C:\WINNT directory (C:\WIN_NT actually since this is where
> my windows runs from).
>
>
> > -----Original Message-----
> > From: Miha Nedok [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 06, 2003 3:35 PM
> > To: Rad Craig
> > Cc: PHP Windows
> > Subject: Re: [PHP-WIN] php.ini cached?
> >
> >
> >
> > How do you restart it ? Just click on stop/start or you actually click
> > restart server ? And which version of PHP are you using and tell the
> > location of your php.ini .
> >
> >
> > -Mike
> >
> >
> > On Mon, 6 Jan 2003, Rad Craig wrote:
> >
> > > Date: Mon, 6 Jan 2003 15:31:43 -0600
> > > From: Rad Craig <[EMAIL PROTECTED]>
> > > To: PHP Windows <[EMAIL PROTECTED]>
> > > Subject: [PHP-WIN] php.ini cached?
> > >
> > > Does php.ini get cached by Win2k or IIS 5? I make changes to
> > it, restart
> > > IIS, run phpinfo() and none of the stuff I changed is different.
> > >
> > >
> > > ================================
> > > Rad Craig
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
--- End Message ---
--- Begin Message ---
I just installed php 4.3.0-win32, mysql-3.23.54-win and apache_1.3.27 on Win2000 in
hopes of
getting my feat wet. Well, I've yet to get past the phpinfo.php (test) page w/out
getting the "file not found" error.
After following the instructions from php.net, I thought that I was on target. The
last thing I tried was to add the... LoadModule mod_php4
c:/php/php-4.3.0-win32/sapi/php4apache.dll ...line to the config file after I copied
my DLL file into the system 32 directory. When I go to fireup apache, I get the error:
"can't locate API module structure 'mod_php4 in the
c:/php/php-4.3.0-win32/sapi/php4apache.dll ...
Any smart people out there who can lend a freshman a bit of help?
thanks,
Patrick
----------------
"you can observe a lot by watching"
~ Yogi Berra
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
Did you copy the php4ts.dll file to c:\winnt\system32 (or windows or
whatever your w2k dir is)?
If that doesn't do the trick, you may have to do an 'AddModule mod_php4' in
the Apache config. I had to do this on a Win98 machine yesterday, but have
so far not had to load that line on any Win2k machine.
-Dash
-----Original Message-----
From: paradiddles [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 1:49 PM
To: PHP Windows
Subject: [PHP-WIN] newbie ...instal question.
I just installed php 4.3.0-win32, mysql-3.23.54-win and apache_1.3.27 on
Win2000 in hopes of
getting my feat wet. Well, I've yet to get past the phpinfo.php (test) page
w/out getting the "file not found" error.
After following the instructions from php.net, I thought that I was on
target. The last thing I tried was to add the... LoadModule mod_php4
c:/php/php-4.3.0-win32/sapi/php4apache.dll ...line to the config file after
I copied my DLL file into the system 32 directory. When I go to fireup
apache, I get the error: "can't locate API module structure 'mod_php4 in the
c:/php/php-4.3.0-win32/sapi/php4apache.dll ...
Any smart people out there who can lend a freshman a bit of help?
thanks,
Patrick
----------------
"you can observe a lot by watching"
~ Yogi Berra
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
Hi
I don't know if it's a bug or what? But I've reached a problem using PHP 4.3
which I downloaded it yesterday.
It's about 'include' function, I can't include a php file using an absolute
address. For example, all my pages are in "D:\Inetpub\wwwroot". And when I
want to include a page with the address:
"D:\Inetpub\wwwroot\includes\a.php"
with the command:
"include '/includes/a.php';"
it can't be done, it says:
Warning: main(/includes/a.php) [function.main]: failed to create stream: No
such file or directory in D:\Inetpub\wwwroot\index.php on line 2
Warning: main() [function.main]: Failed opening '/includes/a.php' for
inclusion (include_path='.;D:\Inetpub\wwwroot') in
D:\Inetpub\wwwroot\index.php on line 2
And as you can see above I know about the 'include_path' and I've set it to
'D:\Inetpub\wwwroot'.
Now I'll be really grateful if anyone helps.
--- End Message ---
--- Begin Message ---
Mehran Ziadloo wrote:
> It's about 'include' function, I can't include a php file using an
> absolute address. For example, all my pages are in
> "D:\Inetpub\wwwroot". And when I want to include a page with the
> address:
>
> "D:\Inetpub\wwwroot\includes\a.php"
>
> with the command:
>
> "include '/includes/a.php';"
>
> it can't be done, it says:
>
> Warning: main(/includes/a.php) [function.main]: failed to create
> stream: No such file or directory in D:\Inetpub\wwwroot\index.php on
> line 2
>
> Warning: main() [function.main]: Failed opening '/includes/a.php' for
> inclusion (include_path='.;D:\Inetpub\wwwroot') in
> D:\Inetpub\wwwroot\index.php on line 2
>
try like this:
include ('includes/a.php'); //without slash at the beginning
The slash at the beginning has a special meaning on all *nix systems (it's
the system root). You must not confund file system paths which you use in
PHP scripts with link paths in HTML (i.e. <a
href="/mainpage.html">Homepage</a>).
Christoph
--- End Message ---
--- Begin Message ---
Hi all and thanks,
my problem:
I want to create my bitmaps with GD functions, I call GD functions (like
imagettftext()) and send them any RTL sentence, but it write and crate it
LTR!!!
thanks a lot :)
----- Original Message -----
From: "Neil Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 2:14 PM
Subject: [PHP-WIN] Fwd: Re: Subject: GD, UNICODE & RTL
> Oops - missed a bit :
>
> Look here for mozilla information and examples on bi directional text:
>
> http://www.langbox.com/bidimozilla/
>
> Also check "text-kashida-space" and "writing-mode " here :
> http://www.georgehernandez.com/xWebs/CSS/CSSAttributes.htm
>
> regards,
> Neil.
>
>
> >Date: Mon, 06 Jan 2003 10:42:09 +0000
> >To: [EMAIL PROTECTED]
> >From: Neil Smith <[EMAIL PROTECTED]>
> >Subject: Re: Subject: GD, UNICODE & RTL
> >Cc: [EMAIL PROTECTED]
> >
> >Mottaghi - you might be better advised to investigate CSS for this on the
> >browser :
> >
>
>http://msdn.microsoft.com/library/default.asp?url=/workshop/author/css/refe
rence/attributes.asp
> >
> >Check the following sub-sections :
> >Text direction
> >"direction "
> >
> >
> >You can specify a class for right to left ("bidi == bi directional") :
> >"unicode-bidi "
> >
> >You can specify "ruby" text which can have summarised pronounciation /
> >accent hints above the text
> >"ruby-align"
> >"ruby-overhang"
> >"ruby-position"
> >
> >More info :
>
>http://www.pms.informatik.uni-muenchen.de/lehre/seminar/internationalisatio
n/02ss/reports-slides/topicH/Report.html
> >
> >
> >These techniques will work in most recent browsers - IE5, NN5, Moz,
Opera6
> >etc. They will also allow some degree of indexing by search engines.
> >
> >Hope that helps,
> >Regards,
> >Neil Smith.
> >
> >At 06:47 06/01/2003 +0000, you wrote:
> >>--- Mottaghi <[EMAIL PROTECTED]> wrote: > Hi all,
> >> > I want to write a Right-to-Left (like Arabic languages) sentence in
> >> > a bitmap
> >> > by unicode.......but HOW???
> >> >
> >> > :) thanks, bye
> >> >
> >> >
> >> > --
> >> > PHP Windows Mailing List (http://www.php.net/)
> >> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi.
I kind of got PHP syntax highlighting working within Visual Studio.NET
I've created a page, which mentions the steps you need to take to get it
working, as well as a screen shot. Everyone loves screen shots.
http://www.quake-au.net/php/php_and_vsdotnet.htm
Hope someone finds it useful apart from me.
Regards,
Sean
-----Original Message-----
From: Sean Malloy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 7 January 2003 1:34 PM
To: PHP General
Subject: [PHP] Using VS.NET for PHP Projects
I know I can use Visual Studio to edit PHP files as plain text, but has
anyone seen any way of creating some sort of add-in, or macro or whatever,
which would do syntax highlighting on PHP files?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hi,
I want to configure PHP on windows 98 with Apache,
my question is that is there any limitations of functionality on windows 98 , if i do
so.
and if yes then what are the limitations.
because when we configure ASP on win98 , then there are some limitations in ASP.
regards,
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---