php-windows Digest 27 Sep 2001 08:49:46 -0000 Issue 776
Topics (messages 9560 through 9571):
Re: Well, I've got it running
9560 by: Asendorf, John
9563 by: Alain Samoun
9564 by: Alain Samoun
GD in PHP with Win 2000 Profressional
9561 by: Marcelo Busana
array
9562 by: roel
How can I get the web root in IIS+PHP?
9565 by: yanshuldg
9567 by: Chen Wei, Lian
Answer PHP Language
9566 by: !cedugenio!
9568 by: Chen Wei, Lian
Using COM
9569 by: David
9571 by: Crawley
mysql_fetch_array() doesn't work
9570 by: Web user
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 ---
What's REALLY weird is that ALL of my calls are OCI calls! Maybe those
calls rely on ODBC when run through Apache or something... I dunno...
>
> I know < 0 about ODBC, but it would be interesting to see if
> the same code
> caused an error when running with PHP as a CGI (or at least
> it may yeild more
> clues).
>
> Is there anyone on the list into ODBC who can help out here?
> --
> Phil Driscoll
>
--- End Message ---
--- Begin Message ---
Phil, John:
Did you ever try ADODB?
http://php.weblogs.com/ADODB
Alain
On Wed, Sep 26, 2001 at 09:51:55PM +0100, Phil Driscoll wrote:
> I know < 0 about ODBC, but it would be interesting to see if the same code
> caused an error when running with PHP as a CGI (or at least it may yeild more
> clues).
>
> Is there anyone on the list into ODBC who can help out here?
> --
> Phil Driscoll
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Ah, I forgot: for ODBC installation see:
http://www.asptoday.com/content/articles/20000202.asp?WROXEMPTOKEN=1377499ZgnSyNTpG7QsxuUHUTf
Alain
On Wed, Sep 26, 2001 at 09:51:55PM +0100, Phil Driscoll wrote:
> I know < 0 about ODBC, but it would be interesting to see if the same code
> caused an error when running with PHP as a CGI (or at least it may yeild more
> clues).
>
> Is there anyone on the list into ODBC who can help out here?
> --
> Phil Driscoll
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I'm not get install the GD in PHP 4.06 with Win 2000 Pro (IIS 5), always
happens the error "Unabled load the lib... C:\PHP\php_gd.dll"
Somebody already it passed for this, as obtained to leave?
It forgives me for the English...
-------------------------
Marcelo Busana
WebDeveloper
UNIDAVI
--- End Message ---
--- Begin Message ---
Hi,
I have an array witch I display in my browser. Now I want to create a button
sort which sorts the array.
Problem is how to pass the array?
I tried:
print("<A HREF=new_page?arr=$array> sort </a>");
I know I can reload the page and insert a function sort but it would be
stupid because the array has to be filled twice.
Any suggestions?
Thanks!
--- End Message ---
--- Begin Message ---
Hi,everyone:
In Apache+PHP,I can use $HTTP_SERVER_VARS["DOCUMENT_ROOT"] to get the web root
directory, but how can I get it in IIS+PHP?
-----------------------------------------
我的姓名、我的邮箱
http://name.etang.com/
亿唐短信,您贴身的时尚顾问
http://sms.etang.com
白赚200元上网费的诀窍
http://ecard.etang.com/progt/index.asp?s1=1&s2=1
职业深思录
http://topic.etang.com/job/index.htm
--- End Message ---
--- Begin Message ---
Hi yanshuldg,
maybe u can use HTTP_ENV_VARS["PATH_TRANSLATED"] and cut out those you dun
need...
--
regards,
chen wei (http://www.cw213.net)
===================================
Solutions Developer of Earth9.com
===================================
Thursday, September 27, 2001, 9:17:22 AM, you wrote:
y> Hi,everyone:
y> In Apache+PHP,I can use $HTTP_SERVER_VARS["DOCUMENT_ROOT"] to get the web root
directory, but how can I get it in IIS+PHP?
y> -----------------------------------------
y> 我的姓名、我的邮箱
y> http://name.etang.com/
y> 亿唐短信,您贴身的时尚顾问
y> http://sms.etang.com
y> 白赚200元上网费的诀窍
y> http://ecard.etang.com/progt/index.asp?s1=1&s2=1
y> 职业深思录
y> http://topic.etang.com/job/index.htm
--- End Message ---
--- Begin Message ---
Please I am a Brazilian user for PHP language but I necessary more
information on PHP for Windows
Please Help....
--- End Message ---
--- Begin Message ---
Hi <!cedugenio!>,
er... what kind of information you need? can be more specific? anyway, if u
r familar with any other programming languages, can try the tutorial here:
http://www.cw213.net/tutorial.php?id=php
and php manual here:
http://www.php.net/docs.php
we can't help if u dun ask... :)
--
regards,
chen wei (http://www.cw213.net)
===================================
Solutions Developer of Earth9.com
===================================
Tuesday, September 25, 2001, 11:24:42 AM, you wrote:
c> Please I am a Brazilian user for PHP language but I necessary more
c> information on PHP for Windows
c> Please Help....
--- End Message ---
--- Begin Message ---
Hi,
I would like to use the MS ADSI object to play around with IIS functions on
Win2k, but I can't seem to get the COM class start up.
$adsi = new COM(server.object)
I can't figure out what the should be.
Does anyone know?
Thanks
David
--- End Message ---
--- Begin Message ---
"David" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> $adsi = new COM(server.object)
All you need is ...
$adsi = new COM( "comobjectname" );
$adsi->objectmethod();
try that, the only problem you might have is passing variables by
reference... to do that you can ONLY ( at present ) pass by refrence
variables of type VARIANT *. So check your interface.
You also might have trouble passing arrays - but when 4.0.7 comes out that
should be fixed.
Rich
--- End Message ---
--- Begin Message ---
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98
When PHP is running at the line: $arr=mysql_fetch_array($res);
The IE always show info as below:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in c:\program files\apache
group\apache\htdocs\web\site1\list.php on line --[the number of line]"
What's the problem wiht mysql_fetch_array() or other?
What does the T_STRING' or `T_VARIABLE' or `T_NUM_STRING' mean?
THANKS
Mike
The full code below:
----------------------------------------------------------------------------
-
<?
$link=mysql_connect("localhost","","");
if($link==false){
echo "Failed linking to database.";
exit();
}
$handler=mysql_select_db("database1");
if($handler==false)
echo "Failed linking to database.";
$query="selct count(*) from users where sign=1";
$res=mysql_query($query);
$row=mysql_fetch_row($res);
$all=$row[0];
$step=5;
$pages=ceil($all/$step); /*the number of pages needed to listed */
if(empty($offset))
$offset=0;
$query="select user_id, user_name, time, status, comment from users
where sign=1
order by user_name
limit $offset, $step";
$res=mysql_query($query);
echo "<table><td align=center>User</td>
<td align=center>Added time</td><td align=center>Status</td></tr>";
$num=mysql_num_rows($res);
for($i=0; $i<$num; $i++) {
$arr=mysql_fetch_array($res); /* HERE is line where the error occurs!!!
*/
echo "<tr><td align=center><a href=\"profile.php?id=$arr['user_id']\"
target='_top'>
$arr['user_name']</a>></td>";
echo "<td align=center>$arr['time']</td>";
echo "<td align=center>$arr['status']</td></tr>";
echo "<tr colspan=3><td>$arr['comment']</td></tr>";
}
echo "</table><br><br><br>";
echo "<table><tr><td align='center'>"; /* show others in multi-pages */
for($i=0; $i<$pages; $i++){
echo "<a href='$PHP_SELF?offset=$i*$step' target='_top'>
echo ($i+1)."</a>";
echo " ";
}
echo "</td></tr></table>";
?>
----------------------------------------------------------------------------
-
create table users (
user_id int not null auto_increment primary key,
user_name varchar(30),
time datetime,
status tinyint(1),
comment text,
sign tinyint(1) default '1'
);
--- End Message ---