Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Darren Young

Tunnel port 3306 over an SSH connection if you can get an SSH session to 
open to the remote.

On Sat, 13 Jul 2002, Alex Shi wrote:

> "Jason Wong" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > On Saturday 13 July 2002 13:31, Alex Shi wrote:
> > > The thing is that, the MySQL table resides on a remote web server, my
> > > client want to download it and access it in Access.
> >
> > Doesn't matter, ODBC works across a network.
> 
> But what can we do if the ISP closed 3306 port on their firewall?
> 
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > Open Source Software Systems Integrators
> > * Web Design & Hosting * Internet & Intranet Applications Development *
> >
> > /*
> > The young lady had an unusual list,
> > Linked in part to a structural weakness.
> > She set no preconditions.
> > */
> >
> 
> 
> 


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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Darren Young

I seem to remember some Windows application that will do the conversion 
for you. I believe it's called mysql2access and the other way is 
access2mysql. IIRC, it's not open/free though.

On Sat, 13 Jul 2002, Alex Shi wrote:

> The thing is that, the MySQL table resides on a remote web server, my client
> want to download it and access it in Access.
> 
> Alex
> 
> > You can also use ODBC (Ships with Acess) to make a DSN connection to
> MySQL.
> > Access can retrieve data from any ODBC DSN.
> >
> > Jason White
> >
> > - Original Message -
> > From: "Jason Wong" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, July 12, 2002 9:48 PM
> > Subject: Re: [PHP] Convert MySQL table into Access or Excell format
> >
> >
> > > On Saturday 13 July 2002 06:48, Alex Shi wrote:
> > > > Hello,
> > > >
> > > > My client has a website and it support MySQL/PHP. The client want
> > > > to download the MySQL tables and then access them in Excell or
> > > > Access. So my question is, is it possible to convert MySQL table into
> > > > Access or Excell format? Thanks in advance for all answer!
> > >
> > > archives -> "mysql excel"
> > >
> > > --
> > > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > > Open Source Software Systems Integrators
> > > * Web Design & Hosting * Internet & Intranet Applications Development *
> > >
> > > /*
> > > After years of research, scientists recently reported that there is,
> > > indeed, arroz in Spanish Harlem.
> > > */
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> 
> 
> 


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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi

"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Saturday 13 July 2002 14:00, Alex Shi wrote:
> > "Jason Wong" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> > > On Saturday 13 July 2002 13:31, Alex Shi wrote:
> > > > The thing is that, the MySQL table resides on a remote web server,
my
> > > > client want to download it and access it in Access.
> > >
> > > Doesn't matter, ODBC works across a network.
> >
> > But what can we do if the ISP closed 3306 port on their firewall?
>
> This thread is leading into non-PHP territory (ie you're better off asking
on
> the mysql list). Put simply, you can specify which port you want MySQL to
> use. However if the ISP only allows certain ports, eg SMTP, HTTP, _and_
> you're already using those ports, then you're stuck up a creek.
>
> Of course you can always ask your ISP to unblock that port. Why are _they_
> firewalling _your_ network anyway?

Sorry for the confusing...the "ISP" is the hosting company where my client's
web site hosted. That's why I need a php solution for this...

>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> What we do not understand we do not possess.
> -- Goethe
> */
>


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




Re: [PHP] safe_mode

2002-07-12 Thread Liam MacKenzie


DocumentRoot /home/scripts
ServerName scripts.blahblah.com
ErrorLog /home/nobody/logs/hosting/error.scripts.blahblah.com.log
CustomLog /home/nobody/logs/hosting/access.scripts.blahblah.com.log common

php_admin_flag safe_mode off  (or on)







- Original Message -
From: "Chris Knipe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 12:23 PM
Subject: [PHP] safe_mode


> Lo all,
>
> Does anyone have some examples, ideas, or references on how to setup php's
> safe_mode operation so that I can provide a reasonably secure environment
for
> hosting php3 and php4 (public web sites, with public users).
>
> This is for a public type hosting environment, so I'll definately need to
> protect the servers from malicious code (such as exec(rm... ), and
everything
> else that goes with it...
>
> Any pointers or web sites that may be of help will be appreciated
> tremendiously.
>
> --
> me
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




Re: [PHP] Connecting LocalHost & Remote mySQL DB

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 14:11, Thomas Edison Jr. wrote:
> Glory!
>
> Exactly.. that IS the problem.
> You see, my mySQL DB on the Server/Internet, on my
> website.. it DOES NOT allow Remote Host Connection.
> That's why i need to use a PHP page, that too based on
> the server. Because i need to move tabel data on my
> Client/My Computer to the Tables on my Website mySQL.

Allow remote access to your local mysql (read up on the security chapter of 
manual).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
"It is easier to fight for principles than to live up to them."
-- Alfred Adler
*/


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




Re: [PHP] Connecting LocalHost & Remote mySQL DB

2002-07-12 Thread Thomas Edison Jr.

Glory!

Exactly.. that IS the problem.
You see, my mySQL DB on the Server/Internet, on my
website.. it DOES NOT allow Remote Host Connection.
That's why i need to use a PHP page, that too based on
the server. Because i need to move tabel data on my
Client/My Computer to the Tables on my Website mySQL.

Thanks,
T. Edison Jr.

--- Jason Wong <[EMAIL PROTECTED]> wrote:
> On Saturday 13 July 2002 13:45, Thomas Edison Jr.
> wrote:
> > Glory!
> >
> > Let's say i got a bunch of Data in my mySQL Table
> on
> > my localhost. I need all this Data uploaded on my
> > mySQL on the Server/Internet.
> >
> > Now one way is to use phpMyAdmin, Export the
> original
> > data on LocalHost to a .CSV file, then use the
> Server
> > phpMyAdmin to upload the same .CSV file to the
> table
> > on the server.
> >
> > What could be an alternate, in case we dont' want
> to
> > use this lengthy procedure. Can i make one page
> which
> > will do both these things?
> > .OR.
> > Can my PHP page on my server, directly pick up
> data
> > from my localHost mySQL, and feed it in the mySQL
> > Table on the server?
> 
> If all you want is to copy data from
> ServerA/Database/Table to 
> ServerB/Database/Table you don't even need PHP. 
> 
> Providing that at least one of the server allows
> remote access then the 
> easiest way is to use mysqldump. For details consult
> mysql manual.
> 
> -- 
> Jason Wong -> Gremlins Associates ->
> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet
> Applications Development *
> 
> /*
> Love is in the offing.
>   -- The Homicidal Maniac
> */
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


=
Rahul S. Johari (Director)
**
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
***

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 14:00, Alex Shi wrote:
> "Jason Wong" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > On Saturday 13 July 2002 13:31, Alex Shi wrote:
> > > The thing is that, the MySQL table resides on a remote web server, my
> > > client want to download it and access it in Access.
> >
> > Doesn't matter, ODBC works across a network.
>
> But what can we do if the ISP closed 3306 port on their firewall?

This thread is leading into non-PHP territory (ie you're better off asking on 
the mysql list). Put simply, you can specify which port you want MySQL to 
use. However if the ISP only allows certain ports, eg SMTP, HTTP, _and_ 
you're already using those ports, then you're stuck up a creek.

Of course you can always ask your ISP to unblock that port. Why are _they_ 
firewalling _your_ network anyway? 

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
What we do not understand we do not possess.
-- Goethe
*/


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




Re: [PHP] Restricting access using IPs

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 13:45, Liam MacKenzie wrote:
> If I enter 192.168.0.13 (My IP) it works, I'm allowed in and any other IP
> isn't.
> However, I need to grant access to this whole network, not just me.  So I
> need 192.168.0.* to be able to access it, everyone else should get "Access
> Denied"
>
> So I need to know how to write this bit:
> $localip = "192.168.0.13";
> so that it's the network, not just me.
>
> I tried these but they didn't work:
> $localip = "192.168.0.0";
> $localip = "192.168.0.*";
> $localip = "192.168.0.0/24";

In this particular case all you need to do is check that the ip address 
($REMOTE_ADDR) begins with "192.168.0.". So look in the manual to see which 
of the string function(s) you need to perform this comparison (probably 
strstr()).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Every improvement in communication makes the bore more terrible.
-- Frank Moore Colby
*/


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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi

"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Saturday 13 July 2002 13:31, Alex Shi wrote:
> > The thing is that, the MySQL table resides on a remote web server, my
> > client want to download it and access it in Access.
>
> Doesn't matter, ODBC works across a network.

But what can we do if the ISP closed 3306 port on their firewall?

>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> The young lady had an unusual list,
> Linked in part to a structural weakness.
> She set no preconditions.
> */
>


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




Re: [PHP] Connecting LocalHost & Remote mySQL DB

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 13:45, Thomas Edison Jr. wrote:
> Glory!
>
> Let's say i got a bunch of Data in my mySQL Table on
> my localhost. I need all this Data uploaded on my
> mySQL on the Server/Internet.
>
> Now one way is to use phpMyAdmin, Export the original
> data on LocalHost to a .CSV file, then use the Server
> phpMyAdmin to upload the same .CSV file to the table
> on the server.
>
> What could be an alternate, in case we dont' want to
> use this lengthy procedure. Can i make one page which
> will do both these things?
> .OR.
> Can my PHP page on my server, directly pick up data
> from my localHost mySQL, and feed it in the mySQL
> Table on the server?

If all you want is to copy data from ServerA/Database/Table to 
ServerB/Database/Table you don't even need PHP. 

Providing that at least one of the server allows remote access then the 
easiest way is to use mysqldump. For details consult mysql manual.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Love is in the offing.
-- The Homicidal Maniac
*/


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




Re: [PHP] Restricting access using IPs

2002-07-12 Thread Liam MacKenzie

If I enter 192.168.0.13 (My IP) it works, I'm allowed in and any other IP
isn't.
However, I need to grant access to this whole network, not just me.  So I
need 192.168.0.* to be able to access it, everyone else should get "Access
Denied"

So I need to know how to write this bit:
$localip = "192.168.0.13";
so that it's the network, not just me.

I tried these but they didn't work:
$localip = "192.168.0.0";
$localip = "192.168.0.*";
$localip = "192.168.0.0/24";


Any other ideas?

Cheers



- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 13, 2002 3:49 PM
Subject: Re: [PHP] Restricting access using IPs


> On Saturday 13 July 2002 13:10, Liam MacKenzie wrote:
> > Hey all, I'm looking to deny access to all IPs except those that fall
into
> > a specific IP range.  192.168.0.* in this case.
> > Am I missing something out of this code, it don't work too well  ;-)
>
> HOW doesn't it work too well? It displays a picture of a naked guy instead
of
> the naked girl that you was expecting?
>
> >  > $localip = "192.168.0.13";
> > if ($REMOTE_ADDR == $localip) {
> > ?>
> >
> > Allowed!
> >
> >  > }
> > else {
> > ?>
> >
> > Denied!
> >
> >  > }
> >
> > ?>
>
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> GOOD-NIGHT, everybody ... Now I have to go administer FIRST-AID to my
> pet LEISURE SUIT!!
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 13:31, Alex Shi wrote:
> The thing is that, the MySQL table resides on a remote web server, my
> client want to download it and access it in Access.

Doesn't matter, ODBC works across a network.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
The young lady had an unusual list,
Linked in part to a structural weakness.
She set no preconditions.
*/


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




Re: [PHP] Restricting access using IPs

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 13:10, Liam MacKenzie wrote:
> Hey all, I'm looking to deny access to all IPs except those that fall into
> a specific IP range.  192.168.0.* in this case.
> Am I missing something out of this code, it don't work too well  ;-)

HOW doesn't it work too well? It displays a picture of a naked guy instead of 
the naked girl that you was expecting?

>  $localip = "192.168.0.13";
> if ($REMOTE_ADDR == $localip) {
> ?>
>
> Allowed!
>
>  }
> else {
> ?>
>
> Denied!
>
>  }
>
> ?>


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
GOOD-NIGHT, everybody ... Now I have to go administer FIRST-AID to my
pet LEISURE SUIT!!
*/


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




[PHP] Connecting LocalHost & Remote mySQL DB

2002-07-12 Thread Thomas Edison Jr.

Glory!

Let's say i got a bunch of Data in my mySQL Table on
my localhost. I need all this Data uploaded on my
mySQL on the Server/Internet.

Now one way is to use phpMyAdmin, Export the original
data on LocalHost to a .CSV file, then use the Server
phpMyAdmin to upload the same .CSV file to the table
on the server. 

What could be an alternate, in case we dont' want to
use this lengthy procedure. Can i make one page which
will do both these things? 
.OR.
Can my PHP page on my server, directly pick up data
from my localHost mySQL, and feed it in the mySQL
Table on the server?

Help needed!

Thanks,
T. Edison Jr.



__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




[PHP] NEVERMIND! [PHP] problems with variable variables...

2002-07-12 Thread Dave at Sinewaves.net

Nevermind!

I figured out the curly bracket syntax...

Doh!  It was buried in the manual the whole time!

Dave

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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi

The thing is that, the MySQL table resides on a remote web server, my client
want to download it and access it in Access.

Alex

> You can also use ODBC (Ships with Acess) to make a DSN connection to
MySQL.
> Access can retrieve data from any ODBC DSN.
>
> Jason White
>
> - Original Message -
> From: "Jason Wong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 12, 2002 9:48 PM
> Subject: Re: [PHP] Convert MySQL table into Access or Excell format
>
>
> > On Saturday 13 July 2002 06:48, Alex Shi wrote:
> > > Hello,
> > >
> > > My client has a website and it support MySQL/PHP. The client want
> > > to download the MySQL tables and then access them in Excell or
> > > Access. So my question is, is it possible to convert MySQL table into
> > > Access or Excell format? Thanks in advance for all answer!
> >
> > archives -> "mysql excel"
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > Open Source Software Systems Integrators
> > * Web Design & Hosting * Internet & Intranet Applications Development *
> >
> > /*
> > After years of research, scientists recently reported that there is,
> > indeed, arroz in Spanish Harlem.
> > */
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>


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




[PHP] problems with variable variables...

2002-07-12 Thread Dave at Sinewaves.net

I'm having a huge problem with getting variable variables to work.

Here's what the code looks like...

// This is set from a previous array...
/
$the_variablename[0] = "processors";

// Now I include a file called vars.processors.php
// (which contains an array called processors[] )
/
include("vars.".$the_variablename[0].".php");

Everything works fine so far.  Then i make the variable variable, and the
shit happens.

// I want to set a javascript array value - already
// set up in the script...
// So I want to retrieve a value from the included
// file dynamically and create a javascript statement
// like this:
//  processors[0] = (whatever the value of $processors[0] within the
included file)
/
echo $the_variablename[0]."[0] = ".$$the_variablename[0][0].";\n";


And what do I get for wanting total control and dynamic code??
Undefined variable.

Is it because i'm accessing an array within the array?

Should I be calling it as:
$($the_variablename[0])[0]
or
$$the_variablename[0][0]

or do I need to establish a separate temp variable to take care of the array
value, like this:
$temp = $the_variablename[0];
echo $$temp[0];


Please help!!?!

Dave


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




[PHP] Restricting access using IPs

2002-07-12 Thread Liam MacKenzie

Hey all, I'm looking to deny access to all IPs except those that fall into a
specific IP range.  192.168.0.* in this case.
Am I missing something out of this code, it don't work too well  ;-)




Allowed!



Denied!




Thanks in advance  :-)

Liam



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




Re: [PHP] Inheritance

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

> if you have multilayered inheritance you may explicitely say which 
> anceStor class you are calling, like foo::print().

two typos in a few words are definitely too much, sorry :)

BTW, although almost all class specification is dynamic you cannot 
dynamically specify a class name in fron of the :: operator. A bug, most 
probably.

$myclass = 'foo';
$myclass::print();

will produce a weird parse error.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] help with mail() function!

2002-07-12 Thread Thomas \"omega\" Henning

No I only work on *nix platforms
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You wouldn't happen to be on a windows system?  Read the "Warning:" on the
> manual page:
> http://www.php.net/manual/en/function.mail.php
>
> --Dan
>
> --
>PHP classes that make web design easier
> SQL Solution  |   Layout Solution   |  Form Solution
> sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409



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




Re: [PHP] Inheritance

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Jason White wrote:
> I have a class Foo{} which has a method Print().
> I have another class FooBar{} which extends Foo{} and has its own method
> Print().
> 
> How do I invoke Foo{}'s Print() method from within FooBar{} once its been
> overridden?

parent::print();

if you have multilayered inheritance you may explicitely say which 
ancemtor class you are calling, like foo:print().

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Jason White

You can also use ODBC (Ships with Acess) to make a DSN connection to MySQL.
Access can retrieve data from any ODBC DSN.

Jason White

- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 9:48 PM
Subject: Re: [PHP] Convert MySQL table into Access or Excell format


> On Saturday 13 July 2002 06:48, Alex Shi wrote:
> > Hello,
> >
> > My client has a website and it support MySQL/PHP. The client want
> > to download the MySQL tables and then access them in Excell or
> > Access. So my question is, is it possible to convert MySQL table into
> > Access or Excell format? Thanks in advance for all answer!
>
> archives -> "mysql excel"
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> After years of research, scientists recently reported that there is,
> indeed, arroz in Spanish Harlem.
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 06:48, Alex Shi wrote:
> Hello,
>
> My client has a website and it support MySQL/PHP. The client want
> to download the MySQL tables and then access them in Excell or
> Access. So my question is, is it possible to convert MySQL table into
> Access or Excell format? Thanks in advance for all answer!

archives -> "mysql excel"

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
After years of research, scientists recently reported that there is,
indeed, arroz in Spanish Harlem.
*/


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




Re: [PHP] File Browser

2002-07-12 Thread Jason Wong

On Saturday 13 July 2002 09:51, Darren Young wrote:

> Anyone have any pointers to existing scripts? What would this type of
> application be called? A document repository perhaps?

There's something called Owl (search sourceforge/freshmeat etc). Or you can 
try phprojeckt which has a document repository module.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
A synonym is a word you use when you can't spell the word you first
thought of.
-- Burt Bacharach
*/


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




Re: [PHP] is_null question

2002-07-12 Thread Jason White

My appologies, I didn't read clear through, your code block confused me :-)

What I usually do in a situation like this, although I'm new to PHP is.

$temp="Some stuff before Email";
if($row[1]){
$temp .= "Email:$row[1]";
}
$temp .= "The rest of the stuff after Email";
print $temp;

Jason White

- Original Message -
From: "Jason White" <[EMAIL PROTECTED]>
To: "Matthew K. Gold" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 9:28 PM
Subject: Re: [PHP] is_null question


> You can use:
>
> if($row[1]){print "Email:$row[1]";}else{print " ";}
>
> Jason White
>
> - Original Message -
> From: "Matthew K. Gold" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 12, 2002 9:23 PM
> Subject: [PHP] is_null question
>
>
> > Hi Everyone,
> >
> > Here's my problem:  I'd like to make the printing of some text dependent
> on
> > whether or not a variable is null.  In the following example, when
$row[1]
> > is null, what gets printed on the page is "Email: ".  I'd like the
> > script to not print "Email:" if row[1] is null.
> >
> > It looks like I should be using is_null(), but I'm not sure how to use
it,
> > especially since all of this is embedded in a print statement.
> >
> > while ($row = mysql_fetch_row ($result))
> > {
> >  print ("\t\n\t\t$row[0]\n\n\t > class=\"default\" bgcolor=\"#ff\">\n\t\t$row[10]Email:
>  > href=\"mailto:$row[1]\";>$row[1]Phone:
$row[2]\n\nAddress:
> > $row[3]$row[4]$row[5] $row[6] $row[7] URL:  > href=\"$row[8]\" target=\"_blank\">$row[8]");
> > }
> >
> >
> > Instead of just printing Email: $row[1], I'd like to test whether it's
> null
> > first--maybe something like this?
> >
> > if (is_null($row[1])) print " " else print ("Email: $row[0]")
> >
> > but can I put that line inside of another print statement?  if so, do I
> have
> > to escape the quotation marks?  Please forgive my confusion--I'm new to
> > programming in general and PHP in particular.
> >
> > Thanks in advance for your help.
> >
> > best,
> >
> > Matt
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] is_null question

2002-07-12 Thread Jason White

You can use:

if($row[1]){print "Email:$row[1]";}else{print " ";}

Jason White

- Original Message -
From: "Matthew K. Gold" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 9:23 PM
Subject: [PHP] is_null question


> Hi Everyone,
>
> Here's my problem:  I'd like to make the printing of some text dependent
on
> whether or not a variable is null.  In the following example, when $row[1]
> is null, what gets printed on the page is "Email: ".  I'd like the
> script to not print "Email:" if row[1] is null.
>
> It looks like I should be using is_null(), but I'm not sure how to use it,
> especially since all of this is embedded in a print statement.
>
> while ($row = mysql_fetch_row ($result))
> {
>  print ("\t\n\t\t$row[0]\n\n\t class=\"default\" bgcolor=\"#ff\">\n\t\t$row[10]Email:
 href=\"mailto:$row[1]\";>$row[1]Phone: $row[2]\n\nAddress:
> $row[3]$row[4]$row[5] $row[6] $row[7] URL:  href=\"$row[8]\" target=\"_blank\">$row[8]");
> }
>
>
> Instead of just printing Email: $row[1], I'd like to test whether it's
null
> first--maybe something like this?
>
> if (is_null($row[1])) print " " else print ("Email: $row[0]")
>
> but can I put that line inside of another print statement?  if so, do I
have
> to escape the quotation marks?  Please forgive my confusion--I'm new to
> programming in general and PHP in particular.
>
> Thanks in advance for your help.
>
> best,
>
> Matt
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




[PHP] Inheritance

2002-07-12 Thread Jason White

I have a class Foo{} which has a method Print().
I have another class FooBar{} which extends Foo{} and has its own method
Print().

How do I invoke Foo{}'s Print() method from within FooBar{} once its been
overridden?

Jason White




[PHP] is_null question

2002-07-12 Thread Matthew K. Gold

Hi Everyone,

Here's my problem:  I'd like to make the printing of some text dependent on
whether or not a variable is null.  In the following example, when $row[1]
is null, what gets printed on the page is "Email: ".  I'd like the
script to not print "Email:" if row[1] is null.

It looks like I should be using is_null(), but I'm not sure how to use it,
especially since all of this is embedded in a print statement.

while ($row = mysql_fetch_row ($result))
{
 print ("\t\n\t\t$row[0]\n\n\t\n\t\t$row[10]Email: mailto:$row[1]\";>$row[1]Phone: $row[2]\n\nAddress:
$row[3]$row[4]$row[5] $row[6] $row[7] URL: $row[8]");
}


Instead of just printing Email: $row[1], I'd like to test whether it's null
first--maybe something like this?

if (is_null($row[1])) print " " else print ("Email: $row[0]")

but can I put that line inside of another print statement?  if so, do I have
to escape the quotation marks?  Please forgive my confusion--I'm new to
programming in general and PHP in particular.

Thanks in advance for your help.

best,

Matt


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




Re: [PHP] checkboxes / form elements

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Analysis & Solutions wrote:
> On Fri, Jul 12, 2002 at 10:59:00PM -0400, Blue Presley wrote:
> 
>>Hello.  I have a form that I would like to use checkboxes.
>>... snip ...
>>I've been told that if I want to manipulate each
>>one then I should use 'name=checkbox[]' and make an array out of it.  okay,
>>fine.  but how do i access them in my PHP script? I know I have to use the
>>$_POST[] array, but this creates a multidiminsional array, yes? do i access
>>it like $_POST[checkbox[1]]?? or $_POST[checkbox][1]??
> 
> 
> The latter.  But note, if a box isn't checked, it's not going to be 
> sent, so won't be in the array.
> 
>
> NV
> NH
> NJ
>
> 
> In this case $_POST['checkbox'][0] would be 33 and ...[1] would be 34.
> 
> Sometimes it's handy to identify the key upfront:
> 
>
> NV
> NH
> NJ
>
> 
> That would yield $_POST['checkbox']['34'] = 40.
> 
> A nice way to handle incomming checkboxes is this:
> 
>while ( list($Key, $Val) = each($checkbox) ) {
>   #  do what you need to do...
>   #  for example, show what was sent...
>   echo "$Key = $Val\n";
>}

Just one thing, as someone noted a week ago or so, you can't use the [] 
syntax *and* javascript. If you also need to process your checks from 
jscript side you shall resort to some older method and have your 
variables called like

 NV
 NV

then process it with variable variable names (the $$ syntax).

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] checkboxes / form elements

2002-07-12 Thread Analysis & Solutions

On Fri, Jul 12, 2002 at 10:59:00PM -0400, Blue Presley wrote:
> Hello.  I have a form that I would like to use checkboxes.
> ... snip ...
> I've been told that if I want to manipulate each
> one then I should use 'name=checkbox[]' and make an array out of it.  okay,
> fine.  but how do i access them in my PHP script? I know I have to use the
> $_POST[] array, but this creates a multidiminsional array, yes? do i access
> it like $_POST[checkbox[1]]?? or $_POST[checkbox][1]??

The latter.  But note, if a box isn't checked, it's not going to be 
sent, so won't be in the array.

   
NV
NH
NJ
   

In this case $_POST['checkbox'][0] would be 33 and ...[1] would be 34.

Sometimes it's handy to identify the key upfront:

   
NV
NH
NJ
   

That would yield $_POST['checkbox']['34'] = 40.

A nice way to handle incomming checkboxes is this:

   while ( list($Key, $Val) = each($checkbox) ) {
  #  do what you need to do...
  #  for example, show what was sent...
  echo "$Key = $Val\n";
   }

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




Re: [PHP] Advice needed

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Mike Tuller wrote:
> So I would have the progressive key inside the addvolume window? Can you
> explain how to go about doing this?

How you organize your HTML output should *never* interfere with the way 
you organize your data, they are two different things and must be kept 
well separated. In a perfect world design, process flow and datamodeling 
should be free to evolve without stepping into each other's way. It's 
obviously impossible to fully meet this condition in the real world, but 
one should always try and get as close to it as he can.

Just do this:

Think of your data as a temporary table, in which you have two keys:
1) the real key, whenever available (will be blank on the stuff you 
haven't written in the database yet)
2) a progressive key, assigned by your php scripts by some means

You just have the two keys constantly in your forms as hidden fields, so 
that at process time you can still tell which is which when it comes to 
relations, even if you do not have an already established relation 
system (which is the case on new data).

So:
you load your hdw components, they all have a db id already, so your 
dataset will look like this:

1) hdw 1, its real id, your own internal key (say 1), rest of the data
2) hdw 2, its real id, your own internal key (say 2), rest of the data
...

you add a new component and save the result on a temporary table, now 
your temporary dataset is:

1) hdw 1, its real id, your own internal key (say 1), rest of the data
2) hdw 2, its real id, your own internal key (say 2), rest of the data
3) hdw new, no real id, your own internal key (say 3), rest of the data
...

You add a new volume and stock the data on a second temporary table, 
which contains:

1) vol 1, no real id, your own hdw internal key (should be 3 since you 
are adding to the last new hdw), your own internal volume id (say 1), 
rest of the data

You can repeat this step all over as much as you want (like fully 
building up a number of new disks, volumes or whatever), and have it as 
multilayered as you want (it will just take as many temporary tables as 
are the real tables involved).

Once your user finally reviews his/her data (say you entered a totally 
new system, reviewed it and felt satisfied with it) he will have a 
"fire" button somewhere.

At this point your final script just takes the data off the temporary 
tables and uses them to build the real thing.

Notice that this way you also sort of implemented a transaction. Not a 
real one, since it will not protect you if your final script fails at 
runtime. Yet you can be sure no unconsistent data from unterminated 
sessions will ever enter your stable datamodel, and that's were 99.99% 
of the risk would come from.

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×


@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




RE: [PHP] checkboxes / form elements

2002-07-12 Thread John Holmes

> Hello.  I have a form that I would like to use checkboxes.  these
> checkboxes
> are created dynamically.  I've been told that if I want to manipulate
each
> one then I should use 'name=checkbox[]' and make an array out of it.
> okay,
> fine.  but how do i access them in my PHP script? I know I have to use
the
> $_POST[] array, but this creates a multidiminsional array, yes? do i
> access
> it like $_POST[checkbox[1]]?? or $_POST[checkbox][1]??

Yes, the second one, only with single quotes.

$_POST['checkbox][1]

Note that arrays start at zero, too.

---John Holmes...


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




Re: [PHP] Advice needed

2002-07-12 Thread Analysis & Solutions

Mike:

You MUST store the hardware information first so you can get the actual 
HardwareID determined by the hardware table's auto increment field.  
Any other way you do it you leave open the possibility for error.

On your main hardware page, I'd make the "Volume Information" section
have conditional text.  If the presently viewed page is for a new piece
of hardware, show a note saying something like "Save the hardware
information.  Then you can input the volumes."  But, if the hardware
page is displaying the data for an existing piece of hardware, the "Add
Volume" link would be shown.  The link would have a HardwareID in the
URI query string.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] Gainesville, Florida PHP Users? (Re: [PHP-WIN] PHP meetup [CROSS-POST]Meet other PHP Developers in Your Area)

2002-07-12 Thread Tim Luoma


Well I don't see a user group listed for Gainesville, FL... and we could 
have a cool acronym too

PUGG

(php users group of gainesville)

ok, that's a first attempt, but anyway

So are there other Gainesville, Florida folks around?  If so please drop 
me a link and maybe we can form a local UG.

TjL
<[EMAIL PROTECTED]>



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




[PHP] checkboxes / form elements

2002-07-12 Thread Blue Presley

Hello.  I have a form that I would like to use checkboxes.  these checkboxes
are created dynamically.  I've been told that if I want to manipulate each
one then I should use 'name=checkbox[]' and make an array out of it.  okay,
fine.  but how do i access them in my PHP script? I know I have to use the
$_POST[] array, but this creates a multidiminsional array, yes? do i access
it like $_POST[checkbox[1]]?? or $_POST[checkbox][1]??

any info is appreciated.

thanks,
blue



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




Re: [PHP] Advice needed

2002-07-12 Thread Mike Tuller

So I would have the progressive key inside the addvolume window? Can you
explain how to go about doing this?


- Original Message -
From: "Alberto Serra" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 8:56 PM
Subject: Re: [PHP] Advice needed


> ðÒÉ×ÅÔ!
>
> Mike Tuller wrote:
> > The hardwareID is created in MySql when the information entered for the
hardware is submitted, which hasn't been done yet.
>
> You don't need it immediately. Just have a progressive key (like
> 1,2,3,4...) stored in a hidden field along with the new info you are
> getting. Once you'll process the final result you will substitute it
> with the values assigned by your DB engine. Sort of "temporary primary
> key", if you want :)
>
> ðÏËÁ
> áÌØÂÅÒÔÏ
> ëÉÅ×
>
> @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@
>
> LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
> lOrD i'M sHiNiNg...
> YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
> tHe TeSt, YeS iT iS
> ThE tEsT, yEs It Is
> tHe TeSt, YeS iT iS
> ThE tEsT, yEs It Is...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




[PHP] RE: [PHP-WIN] PHP meetup [CROSS-POST] Meet other PHP Developers in Your Area

2002-07-12 Thread C. Hendrie

Tho, when you think about it, most PHP developers COULD use a dating
service. :)

Seriously tho, this is a good idea. Thanks for the info Jay.
~ Chris
D.O.D

-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 12:24 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP meetup [CROSS-POST] Meet other PHP Developers in
Your Area

No, it's not a dating service :)
Want to meet other PHP developers in your area? Check out:

http://php.meetup.com/

Pretty nifty idea... especially given the lack of user groups in the
U.S.
[/snip]

I thought for others who had not seen this I would post this. There is
probably already a user group in your area if you live near a major
city.
According to the PHPusergroups.org web site
[http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP
user
groups in 52 countries.

Jay

"Chaos, panic & disorder.my work here is done!"



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

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




[PHP] Librep (yes it's definitely OT)

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Sorry, got no time to surf around for a Linux list, so please answer 
privately since this is totally OT.

I am running gnome on top of rh 7.1, since I upgraded to librep 0.15.1 
and sawfish 1.0.1 I need to reinstall librep once a week.

Apart from the annoying fact in itself, when rep goes astray it simply 
blocks everything (even ctrl-alt-bspace won't kill X anymore), so that I 
have to switch the power down and end up having to run fsck to repair my 
filesystem afterwards. Not a pleasant situation indeed.

Anyone can give me a suggestion about it? Any help would be appreciated, 
Ineed to finish my job and go on vacation, I can risk having to 
reinstall my machine from scratch at every step I take :(

ÐÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] Advice needed

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Mike Tuller wrote:
> The hardwareID is created in MySql when the information entered for the hardware is 
>submitted, which hasn't been done yet.

You don't need it immediately. Just have a progressive key (like 
1,2,3,4...) stored in a hidden field along with the new info you are 
getting. Once you'll process the final result you will substitute it 
with the values assigned by your DB engine. Sort of "temporary primary 
key", if you want :)

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




Re: [PHP] problem with cookies and some browsers

2002-07-12 Thread Alberto Serra

ðÒÉ×ÅÔ!

Andy wrote:
> I am wondering if there is a possiblity that some browsers like IE 5.1 do
> not accespt cookies by default. 

No, it's that they do not accept standards by default :) Try this and 
have M$ go to hell:

// send/refresh cookie
  $time = mktime()+ $lifeInDays*86400;
  $date = date("l, d-M-y H:i:s", ($time));
  header("Set-Cookie: YourCookie=YourValue; expires=$date GMT");

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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




[PHP] File Browser

2002-07-12 Thread Darren Young

I'm looking for some type of file storage / browsing script to park on an
Intranet site. I need to have people log in and be presented with a listing
of files stored on the server along with other info such as dates/times,
description, author and perhaps some versioning abilities. The files
themselves should be stored on disk and the "metadata" about the files
inside a database (MySQL preferred but Postgres is OK). All the db should
house is a "pointer" to the path of the file on the server's disk. I'd like
them to be categorized by topic or subject area (network, sales, finance,
etc) and have some type of search interface to locate them. If general users
can have the ability to upload it would be nice if there were some type of
permissioning on who can view/edit/save docs back to the server/database. If
it could have some type of version control (CVS preferred) that would be
wonderful.

Anyone have any pointers to existing scripts? What would this type of
application be called? A document repository perhaps?

Thanks in advance,

Darren Young
[EMAIL PROTECTED]


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




[PHP] Advice needed

2002-07-12 Thread Mike Tuller

I am trying to develop a front end to a database that will be used for entering 
information about the computer systems I take care of. It would be easy to do if it 
weren't for one problem. I want to list information about the drives that are in each 
system. There could be one, two, or 10 drives, so I want to have it generate a new 
table row for each drive. That I can do. The issue I run into is how best to create 
the interface. Right now I have a page where everything is entered on one page. 

I have two tables in the database. One for the basic hardware information, and one for 
the volume information. The volume table has a field for the hardwareID so that I can 
tie the volumes to the hardware, and with a separte table, I can have as many drives 
as I want. The problem with this is that when I click on a hyperlink to open a window 
for adding a volume, I need a hardwareID to be able to tie the volume information to 
the hardware. The hardwareID is created in MySql when the information entered for the 
hardware is submitted, which hasn't been done yet.

I could break this up into multiple pages, where I enter the basic information, and 
then I will have an ID created to use so that I can add the volumes, but this could 
get messy. Is there a better way of doing this?

This is confusing to follow, I know. Here is a link to the page I am talking about so 
that you can get an idea of what I am talking about. 
http://bowser.homedns.org/assets/addasset.html  About 1/3 the way down, you will see 
an Add Volume link that will take you to the addvolume page.

Thanks in advance,

Mike



RE: [PHP] PHPDiscuss.com

2002-07-12 Thread John Holmes

> I have started a new website devoted strictly to discussing
development
> with
> PHP.  If anyone is interested, you can see it at
> http://www.phpdiscuss.com.

Wow...a forum. Is that vBulletin your using? Shouldn't you be giving
them credit somewhere??

---John Holmes...


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




Re: [PHP] PHPDiscuss.com

2002-07-12 Thread Jeff Lewis

Is it like http://www.phptalk.com ? Like just discussion or are their tutorials etc?

Jeff


>I have started a new website devoted strictly to discussing development with
>PHP.  If anyone is interested, you can see it at http://www.phpdiscuss.com.




[PHP] PHPDiscuss.com

2002-07-12 Thread Erich Kolb

I have started a new website devoted strictly to discussing development with
PHP.  If anyone is interested, you can see it at http://www.phpdiscuss.com.



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




Re: [PHP] PHP as smart .bat files on windows?

2002-07-12 Thread Analysis & Solutions

On Fri, Jul 12, 2002 at 07:26:52PM -0400, Francisco Reyes wrote:
> Any experiences on using PHP as a replacement for bat files?

http://www.php.net/manual/en/features.commandline.php

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] PHP as smart .bat files on windows?

2002-07-12 Thread Francisco Reyes

Any experiences on using PHP as a replacement for bat files?


For instance I can't find how to pass a parameter to a
PHP program when running PHP as a scripting/CGI language.
For regular bat files I can reference parameters by
using $1
Anything like that with PHP under windows?


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




Re: [PHP] PHP/MySQL -- Date/Time Confusion

2002-07-12 Thread Anas Mughal


The easiest and my preferred way is to use "strtotim" method.
This method accepts MySQL format "2002-12-23" and converts it into a UNIX time stamp.
After that you can use the date function to format time as you wish!
 
  Monty <[EMAIL PROTECTED]> wrote: Which method is the best way to store date/time in 
MySQL and then which PHP
command is the best to use to convert that date to something useful? I'm
having a difficult time figuring out how to reconcile the date in MySQL so
it works with PHP's various date commands, like getdate().

Any suggestions? I'll mostly need to compared dates/times of different
records and then extract parts of the date for displaying on the screen.

Thanks!

Monty



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



-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


Re: [PHP] PHP and ORACLE

2002-07-12 Thread Anas Mughal


I don't think you would find any book covering PHP and Oracle. They technologies 
usually don't mix. Oracle is very enterprise oriented; whereas, PHP is open source 
community favorite. 
Oracle is a beast by its nature. So, you would need a few good books on Oracle. 
I would suggest following proper design approaches up-front. Large/huge projects incur 
large costs if design has to change during later stages of development. Frankly, I 
don't know of any good PHP design books. Please let me know if you find any. 
Good luck. 
 
  Ricardo Fitzgerald <[EMAIL PROTECTED]> wrote: Hi,

I started with PHP and MYSQL a while ago and now I've been involved in
a huge database project with ORACLE. 
My point is I never used it nor develop with ORACLE, so I want to know
where and what kind of information I need to port my web application
developed with php and mysql to port it to ORACLE, and where can I
find information regarding HUGE database applications design using
php.

So far I only have the book Designing Web Applications using PHP and
MySQL by Luke Wellington, and MySQL by Paul Dubois.

And i don't have any kind of experience with Oracle, so I would
appreciate any recommendations from experienced developers.

TIA,
Regards,
Ricardo Fitzgerald



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



-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


[PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Alex Shi

Hello,

My client has a website and it support MySQL/PHP. The client want 
to download the MySQL tables and then access them in Excell or 
Access. So my question is, is it possible to convert MySQL table into 
Access or Excell format? Thanks in advance for all answer!

Alex


-- 
---
TrafficBuilder Network: 
http://www.bestadv.net/index.cfm?ref=7029


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




RE: [PHP] php4apache.dll...

2002-07-12 Thread Bruce Karstedt

I got it when I downloaded 4.2.1 if you can't find it I'll e-mail you a
copy.

Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474


-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 1:22 AM
To: php_gen
Subject: [PHP] php4apache.dll...
Importance: Low


Howdy

can any one remember where to get the apache2 ver of php4apache.dll?

Cheers

Peter
"the only dumb question is the one that wasn't asked"



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




RE: [PHP] PHP/MySQL -- Date/Time Confusion

2002-07-12 Thread David Freeman


 > Which method is the best way to store date/time in MySQL and 
 > then which PHP
 > command is the best to use to convert that date to something 
 > useful?

Get comfortable with MySQL's date functionality and you'll find that you
don't often need to do the date comparisons and manipulation in php at
all.

MySQL lets you store date/time stuff as date, time or timestamp formats
(off-hand, haven't referred to the manual here) that will store the data
for you.  You can manipulate this date information in your sql query
using things like DATE_FORMAT() and the like.  Check the MySQL manual
for all of those (chapter 6 or 7 I think it is).

If you're mostly doing data extraction based on date criteria then
you'll find it works best as sql queries basically.

CYA, Dave




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




[PHP] Re: getlastmod() returns error??

2002-07-12 Thread Andrew Ziem

I upgraded to PHP 4.2.1,and I still receive the error.


Andrew


"Andrew Ziem" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am using getlastmod() to create a META HTTP-EQUIV tag.  However,
> getlastmod() SOMETIMES returns FALSE (for error).
>
> When I run PHP from a Perl script, getlastmod() returns FALSE.  When I run
> it from the command line, it returns the correct information.
>
> I usually use a Perl script to process a directory of PHP files.  It pipes
> them to HTML files in another directory, and I upload those to my server
as
> static pages.
>
> I am using Mandrake Linux v8.1 and PHP v4.0.6.
>
>
>
> Andrew Ziem
> http://www.springsrescuemission.org
>
>



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




RE: [PHP] out of office test

2002-07-12 Thread Collins, Robert



Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : [EMAIL PROTECTED]  



-Original Message-
From: Collins, Robert [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 5:24 PM
To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]'
Subject: [PHP] out of office test


sorry to do this but need to make sure my out of office response isint going
to spam you guys.

Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : [EMAIL PROTECTED]  



-Original Message-
From: Alberto Serra [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:25 AM
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP and ORACLE


ðÒÉ×ÅÔ!

I hope you are not really living in the early 70's, are you?

Ricardo Fitzgerald wrote:
> Hi,
> 
> I started with PHP and MYSQL a while ago and now I've been involved in
> a huge database project with ORACLE. 

Have the Oracle box do most of it. Make sure that:
1) there is  a well defined API for external application (including your
PHP client) to access data. This *must* written an paper and documented.
No code writing prior to this.
2) all about referential integrity is done within Oracle
3) use triggers and SPs to enforce data consistency (handle with care, 
they load the db server if used unproperly)
4) find a good DBA to maintain the system (Oracle can degrade quite 
dramatically if not properly maintained)
5) interact very little with the DB, to avoid loading its server. (That 
is, call an SP, get the result set from a tmp table)
6) avoid locking as much as you can
7) Prey the current Oracle bugs are not too evil.
8) get ready to say good bye to your vacations.
9) ask for a paycheck raise

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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



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



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




[PHP] out of office test

2002-07-12 Thread Collins, Robert

sorry to do this but need to make sure my out of office response isint going
to spam you guys.

Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : [EMAIL PROTECTED]  



-Original Message-
From: Alberto Serra [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:25 AM
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP and ORACLE


ðÒÉ×ÅÔ!

I hope you are not really living in the early 70's, are you?

Ricardo Fitzgerald wrote:
> Hi,
> 
> I started with PHP and MYSQL a while ago and now I've been involved in
> a huge database project with ORACLE. 

Have the Oracle box do most of it. Make sure that:
1) there is  a well defined API for external application (including your
PHP client) to access data. This *must* written an paper and documented.
No code writing prior to this.
2) all about referential integrity is done within Oracle
3) use triggers and SPs to enforce data consistency (handle with care, 
they load the db server if used unproperly)
4) find a good DBA to maintain the system (Oracle can degrade quite 
dramatically if not properly maintained)
5) interact very little with the DB, to avoid loading its server. (That 
is, call an SP, get the result set from a tmp table)
6) avoid locking as much as you can
7) Prey the current Oracle bugs are not too evil.
8) get ready to say good bye to your vacations.
9) ask for a paycheck raise

ðÏËÁ
áÌØÂÅÒÔÏ
ëÉÅ×

@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@

LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu?
lOrD i'M sHiNiNg...
YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is
tHe TeSt, YeS iT iS
ThE tEsT, yEs It Is...


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



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




[PHP] Help a n00b with Server-to-Server file transfers?

2002-07-12 Thread Steve Keller


Ok, here's the situation:

I've got a script that's catching a backdoor post from Verisign. The 
script then generates an XML file based on the information that's posted. 
The goal being to make Verisign and our online accounting system pseudo-
integrated so that as soon as a post comes through Verisign, the 
information is passed along to the accounting system and added to the 
ledger, saving us the time required to manually post those entries. 

So the XML file is written correctly now, and we've tested it by 
uploading it manually. 

The next step here is to pass that XML file from our server to the 
accounting system's server, where it'll be processed. The way the system 
is set up, they have a DLL that catches a form posted from a browser that 
also attaches the file. I'm hoping to use that same DLL to post from our 
server. 

I've been trying to read up on socket functions, but all I can find are 
the function formats listed on the PHP.net documents. That's great for 
reference, not so great for learning how it's done. 

I don't need an answer on how to pass the file, but I would appreciate 
some help in the way of a pointer to where I can go to read up on how I 
can accomplish this. Is there a particular tutorial I can read that's 
relevent? Perhaps a sample script available that I can peruse to see how 
someone did something similar? 

Any help would be appreciated. 



~Steve-o

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




Re: [PHP] good article on creating a subscription form/script

2002-07-12 Thread Michael Sims

On Thu, 12 Jul 2001 14:32:57 -0600, you wrote:

>I've looked on php.net, phpbuilder.com, and zend.com, but to no avail. 
>Any suggestions?

I don't know of any articles, but I'm actually working on a project
that is exactly what you are talking about.  I'm going to code the
signup interface in PHP, but the email scripts are going to be written
in Perl.  I've found a nice, simple mailing list script called
"Minimalist" that I am going to use to handle the email-based
confirmation part of the project.  Maybe it can help you too:

http://www.mml.org.ua/

Feel free to email me if you want to trade some ideas. :-)

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




[PHP] getlastmod() returns error??

2002-07-12 Thread Andrew Ziem

Hi,

I am using getlastmod() to create a META HTTP-EQUIV tag.  However,
getlastmod() SOMETIMES returns FALSE (for error).

When I run PHP from a Perl script, getlastmod() returns FALSE.  When I run
it from the command line, it returns the correct information.

I usually use a Perl script to process a directory of PHP files.  It pipes
them to HTML files in another directory, and I upload those to my server as
static pages.

I am using Mandrake Linux v8.1 and PHP v4.0.6.



Andrew Ziem
http://www.springsrescuemission.org



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




[PHP] Encoding problem ONLY with _command line_ PHP.exe

2002-07-12 Thread Emile Axelrad

Hello - My problem is as follows (I am trying to migrate from a mssql
server to a mysql server)


 
The data in the MSSQL table is: Æã
 
IF I call this PHP code from my browser (IE6) it results in the
following output: Æã and it also places into the MySQL database the
value: Æã
 
However, if I call this PHP code from the command line, using "php.exe
test.php" it also results in the following output: Æã but it places into
the MySQL database: ’Æ
 
Does anyone have any idea why this is happening?

I am sure it is a character set issue, but for the life of me I cannot
work out why the command-line does not run the exact same script in the
same way as a browser would?
 
Regards,
Emile Axelrad,  
[EMAIL PROTECTED]




-- Reposted in response to: -
Ouch. 

First, you're mixing and matching mssql and mysql functions.  Second,
there is no function named mysql_insert().  Third, mssql_result()
requires three arguments, you only provided two.  Fourth, if you mean to
be calling mysql_result(), I've never seen folks call it with a
mysql_query()  
function in it, people usually call the query function separately first
and put the resource identifier into a variable.  Fifth, all of this
could be thrown off by your retyping the example rather than
copying/pasting or 
importing the acutal script that's giving you the error.  Sixth, you 
posted the same question twice.

--Dan

--




BODY,td {font:9pt Verdana, Arial, sans-serif;color:red}
.black {color:black}



$row) {
if ($rowid > 0) $fieldlist .= ",";

if ($row["TYPE_NAME"] == "ntext") {
$fieldlist .= "SUBSTRING([" .
$row["COLUMN_NAME"] . "],1,DATALENGTH([" . $row["COLUMN_NAME"] . "])) As
[" . $row["COLUMN_NAME"] . ']';
} else {
$fieldlist .= '[' . $row["COLUMN_NAME"] . ']';
}

switch ($row["COLUMN_NAME"]) {
#case 'group':
case 'option':
$createquery .=  "`" .
$row["COLUMN_NAME"] . "column` ";
break;
default:
$createquery .=  "`" .
$row["COLUMN_NAME"] . "` ";
break;
}

switch ($row["TYPE_NAME"]) {

case 'nvarchar':
 if (($row["LENGTH"]/2) > 255) {
$createquery .= 'MEDIUMTEXT';
 } else {
$createquery .= 'VARCHAR(' .
($row["LENGTH"]/2) . ')';
 }

break;
case 'varchar':
 if ($row["LENGTH"] > 255) {
$createquery .= 'MEDIUMTEXT';
 } else {
$createquery .= 'VARCHAR(' .
$row["LENGTH"] . ')';
 }
break;
case 'nchar':
case 'char':
 $createquery .= 'VARCHAR(' . $row["LENGTH"] .
')';
break;
case 'text':
case 'ntext':
 $createquery .= 'MEDIUMTEXT';
break;
case 'varbinary':
 $createquery .= 'BLOB';
break;
case 'image':
 $createquery .= 'MEDIUMBLOB';
break;
case 'smallint':
 $createquery .= 'SMALLINT(' .
($row["PRECISION"]+1) . ')';
break;
case 'tinyint':
 $createquery .= 'TINYINT(' .
($row["PRECISION"]) . ')';
break;
case 'int':
 $createquery .= 'INT(' . ($row["PRECISION"]+1)
. ')';
break;
case 'float':
 $createquery .= 'FLOAT(8)';
break;
case 'int identity': # AUTO_INCREMENT field
 $createquery .= 'INT(' . ($row["PRECISION"]+1)
. ')';
break;
case 'bit':
 $createquery .= 'TINYINT(4)';
break;
case 'real':
 $createquery .= 'FLOAT(4)';
break;
case 'money':
 $createquery .= 'DECIMAL(19,4)';
break;
case 'smalldatetime':
case 'datetime':
 $createquery .= 'VARCHAR(40)'; 
  

[PHP] php.security newsgroup any time?

2002-07-12 Thread Jas

I am wondering how we can get a newsgroup for security type of things, with
either php, mysql or apache... To be honest I am interested in the php
security newsgroup the most being as there is for the following two
applications.  How can one ask a moderator about that type of newsgroup?
Jas



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




Re: [PHP] Encoding problem with command line PHP.exe

2002-07-12 Thread Analysis & Solutions

Emile:

On Fri, Jul 12, 2002 at 09:58:53PM +0100, Emile Axelrad wrote:

> $data = mssql_result(mssql_query("SELECT Field FROM table WHERE
> ID='1'"),0);
> mysql_insert("INSERT INTO table2 VALUES('$data')");

Ouch. 

First, you're mixing and matching mssql and mysql functions.  Second,
there is no function named mysql_insert().  Third, mssql_result() requires
three arguments, you only provided two.  Fourth, if you mean to be calling
mysql_result(), I've never seen folks call it with a mysql_query()  
function in it, people usually call the query function separately first
and put the resource identifier into a variable.  Fifth, all of this could
be thrown off by your retyping the example rather than copying/pasting or 
importing the acutal script that's giving you the error.  Sixth, you 
posted the same question twice.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




[PHP] problem with cookies and some browsers

2002-07-12 Thread Andy

Hi there,

I am wondering if there is a possiblity that some browsers like IE 5.1 do
not accespt cookies by default. I am working on a session management system
and some users report that they have not been able to login because the
cookie has been rejected. They are running IE 5.1 Mac (and maybe PC as well)
Are there any known problems?

Andy







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




[PHP] Re: another pair of eyes?

2002-07-12 Thread Lee Doolan

> "Jas" == Jas  <[EMAIL PROTECTED]> writes:

Jas> Hello all,
Jas> I have a parse error and I am not sure why, I think my eyes are giving up on
Jas> me, or its a friday.  Any help is appreciated.
Jas> // just trying to compare the session var $date to timeout if older than 5
Jas> minutes
Jas> [snippit]
Jas> /* Begin Session and register timeout, random image & client info variables
Jas> */
Jas>session_start();
Jas>session_register('$var1);
   .
  /\\
 / \ \
   \
missing single quote   '

Jas>session_register('$var2');
Jas>session_register('$var3');
Jas>session_register('$var4');
Jas>session_register('$var5');
Jas>   } elseif (isset($HTTP_SESSION_VARS[$hour]) => $hour + 5*60)) {
  .
 /\\
/ \ \
  \
extra parenthesis  ---'
Jas>header("Location: https://localhost/index.php"};
  .
 /\\
/ \ \
  \
should be paren, not curly'
Jas>   } else {
Jas>   endif(); }
   ??
  .
 /\\
/ \ \
  \
huh?   ---'

Jas> [end snippit]




--
When the birdcage is open,   | donate to causes I care about:
the selfish bird flies away, |http://svcs.affero.net/rm.php?r=leed_25
but the virtuous one stays.  |

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




Re: [PHP] PHP/MySQL -- Date/Time Confusion

2002-07-12 Thread 1LT John W. Holmes

You've got all kinds of options. I suggest you do any date calculations in
the database and use DATE_FORMAT to format any dates pulled out. It's
exactly like the date() function in PHP. MySQL has some great date and time
functions so you can select out exactly what you want. You can use the
UNIXTIME() (I think that's the function) function, too, to convert the MySQL
timestamp to a unix timestamp. It's all in the MySQL manual, chapter 6, Date
and Time Functions.

---John Holmes...

- Original Message -
From: "Monty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 5:06 PM
Subject: [PHP] PHP/MySQL -- Date/Time Confusion


> Which method is the best way to store date/time in MySQL and then which
PHP
> command is the best to use to convert that date to something useful? I'm
> having a difficult time figuring out how to reconcile the date in MySQL so
> it works with PHP's various date commands, like getdate().
>
> Any suggestions? I'll mostly need to compared dates/times of different
> records and then extract parts of the date for displaying on the screen.
>
> Thanks!
>
> Monty
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




[PHP] PHP/MySQL -- Date/Time Confusion

2002-07-12 Thread Monty

Which method is the best way to store date/time in MySQL and then which PHP
command is the best to use to convert that date to something useful? I'm
having a difficult time figuring out how to reconcile the date in MySQL so
it works with PHP's various date commands, like getdate().

Any suggestions? I'll mostly need to compared dates/times of different
records and then extract parts of the date for displaying on the screen.

Thanks!

Monty



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




[PHP] pgSQL Functions with results set to php?

2002-07-12 Thread David Busby

List,
I'm creating a PHP/pgSQL web site...I need to execute queries with a 
cursor and get their result set into my PHP script.  How can I make a 
pgSQL procedure with logic that also returns a result set?  I've 
searched and searched but cannot find the answer.  Does anyone got it?

/B


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




Re: [PHP] another pair of eyes?

2002-07-12 Thread Greg Donald

On Fri, 12 Jul 2002, Jas wrote:

>Hello all,
>I have a parse error and I am not sure why, I think my eyes are giving up on
>me, or its a friday.  Any help is appreciated.
>// just trying to compare the session var $date to timeout if older than 5
>minutes
>[snippit]
>/* Begin Session and register timeout, random image & client info variables
>*/
>   session_start();
>   session_register('$var1);
>   session_register('$var2');
>   session_register('$var3');
>   session_register('$var4');
>   session_register('$var5');
>  } elseif (isset($HTTP_SESSION_VARS[$hour]) => $hour + 5*60)) {
>   header("Location: https://localhost/index.php"};
>  } else {
>  endif(); }
>[end snippit]

The syntax should be:

$var1 = "some value";
session_register("var1");


-- 
---
Greg Donald
http://destiney.com/public.key
---



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




[PHP] Encoding problem with command line PHP.exe

2002-07-12 Thread Emile Axelrad

Hello - My problem is as follows:

 
The data in the MSSQL table is: Æã
 
 
IF I call this PHP code from my browser (IE6) it results in the
following output:
Æã
and it also places into the MySQL database the value: Æã
 
However, if I call this PHP code from the command line, using "php.exe
test.php" it also results in the following output:
Æã
but it places into the MySQL database: ’Æ
 
Does anyone have any idea why this is happening? I am sure it is a
character set issue, but for the life of me I cannot work out why the
command-line does not run the exact same script in the same way as a
browser would?
 
Regards,
Emile Axelrad,  
[EMAIL PROTECTED]



[PHP] Encoding problem with command line PHP.exe

2002-07-12 Thread Emile Axelrad

Hello - My problem is as follows:

 
The data in the MSSQL table is: Æã
 
 
IF I call this PHP code from my browser (IE6) it results in the
following output:
Æã
and it also places into the MySQL database the value: Æã
 
However, if I call this PHP code from the command line, using "php.exe
test.php" it also results in the following output:
Æã
but it places into the MySQL database: ’Æ
 
Does anyone have any idea why this is happening? I am sure it is a
character set issue, but for the life of me I cannot work out why the
command-line does not run the exact same script in the same way as a
browser would?
 
Regards,
Emile Axelrad,  
[EMAIL PROTECTED]



[PHP] another pair of eyes?

2002-07-12 Thread Jas

Hello all,
I have a parse error and I am not sure why, I think my eyes are giving up on
me, or its a friday.  Any help is appreciated.
// just trying to compare the session var $date to timeout if older than 5
minutes
[snippit]
/* Begin Session and register timeout, random image & client info variables
*/
   session_start();
   session_register('$var1);
   session_register('$var2');
   session_register('$var3');
   session_register('$var4');
   session_register('$var5');
  } elseif (isset($HTTP_SESSION_VARS[$hour]) => $hour + 5*60)) {
   header("Location: https://localhost/index.php"};
  } else {
  endif(); }
[end snippit]




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




RE: [PHP] good article on creating a subscription form/script

2002-07-12 Thread Lazor, Ed

It may not be the best approach, but I've always created a form that accepts
the users e-mail address and passes it to a script.  The script generates an
e-mail and sends it to the listserv on behalf of the user.  The listserv
sends a message to the user and confirms the subscription.

-Ed

-Original Message-
I've looked on php.net, phpbuilder.com, and zend.com, but to no avail. 
Any suggestions?
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

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




[PHP] good article on creating a subscription form/script

2002-07-12 Thread René Fournier

I've looked on php.net, phpbuilder.com, and zend.com, but to no avail. 
Any suggestions?

---
René Fournier,
[EMAIL PROTECTED]

Toll-free +1.888.886.2754
Tel +1.403.291.3601
Fax +1.403.250.5228
www.smartslitters.com

SmartSlitters International
#33, 1339 - 40th Ave NE
Calgary AB  T2E 8N6
Canada


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




[PHP] Re: IIS Bugs???

2002-07-12 Thread Scott Hurring

There's a problem with IIS and the rest of the world :-)

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Brian McGarvie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
OK This is a followon from my Browser thread... on [EMAIL PROTECTED];
[EMAIL PROTECTED]

I have switched the application to run from Apache, and the Browsers that were
having trouble now seem (I think - will be doing more testing later) to have
dissapeared.

So, is there a problem with IIS or PHP or IIS with PHP?

[ http://www.the-local-guide.com :: http://www.mcgarvie.net ]



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




Re: [PHP] A question of style ...

2002-07-12 Thread Analysis & Solutions

Hi Jay:

On Fri, Jul 12, 2002 at 08:40:31AM -0500, Jay Blanchard wrote:
> 
> The agent selects a referral which is processed by an intermediary
> script which sets a flag in the database saying that "this agent" is, has,or
> will be contacting this referral (to prevent duplicate contact). Then this
> redirects to the referral's interface where the details about this referral
> are revealed.

Modularizing things makes TOTAL sense.  At the same time, I'd have all
processing done by the second (Interface B) page.  This is more robust
than having the system "transparently" stopping along the way at
intermediate scripts.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




Re: [PHP] help with mail() function!

2002-07-12 Thread Analysis & Solutions

You wouldn't happen to be on a windows system?  Read the "Warning:" on the 
manual page:
http://www.php.net/manual/en/function.mail.php

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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




Re: [PHP] Re: PHP and geographic maps

2002-07-12 Thread Richard Lynch

>> But keeping all that junk in the database as 2-D mapping would only be
>> needed if you're going to be providing driving directions and keeping all
>> the highways and all that crap that MapQuest keeps (I assume).  You almost
>> for sure don't need all that.
>
>It seems to me like they still need street addresses, unless they have a 
>database of the shapes of every private property parcel in the country.

If they plan to display *every* parcel as a distinct element, yeah, but as I
understood it, they just want the properties they are selling to "stand out"
on the map.

You wouldn't be using GPS to *outline* every single property, nor even the
properties in question -- The "outline" for any object at any level of a map
is hand-drawn by a human for the given map.

The GPS data tells you what's on the map and "where" the "dot" belongs, but
doesn't attempt to model the entire planet.  Modeling that much data for
such a "small" project (compared to e.g. MapQuest) would be silly.

This is "do-able" for a reasonable number of properties, but "impossible"
for doing every property when you want to scale up to something like
MapQuest size.

They're solving different problems, and I don't think the best solution for
both is the same.

-- 
Like Music?  http://l-i-e.com/artists.htm


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




Re: [PHP] Re: gd ->1:image resolution 2:font quality

2002-07-12 Thread 1LT John W. Holmes

> The GIMP is free 

Man, if I had a nickel for every time I heard that...

---John Holmes...


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




Re: [PHP] ' giving problem while inserting in table.

2002-07-12 Thread Scott Hurring

or, more appropriately, use the database-specific escape function...

for mysql:
http://www.php.net/manual/en/function.mysql-escape-string.php
http://www.php.net/manual/en/function.mysql-real-escape-string.php

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Martin Clifford" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Use addslashes() on ALL strings before inserting them into your database.  Then,
on your frontend, extract the data and use stripslashes() on all strings.

Hope to help!

Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/


>>> "Anil Garg" <[EMAIL PROTECTED]> 07/12/02 10:45AM >>>
Hi,
I am making a faq maintenance system using mysql and php.
To insert a entry in to a faq table i am using the following query:
-
INSERT INTO faq_table_netvd (id,question,
answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_
id)
 VALUES ('0','$frm[question]',
'$frm[answer]','$frm[netvcr]','$frm[netdetector]','$frm[add_date]','$frm[mod
_date]','$frm[keyword]','$frm[category]','$frm[display]','$frm[attach_id]')
 ");
---
now the problem is when $frm[question] has some string like: "why i can't
eat".
i get the following error:
MySQL Error: You have an error in your SQL syntax near 't eat?' ,answer =
'Please recheck the power of your specs:)' ' at line 3.Putting a '\' before
' (e.g. \')solves my problem...but when i open the same quesion to edit it,
again i have to put backslashes where ever i find " ' "  in the quesion or
answer.

Can anyone please suggest a solution to this.

thanx and regards

anil

[please ask if i havent explained the problem fully]



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





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




Re: [PHP] Final Year Computer Science Project involving PHP

2002-07-12 Thread Scott Hurring

... and  you could provide hooks so that the billing/sales/inventory
systems could all be separate "modules" of some sort,
and you could add/swap out modules as they're needed...
and perhaps have them communicate thru XML/SOAP, so
that they could be on different hosts altogether.  :-)

There's a million things you could do, that's the beauty
and curse of knowing how to program... too many projects
and ideas, not enough time.

--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
002f01c229ba$a796a9c0$8102a8c0@niigziuo4ohhdt">news:002f01c229ba$a796a9c0$8102a8c0@niigziuo4ohhdt...
> [snip]
> Computer Science student (yes, that's me...) by giving him some ideas on his
> final year project very possible involving PHP and SQL...
> [/snip]
>
> How about a billing system? Accepts orders, processes invoicing, tracks
> customer trends and habits, has a method for tracking "aged" bills (over 30,
> over 60, over 90, etc.), a method for collections, etc. Billing systems can
> be quite complex and require extensive planning, they must tie in with
> inventory systems, sales systems, etc. You could do the whole integration.
>
> HTH!
>
> Jay
>
>



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




Re: [PHP] PHP codes and variables

2002-07-12 Thread Kevin Stone

In that case you'll have to use the output buffering method ob_start();  The
include() function parses and executes any valid PHP code within the file
and produces output (if any).  Output buffering captures the display output
and stores it until you clean the buffer or the script terminates.

ob_start();
include ("header.php");
include ("body.php");
include ("footer.php");
$out = ob_get_contents();
ob_end_clean();

echo $out;

Note: instead of ob_end_clean() you can also do ob_end_flush() to send the
output to the display and destroy the buffer simultaneously.

-Kevin


- Original Message -
From: "J. Alden Gillespy" <[EMAIL PROTECTED]>
To: "PHP-general" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 12:42 PM
Subject: Re: [PHP] PHP codes and variables


> Which method makes it possible to process any variables in the included
> file?  See, I have variables in the included file that are defined in the
> page that's calling it.
>
> J. Alden Gillespy (DJ Rage)
> Broadcasting on Test Pattern Radio
> Shock Rock!  Every Sunday 5-8pm edt (21-0 gmt)
> http://www.thetestpattern.com
>
> - Original Message -
> From: "Kevin Stone" <[EMAIL PROTECTED]>
> To: "PHP-general" <[EMAIL PROTECTED]>
> Sent: Friday, July 12, 2002 2:35 PM
> Subject: Re: [PHP] PHP codes and variables
>
>
> > Or use implode instead of join makes skips the step of extracting the
> > index..
> > $file = implode ('', file ("afile.html"));
> >
> > If you'll be sending more output than just one file then another
favorite
> > method is this..
> > ob_start();
> > readfile("file1.txt");
> > readfile("file2.html");
> > $output = ob_get_contents();
> > ob_end_clean();
> >
> > -Kevin
> >
> > - Original Message -
> > From: "Miguel Cruz" <[EMAIL PROTECTED]>
> > To: "J. Alden Gillespy" <[EMAIL PROTECTED]>
> > Cc: "Groups - PHP-General" <[EMAIL PROTECTED]>
> > Sent: Friday, July 12, 2002 12:17 PM
> > Subject: Re: [PHP] PHP codes and variables
> >
> >
> > > On Fri, 12 Jul 2002, J. Alden Gillespy wrote:
> > > > Anyone know how to do have a variable equal the contents of a file?
I
> > tried
> > > > the include function, but it just prints the file out on the screen
> > rather
> > > > than including the contents in the variable itself.  I need help
with
> > this
> > > > ASAP.  Thanks.
> > >
> > > $variable = join('', file('path/to/file'));
> > >
> > > miguel
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




[PHP] black becomes red w/ imagecreatefromjpeg

2002-07-12 Thread Don Howland

Hello group,

It's been over a year since I've had to come to you for help, but your 
insights and experience are too hard to resist... :-)

I don't have a problem with any of the gd functions and they all works 
fine except that when I try to fill a circle or draw onto an imported 
image from imagecreatefromjpeg:

When I create my working jpg image from scratch:

$im = ImageCreate($sizew, $sizeh);
$black = ImageColorAllocate($im, 0, 0, 0);

...
The image has many different colored stripes which are drawn here
200+ lines
...

ImageArc($im, $arrwell, $arrwell, 10, 10, 0, 360, $black);
ImageFillToBorder($im, $arrwell, $arrwell, $black, $black);

...

everything works perfectly.


NOW...

I decided to cut out the 200+ lines of stripe drawing code and import 
the fixed stripped image using imagecreatefromjpeg to draw and fill the 
circle and arrow onto:

...

$im = imagecreatefromjpeg("stripes.jpg");
$black = ImageColorAllocate($im, 0, 0, 0);

ImageArc($im, $arrwell, $arrwell, 10, 10, 0, 360, $black);
ImageFillToBorder($im, $arrwell, $arrwell, $black, $black);

...

The problem is that now the Arc and arrow lines comes out in a reddish 
color and the fill to border doesn't fill (regardless of the color used 
in ImageArc).

Anything I attempt to draw in any color comes out in red (it doesn't 
matter what the stripe color behind it is, it's still the same red).

See the two small attached images (a small portion of the larger image).

The blackdot.jpg is what it is supposed to look like.
The reddot.jpg is what it looks like when drawn on the imported image.

I guess I could go back to drawing it from scratch but it's over 200 
lines of code to draw the stripes in an already 800 line program.

Do you know why the reddish color over rides the allocated colors and 
what I can do to get the $black to draw on the imported image?

Thanks for any ideas,

I'm not on the list, so please respond directly if you can.

Thanks again,

Don





















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


[PHP] How do I send files with HTTP socket post (PostToHost)

2002-07-12 Thread Kevin Stone

Okay enough answering questions this week, now I have a question to ask.  :)

I have a situation where two web servers need to share files with one
another.  FTP is not an option.  So I am resorting to HTTP socket
connection.  I am able to open the connection (using Rasmus's PostToHost
function) to PHP scripts running on both servers and send structured queries
back and forth.  This was easy.  The queries can trigger actions so that I
can communicate seamlessly and do work.  But I cannot for the life of me
figure out how to send whole files (mostly image files).  There's obviously
more to it than just sending the ASCII conversion.

I really don't have any meaningful code to show you.  The code is all
standard anyway so if you know what I'm talking about then you have probably
coded it yourself at one point or another.  Are there any tutorials or
examples out there that will show me how to send files using fsocketopen()
and POST method?

Much thanks!
Kevin Stone
Helpelf, Inc.


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




Re: [PHP] PHP/cron fetching and processing email from a POP3 account

2002-07-12 Thread Chris Hewitt

D. Reid Wilson wrote:

>I would like to write a PHP script that fetchs email from a POP3 account and
>then processes it based on the content of the email, such as writing it to a
>CRM database or confirming an ezine subscription. I would then run the PHP
>script via a cron job every ten minutes or so.
>
Try searching the websites for available code, phpclasses.org, 
google.com etc. You should be able to find quite a bit of useful code 
for your project.

HTH
Chris


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




[PHP] Re: odbc_exec(), any way to validate whether it work or not?

2002-07-12 Thread Scott Fletcher

Never Mind!  It was the $_GET['VIEW'] that was the problem.  Since some
script use Get method while other use Post method, so I changed it to
$_REQUEST['VIEW'] and that took care of the problem.

"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> For the odbc_exec(), is there a way to validate whether this return a true
> or false.  If false, then the error message?
>
> I really hate PHP_SELF now, this one web page is written to be repeated 3
> times.  With the global register turned off, everything was really a mess
> and I'm close to being done in cleaning it up.  Now, the odbc_exec()
doesn't
> work.
>
>



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




Re: [PHP] PHP codes and variables

2002-07-12 Thread J. Alden Gillespy

Which method makes it possible to process any variables in the included
file?  See, I have variables in the included file that are defined in the
page that's calling it.

J. Alden Gillespy (DJ Rage)
Broadcasting on Test Pattern Radio
Shock Rock!  Every Sunday 5-8pm edt (21-0 gmt)
http://www.thetestpattern.com

- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "PHP-general" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 2:35 PM
Subject: Re: [PHP] PHP codes and variables


> Or use implode instead of join makes skips the step of extracting the
> index..
> $file = implode ('', file ("afile.html"));
>
> If you'll be sending more output than just one file then another favorite
> method is this..
> ob_start();
> readfile("file1.txt");
> readfile("file2.html");
> $output = ob_get_contents();
> ob_end_clean();
>
> -Kevin
>
> - Original Message -
> From: "Miguel Cruz" <[EMAIL PROTECTED]>
> To: "J. Alden Gillespy" <[EMAIL PROTECTED]>
> Cc: "Groups - PHP-General" <[EMAIL PROTECTED]>
> Sent: Friday, July 12, 2002 12:17 PM
> Subject: Re: [PHP] PHP codes and variables
>
>
> > On Fri, 12 Jul 2002, J. Alden Gillespy wrote:
> > > Anyone know how to do have a variable equal the contents of a file?  I
> tried
> > > the include function, but it just prints the file out on the screen
> rather
> > > than including the contents in the variable itself.  I need help with
> this
> > > ASAP.  Thanks.
> >
> > $variable = join('', file('path/to/file'));
> >
> > miguel
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>




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




Re: [PHP] PHP and ORACLE

2002-07-12 Thread Chris Hewitt

Ricardo Fitzgerald wrote:

>Hi,
>
>I started with PHP and MYSQL a while ago and now I've been involved in
>a huge database project with ORACLE. 
>
---snip---

>And i don't have any kind of experience with Oracle, so I would
>appreciate any recommendations from experienced developers.
>
I develop a lot with Oracle (pl/sql not php) but I think the key factors 
remain the same with a small or large amount of data. Spend time 
ensuring the table layout (and its indices) are fairly optimal. With a 
small amount of data extra time in doing sql statements may not be 
critical, but with a lot of data it would be very noticeable.

Two of the Oracle CDs in the distribution are documentation. MostOne of 
the books on them is the Server Applications Developer's Guide, some of 
the information on table layout and general optimising may be useful, 
but most of it is about using pl/sql.

Otherwise just ensure the database is doing all your sorting etc, and 
gives you the data in the order you need it.

This doesn't seem much advice, but its a start. Post anything else more 
specific. Hope it helps.

Chris
PS Your computer clock tells me I'm a teenager again!


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




Re: [PHP] PHP codes and variables

2002-07-12 Thread Kevin Stone

Or use implode instead of join makes skips the step of extracting the
index..
$file = implode ('', file ("afile.html"));

If you'll be sending more output than just one file then another favorite
method is this..
ob_start();
readfile("file1.txt");
readfile("file2.html");
$output = ob_get_contents();
ob_end_clean();

-Kevin

- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "J. Alden Gillespy" <[EMAIL PROTECTED]>
Cc: "Groups - PHP-General" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 12:17 PM
Subject: Re: [PHP] PHP codes and variables


> On Fri, 12 Jul 2002, J. Alden Gillespy wrote:
> > Anyone know how to do have a variable equal the contents of a file?  I
tried
> > the include function, but it just prints the file out on the screen
rather
> > than including the contents in the variable itself.  I need help with
this
> > ASAP.  Thanks.
>
> $variable = join('', file('path/to/file'));
>
> miguel
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] PHP codes and variables

2002-07-12 Thread Miguel Cruz

On Fri, 12 Jul 2002, J. Alden Gillespy wrote:
> Anyone know how to do have a variable equal the contents of a file?  I tried
> the include function, but it just prints the file out on the screen rather
> than including the contents in the variable itself.  I need help with this
> ASAP.  Thanks.

$variable = join('', file('path/to/file'));

miguel


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




[PHP] PHP codes and variables

2002-07-12 Thread J. Alden Gillespy

Anyone know how to do have a variable equal the contents of a file?  I tried
the include function, but it just prints the file out on the screen rather
than including the contents in the variable itself.  I need help with this
ASAP.  Thanks.

J. Alden Gillespy (DJ Rage)
Broadcasting on Test Pattern Radio
Shock Rock!  Every Sunday 5-8pm edt (21-0 gmt)
http://www.thetestpattern.com




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




Re: [PHP] Re: if syntax

2002-07-12 Thread Chris Earle

> > >PHP will tell you you have a syntax error on the very last
> > line of your
> > >file, and you have no option but to go back and laboriously
> > hand match all
> > >of your braces -- and with each ellipsis representing maybe
> > tens (or even
> > >hundreds!)
> >
> > Don't be ridiculous.  Any decent editor will tell you where
> > the missing { or
> > } is.  No need to search for it by hand.
>
> Well, yes, but not the full story.  If the only clue you have is that
> there's probably a brace missing somewhere in the 600 lines of your file,
> and some of your structures nest 7 or 8 levels deep, that's still an awful
> lot of braces that you potentially have to check for matching partners,
even
> with a helpful editor to ease the task.  (And we know that some people
don't
> have helpful editors -- just look at the requests in this list for
> recommendations!!)  If, on the other hand, you get a parse error at line
234
> in one of the deeper levels of nested structures, your search is
immediately
> much more focussed.  This is just a plain fact, surely...?

I've never had a problem where it didn't give me a close estimate to where
the "{" or "}" was missing.  And I'm one of those ill-suited NotePad guys
(my Visual Studio copy is at work and I reformatted this computer recently).
:)

> > Not to mention that if you've indented properly, it's trivial
> > to find it,
> > even in something as ill-suitable for Programming as NotePad.
>
> Ah, indeed -- but, again, not everyone indents properly!!

I'm not sure that's a fair argument to make because you can say the same
thing about code with the if (exp): endif; code, I'm sure a lot of people
use it's simplicity (I do use it on occasion, but I indent like { }) and
then don't indent.

> > >Now PHP will throw an error at the endwhile, because it
> > knows there's an
> > >endfor missing -- and you've already cut out a large chunk
> > of your code to
> > >check; better yet, as you're checking you can see at a
> > glance what each
> > >"end" should be matching.  And every "end" has to be there, too -- no
> > >cursing yourself for that lazy day when you left out a few
> > comments on some
> > >"unimportant" closing braces!
> >
> > None of my closing braces have comments.  I never have a problem with
> > "missing" ones.

If I miss one the PHP parser gives me a big enough clue for me to find it
within 30 seconds.  I can definitely understand that though and I bet that
that is easier, especially in harder to read, uncommented code (that's a
general statement, not a shot at anyone).

> You must have much keener eyesight than me, then.  I often have difficulty
> telling which } lines up under which { (when I'm reading code written in
> that style, that is!), especially if they're on different pages of a
> listing.  When I code in a braced language, I *always* comment my closing
> braces for this reason.   Even in PHP using end* statements, I often add
> comment to tell me *which* "if" an "endif" matches, just to be sure.  (I
do
> the same in VB, too!)

I've got the same idea as him, but I wear glasses (not bad vision though ...
next up from 20/20).  I never added VB comments to my "End If" statements, I
might comment inside about what's going on, but never what's being matched.
I have the feeling your code is very readable, which is a good thing, but I
like my way for my own selfish reasons (much of which cannot be explained to
mere mortals!).

> > YMMV.
>
> I guess.  But I think other people's probably varies more, and the number
of
> occasions on this list when I think "but if you'd used alternative syntax
> style you'd *know* where the problem was" grows by the week.

You're probably right, but it is a religious and huge experience thing.
I've been working with { } for quite, especially a while outside of PHP and
I rarely have a problem (except when moving to ASP ... that normally takes a
quick relearning curve because of the VB syntax).

> Oh dear, I see I've got into rant mode once more.  Right, I'll shut up
now,
> and that really will be my last word on the topic.  Well, at least until
> someone else brings it up again.

Oops.

> Cheers!
>
> Mike
>

-Chris



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




[PHP] Re: Moving the pointer in a file...

2002-07-12 Thread Kondwani Spike Mkandawire

Figured it out:

I just rewrote the first 3 lines with a few new Line Characters and place
respat the
Line I wanted Changed with its Variable...

fputs($file, " wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to read and write to a file on Line 5 and line 5 alone...
> $file = fopen($fileName, "r+");
> Places the pointer at the beginning of the file I have tried the
> following...
>
> $line = fgets($file, 255);
>$line = fgets($file, 255);
>$line = fgets($file, 255);
>$line = fgets($file, 255);
>fputs($file, "the Line I want to write;");
> but nothing is happening...  Please Help...
>
> Kondwani
>
>



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




Re: [PHP] Linux Newsgroup... ('continue');

2002-07-12 Thread Scott Fletcher

Alright!  I'll give it my best shot!

"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Fri, 12 Jul 2002, Scott Fletcher wrote:
> > Miguel Cruz <[EMAIL PROTECTED]> wrote in:
> >> On Thu, 11 Jul 2002, Scott Fletcher wrote:
> >>> Are you sure these newsgroup work?  I tried subscribing to it and got
a
> >>> response saying newsgroup server could not be found.  I didn't have
that
> >>> problem with PHP Newsgroup or mozilla.org Newsgroup.
> >>>
> >>> comp.os.linux.admin
> >>> comp.os.linux.misc
> >>> ...
> >>
> >> Yes, they all definitely work. Remember that different news servers
carry
> >> different newsgroups. Your ISP should be running a news server that
> >> carries all of the above-listed groups, though, as they're in the main
> >> hierarchy. Just ask your ISP for the name of its news server.
> >>
> >> Alternatively, you can read them all in groups.google.com, though
they're
> >> about 12 hours behind.
> >
> > I don't have ISP, I use T1, the local network I'm on is direct to the
> > internet.  I can type in www.cnn.com and it can go where it go quickly
> > without a problem.  The same goes for news.php.net Newsgroup.
>
> You still have an ISP. You can't peer using something as tiny as a T1.
> Just traceroute somewhere and you'll see what your ISP is. Then go
> to their web site, look for the customer support page, and they should
> list their NNTP server somewhere.
>
> Alternatively, there is a free server in Germany you can use if your ISP
> doesn't provide decent news service. Go to http://news.cis.dfn.de/ for
> more information.
>
> miguel
>



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




Re: [PHP] PHP and ORACLE

2002-07-12 Thread Miguel Cruz

On Fri, 12 Jul 2002, Alberto Serra wrote:
> Ricardo Fitzgerald wrote:
>> I started with PHP and MYSQL a while ago and now I've been involved in
>> a huge database project with ORACLE. 
> 
> Have the Oracle box do most of it. Make sure that:
> 1) there is  a well defined API for external application (including your 
> PHP client) to access data. This *must* written an paper and documented. 
> No code writing prior to this.
> 2) all about referential integrity is done within Oracle
> 3) use triggers and SPs to enforce data consistency (handle with care, 
> they load the db server if used unproperly)
> 4) find a good DBA to maintain the system (Oracle can degrade quite 
> dramatically if not properly maintained)
> 5) interact very little with the DB, to avoid loading its server. (That 
> is, call an SP, get the result set from a tmp table)
> 6) avoid locking as much as you can
> 7) Prey the current Oracle bugs are not too evil.
> 8) get ready to say good bye to your vacations.
> 9) ask for a paycheck raise

This is all very good advice (especially 4 and 8).

Oracle can do amazing things but if you just pretend it's MySQL you'll 
have a pretty miserable time. Learn about triggers and stored procedures 
and views and you will be amazed at how quickly and scalably you can do 
very complicated things.

Don't learn about indexing and table optimization and you will be amazed 
at how slow your application is.

miguel


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




[PHP] PHP/cron fetching and processing email from a POP3 account

2002-07-12 Thread D. Reid Wilson


I would like to write a PHP script that fetchs email from a POP3 account and
then processes it based on the content of the email, such as writing it to a
CRM database or confirming an ezine subscription. I would then run the PHP
script via a cron job every ten minutes or so.

I've looked at the PHP documentation some and I could write a script
completely from scratch if needed, but I'm wondering if anyone could point
me to a reference where doing this with PHP (or Perl for that matter) is
discussed. I don't seem to recall having ever seen such an article.

Any ideas?

Thanks,

Reid Wilson
[EMAIL PROTECTED]
University of Texas at Arlington

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




Re: [PHP] Re: if syntax

2002-07-12 Thread Chris Earle


"Mike Ford" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > -Original Message-
> > From: Chris Earle [mailto:[EMAIL PROTECTED]]
> > Sent: 11 July 2002 18:28
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Re: if syntax
> >
> >
> > > when it would be just as easy, and more functional, to
> > write this (even
> > > saves a few characters, too!):
> > >
> > >if (x):
> > >   while (y):
> > >  ...
> > >   endwhile;
> > >   ...
> > >endif;
> >
> > You're adding characters...
> >
> > "{" + "}" opposed to ":" + "endif;"
>
> No, no, no!  Look again -- I was contrasting this with:
>
>if (x) {
>   while (y) {
>  ...
>   } // end while
>   ...
>} // end if
>
> which I see quite often in other people's scripts.
>
> Then the difference is " {" and "} // end if" as opposed to ":" and
> "endif;", and indeed you are saving characters -- and it's more
functional,
> because the PHP processor is getting to check the end* statements match
the
> correct block opener, rather than just matching back to the next unclosed
> "{" regardless of whether it's on an appropriate block opener or not.  To
> me, this is such a huge advantage that I just can't understand why people
> insist on sticking with the all-braces style, and that's regardless of the
> fact that I just think it's more readable.

Oh, just as the other guy said, I don't comment my braces because I tab in
everything evenly (each if is another tab with the nested code tabed one
further).  I do comment my functions end braces because they can get pretty
big and they're all at the same level of tabbing.

I think that most people (like me) use it because of their backgrounds in
other programming languages.  I learned PHP after I was doing a lot of C++
work ... so it came very naturely.

> Cheers!
>
> Mike
>
> -
> Mike Ford,  Electronic Information Services Adviser,
> Learning Support Services, Learning & Information Services,
> JG125, James Graham Building, Leeds Metropolitan University,
> Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
> Email: [EMAIL PROTECTED]
> Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211



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




Re: [PHP] Re: PHP and geographic maps

2002-07-12 Thread Miguel Cruz

On Thu, 11 Jul 2002, Richard Lynch wrote:
> NOTE:  End-user GPS units are "off" by like 30 meters (?) on purpose so Joe
> Blow can't tell the "enemy" how to find the White House and blow it up. 
> Sigh.  You're never gonna beat that error margin without a *LOT* of repeated
> readings over a long period of time and statistical analysis...

This is completely off-topic, but the Selective Availability system that
you describe has been discontinued by the Department of Defense a few
years ago - after it began to be undermined by the proliferation of
differential GPS beacons (these are transcievers at stationary points that
listen to the GPS signal, calculate the difference between the delivered
signal and their known location, and broadcast a corrective signal). Even 
the Coast Guard was running them.

So for the past few years consumer GPS is very accurate. This helps
explain the recent rapid spread of consumer GPS devices.

DoD says they reserve the right to turn it on if they want to, but I doubt 
they would - especially now that the EU is planning its own competing 
system.

> But keeping all that junk in the database as 2-D mapping would only be
> needed if you're going to be providing driving directions and keeping all
> the highways and all that crap that MapQuest keeps (I assume).  You almost
> for sure don't need all that.

It seems to me like they still need street addresses, unless they have a 
database of the shapes of every private property parcel in the country.

miguel


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




Re: [PHP] ' giving problem while inserting in table.

2002-07-12 Thread Anil Garg

thanx, its working perfect now
anil :)
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Anil Garg" <[EMAIL PROTECTED]>; "Martin Clifford" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 12:46 PM
Subject: Re: [PHP] ' giving problem while inserting in table.


> If you're using addslashes, then a string like this:
>
> It's going to be a good \ bad day
>
> Will be converted to
>
> It\'s going to be a good \\ bad day
>
> And then you can safely put that into your database. So I don't see why
> using a \ in your string is causing you problems.
>
> ---John Holmes...
>
> - Original Message -
> From: "Anil Garg" <[EMAIL PROTECTED]>
> To: "1LT John W. Holmes" <[EMAIL PROTECTED]>; "Martin Clifford"
> <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, July 12, 2002 12:30 PM
> Subject: Re: [PHP] ' giving problem while inserting in table.
>
>
> > Hi,
> > addslashes() works fine for me( and as John said i dint need to use
> > stripslashes)
> > NOW( :( ) whats happening is if i *want* to add a backslash in the
string
> > that also gets stripped off (as i have to specify many windows paths
e.g.
> > c:\niksun\config\ ). Is there any fix to this of its a trade off between
> > ',",... and \ ?
> >
> > Note: putting a \\ to add \ doesnt help coz for one time it works one i
> open
> > the entry in edit mode again i have to put \ before all the \.
> > please help
> > regards
> > anil
> >
> > - Original Message -
> > From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
> > To: "Martin Clifford" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Friday, July 12, 2002 12:12 PM
> > Subject: Re: [PHP] ' giving problem while inserting in table.
> >
> >
> > > You DON'T have to use stripslashes() on data coming out of a database.
> The
> > > slashes were there to escape certain characters so they could make it
> into
> > > the database. The actual slashes do not go into the database. If they
> are
> > in
> > > your case, then you're using addslashes() twice, somehow. The only
time
> > you
> > > have to use stripslashes on database data is if your
> magic_quotes_runtime
> > > setting is on in php.ini.
> > >
> > > ---John Holmes...
> > >
> > > - Original Message -
> > > From: "Martin Clifford" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Friday, July 12, 2002 10:49 AM
> > > Subject: Re: [PHP] ' giving problem while inserting in table.
> > >
> > >
> > > Use addslashes() on ALL strings before inserting them into your
> database.
> > > Then, on your frontend, extract the data and use stripslashes() on all
> > > strings.
> > >
> > > Hope to help!
> > >
> > > Martin Clifford
> > > Homepage: http://www.completesource.net
> > > Developer's Forums: http://www.completesource.net/forums/
> > >
> > >
> > > >>> "Anil Garg" <[EMAIL PROTECTED]> 07/12/02 10:45AM >>>
> > > Hi,
> > > I am making a faq maintenance system using mysql and php.
> > > To insert a entry in to a faq table i am using the following query:
> > > -
> > > INSERT INTO faq_table_netvd (id,question,
> > >
> >
>
answer,netvcr,netdetector,add_date,mod_date,keyword,category,display,attach_
> > > id)
> > >  VALUES ('0','$frm[question]',
> > >
> >
>
'$frm[answer]','$frm[netvcr]','$frm[netdetector]','$frm[add_date]','$frm[mod
> > >
> >
>
_date]','$frm[keyword]','$frm[category]','$frm[display]','$frm[attach_id]')
> > >  ");
> > > ---
> > > now the problem is when $frm[question] has some string like: "why i
> can't
> > > eat".
> > > i get the following error:
> > > MySQL Error: You have an error in your SQL syntax near 't eat?'
,answer
> =
> > > 'Please recheck the power of your specs:)' ' at line 3.Putting a '\'
> > before
> > > ' (e.g. \')solves my problem...but when i open the same quesion to
edit
> > it,
> > > again i have to put backslashes where ever i find " ' "  in the
quesion
> or
> > > answer.
> > >
> > > Can anyone please suggest a solution to this.
> > >
> > > thanx and regards
> > >
> > > anil
> > >
> > > [please ask if i havent explained the problem fully]
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>


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




Re: [PHP] Linux Newsgroup... ('continue');

2002-07-12 Thread Miguel Cruz

On Fri, 12 Jul 2002, Scott Fletcher wrote:
> Miguel Cruz <[EMAIL PROTECTED]> wrote in:
>> On Thu, 11 Jul 2002, Scott Fletcher wrote:
>>> Are you sure these newsgroup work?  I tried subscribing to it and got a
>>> response saying newsgroup server could not be found.  I didn't have that
>>> problem with PHP Newsgroup or mozilla.org Newsgroup.
>>>
>>> comp.os.linux.admin
>>> comp.os.linux.misc
>>> ...
>>
>> Yes, they all definitely work. Remember that different news servers carry
>> different newsgroups. Your ISP should be running a news server that
>> carries all of the above-listed groups, though, as they're in the main
>> hierarchy. Just ask your ISP for the name of its news server.
>>
>> Alternatively, you can read them all in groups.google.com, though they're
>> about 12 hours behind.
>
> I don't have ISP, I use T1, the local network I'm on is direct to the
> internet.  I can type in www.cnn.com and it can go where it go quickly
> without a problem.  The same goes for news.php.net Newsgroup.
 
You still have an ISP. You can't peer using something as tiny as a T1.
Just traceroute somewhere and you'll see what your ISP is. Then go
to their web site, look for the customer support page, and they should
list their NNTP server somewhere.

Alternatively, there is a free server in Germany you can use if your ISP
doesn't provide decent news service. Go to http://news.cis.dfn.de/ for
more information.

miguel


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




RE: [PHP] Re: gd ->1:image resolution 2:font quality

2002-07-12 Thread Andrew Chase

The GIMP is free (as in speech), and I've found it to work quite well on
windows:
http://www.gimp.org/

The GIMP for Windows page:
http://www.gimp.org/~tml/gimp/win32/

-Andy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]>
> My idea to solve the problem:
> 1:Picture to create with gd, scale up by factor 69.4[?] (for 600dpi )
>   Result is an huge 72 dpi picture.
> 2:Resize and convert result picture to 600dpi by an external program.
>
> Next question:
> Which external program I can use?
> Have to work on windows 2.
> This is not the reason for my lack of english skills ;)


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




RE: [PHP] PHP meetup

2002-07-12 Thread Martin Clifford

I just signed up for this, as I would LOVE to be able to talk and interact (in person) 
with some PHP Developers.  As I'm still learning (as we all are), it would be a great 
opportunity for me to be able to meet up and discuss this wonderful language with my 
peers.  Hopefully that'll come to pass! :o)

I emplore all PHP Developers to sign up for MEETUP.  You have nothing to loose, and 
everything to gain!

Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/


>>> "Jay Blanchard" <[EMAIL PROTECTED]> 07/12/02 11:48AM >>>
[snip]
Want to meet other PHP developers in your area? Check out:

http://php.meetup.com/ 

Pretty nifty idea... especially given the lack of user groups in the U.S.
[/snip]

I thought for others who had not seen this I would post this. There is
probably already a user group in your area if you live near a major city.
According to the PHPusergroups.org web site
[http://www.phpusergroups.org/groups.phtml?menu=groups] there 189 PHP user
groups in 52 countries.

While there is nothing in my area (closest is Houston, over 3 hours away
:^[ , and I thought there would be one in Austin, even if I don't want to
drive an hour to go drink an adult beverage or two.) but you may find one
already exists in your area. Meetup is a cool idea, and appears to be
gaining ground slowly. Jon, did you cross-post to all PHP lists?

Jay

"Code! Yes. A programmer's strength flows from code maintainability. But
beware of Perl. Terse syntax... more than one way to do it...default
variables. The dark side of code maintainability are they. Easily they flow,
quick to join you when code you write.  If once you start down the dark
path, forever will it dominate your destiny, consume you it will." -- Yoda
(or maybe Coda)



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



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




  1   2   >