OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 11 Feb 2004 06:17:47 -0000 Issue 2583

php-general-digest-helplists.php.net
Date: Wed Feb 11 2004 - 00:17:47 CST


php-general Digest 11 Feb 2004 06:17:47 -0000 Issue 2583

Topics (messages 177301 through 177348):

Re: Linked Table Structure
        177301 by: Paul Furman
        177304 by: David T-G

Re: ereg_replace
        177302 by: Jason Wong
        177306 by: Richard Davey

ODBC connection..
        177303 by: Andrew Kwiczola
        177315 by: Ben Ramsey

Re: Working with a Front Page developer
        177305 by: Richard Davey
        177309 by: Chris de Vidal
        177311 by: Richard Davey
        177317 by: Chris de Vidal
        177327 by: Richard Davey

Re: XML and Excel
        177307 by: Jake McHenry
        177348 by: Jake McHenry

Re: Nested include(...)'s take relative paths not intuitively
        177308 by: Samuel Ventura
        177310 by: Richard Davey
        177312 by: John W. Holmes
        177316 by: Alex Hogan
        177318 by: John W. Holmes
        177326 by: Richard Davey
        177328 by: Richard Davey
        177331 by: Martin Towell
        177332 by: Adam Bregenzer
        177333 by: John W. Holmes
        177336 by: Adam Bregenzer

Missing mysql_real_escape_string() function in PHP 4.3.4
        177313 by: Radi Shourbaji
        177314 by: Jay Blanchard

PHp Books
        177319 by: Rajani Anand Iyer

Simple PHP Encoder
        177320 by: Don Myers
        177322 by: Ben Ramsey
        177323 by: =d0Mi=
        177329 by: Richard Davey
        177330 by: Richard Davey

Re: ereg_replace -- Thanks!
        177321 by: Nicole Lallande

Having trouble recompiling PHP
        177324 by: Matthew Rossiter
        177325 by: John Nichel

Re: Nested include(...)'s take relative paths
        177334 by: André Cerqueira
        177335 by: Adam Bregenzer

[Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)
        177337 by: Michael T. Peterson
        177339 by: Larry Brown

SQL help
        177338 by: Marc Greenstock
        177340 by: Martin Towell
        177341 by: Vail, Warren
        177342 by: Marc Greenstock
        177343 by: Larry Brown
        177344 by: Marc Greenstock

phpMyAdmin Problems
        177345 by: Freedomware
        177346 by: Raditha Dissanayake
        177347 by: Jason Wong

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


My background is only with MS Access where everything is drag & drop. In
that case you can link fields and they will populate automatically. If
you have Access, it might be an easier way to set up the database, enter
the data and then export it to MySQL or whatever.

Sajid wrote:
> I am not aware of linked tables too much, is this what is called linked
> table?
>
> Do i have to enter values on both tables to link them? Or can some columns
> of one table be linked with columns of another table in some other way?
>
> If no, then thanks for all who helped me :)
>
> --sajid
>
> "Adam Bregenzer" <adambregenzer.net> wrote in message
> news:1076431365.2365.243.camelarcon...
>
>
>>You can write an admin interface to manage adding the rows to your
>>tables if you don't want to do it manually. This seems like as close to
>>a linked list as you are going to get: each item in the child table has
>>a link (id column) to it's parent. You reference that to find
>>children/parents. This is generally the way relational databases are
>>structured. Maybe if you expand on what you mean by a linked list we
>>can provide a different answer.
>>
>>--
>>Adam Bregenzer
>>adambregenzer.net
>>http://adam.bregenzer.net/

attached mail follows:


Sajid --

...and then Sajid said...
%
% Hi,

Hi!

% Thanks for your help.
% But what i feel is that this is a more tedious process to achieve what i
% want to.

Sometimes database work is :-)

% What will happen in this is that i have to enter proper Continent ID and
% Country ID in both Country and Club tables respectively.

That's true. If you want a club to be in a particular country then
you'll have to specify what country. How else could you do it?

% For that i have to go and check that these ID's are in the other tables.

Ahhh... Now you're talking about 'foreign keys' in your relational
database. This ensures that, should you change the country ID in the
country table, all of the clubs for that country will be updated.

You'll still have to enter the country ID, though, whether manually,
through a pulldown, or by matching text.

HTH & HAND

:-D
--
David T-G * There is too much animal courage in
(play) davidtgjustpickone.org * society and not sufficient moral courage.
(work) davidtgworkjustpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQFAKSIjGb7uCXufRwARAo7PAJ9DToiWGN6NxokohAPSiUtLWDF27wCgpfSG
QIGDvE10HCS81qK6aAClYN8=
=pcBu
-----END PGP SIGNATURE-----

attached mail follows:


On Wednesday 11 February 2004 01:55, Nicole Lallande wrote:
> Can anyone tell me why this does not work:
>
> $str1=ereg_replace("index.php?src=","index/",$url);

Because '.' and '?' have special meanings in a regex.

> is there another way to do this?

If it's a plain simple string replace you want then use str_replace().

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The Gordian Maxim:
        If a string has one end, it has another.
*/

attached mail follows:


Hello Nicole,

Tuesday, February 10, 2004, 5:55:01 PM, you wrote:

NL> Can anyone tell me why this does not work:
NL> $str1=ereg_replace("index.php?src=","index/",$url);

Because it's an invalid regular expression.

NL> is there another way to do this?

Yes, str_replace() for something this simple:

$str1 = str_replace("index.php?src=", "index/", $url);

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


Heya, I was wondering if its possible to create a odbc connection with
php, using a User DSN.. (not a system DSN)? Everytime I try to connect
with this code..

 

 

$connect = odbc_connect("userdsnhere", "user", "password") or
die(odbc_errormsg());;

 

I get...

 

[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified

 

Like it doesn't exist.. Im trying to connect to a datasource that has
been setup over the network as a user dsn to retrieve data, anyone have
any ideas? I can retrieve the data via an excel odbc query, but this
doesn't seem to work as expected.. can anyone help?

 

 
Andy

 

 

 

attached mail follows:


I don't know about a "user" DSN, but I do know it's possible to create
an ODBC connection, using the ODBC functions. Check out the manual:
http://us4.php.net/manual/en/ref.odbc.php

Andrew Kwiczola wrote:
> Heya, I was wondering if its possible to create a odbc connection with
> php, using a User DSN.. (not a system DSN)? Everytime I try to connect
> with this code..
>
>
>
>
>
> $connect = odbc_connect("userdsnhere", "user", "password") or
> die(odbc_errormsg());;
>
>
>
> I get...
>
>
>
> [Microsoft][ODBC Driver Manager] Data source name not found and no
> default driver specified
>
>
>
> Like it doesn't exist.. Im trying to connect to a datasource that has
> been setup over the network as a user dsn to retrieve data, anyone have
> any ideas? I can retrieve the data via an excel odbc query, but this
> doesn't seem to work as expected.. can anyone help?
>
>
>
>
> Andy
>
>
>
>
>
>
>
>
>

attached mail follows:


Hello Chris,

Tuesday, February 10, 2004, 5:30:14 PM, you wrote:

CdV> Can anyone recommend some template engines? Or tips on using PHP to parse
CdV> an HTML doc, replacing it with real data?

One of the most common (and well used) template engines is Smarty:
http://smarty.php.net/

It might be overkill for your needs though, writing a simple template
system is pretty easy. I would have thought that even FrontRage could
handle HTML with embedded code though - from the point of view that it
knows not to display/modify it in the visual layout side of things.

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


Richard Davey said:
> One of the most common (and well used) template engines is Smarty:
> http://smarty.php.net/
>
> It might be overkill for your needs though, writing a simple template
> system is pretty easy.

Looks like it's overkill, but I'll look through it in case I could use it
on other projects.

Got any tips on writing a template system? Anything I should be aware of,
other than copious use of preg_replace? :-)

/dev/idal

attached mail follows:


Hello Chris,

Tuesday, February 10, 2004, 7:19:35 PM, you wrote:

CdV> Got any tips on writing a template system? Anything I should be aware of,
CdV> other than copious use of preg_replace? :-)

You don't have to use preg_replace, in its most "simplest" form the
following code will work just fine for a basic template system:

/*
  Creates 2 arrays - src and dst. Src is a list of the "tags" to
  search for in the HTML template and Dst is an array of the values to
  replace them with. The template is then loaded into a variable, a
  quick str_replace() function is performed and the output is
  displayed with a header/footer wrapped around it.
*/

$src = array("&fontcolor&", "&body&", "&submit&", "&error&");
$dst = array("red", $body, "Submit", $formerror);

$template = fileread("your_page.html");

$page = str_replace($src, $dst, $template);
        
include "header.php";
echo $page;
include "footer.php";

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


Richard Davey said:
> You don't have to use preg_replace, in its most "simplest" form the
> following code will work just fine for a basic template system:

<snip>

Blow me down, that's exactly what I need! You just saved me hours of
research. You rock!!

Thanks Rich!

/dev/idal

attached mail follows:


Hello Chris,

Tuesday, February 10, 2004, 8:09:36 PM, you wrote:

CdV> Blow me down, that's exactly what I need! You just saved me hours of
CdV> research. You rock!!

No worries, glad to help :)

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


I implemented the classes found at the link he provided, followed the
directions in the readme and examples

do you want me to post the code as well?

thanks,
Jake

----- Original Message -----
From: "Phillip Jackson" <tzmguitaristhotmail.com>
To: <php-generallists.php.net>
Sent: Tuesday, February 10, 2004 11:35 AM
Subject: Re: [PHP] XML and Excel

> Please post your solution to the group for reference.
>
> ~phillip
>
> "Jake McHenry" <linuxnittanytravel.com> wrote in message
> news:00de01c3ef49$fcba6170$7fa1e518JS...
> > ----- Original Message -----
> > From: "Marek Kilimajer" <kilimajerwebglobe.sk>
> > To: "Jake McHenry" <linuxnittanytravel.com>
> > Cc: <php-generallists.php.net>
> > Sent: Monday, February 09, 2004 12:42 PM
> > Subject: Re: [PHP] XML and Excel
> >
> >
> > > Create native xls files, there are at least two classes that can help
> > > you, here is one:
> > > http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/
> > >
> > > Jake McHenry wrote:
> > > > Hi everyone. Since my last post of outputing to excel, I have
> converted
> > my output to XML, quite happy with myself. It looks perfect. Perfect on
my
> > set that is. I have win xp with office xp. Excel with office xp
recognizes
> > XML. Office 2000, which the rest of my company is using, doesn't. Does
> > anyone know of a way I can take the XML I have now and have office 2000
> > recognize it? I feel kinda stupid... lol Sent out an email to my
> accounting
> > department saying it was ready for them and all they get is garbage on
> their
> > screen.
> > > >
> > > > Anyone know of anything I can do?
> > > >
> > > > Thanks,
> > > > Jake
> > >
> >
> > sweet.. thanks a lot.. took me about 3 hours, but I got it all
converted.
> > works great!
> >
> > Thanks again,
> > Jake
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

attached mail follows:


----- Original Message -----
From: "Phillip Jackson" <tzmguitaristhotmail.com>
To: "Jake McHenry" <linuxnittanytravel.com>
Sent: Tuesday, February 10, 2004 4:53 PM
Subject: Re: [PHP] XML and Excel

> sure; if it doesn't compromise security for you.
>
>
> ~Phillip
>
>
> ----- Original Message -----
> From: "Jake McHenry" <linuxnittanytravel.com>
> To: "Phillip Jackson" <tzmguitaristhotmail.com>
> Cc: <php-generallists.php.net>
> Sent: Tuesday, February 10, 2004 1:45 PM
> Subject: Re: [PHP] XML and Excel
>
>
> > I implemented the classes found at the link he provided, followed the
> > directions in the readme and examples
> >
> > do you want me to post the code as well?
> >
> > thanks,
> > Jake
> >
> >
> > ----- Original Message -----
> > From: "Phillip Jackson" <tzmguitaristhotmail.com>
> > To: <php-generallists.php.net>
> > Sent: Tuesday, February 10, 2004 11:35 AM
> > Subject: Re: [PHP] XML and Excel
> >
> >
> > > Please post your solution to the group for reference.
> > >
> > > ~phillip
> > >
> > > "Jake McHenry" <linuxnittanytravel.com> wrote in message
> > > news:00de01c3ef49$fcba6170$7fa1e518JS...
> > > > ----- Original Message -----
> > > > From: "Marek Kilimajer" <kilimajerwebglobe.sk>
> > > > To: "Jake McHenry" <linuxnittanytravel.com>
> > > > Cc: <php-generallists.php.net>
> > > > Sent: Monday, February 09, 2004 12:42 PM
> > > > Subject: Re: [PHP] XML and Excel
> > > >
> > > >
> > > > > Create native xls files, there are at least two classes that can
> help
> > > > > you, here is one:
> > > > >
http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/
> > > > >
> > > > > Jake McHenry wrote:
> > > > > > Hi everyone. Since my last post of outputing to excel, I have
> > > converted
> > > > my output to XML, quite happy with myself. It looks perfect. Perfect
> on
> > my
> > > > set that is. I have win xp with office xp. Excel with office xp
> > recognizes
> > > > XML. Office 2000, which the rest of my company is using, doesn't.
Does
> > > > anyone know of a way I can take the XML I have now and have office
> 2000
> > > > recognize it? I feel kinda stupid... lol Sent out an email to my
> > > accounting
> > > > department saying it was ready for them and all they get is garbage
on
> > > their
> > > > screen.
> > > > > >
> > > > > > Anyone know of anything I can do?
> > > > > >
> > > > > > Thanks,
> > > > > > Jake
> > > > >
> > > >
> > > > sweet.. thanks a lot.. took me about 3 hours, but I got it all
> > converted.
> > > > works great!
> > > >
> > > > Thanks again,
> > > > Jake
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
>

Here's the basics... I have some while loops in there too.. where the index
variable is used.. but this is what was added for the excel output.

Jake

require_once "/var/www/excel/class.writeexcel_workbook.inc.php";
require_once "/var/www/excel/class.writeexcel_worksheet.inc.php";

$fname = tempnam("/tmp", "timesheet.xls");
$workbook = &new writeexcel_workbook($fname);
$worksheet = &$workbook->addworksheet();

    // header format
    $header = &$workbook->addformat();
    $header->set_bold();
    $header->set_underline();
    $header->set_align('center');

    // notes format
    $notes = &$workbook->addformat();
    $notes->set_bold();

    // dollar format
    $dollar =& $workbook->addformat();
    $dollar->set_align('right');
    $dollar->set_num_format('$ ###,##0.00');

    // number format
    $number =& $workbook->addformat();
    $number->set_align('left');
    $number->set_num_format('###,##0.00');

    $worksheet->set_column(0, 0, 20);
    $worksheet->set_column(1, 1, 20);
    $worksheet->set_column(2, 2, 8);
    $worksheet->set_column(3, 3, 8);
    $worksheet->set_column(4, 4, 8);
    $worksheet->set_column(5, 5, 8);
    $worksheet->set_column(6, 6, 8);
    $worksheet->set_column(7, 7, 8);
    $worksheet->set_column(8, 8, 8);
    $worksheet->set_column(9, 9, 8);
    $worksheet->set_column(10, 10, 5);
    $worksheet->set_column(11, 11, 7);
    $worksheet->set_column(12, 12, 7);
    $worksheet->set_column(13, 13, 7);
    $worksheet->set_column(14, 14, 7);
    $worksheet->set_column(15, 15, 5);
    $worksheet->set_column(16, 16, 8);
    $worksheet->set_column(17, 17, 10);

    $worksheet->write(0, 0, "NAME", $header);
    $worksheet->write(0, 1, "LOCATION", $header);
    $worksheet->write(0, 2, "REG", $header);
    $worksheet->write(0, 3, "VAC", $header);
    $worksheet->write(0, 4, "SICK", $header);
    $worksheet->write(0, 5, "COMP", $header);
    $worksheet->write(0, 6, "MISC", $header);
    $worksheet->write(0, 7, "W/O PAY", $header);
    $worksheet->write(0, 8, "SEM/FAM", $header);
    $worksheet->write(0, 9, "TOTAL", $header);
    $worksheet->write(0, 10, "ADJ", $header);
    $worksheet->write(0, 11, "BONUS", $header);
    $worksheet->write(0, 12, "POST", $header);
    $worksheet->write(0, 13, "EMP. A/R", $header);
    $worksheet->write(0, 14, "PRE", $header);
    $worksheet->write(0, 15, "401K", $header);
    $worksheet->write(0, 16, "RATE", $header);
    $worksheet->write(0, 17, "GROSS", $header);

      $worksheet->write($index, 0, "$fullname");
      $worksheet->write($index, 1, "$location");
      $worksheet->write($index, 2, "$regularhours");
      $worksheet->write($index, 3, "$vachours");
      $worksheet->write($index, 4, "$sickhours");
      $worksheet->write($index, 5, "$comphours");
      $worksheet->write($index, 6, "$mischours");
      $worksheet->write($index, 7, "$wopyhours");
      $worksheet->write($index, 8, "$sefahours");
      $worksheet->write($index, 9, "$biweekly[0]");
      $worksheet->write($index, 10, "$adjustedtime", $number);
      $worksheet->write($index, 15, "$sub401k", $number);
      $worksheet->write($index, 16, "$payrate", $dollar);
      $worksheet->write($index, 17, "$gross5", $dollar);

    $worksheet->write($index2, 17, "$overallgross", $dollar);
    $worksheet->write($index3, 0, "NOTES:", $notes);
    $worksheet->write($index4, 0, "ANY QUESTIONS OR COMMENTS PLEASE CALL ",
$notes);

    $workbook->close();

    header("Content-Type: application/x-msexcel");
    $fh=fopen($fname, "rb");
    fpassthru($fh);
    unlink($fname);

attached mail follows:


Hi there,

I have 3 files in nested subdirectories

(1) /test.php
(2) /subdir1/test.php
(3) /subdir1/subdir2/test.php

(1) contains
//////////////////////
<?php
print "hello";
?>

(2) and (3) contains
/////////////////////
<?php
include("../test.php");
?>

if I call (3) it loops forever in (2) trying to
including itself.

I expected (2) correctly included (1) by taking the
relative path referenced to its current location not
the location of (3) which is including it.

If I rename (1) as test1.php, (2) as test2.php and (3)
as test3.php, then (2) fails to find and open (1).

Is this a bug or a feature?

I didnt find any reference to this in the online
documentation.
 

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

attached mail follows:


Hello Samuel,

Tuesday, February 10, 2004, 6:55:24 PM, you wrote:

SV> I have 3 files in nested subdirectories

[snip]

SV> Is this a bug or a feature?

Neither, it's just logic really. The include() function sucks
in the file specified, dropping out to HTML mode to do so. The
included file inherits all of the properties of the one that included
it, such as current directory location, variable scope, etc.

The include function doesn't (and cannot) know you're including more
PHP code.

In short, never mess around with "../" in a directory of an include
file, that's pretty bad structure anyway IMHO.

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


From: "Samuel Ventura" <samuel_venturayahoo.com>

> I have 3 files in nested subdirectories
>
> (1) /test.php
> (2) /subdir1/test.php
> (3) /subdir1/subdir2/test.php
>
> if I call (3) it loops forever in (2) trying to
> including itself.
>
> Is this a bug or a feature?

A feature?

You make a request for (3). The thing to remember/realize is that now all
require(), include(), etc. calls now happen relative to the path of (3). So,
when you include (2), which tries to include ../test.php, it is trying to
include itself again because the include() happens relative to the path of
(3).

include()'s are almost like a cut and paste. If you took the code from (2)
and pasted it into (3) in place of the include(), that's the end result.

This is why I do not use relative paths.

---John Holmes...

attached mail follows:


Are you saying that it's better not to use relative paths on include(...)'s,
require(...)'s and their (x)_once(...) cousins?

That seems awkward to me.

Why would I want to hard code a path, even if I was including additional
functionality from another file?

> -----Original Message-----
> From: John W. Holmes [mailto:holmes072000charter.net]
> Sent: Tuesday, February 10, 2004 1:50 PM
> To: Samuel Ventura; php-generallists.php.net
> Subject: Re: [PHP] HELP: Nested include(...)'s take relative paths not
> intuitively
>
> From: "Samuel Ventura" <samuel_venturayahoo.com>
>
> > I have 3 files in nested subdirectories
> >
> > (1) /test.php
> > (2) /subdir1/test.php
> > (3) /subdir1/subdir2/test.php
> >
> > if I call (3) it loops forever in (2) trying to
> > including itself.
> >
> > Is this a bug or a feature?
>
> A feature?
>
> You make a request for (3). The thing to remember/realize is that now all
> require(), include(), etc. calls now happen relative to the path of (3).
> So,
> when you include (2), which tries to include ../test.php, it is trying to
> include itself again because the include() happens relative to the path of
> (3).
>
> include()'s are almost like a cut and paste. If you took the code from (2)
> and pasted it into (3) in place of the include(), that's the end result.
>
> This is why I do not use relative paths.
>
> ---John Holmes...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

******************************************************************
The contents of this e-mail and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom it is addressed. The views stated herein do not
necessarily represent the view of the company. If you are not the
intended recipient of this e-mail you may not copy, forward,
disclose, or otherwise use it or any part of it in any form
whatsoever. If you have received this e-mail in error please
e-mail the sender.
******************************************************************

attached mail follows:


From: "Alex Hogan" <Alex.HoganAlliedElec.com>

> Are you saying that it's better not to use relative paths on
include(...)'s,
> require(...)'s and their (x)_once(...) cousins?
>
> That seems awkward to me.
>
> Why would I want to hard code a path, even if I was including additional
> functionality from another file?

Use whatever you're comfortable with because they both work. I'm just saying
that I stay away from relative includes, myself.

It's easy to just create a variable (or extract the data from $_SERVER) to
find out the absolute path and just use that as a variable. Then you can do
this:

include($_CONF['path'] . '/test.php');

for example. I make similar $_CONF variables for the html root of the site

$_CONF['html'] = 'http://www.bigredspark.com';

so that even the links in my html are full URLs instead of relative links.

To each his own.

---John Holmes...

attached mail follows:


Hello Alex,

Tuesday, February 10, 2004, 8:08:11 PM, you wrote:

AH> Are you saying that it's better not to use relative paths on include(...)'s,
AH> require(...)'s and their (x)_once(...) cousins?

Relative paths are fine, so long as you have strict control over what
is calling the script and from where. They're not particularly good
coding "practise" though given the way PHP works.

AH> Why would I want to hard code a path, even if I was including additional
AH> functionality from another file?

Because if you're including it all over the place from any number of
scripts in any number of locations - the relative directory is always
going to change.

Why not just set a $basedir value somewhere and always use that in an
include/require function: include "$basedir/sub/whatever" - then no
matter where it's called from it'll never be wrong.

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


Hello John,

Tuesday, February 10, 2004, 8:20:50 PM, you wrote:

JWH> include($_CONF['path'] . '/test.php');

This is slightly off-topic, but related to the include() function.
What is the given "standard" regarding when you should or shouldn't
use braces on a function.

For example:

include "$dir/file.php"

vs.

include("$dir/file.php")

Both work just fine. The manual includes examples of both methods. So
which do most people consider "the right way" ?

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


> Hello John,
>
> Tuesday, February 10, 2004, 8:20:50 PM, you wrote:
>
> JWH> include($_CONF['path'] . '/test.php');
>
> This is slightly off-topic, but related to the include() function.
> What is the given "standard" regarding when you should or shouldn't
> use braces on a function.
>
> For example:
>
> include "$dir/file.php"
>
> vs.
>
> include("$dir/file.php")
>
> Both work just fine. The manual includes examples of both methods. So
> which do most people consider "the right way" ?

This is one of those "personal preference" things. Pick which ever way you
like the best and stick with it.

Martin

attached mail follows:


On Tue, 2004-02-10 at 19:06, Richard Davey wrote:
> This is slightly off-topic, but related to the include() function.
> What is the given "standard" regarding when you should or shouldn't
> use braces on a function.

[snip]

> Both work just fine. The manual includes examples of both methods. So
> which do most people consider "the right way" ?

I always use parens on function calls, I think it is more readable.
Also, some syntax highlighters look for it.

--
Adam Bregenzer
adambregenzer.net
http://adam.bregenzer.net/

attached mail follows:


Richard Davey wrote:
> include "$dir/file.php"
>
> vs.
>
> include("$dir/file.php")
>
> Both work just fine. The manual includes examples of both methods. So
> which do most people consider "the right way" ?

If you use echo, then you should use include().
If you use print, then you should use include " ".
Unless you use echo(), then you should use include" "
and if you use print " ", then you should use include().
Unless you don't want to. :)

Like someone else said: Personal preference. There's no right or wrong.

--
---John Holmes...

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

php|architect: The Magazine for PHP Professionals – www.phparch.com

attached mail follows:


On Wed, 2004-02-11 at 19:36, John W. Holmes wrote:
> If you use echo, then you should use include().
> If you use print, then you should use include " ".
> Unless you use echo(), then you should use include" "
> and if you use print " ", then you should use include().
> Unless you don't want to. :)

Heh, what if I use print('')? :P

Actually, I use echo(''), even though using single quotes doesn't give
me better performance I like to separate my strings and variables.

I enjoy using echo, it's like a rebellion against printf.

--
Adam Bregenzer
adambregenzer.net
http://adam.bregenzer.net/

attached mail follows:


I'm trying to move a PHP application that was originally built on the
windows PHP implementation to a newly installed Fedora FC1 Linux system.
However the Fedora implementation of PHP 4.3.4 seems to be missing the
mysql_real_escape_string() function. I suspect that there might be other
mysql functions missing as well - so I would appreciate your advice on how
to get this new system up to speed with all of the latest PHP 4.3.x
extensions.

Thanks!

 
(this signature is in HTML format)
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
R a d i S h o u r b a j i
Product Management w Project Management w Software Marketing

 <http://www.radi-shourbaji.blogspot.com/> ResumeBlogT |
<mailto:r.shourbajinaspa.com> r.shourbajinaspa.com | (408) 441-7234

 

 

attached mail follows:


[snip]
I'm trying to move a PHP application that was originally built on the
windows PHP implementation to a newly installed Fedora FC1 Linux system.
However the Fedora implementation of PHP 4.3.4 seems to be missing the
mysql_real_escape_string() function. I suspect that there might be
other
mysql functions missing as well - so I would appreciate your advice on
how
to get this new system up to speed with all of the latest PHP 4.3.x
extensions.
[/snip]

Here are all of the available mysql functions, each has its version
listed on the appropropriate page.

http://us4.php.net/manual/en/ref.mysql.php

attached mail follows:


Hi All,
 
Can someone recommend some good books on PHP Advanced topics.
 
Regards
Rai

---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online

attached mail follows:


Howdy, I am looking for a simple way to encode my PHP files from snooping
eyes. Not a MD5 Encryption or anything but a simple base64 or something. I
want to scare off the casual server snooper that know very little about PHP
but has access to the web directory for other reasons.

D Myers

attached mail follows:


There's the Zend Encoder, which is fairly expensive. However, I suppose
you could use the base64_encode function to do what you want:
http://us2.php.net/manual/en/function.base64-encode.php. My idea is
that you could create a script that would read in your PHP scripts using
the filesystem functions. Then, it would encode the data it reads in
and write it back to the PHP script. The PHP script, however, wouldn't
execute, but it would be protected from prying eyes. Then, you would
create a script that would read that file back in and decode it so you
could work on it. I guess this is what you want.

Don Myers wrote:
> Howdy, I am looking for a simple way to encode my PHP files from snooping
> eyes. Not a MD5 Encryption or anything but a simple base64 or something. I
> want to scare off the casual server snooper that know very little about PHP
> but has access to the web directory for other reasons.
>
> D Myers

attached mail follows:


| From: "Ben Ramsey" <brbenandliz.com>
|
| There's the Zend Encoder, which is fairly expensive. However, I suppose
| you could use the base64_encode function to do what you want:
| http://us2.php.net/manual/en/function.base64-encode.php. My idea is
| that you could create a script that would read in your PHP scripts using
| the filesystem functions. Then, it would encode the data it reads in
| and write it back to the PHP script. The PHP script, however, wouldn't
| execute, but it would be protected from prying eyes. Then, you would
| create a script that would read that file back in and decode it so you
| could work on it. I guess this is what you want.
|
|
| Don Myers wrote:
| > Howdy, I am looking for a simple way to encode my PHP files from snooping
| > eyes. Not a MD5 Encryption or anything but a simple base64 or something. I
| > want to scare off the casual server snooper that know very little about PHP
| > but has access to the web directory for other reasons.
| >
| > D Myers
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, visit: http://www.php.net/unsub.php
|

Waste of time....

1) A person with access to Your webroot WITHOUT PHP skills ?
  - who could that person be, server administrator?
    i hope he's pretty familiar with PHP, otherwise he would't
    have access.
2) Anyway, if the person has actually knows very little about
   PHP, then your files looks very crypted for him already.
3) There is no simple solution... too much effort for so little.
   and besides, if "The Person" is root, he is most likely able to
   see your files anyway !!
4) If you think that "the person" could be someone else than root
   move your pages to another webspace provider....

=d0Mi=

attached mail follows:


Hello =d0Mi=,

Tuesday, February 10, 2004, 10:08:06 PM, you wrote:

d> 4) If you think that "the person" could be someone else than root
d> move your pages to another webspace provider....

I disagree; you'd be surprised just how many hosts configure public
level access to files inside of web directories on shared servers. I
would gauge there must be thousands and thousands of servers set up
like this.

Even well respected hosts like Pair Networks do this. There is a very
definite need for either script encoding or the education of everyone
to tighten up access to their files.

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


Hello Philip,

Wednesday, February 11, 2004, 12:19:07 AM, you wrote:

PJN> I never saw any of the other messages, but why not just
PJN> place an index file with nothing in it into
PJN> the dir you don't want people to view. Thats what i do.
PJN> (if i got the right end of the stick).

Wrong end of stick :)

The problem wasn't people viewing your PHP code via the web (which any
correctly configured web server should protect against) - it was
people on the same server as you (i.e. a shared server environment)
being able to telnet/ssh in and "more" (view) PHP files in your web
directory.

This is far more common than you'd think :)

--
Best regards,
 Richard mailto:richlaunchcode.co.uk

attached mail follows:


Many thanks!!

Richard Davey wrote:

>Hello Nicole,
>
>Tuesday, February 10, 2004, 5:55:01 PM, you wrote:
>
>NL> Can anyone tell me why this does not work:
>NL> $str1=ereg_replace("index.php?src=","index/",$url);
>
>Because it's an invalid regular expression.
>
>NL> is there another way to do this?
>
>Yes, str_replace() for something this simple:
>
>$str1 = str_replace("index.php?src=", "index/", $url);
>
>
>

--
########################
Nicole Lallande
nicolenmlconsulting.com
760.753.6766
########################

attached mail follows:


Hi there, I'm running RedHat 9.0 /Apache 2.0.48/openssl-0.9.7c/php-4.3.4

Every time I recompile PHP nothing seems to change according to phpinfo().
I'm trying to add SSL and FTP functionality. The funny thing is, every time
it is recompiled the messages indicate the install worked properly. What's
the best way to recompile php if I want to add functionality?

I did './configure --enable-ftp --with-openssl'

Matt

attached mail follows:


Matthew Rossiter wrote:
> Hi there, I'm running RedHat 9.0 /Apache 2.0.48/openssl-0.9.7c/php-4.3.4
>
> Every time I recompile PHP nothing seems to change according to phpinfo().
> I'm trying to add SSL and FTP functionality. The funny thing is, every time
> it is recompiled the messages indicate the install worked properly. What's
> the best way to recompile php if I want to add functionality?
>
> I did './configure --enable-ftp --with-openssl'
>
>
> Matt
>

First things first. Did you restart apache?

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

attached mail follows:


If it was a function, parenteses would be mandatory hehe
I prefer no parentheses on include/require/echo/print/..., cant justify
it with arguments though, its just the style i chose...

What about:
> if (...) {
> ...
> }
and:
> if (...)
> {
> ...
> }

I prefer the second, but people find good reasons for each of them...

Adam Bregenzer wrote:

> On Tue, 2004-02-10 at 19:06, Richard Davey wrote:
>
>>This is slightly off-topic, but related to the include() function.
>>What is the given "standard" regarding when you should or shouldn't
>>use braces on a function.
>
>
> [snip]
>
>
>>Both work just fine. The manual includes examples of both methods. So
>>which do most people consider "the right way" ?
>
>
> I always use parens on function calls, I think it is more readable.
> Also, some syntax highlighters look for it.
>

attached mail follows:


On Tue, 2004-02-10 at 21:00, André Cerqueira wrote:
> If it was a function, parenteses would be mandatory hehe
> I prefer no parentheses on include/require/echo/print/..., cant justify
> it with arguments though, its just the style i chose...
>
> What about:
> > if (...) {
> > ...
> > }
> and:
> > if (...)
> > {
> > ...
> > }
>
> I prefer the second, but people find good reasons for each of them...

I'm anal about code formatting. I always use parens with no space
before a function call, put a space before parens for builtin words (if,
while, etc), don't indent case phrases, move multiple arguments that go
over 80 characters to their own lines, and always use the former of the
above methods. Of course, if I am modifying someone else's code I
*always* use the coding standards already in place. The most important
thing is to be consistent. Everybody has their own preference about how
using different coding styles increases or decreases readability,
however I think what really improves readability is commenting, not
coding style.

--
Adam Bregenzer
adambregenzer.net
http://adam.bregenzer.net/

attached mail follows:


I have a registration form which collects some data then, when the user
clicks the submit button sends the data to a second page (a PHP script).
The problem I'm having is getting my webserver (apache) to invoke the PHP
scrip to process the data. What's so baffling about this is that I've
already written another, similar facility ( a login form which sends user
supplied info to php script for authentication). The login app works great.
The registration app doesn't even tho' the registration app is semantically
and syntactally identical to the login app.

I think what's happening is I'm missing something really simple. Does
anyone have any suggestions as to what I need to be looking for? I've been
at this for about 5 hours now and am going crazy looking at this [very
simple] code.

Finally, in my php.ini file "display_errors" is set to ON (But no errors are
displayed or written to error log).

Here's the form code fragment in the file member_registration_form.html:
    ...
    <form name="member_registration_form" method="post"
action="register_new_member.php">
    ...

And here's the preamble and the PHP block in the file,
register_new_member.php:

    <html>
    <head>
    <title>New member registration</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <hr>
    <h1>Registration Results</h1>
    <hr>

    <?php
        print( "Hello world."); // <<<<<< This doesn't get
executed.
    ?>
    </body>
    </html>

Again, no are any errors displayed or logged. Any help would be greatly
appreciated.

Cheers,

Michael

attached mail follows:


is the html code you have listed below the file "register_new_member.php"?
Is it in the same directory as the previously successful script?

-----Original Message-----
From: news [mailto:newssea.gmane.org]On Behalf Of Michael T. Peterson
Sent: Tuesday, February 10, 2004 9:48 PM
To: php-generallists.php.net
Subject: [PHP] [Q] Problems invoking a PHP script - Have no hair left to
pull - Please help [:-)

I have a registration form which collects some data then, when the user
clicks the submit button sends the data to a second page (a PHP script).
The problem I'm having is getting my webserver (apache) to invoke the PHP
scrip to process the data. What's so baffling about this is that I've
already written another, similar facility ( a login form which sends user
supplied info to php script for authentication). The login app works great.
The registration app doesn't even tho' the registration app is semantically
and syntactally identical to the login app.

I think what's happening is I'm missing something really simple. Does
anyone have any suggestions as to what I need to be looking for? I've been
at this for about 5 hours now and am going crazy looking at this [very
simple] code.

Finally, in my php.ini file "display_errors" is set to ON (But no errors are
displayed or written to error log).

Here's the form code fragment in the file member_registration_form.html:
    ...
    <form name="member_registration_form" method="post"
action="register_new_member.php">
    ...

And here's the preamble and the PHP block in the file,
register_new_member.php:

    <html>
    <head>
    <title>New member registration</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <hr>
    <h1>Registration Results</h1>
    <hr>

    <?php
        print( "Hello world."); // <<<<<< This doesn't get
executed.
    ?>
    </body>
    </html>

Again, no are any errors displayed or logged. Any help would be greatly
appreciated.

Cheers,

Michael

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

attached mail follows:


Hi all here's my problem,

I have two tables: 'user_data' and 'image_data'

obviously user_data has all the user information and image_data has all the
image information

in image_data are the fields: Image_ID int(11), User_ID int(11) and
Default_Img enum('Yes','No'). Users can have as many images as they like,
but it is optional.

I want to select from user_data and image_data and get the results based
upon the rest of the query. The problem is my sql is only pulling out the
users with images and ignoring the rest

my sql looks like this:

SELECT * FROM user_data, image_data
WHERE user_data.User_ID = image_data.User_ID
AND image_data.Default_Img = 'Yes'
GROUP BY user_data.User_ID

thanks for your help.

attached mail follows:


You'll need to do a left/right outer join.

as you didn't say which database you're using, I'll give this back to you to
do some reading up on how to do it...

HTH
Martin

> -----Original Message-----
> From: Marc Greenstock [mailto:marcshockmedia.com.au]
> Sent: Wednesday, 11 February 2004 1:53 PM
> To: php-generallists.php.net
> Subject: [PHP] SQL help
>
>
> Hi all here's my problem,
>
> I have two tables: 'user_data' and 'image_data'
>
> obviously user_data has all the user information and
> image_data has all the
> image information
>
> in image_data are the fields: Image_ID int(11), User_ID int(11) and
> Default_Img enum('Yes','No'). Users can have as many images
> as they like,
> but it is optional.
>
> I want to select from user_data and image_data and get the
> results based
> upon the rest of the query. The problem is my sql is only
> pulling out the
> users with images and ignoring the rest
>
> my sql looks like this:
>
> SELECT * FROM user_data, image_data
> WHERE user_data.User_ID = image_data.User_ID
> AND image_data.Default_Img = 'Yes'
> GROUP BY user_data.User_ID
>
> thanks for your help.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

attached mail follows:


The problem is you are using a hard join which will only return rows where
there are matching entries in both tables. What you probably want is called
a left join, however you have a further complication.

You have to have an image row to have a image_data.Default_Img = 'Yes'. So
this query is really designed to only return users who have default images
established (other images don't count either).

Haven't tested this, but it reflects my understanding of your expectation
(haven't double checked syntax either, but you can at
http://www.mysql.com/doc/en/index.html);

SELECT * FROM user_data
left join image_data
on user_data.User_ID = image_data.User_ID
where image_data.Default_Img in ('Yes', '')
GROUP BY user_data.User_ID

hope this works for you, good luck,

Warren Vail

-----Original Message-----
From: Marc Greenstock [mailto:marcshockmedia.com.au]
Sent: Tuesday, February 10, 2004 6:53 PM
To: php-generallists.php.net
Subject: [PHP] SQL help

Hi all here's my problem,

I have two tables: 'user_data' and 'image_data'

obviously user_data has all the user information and image_data has all the
image information

in image_data are the fields: Image_ID int(11), User_ID int(11) and
Default_Img enum('Yes','No'). Users can have as many images as they like,
but it is optional.

I want to select from user_data and image_data and get the results based
upon the rest of the query. The problem is my sql is only pulling out the
users with images and ignoring the rest

my sql looks like this:

SELECT * FROM user_data, image_data
WHERE user_data.User_ID = image_data.User_ID
AND image_data.Default_Img = 'Yes'
GROUP BY user_data.User_ID

thanks for your help.

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

attached mail follows:


The DB is MySQL 4.0.16,

all tables are MyISAM

"Martin Towell" <martin.towellworld.net> wrote in message
news:690FCB376F13B8419BF7C47034EEC7A416F962exchange.world.net...
> You'll need to do a left/right outer join.
>
> as you didn't say which database you're using, I'll give this back to you
to
> do some reading up on how to do it...
>
> HTH
> Martin
>
>
> > -----Original Message-----
> > From: Marc Greenstock [mailto:marcshockmedia.com.au]
> > Sent: Wednesday, 11 February 2004 1:53 PM
> > To: php-generallists.php.net
> > Subject: [PHP] SQL help
> >
> >
> > Hi all here's my problem,
> >
> > I have two tables: 'user_data' and 'image_data'
> >
> > obviously user_data has all the user information and
> > image_data has all the
> > image information
> >
> > in image_data are the fields: Image_ID int(11), User_ID int(11) and
> > Default_Img enum('Yes','No'). Users can have as many images
> > as they like,
> > but it is optional.
> >
> > I want to select from user_data and image_data and get the
> > results based
> > upon the rest of the query. The problem is my sql is only
> > pulling out the
> > users with images and ignoring the rest
> >
> > my sql looks like this:
> >
> > SELECT * FROM user_data, image_data
> > WHERE user_data.User_ID = image_data.User_ID
> > AND image_data.Default_Img = 'Yes'
> > GROUP BY user_data.User_ID
> >
> > thanks for your help.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

attached mail follows:


Correct me if I'm wrong...PLEASE.. but, I believe you are looking for...

SELECT * FROM user_data left join image_data on
user_data.User_ID=image_data.User_ID where image_data.Default_Img = 'Yes'
GROUP BY user_data.User_ID

I haven't used enum('Yes','No') so I'm taking your word for the fact that
you are restricting your selection to values of 'Yes' works as anticipated.
As long as there is a one to one relationship on user id I believe the left
join works for this.

Larry

-----Original Message-----
From: Marc Greenstock [mailto:marcshockmedia.com.au]
Sent: Tuesday, February 10, 2004 9:53 PM
To: php-generallists.php.net
Subject: [PHP] SQL help

Hi all here's my problem,

I have two tables: 'user_data' and 'image_data'

obviously user_data has all the user information and image_data has all the
image information

in image_data are the fields: Image_ID int(11), User_ID int(11) and
Default_Img enum('Yes','No'). Users can have as many images as they like,
but it is optional.

I want to select from user_data and image_data and get the results based
upon the rest of the query. The problem is my sql is only pulling out the
users with images and ignoring the rest

my sql looks like this:

SELECT * FROM user_data, image_data
WHERE user_data.User_ID = image_data.User_ID
AND image_data.Default_Img = 'Yes'
GROUP BY user_data.User_ID

thanks for your help.

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

attached mail follows:


That works well,

Thanks all.

"Warren Vail" <Warren.Vailschwab.com> wrote in message
news:72138202E59CD6118E960002A52CD9D20F5D4650n1025smx.nt.schwab.com...
> The problem is you are using a hard join which will only return rows where
> there are matching entries in both tables. What you probably want is
called
> a left join, however you have a further complication.
>
> You have to have an image row to have a image_data.Default_Img = 'Yes'.
So
> this query is really designed to only return users who have default images
> established (other images don't count either).
>
> Haven't tested this, but it reflects my understanding of your expectation
> (haven't double checked syntax either, but you can at
> http://www.mysql.com/doc/en/index.html);
>
> SELECT * FROM user_data
> left join image_data
> on user_data.User_ID = image_data.User_ID
> where image_data.Default_Img in ('Yes', '')
> GROUP BY user_data.User_ID
>
> hope this works for you, good luck,
>
> Warren Vail
>
>
> -----Original Message-----
> From: Marc Greenstock [mailto:marcshockmedia.com.au]
> Sent: Tuesday, February 10, 2004 6:53 PM
> To: php-generallists.php.net
> Subject: [PHP] SQL help
>
>
> Hi all here's my problem,
>
> I have two tables: 'user_data' and 'image_data'
>
> obviously user_data has all the user information and image_data has all
the
> image information
>
> in image_data are the fields: Image_ID int(11), User_ID int(11) and
> Default_Img enum('Yes','No'). Users can have as many images as they like,
> but it is optional.
>
> I want to select from user_data and image_data and get the results based
> upon the rest of the query. The problem is my sql is only pulling out the
> users with images and ignoring the rest
>
> my sql looks like this:
>
> SELECT * FROM user_data, image_data
> WHERE user_data.User_ID = image_data.User_ID
> AND image_data.Default_Img = 'Yes'
> GROUP BY user_data.User_ID
>
> thanks for your help.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL
tables and PHP. Things are generally going OK, but I'm still ironing out
a few kinks. I suspect some of my problems might be related to an error
message I get when I click on a Database in phpMyAdmin:

"Error: The additional Features for working with linked Tables have been
deactivated. To find out why click here."

When I click the link, I get a page that lists six different problems,
each linked to a pretty complex solution in the phpMyAdmin Manual. Does
anyone here know if there's an easier solution? Would fixing one or two
key problems automatically fix the others? Can you download files that
have already been "fixed," add your username and password and paste them
into the proper folders?

I put a couple screenshots that illustrate what I described online at
http://geowebworks.geobop.org/test/phpmyadmin/index.php

Thanks.

attached mail follows:


Hi,
perhaps this is best posted on the phpmyadmin list?

Freedomware wrote:

> I've been using both phpMyAdmin and EMS MySQL Manager to work with
> MySQL tables and PHP. Things are generally going OK, but I'm still
> ironing out a few kinks. I suspect some of my problems might be
> related to an error message I get when I click on a Database in
> phpMyAdmin:
>
> "Error: The additional Features for working with linked Tables have
> been deactivated. To find out why click here."
>
> When I click the link, I get a page that lists six different problems,
> each linked to a pretty complex solution in the phpMyAdmin Manual.
> Does anyone here know if there's an easier solution? Would fixing one
> or two key problems automatically fix the others? Can you download
> files that have already been "fixed," add your username and password
> and paste them into the proper folders?
>
> I put a couple screenshots that illustrate what I described online at
> http://geowebworks.geobop.org/test/phpmyadmin/index.php
>
> Thanks.
>

--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.

attached mail follows:


On Wednesday 11 February 2004 12:47, Freedomware wrote:
> I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL
> tables and PHP. Things are generally going OK, but I'm still ironing out
> a few kinks. I suspect some of my problems might be related to an error
> message I get when I click on a Database in phpMyAdmin:

[snip]

This has nothing to do with PHP. Please ask on the relevant list/forum.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
It's fabulous! We haven't seen anything like it in the last half an hour!
                -- Macy's
*/