php-windows Digest 9 Oct 2002 14:31:12 -0000 Issue 1379
Topics (messages 16266 through 16287):
Re: ODBC connection parameters
16266 by: Uttam
Linux/Windows
16267 by: Nino V
Re: Apache 1.3.x PHP module and php.ini precedence
16268 by: Claudio Bustos
16269 by: Franco Pozzer
Re: mail programs
16270 by: Kasey Mitchum
16276 by: Kasey Mitchum
Re: Creating files with PHP - need help
16271 by: Claudio Bustos
16273 by: Luis Moreira
16275 by: toby z
16277 by: Aidal
16278 by: toby z
16280 by: Aidal
16281 by: toby z
16282 by: Aidal
Re: Page has expired
16272 by: toby z
Re: =array within html table=
16274 by: toby z
Re: Where can I get php_odbc.dll
16279 by: Brian McGarvie
16284 by: Douglas F. Keim
problem passing variables...
16283 by: db
16285 by: Rich Gray
16287 by: H Marc Bower
Rows of data all the same
16286 by: Douglas F. Keim
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 ---
you must be having php manual installed, there is a topic called Unified
ODBC Functions. you can refer the same for connecting to odbc databases.
you need odbc_connect() to connecto to database, the syntax is:
int odbc_connect (string dsn, string user, string password [, int
cursor_type])
following functions are available for odbc:
odbc_autocommit -- Toggle autocommit behaviour
odbc_binmode -- Handling of binary column data
odbc_close -- Close an ODBC connection
odbc_close_all -- Close all ODBC connections
odbc_commit -- Commit an ODBC transaction
odbc_connect -- Connect to a datasource
odbc_cursor -- Get cursorname
odbc_do -- Synonym for odbc_exec()
odbc_error -- Get the last error code
odbc_errormsg -- Get the last error message
odbc_exec -- Prepare and execute a SQL statement
odbc_execute -- Execute a prepared statement
odbc_fetch_into -- Fetch one result row into array
odbc_fetch_row -- Fetch a row
odbc_fetch_array -- Fetch a result row as an associative array
odbc_next_result -- Checks if multiple results are avaiable
odbc_fetch_object -- Fetch a result row as an object
odbc_field_name -- Get the columnname
odbc_field_num -- Return column number
odbc_field_type -- Datatype of a field
odbc_field_len -- Get the length (precision) of a field
odbc_field_precision -- Synonym for odbc_field_len()
odbc_field_scale -- Get the scale of a field
odbc_free_result -- Free resources associated with a result
odbc_longreadlen -- Handling of LONG columns
odbc_num_fields -- Number of columns in a result
odbc_pconnect -- Open a persistent database connection
odbc_prepare -- Prepares a statement for execution
odbc_num_rows -- Number of rows in a result
odbc_result -- Get result data
odbc_result_all -- Print result as HTML table
odbc_rollback -- Rollback a transaction
odbc_setoption -- Adjust ODBC settings. Returns FALSE if an error occurs,
otherwise TRUE.
odbc_tables -- Get the list of table names stored in a specific data
source. Returns a result identifier containing the information.
odbc_tableprivileges -- Lists tables and the privileges associated with
each table
odbc_columns -- Lists the column names in specified tables. Returns a
result identifier containing the information.
odbc_columnprivileges -- Returns a result identifier that can be used to
fetch a list of columns and associated privileges
odbc_gettypeinfo -- Returns a result identifier containing information
about data types supported by the data source.
odbc_primarykeys -- Returns a result identifier that can be used to fetch
the column names that comprise the primary key for a table
odbc_foreignkeys -- Returns a list of foreign keys in the specified table
or a list of foreign keys in other tables that refer to the primary key in
the specified table
odbc_procedures -- Get the list of procedures stored in a specific data
source. Returns a result identifier containing the information.
odbc_procedurecolumns -- Retrieve information about parameters to
procedures
odbc_specialcolumns -- Returns either the optimal set of columns that
uniquely identifies a row in the table or columns that are automatically
updated when any value in the row is updated by a transaction
odbc_statistics -- Retrieve statistics about a table
regds,
-----Original Message-----
From: Douglas F. Keim [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 21:06
To: [EMAIL PROTECTED]
Subject: ODBC connection parameters
I am trying to connect to an ODBC database that is not Access nor MSSQL.
I
have the ODBC entry done and have tested the connections within the ODBC
manager.
I noticed that a connection within PHP begins with $Link, but I can't
seem
to find the values for the rest of the statement.
for Mysql it goes something like this -- $Link = mysql_connect.
I need to figure out what mysql_connect should be replaced with. The
only
reference that I found was mssql_odbc.
I also know that Mysql and ODBC support is built into PHP, so maybe this
is
easier that I think.
Anyone help me?
--- End Message ---
--- Begin Message ---
Hi,
another problem! (I hope to be luckier this time).
Can anyone help me to convert these instruction so that they can work on
Win2k/EasyPhp?
system ("mv index.html main.html");
system ("cp -R $system_root/export/templates/*
$kurs_home_path/$kid/modules",$x);
system("chmod +r $path2/$filnamn",$x);
exec("zip -r $filnamn.tgz *",$x);
exec("mv $filnamn $system_root/export/static/");
exec("rm -rf *.html img");
exec("rm -f export_data.php");
exec("cp index.html index.bak",$x);
passthru("cp $path/$v $path2/$filnamn",$x);
passthru("mv $userfile $path2/$filnamn",$x);
passthru("unzip $userfile_name");
Thanks a lot,
Nino
--- End Message ---
--- Begin Message ---
In c:\windows or c:\winnt is the first place where to look ;)
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> I'm trying to figure out the rules that PHP uses when looking for a
> php.ini file. In what exact order does it check what specific places.
> I've got numerous php.ini files sitting outside my "PHP" setup and when
> Apache is launched it's picking up one that doesn't seem to be in the
> "path" that I would expect PHP to look.
>
--
Claudio Bustos
Psicólogo
Chile
--- End Message ---
--- Begin Message ---
If Apache work as Apache module php.ini *MUST BE* in system root env like
C:\winnt\php.ini
If Apache work as CGI php.ini *MUST BE* in the path where php it is
installed.
Like this Apache directives:
#PHP 4.2.1 come CGI
ScriptAlias /php/ "D:/Php/php-4.2.1-Win32/"
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
my php.ini it is on the D::/Php/php-4.2.1-Win32/
#PHP 4.2.1 come Apache Module
#LoadModule php4_module "D:/Php/php-4.2.1-Win32/sapi/php4apache.dll"
#AddType application/x-httpd-php .php
my php.ini it is in the D:\winnt\system32\
Ciao Franco
Claudio Bustos wrote:
> In c:\windows or c:\winnt is the first place where to look ;)
>
> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> says...
> > I'm trying to figure out the rules that PHP uses when looking for a
> > php.ini file. In what exact order does it check what specific places.
> > I've got numerous php.ini files sitting outside my "PHP" setup and when
> > Apache is launched it's picking up one that doesn't seem to be in the
> > "path" that I would expect PHP to look.
> >
>
> --
> Claudio Bustos
> Psicólogo
> Chile
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I disagree.
I personally use MDaemon from ALT-N Technologies and it has many many
features. It is used by a few big named companies and will serve the uses
of any small company to even very large companies. So I'd say that it is
very versitile and worth a try. It is NOT free, but they do have a Fully
Functional 30-day trial, with trial key, upon download of product.
http://www.altn.com/mdaemon/
KC
"Csa" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> If you are looking for a mail server for windows, there is none better
than
> mercury mail server..
> CS
>
>
--- End Message ---
--- Begin Message ---
I disagree.
I personally use MDaemon from ALT-N Technologies and it has many many
features. It is used by a few big named companies and will serve the uses
of any small company to even very large companies. So I'd say that it is
very versitile and worth a try. It is NOT free, but they do have a Fully
Functional 30-day trial, with trial key, upon download of product.
http://www.altn.com/mdaemon/
KC
> ----- Original Message -----
> From: "Csa" <[EMAIL PROTECTED]>
> Newsgroups: php.windows
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, October 05, 2002 1:18 PM
> Subject: Re: mail programs
>
>
> > If you are looking for a mail server for windows, there is none better
> than
> > mercury mail server..
> > CS
> >
> >
>
--- End Message ---
--- Begin Message ---
I think the best you can do is retrieve the path of your script and add
to your desired filepath, with something like
$file=dirname($PHP_SELF)."nef/articles/54.txt";
and continue.
In article <[EMAIL PROTECTED]>, you say...
> Hi NG.
>
> I'm having problems creating files at a certain location.
> If I attemt to create a file it gets created in the rootdir (htdocs) even
> though I add a path infront of the file name. I've tried severel ways of
> adding a path but nothing works.
>
> eksample: "/nef/articles/54.txt"
>
> File 54.txt gets created but not at the intented location, instead it gets
> created in htdocs.
>
> Can anyone help me by telling me how I'm suppose to do this?
> I'm running PHP on Win98 with Apache.
>
> ~ Sviss
>
>
>
>
--- End Message ---
--- Begin Message ---
When you refer to a ROOT; to create a file, you are not referring to the MACHINE's
root, but to the FILE SYSTEM ROOT.
That is why the file goes to HTDOCS.
Try creating the file using an ABSOLUTE PATH, e.g "c:\Docs\example-dir\54.txt"
Regards,
Luis
----- Original Message -----
From: "Sviss" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 08, 2002 9:46 PM
Subject: [PHP-WIN] Creating files with PHP - need help
> Hi NG.
>
> I'm having problems creating files at a certain location.
> If I attemt to create a file it gets created in the rootdir (htdocs) even
> though I add a path infront of the file name. I've tried severel ways of
> adding a path but nothing works.
>
> eksample: "/nef/articles/54.txt"
>
> File 54.txt gets created but not at the intented location, instead it gets
> created in htdocs.
>
> Can anyone help me by telling me how I'm suppose to do this?
> I'm running PHP on Win98 with Apache.
>
> ~ Sviss
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
or u could add an other \ to tha path
"c:\\name.txt", "wb"
luck ....
toby
--- Luis Moreira <[EMAIL PROTECTED]> wrote: > When you
refer to a ROOT; to create a file, you are
> not referring to the MACHINE's root, but to the FILE
> SYSTEM ROOT.
> That is why the file goes to HTDOCS.
> Try creating the file using an ABSOLUTE PATH, e.g
> "c:\Docs\example-dir\54.txt"
>
> Regards,
> Luis
>
> ----- Original Message -----
> From: "Sviss" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 08, 2002 9:46 PM
> Subject: [PHP-WIN] Creating files with PHP - need
> help
>
>
> > Hi NG.
> >
> > I'm having problems creating files at a certain
> location.
> > If I attemt to create a file it gets created in
> the rootdir (htdocs) even
> > though I add a path infront of the file name. I've
> tried severel ways of
> > adding a path but nothing works.
> >
> > eksample: "/nef/articles/54.txt"
> >
> > File 54.txt gets created but not at the intented
> location, instead it gets
> > created in htdocs.
> >
> > Can anyone help me by telling me how I'm suppose
> to do this?
> > I'm running PHP on Win98 with Apache.
> >
> > ~ Sviss
> >
> >
> >
> >
> > --
> > 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
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Dona that \\nef\\articles makes no difference.
"Toby z" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> or u could add an other \ to tha path
>
> "c:\\name.txt", "wb"
>
> luck ....
>
> toby
>
> --- Luis Moreira <[EMAIL PROTECTED]> wrote: > When you
> refer to a ROOT; to create a file, you are
> > not referring to the MACHINE's root, but to the FILE
> > SYSTEM ROOT.
> > That is why the file goes to HTDOCS.
> > Try creating the file using an ABSOLUTE PATH, e.g
> > "c:\Docs\example-dir\54.txt"
> >
> > Regards,
> > Luis
> >
> > ----- Original Message -----
> > From: "Sviss" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 08, 2002 9:46 PM
> > Subject: [PHP-WIN] Creating files with PHP - need
> > help
> >
> >
> > > Hi NG.
> > >
> > > I'm having problems creating files at a certain
> > location.
> > > If I attemt to create a file it gets created in
> > the rootdir (htdocs) even
> > > though I add a path infront of the file name. I've
> > tried severel ways of
> > > adding a path but nothing works.
> > >
> > > eksample: "/nef/articles/54.txt"
> > >
> > > File 54.txt gets created but not at the intented
> > location, instead it gets
> > > created in htdocs.
> > >
> > > Can anyone help me by telling me how I'm suppose
> > to do this?
> > > I'm running PHP on Win98 with Apache.
> > >
> > > ~ Sviss
> > >
> > >
> > >
> > >
> > > --
> > > 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
> >
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
well aidal
for me it did it just WOULDN create the file otherwise
:$ :|
toby
--- Aidal <[EMAIL PROTECTED]> wrote: > Dona that
\\nef\\articles makes no difference.
>
> "Toby z" <[EMAIL PROTECTED]> wrote in message
>
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > or u could add an other \ to tha path
> >
> > "c:\\name.txt", "wb"
> >
> > luck ....
> >
> > toby
> >
> > --- Luis Moreira <[EMAIL PROTECTED]> wrote: > When
> you
> > refer to a ROOT; to create a file, you are
> > > not referring to the MACHINE's root, but to the
> FILE
> > > SYSTEM ROOT.
> > > That is why the file goes to HTDOCS.
> > > Try creating the file using an ABSOLUTE PATH,
> e.g
> > > "c:\Docs\example-dir\54.txt"
> > >
> > > Regards,
> > > Luis
> > >
> > > ----- Original Message -----
> > > From: "Sviss" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 08, 2002 9:46 PM
> > > Subject: [PHP-WIN] Creating files with PHP -
> need
> > > help
> > >
> > >
> > > > Hi NG.
> > > >
> > > > I'm having problems creating files at a
> certain
> > > location.
> > > > If I attemt to create a file it gets created
> in
> > > the rootdir (htdocs) even
> > > > though I add a path infront of the file name.
> I've
> > > tried severel ways of
> > > > adding a path but nothing works.
> > > >
> > > > eksample: "/nef/articles/54.txt"
> > > >
> > > > File 54.txt gets created but not at the
> intented
> > > location, instead it gets
> > > > created in htdocs.
> > > >
> > > > Can anyone help me by telling me how I'm
> suppose
> > > to do this?
> > > > I'm running PHP on Win98 with Apache.
> > > >
> > > > ~ Sviss
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > 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
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Are you working on a UNIX/Linux box?
It might make a difference due to the difference on file systems etc.
I'm working with Win98 at the moment.
"Toby z" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> well aidal
> for me it did it just WOULDN create the file otherwise
> :$ :|
>
> toby
>
> --- Aidal <[EMAIL PROTECTED]> wrote: > Dona that
> \\nef\\articles makes no difference.
> >
> > "Toby z" <[EMAIL PROTECTED]> wrote in message
> >
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > or u could add an other \ to tha path
> > >
> > > "c:\\name.txt", "wb"
> > >
> > > luck ....
> > >
> > > toby
> > >
> > > --- Luis Moreira <[EMAIL PROTECTED]> wrote: > When
> > you
> > > refer to a ROOT; to create a file, you are
> > > > not referring to the MACHINE's root, but to the
> > FILE
> > > > SYSTEM ROOT.
> > > > That is why the file goes to HTDOCS.
> > > > Try creating the file using an ABSOLUTE PATH,
> > e.g
> > > > "c:\Docs\example-dir\54.txt"
> > > >
> > > > Regards,
> > > > Luis
> > > >
> > > > ----- Original Message -----
> > > > From: "Sviss" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, October 08, 2002 9:46 PM
> > > > Subject: [PHP-WIN] Creating files with PHP -
> > need
> > > > help
> > > >
> > > >
> > > > > Hi NG.
> > > > >
> > > > > I'm having problems creating files at a
> > certain
> > > > location.
> > > > > If I attemt to create a file it gets created
> > in
> > > > the rootdir (htdocs) even
> > > > > though I add a path infront of the file name.
> > I've
> > > > tried severel ways of
> > > > > adding a path but nothing works.
> > > > >
> > > > > eksample: "/nef/articles/54.txt"
> > > > >
> > > > > File 54.txt gets created but not at the
> > intented
> > > > location, instead it gets
> > > > > created in htdocs.
> > > > >
> > > > > Can anyone help me by telling me how I'm
> > suppose
> > > > to do this?
> > > > > I'm running PHP on Win98 with Apache.
> > > > >
> > > > > ~ Sviss
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > 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
> > > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Everything you'll ever need on one web page
> > > from News and Sport to Email and Music Charts
> > > http://uk.my.yahoo.com
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
win xp AND 2000 pro
--- Aidal <[EMAIL PROTECTED]> wrote: > Are you working
on a UNIX/Linux box?
> It might make a difference due to the difference on
> file systems etc.
> I'm working with Win98 at the moment.
>
>
> "Toby z" <[EMAIL PROTECTED]> wrote in message
>
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > well aidal
> > for me it did it just WOULDN create the file
> otherwise
> > :$ :|
> >
> > toby
> >
> > --- Aidal <[EMAIL PROTECTED]> wrote: > Dona that
> > \\nef\\articles makes no difference.
> > >
> > > "Toby z" <[EMAIL PROTECTED]> wrote in
> message
> > >
> >
>
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > or u could add an other \ to tha path
> > > >
> > > > "c:\\name.txt", "wb"
> > > >
> > > > luck ....
> > > >
> > > > toby
> > > >
> > > > --- Luis Moreira <[EMAIL PROTECTED]> wrote: >
> When
> > > you
> > > > refer to a ROOT; to create a file, you are
> > > > > not referring to the MACHINE's root, but to
> the
> > > FILE
> > > > > SYSTEM ROOT.
> > > > > That is why the file goes to HTDOCS.
> > > > > Try creating the file using an ABSOLUTE
> PATH,
> > > e.g
> > > > > "c:\Docs\example-dir\54.txt"
> > > > >
> > > > > Regards,
> > > > > Luis
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Sviss" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, October 08, 2002 9:46 PM
> > > > > Subject: [PHP-WIN] Creating files with PHP -
> > > need
> > > > > help
> > > > >
> > > > >
> > > > > > Hi NG.
> > > > > >
> > > > > > I'm having problems creating files at a
> > > certain
> > > > > location.
> > > > > > If I attemt to create a file it gets
> created
> > > in
> > > > > the rootdir (htdocs) even
> > > > > > though I add a path infront of the file
> name.
> > > I've
> > > > > tried severel ways of
> > > > > > adding a path but nothing works.
> > > > > >
> > > > > > eksample: "/nef/articles/54.txt"
> > > > > >
> > > > > > File 54.txt gets created but not at the
> > > intented
> > > > > location, instead it gets
> > > > > > created in htdocs.
> > > > > >
> > > > > > Can anyone help me by telling me how I'm
> > > suppose
> > > > > to do this?
> > > > > > I'm running PHP on Win98 with Apache.
> > > > > >
> > > > > > ~ Sviss
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 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
> > > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Everything you'll ever need on one web page
> > > > from News and Sport to Email and Music Charts
> > > > http://uk.my.yahoo.com
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Well, as far is i know both have more options concerning permitions, both
have an admin etc. so there may be a slight difference in how this works on
your vs. my system, I don't know for sure though.
Anyway, it wasn't the idea to turn this into a discussion about file
systems. You gave your advice and I'm thankful :) though it didn't solve my
problem.
"Toby z" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> win xp AND 2000 pro
>
> --- Aidal <[EMAIL PROTECTED]> wrote: > Are you working
> on a UNIX/Linux box?
> > It might make a difference due to the difference on
> > file systems etc.
> > I'm working with Win98 at the moment.
> >
> >
> > "Toby z" <[EMAIL PROTECTED]> wrote in message
> >
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > well aidal
> > > for me it did it just WOULDN create the file
> > otherwise
> > > :$ :|
> > >
> > > toby
> > >
> > > --- Aidal <[EMAIL PROTECTED]> wrote: > Dona that
> > > \\nef\\articles makes no difference.
> > > >
> > > > "Toby z" <[EMAIL PROTECTED]> wrote in
> > message
> > > >
> > >
> >
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > > or u could add an other \ to tha path
> > > > >
> > > > > "c:\\name.txt", "wb"
> > > > >
> > > > > luck ....
> > > > >
> > > > > toby
> > > > >
> > > > > --- Luis Moreira <[EMAIL PROTECTED]> wrote: >
> > When
> > > > you
> > > > > refer to a ROOT; to create a file, you are
> > > > > > not referring to the MACHINE's root, but to
> > the
> > > > FILE
> > > > > > SYSTEM ROOT.
> > > > > > That is why the file goes to HTDOCS.
> > > > > > Try creating the file using an ABSOLUTE
> > PATH,
> > > > e.g
> > > > > > "c:\Docs\example-dir\54.txt"
> > > > > >
> > > > > > Regards,
> > > > > > Luis
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Sviss" <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, October 08, 2002 9:46 PM
> > > > > > Subject: [PHP-WIN] Creating files with PHP -
> > > > need
> > > > > > help
> > > > > >
> > > > > >
> > > > > > > Hi NG.
> > > > > > >
> > > > > > > I'm having problems creating files at a
> > > > certain
> > > > > > location.
> > > > > > > If I attemt to create a file it gets
> > created
> > > > in
> > > > > > the rootdir (htdocs) even
> > > > > > > though I add a path infront of the file
> > name.
> > > > I've
> > > > > > tried severel ways of
> > > > > > > adding a path but nothing works.
> > > > > > >
> > > > > > > eksample: "/nef/articles/54.txt"
> > > > > > >
> > > > > > > File 54.txt gets created but not at the
> > > > intented
> > > > > > location, instead it gets
> > > > > > > created in htdocs.
> > > > > > >
> > > > > > > Can anyone help me by telling me how I'm
> > > > suppose
> > > > > > to do this?
> > > > > > > I'm running PHP on Win98 with Apache.
> > > > > > >
> > > > > > > ~ Sviss
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > 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
> > > > > >
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Everything you'll ever need on one web page
> > > > > from News and Sport to Email and Music Charts
> > > > > http://uk.my.yahoo.com
> > > >
> > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Everything you'll ever need on one web page
> > > from News and Sport to Email and Music Charts
> > > http://uk.my.yahoo.com
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
hi Radovan
To acccess the previous URL in history:
use $HTTP_REFERER
i came accross this function n saved it it is somevere
in function list on php.net
hope it helps
(by the way how do u pronounce ur name n vat does it
meen :S)
goodluck
toby
--- Radovan Radic <[EMAIL PROTECTED]> wrote: > Hello
>
> When i have javascript code history.go(-1) and i
> need to go back to the php
> page, i get errors page has expired.
> What should i do?
>
> Radovan
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
tony
if you want it to be printed inside the table it has
to be INSIDE the table inside a ROW and a COLUMN
just like you have done with all other tr and td
echo("<tr><td>" . $current . "</td></tr>");
godd luck
toby ....
--- Anthony Ritter <[EMAIL PROTECTED]>
wrote: > I'd like to have the record data - $current -
> *within* the html table but if
> I run this script it is on a line outside of the
> table:
> ....................................
> <?
> $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("<table border=1>");
>
print("<tr><td>USGS</td><td>Station</td><td>Date</td><td>Time</td><td>Height
> </td><td>CFS</td><td>Temperature</td>");
> print("</table>");
> print($current);
> ?>
> ...............................
>
> ...and if I run this script, the record - $current -
> is outside above the
> table - not within it.
>
> <?
> $content =
>
file("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01427
> 510");
> array_pop($content);
> $current = array_pop($content);
> print("<table border=1>");
>
print("<tr><td>USGS</td><td>Station</td><td>Date</td><td>Time</td><td>Height
> </td><td>CFS</td><td>Temperature</td>");
> print($current);
> print("</table>");
> ?>
> .................................
>
> Any help would be greatly appreciated.
> Tony Ritter
>
>
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
you dont/should'nt need it, ODBC is built into php as a standard module...
"Douglas F. Keim" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I can't find it anywhere.
>
>
--- End Message ---
--- Begin Message ---
Thanks - I found that out.
"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> you dont/should'nt need it, ODBC is built into php as a standard module...
>
> "Douglas F. Keim" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I can't find it anywhere.
> >
> >
>
>
--- End Message ---
--- Begin Message ---
i've seen a lot of posts about this, but none helped. i've broken the script
down to its simplest components and still no luck.
<?php
IF(!isset($_get['i'])) {
$i = 1;
}
echo $i."<BR>";
$i++;
echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
?>
i've tried using empty(), $_post['i'] and $i, but none will work. i've been
trying to pass the variable back to the page itself so that $i keeps
increasing by 1 with each click. not that there's a use for this other than
my figuring out how to use it.
any thoughts?
btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a Win2kPro
(SP3) machine.
thx!
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
--- End Message ---
--- Begin Message ---
What happens if you use $_GET['i'] instead of $_get['i']?
PHP vars are case sensitive.
Rich
-----Original Message-----
From: db [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2002 14:41
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] problem passing variables...
i've seen a lot of posts about this, but none helped. i've broken the script
down to its simplest components and still no luck.
<?php
IF(!isset($_get['i'])) {
$i = 1;
}
echo $i."<BR>";
$i++;
echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
?>
i've tried using empty(), $_post['i'] and $i, but none will work. i've been
trying to pass the variable back to the page itself so that $i keeps
increasing by 1 with each click. not that there's a use for this other than
my figuring out how to use it.
any thoughts?
btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a Win2kPro
(SP3) machine.
thx!
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
What output *are* you getting?
(V)
"db" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> i've seen a lot of posts about this, but none helped. i've broken the
script
> down to its simplest components and still no luck.
>
> <?php
>
> IF(!isset($_get['i'])) {
>
> $i = 1;
>
> }
>
> echo $i."<BR>";
>
> $i++;
>
> echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
>
> ?>
>
> i've tried using empty(), $_post['i'] and $i, but none will work. i've
been
> trying to pass the variable back to the page itself so that $i keeps
> increasing by 1 with each click. not that there's a use for this other
than
> my figuring out how to use it.
>
> any thoughts?
>
> btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a
Win2kPro
> (SP3) machine.
>
> thx!
--- End Message ---
--- Begin Message ---
I have this query that I performing on the database.
Unfortunately, it is returning all the same information for all rows.
The table has three rows of data in it
Tbl_ID Tbl_Name Tbl_Age
1 Horse 21
2 Cow 30
3 Eagle 14
My php script looks like this.
$TableName = "PUB.table1";
$Link = odbc_connect ($DBName,$User,$Password);
$Query = "SELECT * from $TableName";
$Results = odbc_do($Link, $Query);
print odbc_result_all($Results);
My browser results are as follows ...
Tbl_ID Tbl_Name Tbl_Age
1 Horse 21
1 Horse 21
1 Horse 21
I am not sure what I am doing wrong here.
--- End Message ---