php-windows Digest 10 Jun 2002 01:18:55 -0000 Issue 1183
Topics (messages 14136 through 14144):
Re: ImageCreateFromJPEG
14136 by: Piotr Pluciennik
Re: Why can't I retrieve a query to MySQL?
14137 by: Piotr Pluciennik
Feature Request: directory junctions/symlinks under nt/2k
14138 by: Timo Weingärtner
Re: Form Problem
14139 by: Fester
14144 by: Fester
PHP 4.2.1 And WinXP
14140 by: Gonik
14143 by: Tomator
Installing on Apache 2 with PHP
14141 by: Ben Davis
PHP4 + IIS 5.1
14142 by: Jeroen Schepens
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 ---
Any warning, error statements and so on...? Have you loaded the GD
extension?
Sean wrote:
> I cant seem to get ImageCreateFromJPEG() to work with PHP 4+ on Apache.
>
> Any ideas?
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Have you enabled error reporting in your php.ini?
Disabled will not show you possible errors, also syntax errors in your code. This
blank screen suggest syntax error.
HTH
Piotr
Blaine Dinsmore wrote:
> I have not been able to return results using MySQL with PHP 4.2.1 and IIS 4.0. I was
>wondering if anyone knew why?
> Despite putting error trapping for all my MySQL functions I only get a blank screen.
>
> thanks,
>
> Blaine
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
NTFS supports directory junctions which are equivalent to unix symlinks.
I found a toll that can create, read and delete such junctions.
Is there are posiibility to include that code into php so that it supports
it in realpath(), symlink(), linkinfo(), readlink(), filetype() and
is_link()?
The complete source code can be found at:
http://www.sysinternals.com/files/jnctnsrc.zip
--- End Message ---
--- Begin Message ---
Hi,
I am having the same problem, and can reproduce it with a simple test
script. When a user name and password are entered, the phpinfo output shows
that it is a POST method with an empty _SERVER[argv] array. I have verified
that register_globals is set to "on" in my php.ini. My test program looks
like this:
----------------------------------------------------------------------------
---
<HTML><HEAD><TITLE>application_name</TITLE></HEAD>
<BODY>
<?php echo "login = $login" ?>
<FORM NAME="login_form" ACTION="test.php" METHOD="POST">
<TABLE BORDER=0>
<TR><TD><B>Username</B></TD>
<TD><INPUT NAME="login" SIZE=10 VALUE="" TABINDEX="1"></TD></TR>
<TR><TD><B>Password</B></TD>
<TD><INPUT NAME="password" TYPE="password" SIZE=10 TABINDEX="2"></TD></TR>
<TR><TD COLSPAN=2><INPUT TYPE="checkbox" NAME="remember" VALUE="yes">Save
login via cookies so I don't have to login next time></TD></TR>
<TR><TD COLSPAN=2><INPUT TYPE="submit" VALUE="Login" TABINDEX="3"></TD></TR>
</TABLE>
<? phpinfo(); ?>
</FORM></BODY></HTML>
----------------------------------------------------------------------------
--------
"Ilker Cetinkaya" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> it seems as if register_globals option is turned off and therefore $submit
> is not set.
>
> hth
> ilker
>
>
> "James Meers" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I have this form and its just not picking up the submit
> variable however it is posting them!!!
>
> Can someone double check this, what have i done?
>
> James
>
> <html>
> <body>
> <?php
> include("newsconf.php3");
>
> while (list($name, $value) = each($HTTP_POST_VARS)) {
>
> echo "$name = $value<br>\n";
>
> }
>
> if (isset($submit)) {
> mysql_query("INSERT INTO $ntable VALUES
> ('','$title','$posted_by','$entry',NULL)");
>
> print("$title<br>\n");
> print("Posted by $posted_by<br>\n");
> print("$entry\n");
> }
>
> else {
> print("<form action=\"addnews.php3\" method=post>\n");
>
> $result = mysql_query("select name from $ptable")
> or die("Query broke!<br>\n");
> print("Posted By : <SELECT name=\"posted_by\">\n");
> while ($row = mysql_fetch_array($result)) {
> $name=$row["name"];
> print("<OPTION value=\"$name\">$name\n");
> }
> print("</SELECT><br>\n");
> ?>
> Title : <input type="Text" name="title" size=50><br>
> News :<br>
> <textarea rows=20 cols=80 name="entry"></textarea>
> <p>
> <input type="Submit" value="submit" name="submit">
> </form>
> <?php
> exit;
> }
> ?>
>
>
> </body>
> </html>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Some further details. My server config is: Apache/2.0.36 (Win32) DAV/2
PHP/4.2.1
Thanx again,
Fester
"Fester" <[EMAIL PROTECTED]> wrote in message
advn6h$9bi$[EMAIL PROTECTED]">news:advn6h$9bi$[EMAIL PROTECTED]...
> Hi,
>
> I am having the same problem, and can reproduce it with a simple test
> script. When a user name and password are entered, the phpinfo output
shows
> that it is a POST method with an empty _SERVER[argv] array. I have
verified
> that register_globals is set to "on" in my php.ini. My test program looks
> like this:
>
> --------------------------------------------------------------------------
--
> ---
> <HTML><HEAD><TITLE>application_name</TITLE></HEAD>
>
> <BODY>
> <?php echo "login = $login" ?>
>
> <FORM NAME="login_form" ACTION="test.php" METHOD="POST">
>
> <TABLE BORDER=0>
> <TR><TD><B>Username</B></TD>
> <TD><INPUT NAME="login" SIZE=10 VALUE="" TABINDEX="1"></TD></TR>
> <TR><TD><B>Password</B></TD>
> <TD><INPUT NAME="password" TYPE="password" SIZE=10
TABINDEX="2"></TD></TR>
> <TR><TD COLSPAN=2><INPUT TYPE="checkbox" NAME="remember" VALUE="yes">Save
> login via cookies so I don't have to login next time></TD></TR>
> <TR><TD COLSPAN=2><INPUT TYPE="submit" VALUE="Login"
TABINDEX="3"></TD></TR>
> </TABLE>
>
> <? phpinfo(); ?>
>
> </FORM></BODY></HTML>
>
> --------------------------------------------------------------------------
--
> --------
> "Ilker Cetinkaya" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > it seems as if register_globals option is turned off and therefore
$submit
> > is not set.
> >
> > hth
> > ilker
> >
> >
> > "James Meers" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello,
> >
> > I have this form and its just not picking up the submit
> > variable however it is posting them!!!
> >
> > Can someone double check this, what have i done?
> >
> > James
> >
> > <html>
> > <body>
> > <?php
> > include("newsconf.php3");
> >
> > while (list($name, $value) = each($HTTP_POST_VARS)) {
> >
> > echo "$name = $value<br>\n";
> >
> > }
> >
> > if (isset($submit)) {
> > mysql_query("INSERT INTO $ntable VALUES
> > ('','$title','$posted_by','$entry',NULL)");
> >
> > print("$title<br>\n");
> > print("Posted by $posted_by<br>\n");
> > print("$entry\n");
> > }
> >
> > else {
> > print("<form action=\"addnews.php3\" method=post>\n");
> >
> > $result = mysql_query("select name from $ptable")
> > or die("Query broke!<br>\n");
> > print("Posted By : <SELECT name=\"posted_by\">\n");
> > while ($row = mysql_fetch_array($result)) {
> > $name=$row["name"];
> > print("<OPTION value=\"$name\">$name\n");
> > }
> > print("</SELECT><br>\n");
> > ?>
> > Title : <input type="Text" name="title" size=50><br>
> > News :<br>
> > <textarea rows=20 cols=80 name="entry"></textarea>
> > <p>
> > <input type="Submit" value="submit" name="submit">
> > </form>
> > <?php
> > exit;
> > }
> > ?>
> >
> >
> > </body>
> > </html>
> >
> >
> >
> >
> > --
> > 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 ---
Recently i needed to format my HDD, because of some problems..
When I reinstalled WinXP Pro (and IIS of course) i had a problem with PHP
output..
I'm working on a forum developing latelly and when I try to post a new message
to the database (mysql) nothing happens! It's like that the form variables doesn't
parse..
But this happens only in some applications I have! eg. phpMyAdmin, phpBB2 and some
other apps are working great and some others don't :(
What do you suggest? Any advises are welcome!
PS. When I upload the forum on a host it works!
--- End Message ---
--- Begin Message ---
> It's like that the form variables doesn't parse..
> But this happens only in some applications I have! eg. phpMyAdmin, phpBB2
and some
> other apps are working great and some others don't :(
>
Maybe you didn't turn on register_globals in php.ini which is off by
default?
--- End Message ---
--- Begin Message ---
Does anyone know what directives to put in the httpd.conf file so that you can run
PHP. The LoadModule appears to no longer work in Apache2. I am trying to install PHP
4.2.1 onto Apache 2.0.36 on Windows 2000. Apache2 is currently setup correctly and I
have PHP installed, I just need to know what line to put in the httpd.conf file.
Thanks
Ben Davis
www.davisben.com
--- End Message ---
--- Begin Message ---
Hi, I was just trying to install php4 from php.net manually, but things
didn't work out the way I hoped. My browser just won't recognise php-files
and send them to php.exe. Can anyone give me some pointers? I don't know
shit about the configuration of IIS so the problem could be with that as
well. Thx!
Jeroen
--- End Message ---