php-windows Digest 23 Nov 2001 14:30:44 -0000 Issue 868

Topics (messages 10585 through 10593):

asp to php converting
        10585 by: Buchleitner Martin
        10587 by: David Elliott

Re: Problems with $PHP_AUTH_USER and $PHP_AUTH_PW
        10586 by: Jura Khrapunov

IIS + PHP + Network Drive = CGI Error (why?)
        10588 by: Norm Russell

New to PHP!!!!!
        10589 by: Oli Wilkinson

mysql not giving result
        10590 by: Brian Feliciano
        10591 by: Brian Feliciano

more complex exec()-problem
        10592 by: Christian Reiner

no cache?
        10593 by: Samba Sidibeh

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 ---
hi !

i am looking for a tool who may convert an asp-application to a similar php
enviroment
everything should be converted !! All objects and so on.
the goal is that nearly no script has to be re-written because in this
asp-application
are over 300 files.

thanks, martin


--- End Message ---
--- Begin Message ---
Salutation Buchleitner

On 21 November 2001 at 11:16:35 +0100 (which was 10:16 where I live)
Buchleitner Martin  wrote

BM> i am looking for a tool who may convert an asp-application to a similar
BM> php enviroment everything should be converted !! All objects and so on.
BM> the goal is that nearly no script has to be re-written because in this
BM> asp-application are over 300 files.

Try http://asp2php.naken.cc/


-- 
 BBFN,                     _______________________________________________
  David                   |    David  Elliott    |   Software Engineer    |
 _________________________|  [EMAIL PROTECTED] | PGP Key ID 0x650F4534  |
| Wee fish ewe a mare ergrets moose, panda hippo gnu deer!                |

--- End Message ---
--- Begin Message ---
Use the sessions or put the empty values to $PHP_AUTH_USER and $PHP_AUTH_PW
on logout.
Sessions - better ;-)
Jura
---
 ^ This is the End, Beautifull friend ...

"Raoul Snyman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm having a couple of problems with $PHP_AUTH_USER and $PHP_AUTH_PW and
my
> log out page.
>
> When I log out, I unset , except that when I
> log in again, it logs straight back into the system, without asking for
the
> user name and password.
>
> Is there any way to fix this?
>
> Thanks,
>
> Raoul Snyman
>


--- End Message ---
--- Begin Message ---
I'm running PHP 4.0.6 on Win2K with IIS 5.  If IIS's wwwroot is located on a 
local drive, PHP docs execute fine.  If IIS's wwwroot is located on a shared 
network drive, PHP scripts deliver the following error message:

  CGI Error

  The specified CGI application misbehaved by not returning a complete set 
of
  HTTP headers. The headers it did return are:


Any thoughts why?  Permissions problem?  Nothing shows up in the Event Log, 
HTML and ASP docs are viewable from the network drive.



      Norm


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

--- End Message ---
--- Begin Message ---
Not sure if i'm in the right place but........

I'm new to PHP and databases.

Does anybody know of any simple tutorials to make a simple news based
database in PHP using phpmyadmin for MySQL

All I want is a page that shows the last xx news items with an ability to
scroll through other pages to view archived entries!

The problem is that I'm using Dreamweaver Ultra with the PHP extension, but
al the tutorials are based on Access databases!

Hope someone can help!!!

Cheers

Oli Wilkinson




--- End Message ---
--- Begin Message ---
i have this SELECT query that it doesn't show any result..
it is very inconsistent, it works with other fields but it doesn't with
others...
and the sad part is, it doesn't give any error msgs.

i don't if my other database is growing rapidly(i have more than 400 tables)
causes this.

i'll give you the genearated sql statement:

>>>>>>>>>>>>>>>>>>>>>>>>.
SELECT products.id,products.itemname,products.fullpic, products.ourprice,
products.otherprice, products.description,
products.ingredients,products.featspecs, products.export, products.lent,
products.width, products.height, dim_unit.abbr, products.weight,
wt_unit.abbr, manufacturer.name, products.datemanuf, products.country,
products.order_inst FROM products, dim_unit, wt_unit, manufacturer WHERE
products.id='11' AND dim_unit.id=products.dimunit AND
wt_unit.id=products.wtunit AND manufacturer.id=products.manufacturer
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

      thanks so much for the help,

      Brian Feliciano




--- End Message ---
--- Begin Message ---
i just found the answer, and it was...stress.
too much stress. and impatience.

again sorry for the disturbance...

don't work so hard...

> i have this SELECT query that it doesn't show any result..
> it is very inconsistent, it works with other fields but it doesn't with
> others...
> and the sad part is, it doesn't give any error msgs.
>
> i don't if my other database is growing rapidly(i have more than 400
tables)
> causes this.
>
> i'll give you the genearated sql statement:
>
> >>>>>>>>>>>>>>>>>>>>>>>>.
> SELECT products.id,products.itemname,products.fullpic, products.ourprice,
> products.otherprice, products.description,
> products.ingredients,products.featspecs, products.export, products.lent,
> products.width, products.height, dim_unit.abbr, products.weight,
> wt_unit.abbr, manufacturer.name, products.datemanuf, products.country,
> products.order_inst FROM products, dim_unit, wt_unit, manufacturer WHERE
> products.id='11' AND dim_unit.id=products.dimunit AND
> wt_unit.id=products.wtunit AND manufacturer.id=products.manufacturer
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
>       thanks so much for the help,
>
>       Brian Feliciano
>
>
>
>
>
> --
> 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 ---
Hi everybody,
since I'm not used to working under Windows-OSes (never really knew why, 
now I do..) it took me a while to get moving. I put together a small 
project but now I'm really stuck. Not even reading the entire internet 
(well most of it anyway) did help. So maybe someone can give this a short 
look:

I need to transfer a file via net to some remote server.
I need to encrypt, since I could not find a way to use something like sftp 
under WinNT / php I tried pscp (PuTTY Packet). Now this works fine when 
started manually, even when embedde in a php-script it works when I execute 
this script directly, however it does NOT work when I call the script via 
cgi-bin from Apache. I tried all those strange things with prepending 
something like "command /c" etc, nothing worked. In fact the pscp 
executable IS called it just vanishes in nirvana. No error, no output, no 
filetransfer.

In Compact:
- WinNT & Apache 1.3.something & php4.06 as cgi-exe
- Dir-Structure:
  C-somepath-Apache-htdocs-somepath-scp-scp.php
            -PHP-php.exe
            -Tools-PuTTY-pscp.exe
- a short php-script:
---
<?PHP
# blabla... :-)

echo "<html><head><title>scp test</title></head>\n";
echo "<body>\n";

$pscp="C:/somepath/Tools/Putty/pscp";
$user="some_user";
$host="some_host";
$pass="some_pass";

$target_path="Deliver";
$target_file="targetfile";
$source_path="C:/somepath/Tools/PuTTY";
$source_file="sourcefile";

$connect_string=sprintf("%s -v -pw %s %s %s@%s:%s", $pscp, $pass,
                        sprintf("%s/%s", $source_path, $source_file),
                        $user, $host,
                        sprintf("%s/%s", $target_path, $target_file) );

$ret_arr=array();
echo    'exec($connect_string, $ret_arr, $ret_var);  <br>'."\n";
echo    "exec($connect_string, $ret_arr, $ret_var);  <br>"."\n";
$res_var=exec($connect_string, $ret_arr, $ret_var);

echo "results --<br>\n";
echo "res_var: ".$res_var."<br>\n";
echo "ret_var: ".$ret_var."<br>\n";
echo "ret_arr: ".$ret_arr."<br>\n";
foreach ($ret_arr as $value)
  echo "> ".$value."<br>\n";

echo "</body>\n";
echo "</html>\n";
?>
---
OK, it does not matter if I use exec, system, passthru or whatever, the 
effect is the same: pscp is called, works for some seconds, the server is 
not contacted (checked logs), the browser stops ("loaded") with the result:
---
exec($connect_string, $ret_arr, $ret_var); 
exec(C:/somepath/Tools/Putty/pscp -v -pw some_pass \ 
C:/somepath/Tools/PuTTY/sourcefile \ 
some_user@some_host:Deliver/targetfile, Array, ); 
results --
res_var: 
ret_var: 0
ret_arr: Array
---
So far so good (depends actually).
Now, there are two strange things:
a) when executing another command (I tried 'tar xvzf somefile.tgz', yes, 
under WinNT) - no problem. takes a few seconds, returns a list of all 
extracted files in $ret_arr. Same with things like "dir" etc.
b) when calling scp.php directly it does work: 
C:> somepath\PHP\php C:\...\scp.php
the source is copied to target, the result shows the verbosity-messages 
like 'login...authenticated...session...copying...'. Everything is fine.


Hmmm:
The tar-test shows that the arguments are ok when handed to the executable 
(even checked via a batch-file echoing the args). The direct call shows 
that pscp works and can be used from inside php.
So where is the difference when apache calls php via cgi?

Ok folks, I'll be glad for any hints or suggestions since being a little 
under pressure to get this working and I really got no clue where else to 
look :-(
Any Ideas anybody??? 
Anyone wants a cookie???

Thanks in advance,
Christian



-- 
Christian Reiner
Entwicklung & Projekt Management
------------------------------------------------------------------------
ImageWare Components GmbH
Berliner Freiheit 36, 53111 Bonn, Germany
Tel:    +49 - 228 - 969 85 - 37
Fax:    +49 - 228 - 969 85 - 84
E-Mail: [EMAIL PROTECTED] 
Web:    www.imageware.de
------------------------------------------------------------------------

ImageWare Components GmbH ist ein Beteiligungsunternehmen
der T-Venture, die Corporate Venture Capital Tochter der 
Deutschen Telekom AG und der Bonn-Innova GmbH & Co.KG

Interessiert an weiteren Neuigkeiten? 
Klicken Sie sich durch unsere neue Homepage unter www.imageware.de

--- End Message ---
--- Begin Message ---
Hi y'all

I'm using the following script to send headers preventing browsers from
caching my page (since the page is supposed to be dynamic). But it seems as
none of the headers work. The only thing working right now is setting your
browser to never cache pages (and I think that's a bit too much to ask from
every person logging on). So, can anybody help me?

function no_cache() {
  global $SERVER_PROTOCOL;
  if ($SERVER_PROTOCOL == 'HTTP/1.0') {
    header("Pragma: no-cache"); // HTTP/1.0
  } else {
    header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
  }
}

------------------------
Samba Sidibeh
Systemutvecklare
SYSteam Udac AB
Storgatan 19, Box 174, 751 04 Uppsala SWEDEN
Tel direkt: 018-67 81 35
Tel vxl: 018-67 80 00  Fax: 018-51 66 00
Hemsida: www.systeam.se, www.udac.se
SYSteam Udac ingår i SYSteamkoncernen.
--- End Message ---

Reply via email to