php-general Digest 30 Nov 2003 18:30:47 -0000 Issue 2446

Topics (messages 171389 through 171405):

Re: require_once() or die(); = fatal error
        171389 by: Rasmus Lerdorf

Re: [PHP-DB] Dynamic Website Question!
        171390 by: Bronislav Klucka
        171391 by: JeRRy
        171392 by: Bronislav Klucka
        171394 by: Bronislav Klucka

Re: Suggestions for optimization?
        171393 by: Eugene Lee

Export data
        171395 by: Rosen

PHP or PEAR MEETING on FOSDEM 2004 (belgium) ?
        171396 by: Christophe Gesché

Undefined offset on Windows not on Apache?
        171397 by: Chris Williams
        171398 by: Chris Williams
        171400 by: John W. Holmes
        171405 by: Chris Williams

Radius question
        171399 by: Robin Kopetzky

Accessing  .bat file from PHP
        171401 by: Reidar Solberg
        171402 by: Nathan Taylor
        171403 by: Jeroen Serpieters

How to see the table structure
        171404 by: narayanan

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 ---
By default the CLI version turns off the html in the error messages.  And 
no, really, there is no bug here.  You are testing the return code of 
something that doesn't have one.  It doesn't make sense.

-Rasmus

On Fri, 28 Nov 2003, Daevid Vincent wrote:

> Hmm... Well Rasmus, I do see your point, however it still seems to me it
> 'should' at least compile and work as I expect it to.
> 
> My way, the logic is that the file *is* 'required' (whereas I view 'include'
> files as optional), and I want to exit the program with a graceful message
> instead of the fatal error (which doesn't really doesn't tell me what the
> problem is -- "Failed opening required '1'" doesn't mean anything to me or
> the user) that is shown. My intent was to put a  @require_once() so that I
> could do just that. Especially since I'm running my script on the command
> line, and your stock fatal error message uses HTML tags.
> 
> Not a critical bug or a show stopper, but I do still feel it is a bug.
> 
> > -----Original Message-----
> > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, November 26, 2003 8:55 PM
> > To: Daevid Vincent
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] BUG: require_once() or die(); = fatal error
> > 
> > This code doesn't make much sense.  By definition, if require 
> > cannot open
> > a file it throws a fatal error, so you would never hit the "or" case
> > anyway.  Hence there is no return code from require and you 
> > can't write
> > code like this.  If you want to test the return code you need to use
> > 'include' instead.
> > 
> > -Rasmus
> > 
> > On Wed, 26 Nov 2003, Daevid Vincent wrote:
> > 
> > > Using PHP 4.2.2 on Linux RH8:
> > >
> > > In a PHP script run from command line,
> > >
> > >   require_once("gibberator_data.php") or die("No Data 
> > file found\n");
> > >
> > > Causes:
> > >
> > > [EMAIL PROTECTED] gibberator]# ./gibberator.php
> > > <br />
> > > <b>Fatal error</b>:  Failed opening required '1'
> > > (include_path='.:/php/includes;/usr/share/phpwebtools') in
> > > <b>/home/gibberator/gibberator.php</b> on line <b>13</b><br />
> > >
> > > However
> > >
> > >   require_once("gibberator_data.php");
> > >
> > > Works just fine.
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > 
> 

--- End Message ---
--- Begin Message ---
> I want to have a PHP website that feeds information
> off a mysql database.  But generally changes occour
> and instead of asking users to refresh the page to get
> the updates is there a way to provide the updates
> without them needing to refresh the page?
>
> E.G. For like shooping Carts, Chat rooms, etc...
>
> Is there a way in PHP or something to make updates
> show up live as they happen instead of the yucky meta
> refresh tag in HTML?
>
> Thanks for your time in advance.

I'm sorry, I always dissapoint you, but what ever you want to send to
browser must be demend by the browser. I mean you can tell browser to reload
part of the page, browser has to ask for it, you can send more information
to the browser and then use DHTML to provide the showing, or hiding...

There is only one way how to do, what you want (but it always ask the
server, only user will not see reloading). The way is to have 2 frames: 1st
for showing the content and the second to refresh every 1 min. (or as you
want), receive informations and using DHTML change the content of the first
frame, the secomd frame could be at the bootom of the browser, 1pixel
height, to be "invisible"



Brona

--- End Message ---
--- Begin Message ---
Hi,

I am not familiar with DHTML and how it can be used to
talk to PHP to update a certain part of a page.  That
is all I need, is one section of the page, not the
entire page, to be refreshed.  The part is just text
from a database.  However on the page I want
backgrounds, images etc but I don't want these to
refresh, just the text from the database.

What you have said below seems exactly what I want. 
But I have never used DHTML.  Could you show me a
example of both frames (just the source) of how one
talks to another please?

Jerry

 --- Bronislav Klucka <[EMAIL PROTECTED]>
wrote: > > I want to have a PHP website that feeds
> information
> > off a mysql database.  But generally changes
> occour
> > and instead of asking users to refresh the page to
> get
> > the updates is there a way to provide the updates
> > without them needing to refresh the page?
> >
> > E.G. For like shooping Carts, Chat rooms, etc...
> >
> > Is there a way in PHP or something to make updates
> > show up live as they happen instead of the yucky
> meta
> > refresh tag in HTML?
> >
> > Thanks for your time in advance.
> 
> I'm sorry, I always dissapoint you, but what ever
> you want to send to
> browser must be demend by the browser. I mean you
> can tell browser to reload
> part of the page, browser has to ask for it, you can
> send more information
> to the browser and then use DHTML to provide the
> showing, or hiding...
> 
> There is only one way how to do, what you want (but
> it always ask the
> server, only user will not see reloading). The way
> is to have 2 frames: 1st
> for showing the content and the second to refresh
> every 1 min. (or as you
> want), receive informations and using DHTML change
> the content of the first
> frame, the secomd frame could be at the bootom of
> the browser, 1pixel
> height, to be "invisible"
> 
> 
> 
> Brona
>  

http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.

--- End Message ---
--- Begin Message ---
****index.php
<html>  
        <frameset rows="100%,*" border="0" frameborder="no">
                <frame name="first" src="first.php" noresize>
                <frame name="second" src="second.php" noresize>
        </frameset>     
</html>
****first.php
<html>
<body>
        <div id="text"></div>
</body>
</html>
****second.php
<html>
<head>
        <meta http-equiv="refresh" content="10;URL=second.php">
<script>
function PSBrowser(){
        this.ns4 = (window.document.layers);
        this.ie4 = (window.document.all && !window.document.getElementById);
        this.ie5 = (window.document.all && window.document.getElementById);
        this.ns6 = (!window.document.all && window.document.getElementById);
        this.op = window.navigator.appName.indexOf('Opera')!=-1;
}

function PSGetElementById(frame,id){
        var b=new PSBrowser();
        var new_obj=null;
        if(b["ns4"]){
                new_obj=frame.document.layers[id];
        } else if(b["ie4"]){
                new_obj=frame.document.all[id];
        } else if(b["ie5"] || b["ns6"]){
                new_obj=frame.document.getElementById(id);
        }       
        return new_obj;
}

function DoOnLoad(){
        ele=PSGetElementById(parent.frames[0],"text");
        ele.innerHTML="<?=date("Y-m-d H:i:s");?>";
}
</script>       
</head>
<body OnLoad="javascript:DoOnLoad();">

</body> 
</html>


is that clear?

> 
> Hi,
> 
> I am not familiar with DHTML and how it can be used to
> talk to PHP to update a certain part of a page.  That
> is all I need, is one section of the page, not the
> entire page, to be refreshed.  The part is just text
> from a database.  However on the page I want
> backgrounds, images etc but I don't want these to
> refresh, just the text from the database.
> 
> What you have said below seems exactly what I want. 
> But I have never used DHTML.  Could you show me a
> example of both frames (just the source) of how one
> talks to another please?
> 
> Jerry
> 
>  --- Bronislav Klucka <[EMAIL PROTECTED]>
> wrote: > > I want to have a PHP website that feeds
> > information
> > > off a mysql database.  But generally changes
> > occour
> > > and instead of asking users to refresh the page to
> > get
> > > the updates is there a way to provide the updates
> > > without them needing to refresh the page?
> > >
> > > E.G. For like shooping Carts, Chat rooms, etc...
> > >
> > > Is there a way in PHP or something to make updates
> > > show up live as they happen instead of the yucky
> > meta
> > > refresh tag in HTML?
> > >
> > > Thanks for your time in advance.
> > 
> > I'm sorry, I always dissapoint you, but what ever
> > you want to send to
> > browser must be demend by the browser. I mean you
> > can tell browser to reload
> > part of the page, browser has to ask for it, you can
> > send more information
> > to the browser and then use DHTML to provide the
> > showing, or hiding...
> > 
> > There is only one way how to do, what you want (but
> > it always ask the
> > server, only user will not see reloading). The way
> > is to have 2 frames: 1st
> > for showing the content and the second to refresh
> > every 1 min. (or as you
> > want), receive informations and using DHTML change
> > the content of the first
> > frame, the secomd frame could be at the bootom of
> > the browser, 1pixel
> > height, to be "invisible"
> > 
> > 
> > 
> > Brona
> >  
> 
> http://personals.yahoo.com.au - Yahoo! Personals
> New people, new possibilities. FREE for a limited time.

--- End Message ---
--- Begin Message ---
>
> Okay I see how that works.  However I have a heap of
> mysql queries to do and only want the output from the
> database to show.
>
> >     ele.innerHTML="<?=date("Y-m-d H:i:s");?>";
>
> So is the section I need to change?
>
> Now I have 2 options, I can include the code in that
> file but it appears it don't like spaces and enters
> and outputs an error and wont do anything or I could
> add a require function to get it from another
> filename?
>
> How can I do it?
>
> The queries are about 25 lines long with varies
> queries.  How can I make it work with the code you
> sent me?
>
> The code works fine on it's own so it works. :)
>
> Jerry
>

Hi,
This is only sample how to change content od this element, where you get
data is your problem:

1/
<?php
$data='';
for ($i=1;$i<1000;$i++) $data.=$i;
?>
.
.
.
ele.innerHTML="<?=$i?>";
.
.
.
2/
$res=mysql_query("select crap from table'');
$row=mysql_fetch_array($res);
.
.
.
ele.innerHTML="<?=$row["crap"]?>";
.
.

3/
if ($fd=fOpen('file.ext","r")){
        $var=fread ($fd, filesize ($filename));
        fClose($fd);
}
.
.
.
.
ele.innerHTML="<?=$var?>";

.
.


clear?


Brona

--- End Message ---
--- Begin Message ---
On Sat, Nov 29, 2003 at 09:32:19AM -0800, Galen wrote:
: 
: I'm working on some database search ranking code. It currently 
: represents 95-98% of the time spent when doing fuzzy seaches. I have 
: tried my best to optimize my code - algorithmic shortcuts, eliminating 
: session variables, unsetting irrelevant results, etc and benchmarking 
: to find the best techniques. That's given me over a 10x improvement. 
: Unfortunately, because of the number of results it must process (up to 
: 20,000), it is still somewhat slow. I think it could use some code 
: structure/formating tweaks to eek out that last bit of performance, but 
: I don't know much about optimizing PHP code in that way. Does anybody 
: have suggestions?

You should profile your code a bit more and see how much time getting
spent in your foreach loops and your usort().  You could always rewrite
your foreach loops into for loops and manually iterate through the array
itself instead of a copy.  And you use strtolower() and trim() on every
pass through the data.  That's a lot of work that can be pre-massaged in
the database so that you don't need to do it within your loops (granted,
this doubles your needed storage space in the hopes of speeding your
fuzzy searches).

Also, I noticed that your usort() was doing a normal numeric sort.  That
being the case, why not switch the line:

        usort($search_results, "cmp");

and use:

        sort($search_results, SORT_NUMERIC);

: Here's my code:
: 
:       if ($search_results[0]["relevancy"] == "")
:       {       
:               function cmp($a, $b)
:               {
:                       if($a["relevancy"]  < $b["relevancy"])
:                       {
:                               return 1;
:                       }
:                       elseif($a["relevancy"] > $b["relevancy"])
:                       {
:                               return -1;
:                       }
:                       else
:                       {
:                               return 0;
:                       }
:               }
:               
:               $search_statements = $_SESSION["search"]["statements"];
:               
:               foreach($search_results as $key1 => $value1)
:               {
:                       $num_fields_matched = 0;
:                       $result_score = 0;
:                       $metaphone_ratio = 0;
:                       foreach($search_statements as $key => $value)
:                       {
:                               if ($value != "" AND $value1[$key] != $value)
:                               {
:                                       $value = strtolower(trim($value));
:                                       $value1[$key] = 
:                                       strtolower(trim(($value1[$key])));
:                                       $num_fields_matched++;
:                                       $value_metaphone = 
:                                       metaphone($value1[$key]);
:                                       $search_metaphone = 
:                                       metaphone($value);
:                                       $search_position = 
:                                       strpos($value1[$key], $value);
:                                       $string_count = 
:                                       substr_count($value1[$key], $value);
:                                       $levenshtein = levenshtein($value, 
:                                       $value1[$key], "0.5", 1, 1);
:                                       
:                                       if ($search_metaphone == 
:                                       $value_metaphone AND 
:                                       $value_metaphone != "")
:                                       {
:                                               $metaphone_ratio = 1;
:                                       }
:                                       elseif ($search_metaphone != 0)
:                                       {
:                                               $metaphone_ratio = 0.6 * (1 
:                                               / 
:                                               levenshtein($search_metaphone, 
$value_metaphone));
:                                       }
:                                       
:                                       $result_score = $result_score + 
:                                       ($levenshtein + (8 * $search_position)) - (2 * 
($string_count - 1)) - (1.1 
: * $metaphone_ratio * $levenshtein);
:                               }
:                               elseif ($value1[$key] == $value)
:                               {
:                                       $result_score = $result_score - 5;
:                               }
:                       }
:                       if ($num_fields_matched == 0)
:                       {
:                               $num_fields_matched = 1;
:                       }
:                       $search_results[$key1]["relevancy"] = ($result_score 
:                       * -1) / $num_fields_matched;
:                       
:                       if ($fuzzy_search == true AND 
:                       $search_results[$key1]["relevancy"] < -5)
:                       {
:                               unset($search_results[$key1]);
:                       }
:               }
:               
:               usort($search_results, "cmp");
:       }

--- End Message ---
--- Begin Message ---
Hi,
Is it possible to export some data to MSOffice format ( .doc and .xls ) ,
OOffice ( .sxw and sxc ) or .rtf format with PHP

Thanks in advance !
Rosen

--- End Message ---
--- Begin Message --- http://www.fosdem.org/

21 and 22 feb 2004 in Brussel ( Belgium - a little country in north of France, with good beer and chocolate. don't forget this argument :-) )


- -- Announcement -- -
The __Free and Open source Software Developers' European Meeting__ is a 2 days event, organized by volunteers, to promote the widespread use of Free and Open Source software. Taking place in the beautiful city of Brussels, Belgium FOSDEM meetings are recognised as the best Free and Open Source events in Europe.


Important Note: Entrance and attendance to FOSDEM talks and tutorials are free, but donations to help us organizing and keeping the event free are welcome.


- ----- PHP & PEAR --- - As nobody was come last year. the Fosdem team have removed theDevelopers' room PHP/PEAR

In 2002 Derick and Sterling had make a good speach.

I can discuss to have one room.
If some contributor would come and work.
-------------------------------------------------------------
So
If you tell go to fosdem, reply to this message.
If you want work on pear during fosdem, reply to this message.
If you  want  prupose a topic, reply to this message

The target of  meeting  is for dev
-------------------------------------------------------------

Christophe Gesché // Moosh_at_phpFrance_dot_com
--- End Message ---
--- Begin Message ---
I've created a script to parse through a data file which contains coma
separated fields of data. The script works on Apache, however when I run it
on under Windows (running PHP as a CGI) the script produces an Undefined
offset notice. What is strange about this notice is that the line of code
which contains the array element never gets executed.

Here is what I have:
A data file containing:
=== START OF FILE =====

1,01545,"01612,01545,01505,01609,01606,01562"

=== END OF FILE =====
The first and last lines contain carriage returns. The second or middle line
contains sample data.

The script that reads and parses the data is:

  $countLines = fopen("data.txt", "r");
  while (!feof($countLines))
  {
   $newLine = fgets($countLines, 1024);
   echo "line length:  " . strlen($newLine) . "<br>";
   if(strlen($newLine) > 0)
   {
   $newLine = ereg_replace ("\"", "", $newLine);
   $zip_forward = explode(",",$newLine);
   $location_id = trim($zip_forward[0]);
   echo "array size: " . count($zip_forward) . "  ID: $location_id<br>";
   $zip_to = trim(substr($zip_forward[1], 0, 5));
   }
  }
  fclose($countLines);

What's odd here is that the last line, which has a length of 0, should never
cause the if(strlen($newLine) > 0) to execute the lines of script contained
within the if conditional. And in fact the lines DON'T get executed.
However, on the Windows server I get the following error
PHP Notice: Undefined offset: 1 in \debug.php on line 20. This points to my
code that evaluates the second element of the array $zip_to =
trim(substr($zip_forward[1], 0, 5));

If I never evaluate the $zip_forward[1] array element within the if
conditional, why would PHP test the array $zip_forward for the proper number
of elements?

This script works fine under Apache.

I haven't a clue what is going on.

Comments welcome,
Chris

--- End Message ---
--- Begin Message ---
I've created a script to parse through a data file which contains coma
separated fields of data. The script works on Apache, however when I run it
on under Windows (running PHP as a CGI) the script produces an Undefined
offset notice. What is strange about this notice is that the line of code
which contains the array element never gets executed.

Here is what I have:
A data file containing:
=== START OF FILE =====

1,01545,"01612,01545,01505,01609,01606,01562"

=== END OF FILE =====
The first and last lines contain carriage returns. The second or middle line
contains sample data.

The script that reads and parses the data is:

  $countLines = fopen("data.txt", "r");
  while (!feof($countLines))
  {
   $newLine = fgets($countLines, 1024);
   echo "line length:  " . strlen($newLine) . "<br>";
   if(strlen($newLine) > 0)
   {
   $newLine = ereg_replace ("\"", "", $newLine);
   $zip_forward = explode(",",$newLine);
   $location_id = trim($zip_forward[0]);
   echo "array size: " . count($zip_forward) . "  ID: $location_id<br>";
   $zip_to = trim(substr($zip_forward[1], 0, 5));
   }
  }
  fclose($countLines);

What's odd here is that the last line, which has a length of 0, should never
cause the if(strlen($newLine) > 0) to execute the lines of script contained
within the if conditional. And in fact the lines DON'T get executed.
However, on the Windows server I get the following error
PHP Notice: Undefined offset: 1 in \debug.php on line 20. This points to my
code that evaluates the second element of the array $zip_to =
trim(substr($zip_forward[1], 0, 5));

If I never evaluate the $zip_forward[1] array element within the if
conditional, why would PHP test the array $zip_forward for the proper number
of elements?

This script works fine under Apache.

I haven't a clue what is going on.

Comments welcome,
Chris

--- End Message ---
--- Begin Message --- Chris Williams wrote:
The first and last lines contain carriage returns. The second or middle line
contains sample data.

The script that reads and parses the data is:

  $countLines = fopen("data.txt", "r");
  while (!feof($countLines))
  {
   $newLine = fgets($countLines, 1024);
   echo "line length:  " . strlen($newLine) . "<br>";
   if(strlen($newLine) > 0)
   {
   $newLine = ereg_replace ("\"", "", $newLine);
   $zip_forward = explode(",",$newLine);
   $location_id = trim($zip_forward[0]);
   echo "array size: " . count($zip_forward) . "  ID: $location_id<br>";
   $zip_to = trim(substr($zip_forward[1], 0, 5));
   }
  }
  fclose($countLines);

What's odd here is that the last line, which has a length of 0, should never
cause the if(strlen($newLine) > 0) to execute the lines of script contained
within the if conditional. And in fact the lines DON'T get executed.
However, on the Windows server I get the following error
PHP Notice: Undefined offset: 1 in \debug.php on line 20. This points to my
code that evaluates the second element of the array $zip_to =
trim(substr($zip_forward[1], 0, 5));

If I never evaluate the $zip_forward[1] array element within the if
conditional, why would PHP test the array $zip_forward for the proper number
of elements?

Okay, if you're getting that NOTICE then the line of code is executing. So even though you think the strlen() line is failing, it's not.


Anyhow, the whole issue here is just that your two servers have different error_reporting() levels. One is set to show NOTICES while the other is not. If you use @trim(...), you can suppress this warning.

The code is running the same on both servers, though...

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
I don't believe the disputed line of script is being executed because just
before that line I include the following print statement,
echo "array size: " . count($zip_forward) . "  ID: $location_id<br>";
which does not get executed when my conditional fails.

Right you are on the error reporting, I included error_reporting (E_ALL); in
my test script and can reproduce same error on Apache.

Chris


"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Chris Williams wrote:
> > The first and last lines contain carriage returns. The second or middle
line
> > contains sample data.
> >
> > The script that reads and parses the data is:
> >
> >   $countLines = fopen("data.txt", "r");
> >   while (!feof($countLines))
> >   {
> >    $newLine = fgets($countLines, 1024);
> >    echo "line length:  " . strlen($newLine) . "<br>";
> >    if(strlen($newLine) > 0)
> >    {
> >    $newLine = ereg_replace ("\"", "", $newLine);
> >    $zip_forward = explode(",",$newLine);
> >    $location_id = trim($zip_forward[0]);
> >    echo "array size: " . count($zip_forward) . "  ID: $location_id<br>";
> >    $zip_to = trim(substr($zip_forward[1], 0, 5));
> >    }
> >   }
> >   fclose($countLines);
> >
> > What's odd here is that the last line, which has a length of 0, should
never
> > cause the if(strlen($newLine) > 0) to execute the lines of script
contained
> > within the if conditional. And in fact the lines DON'T get executed.
> > However, on the Windows server I get the following error
> > PHP Notice: Undefined offset: 1 in \debug.php on line 20. This points to
my
> > code that evaluates the second element of the array $zip_to =
> > trim(substr($zip_forward[1], 0, 5));
> >
> > If I never evaluate the $zip_forward[1] array element within the if
> > conditional, why would PHP test the array $zip_forward for the proper
number
> > of elements?
>
> Okay, if you're getting that NOTICE then the line of code is executing.
> So even though you think the strlen() line is failing, it's not.
>
> Anyhow, the whole issue here is just that your two servers have
> different error_reporting() levels. One is set to show NOTICES while the
> other is not. If you use @trim(...), you can suppress this warning.
>
> The code is running the same on both servers, though...
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals – www.phparch.com

--- End Message ---
--- Begin Message ---
Has anyone seen or know of a PHP implementation of a RADIUS server??

Please reply off list - [EMAIL PROTECTED]

Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM 87020 

--- End Message ---
--- Begin Message ---
I want to start a .bat file on my local pc from my webpage -  to download
some .txt files.
I run PHP in my webpage - how can I make contact with the .bat file? Anyone
tried this?

Reidar Solberg

--- End Message ---
--- Begin Message ---
I believe... that the .bat file MUST be on the server for PHP to execute it.

Nathan
  ----- Original Message ----- 
  From: Reidar Solberg 
  To: [EMAIL PROTECTED] 
  Sent: Sunday, November 30, 2003 1:10 PM
  Subject: [PHP] Accessing .bat file from PHP


  I want to start a .bat file on my local pc from my webpage -  to download
  some .txt files.
  I run PHP in my webpage - how can I make contact with the .bat file? Anyone
  tried this?

  Reidar Solberg

  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
exec()?

http://php.net/exec

Jeroen

--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at
its end. 
(Henry Spencer) 

Politics.be op imode!
http://i.politics.be/

-----Original Message-----
From: Reidar Solberg [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 30, 2003 7:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Accessing .bat file from PHP


I want to start a .bat file on my local pc from my webpage -  to download
some .txt files. I run PHP in my webpage - how can I make contact with the
.bat file? Anyone tried this?

Reidar Solberg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Title: Blank
Can any body tell how to view the structure of a table from php.  I was thinking around for the past two days.  I am using postgresql database.
 
 
thanks in advance

 


--- End Message ---

Reply via email to