php-general Digest 12 Oct 2002 11:18:03 -0000 Issue 1639

Topics (messages 119698 through 119727):

Re: Best Forum System
        119698 by: Jeff Lewis
        119704 by: Paul Nicholson
        119707 by: Stephen
        119708 by: Jason Reid
        119717 by: Paul Nicholson

XML-RPC
        119699 by: jacob.keystreams.com

Mysql not functioning after upgrade to 4.2.3
        119700 by: Jeff Schwartz
        119701 by: Timothy Hitchens
        119703 by: Timothy Hitchens

Re: Boolean Search Interpreter
        119702 by: John W. Holmes

simple array in mysql
        119705 by: tim tom
        119713 by: John W. Holmes

How to navigate backwards in PHP ???
        119706 by: -<[ Rene Brehmer ]>-
        119709 by: Anup
        119710 by: John W. Holmes
        119719 by: Shawn McKenzie

Re: =.jpg from another URL with PHP=
        119711 by: Anthony Ritter
        119712 by: John W. Holmes
        119715 by: Anthony Ritter
        119723 by: Chris Shiflett

Re: Object-relational mapping and PHP
        119714 by: Manuel Lemos

Odd request
        119716 by: Shawn McKenzie
        119718 by: Smith, Benjamin

Convert comma-delimited file or form into arrays
        119720 by: YC Nyon
        119725 by: . Edwin

PHP not reporting errors, but hangs!!
        119721 by: Siva Kumar

WinAMP Plugin Question
        119722 by: eriol

An small SQL problem
        119724 by: Christian Ista

a Question of Returning References
        119726 by: Ns_Andy

what does _\\_ mean?
        119727 by: Ns_Andy

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
YaBB SE seems to do quite well, I have it running on three sites.

http://www.yabb.info

Jeff
----- Original Message -----
From: "Stephen" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 5:36 PM
Subject: [PHP] Best Forum System


Hello,

I know there will be a load of different responses but I'm after the most
frequent one. What exactly is the best forum system out there? I'm mainly
after a PHP one but a Perl or CGI one will do just fine. Thanks!

Thanks,
Stephen Craton
http://www.melchior.us
http://php.melchior.us


--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,
I use ibforums(http://www.ibforums.com/)....100% OO php and its FREE.
~Pauly

On Friday 11 October 2002 05:36 pm, Stephen wrote:
> Hello,
>
> I know there will be a load of different responses but I'm after the most
> frequent one. What exactly is the best forum system out there? I'm mainly
> after a PHP one but a Perl or CGI one will do just fine. Thanks!
>
> Thanks,
> Stephen Craton
> http://www.melchior.us
> http://php.melchior.us

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The web....the way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9p2GGDyXNIUN3+UQRArHdAJ9J+ZC1Zf+gTxkKSY4zgq5TKONdkACglAQE
vEYPRv3tgJ5YZ+oaybak61s=
=oB2D
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
I'd use that but the skinning difficulty compared to others is just down
right horrible...


----- Original Message -----
From: "Paul Nicholson" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 6:58 PM
Subject: Re: [PHP] Best Forum System


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hey,
> I use ibforums(http://www.ibforums.com/)....100% OO php and its FREE.
> ~Pauly
>
> On Friday 11 October 2002 05:36 pm, Stephen wrote:
> > Hello,
> >
> > I know there will be a load of different responses but I'm after the
most
> > frequent one. What exactly is the best forum system out there? I'm
mainly
> > after a PHP one but a Perl or CGI one will do just fine. Thanks!
> >
> > Thanks,
> > Stephen Craton
> > http://www.melchior.us
> > http://php.melchior.us
>
> - --
> ~Paul Nicholson
> Design Specialist @ WebPower Design
> "The web....the way you want it!"
> [EMAIL PROTECTED]
>
> "It said uses Windows 98 or better, so I loaded Linux!"
> Registered Linux User #183202 using Register Linux System # 81891
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE9p2GGDyXNIUN3+UQRArHdAJ9J+ZC1Zf+gTxkKSY4zgq5TKONdkACglAQE
> vEYPRv3tgJ5YZ+oaybak61s=
> =oB2D
> -----END PGP SIGNATURE-----
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
phpBB all the way for me. Used it on a few sites, worked fine for my uses.

Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca

----- Original Message ----- 
From: "Stephen" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 7:13 PM
Subject: Re: [PHP] Best Forum System


> I'd use that but the skinning difficulty compared to others is just down
> right horrible...
> 
> 
> ----- Original Message -----
> From: "Paul Nicholson" <[EMAIL PROTECTED]>
> To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
> <[EMAIL PROTECTED]>
> Sent: Friday, October 11, 2002 6:58 PM
> Subject: Re: [PHP] Best Forum System
> 
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hey,
> > I use ibforums(http://www.ibforums.com/)....100% OO php and its FREE.
> > ~Pauly
> >
> > On Friday 11 October 2002 05:36 pm, Stephen wrote:
> > > Hello,
> > >
> > > I know there will be a load of different responses but I'm after the
> most
> > > frequent one. What exactly is the best forum system out there? I'm
> mainly
> > > after a PHP one but a Perl or CGI one will do just fine. Thanks!
> > >
> > > Thanks,
> > > Stephen Craton
> > > http://www.melchior.us
> > > http://php.melchior.us
> >
> > - --
> > ~Paul Nicholson
> > Design Specialist @ WebPower Design
> > "The web....the way you want it!"
> > [EMAIL PROTECTED]
> >
> > "It said uses Windows 98 or better, so I loaded Linux!"
> > Registered Linux User #183202 using Register Linux System # 81891
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9p2GGDyXNIUN3+UQRArHdAJ9J+ZC1Zf+gTxkKSY4zgq5TKONdkACglAQE
> > vEYPRv3tgJ5YZ+oaybak61s=
> > =oB2D
> > -----END PGP SIGNATURE-----
> >
> > --
> > 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
> 


--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Give them time.....they've only been at it for less than 6 months.
That's the fastest I've seen a board developed and the clean code(security 
checks are in place) at that. And skinning isn't all that bad. It's also the 
fastest forum software I've seen.....

On Friday 11 October 2002 09:13 pm, Stephen scribbled:
> I'd use that but the skinning difficulty compared to others is just down
> right horrible...
>
>
> ----- Original Message -----
> From: "Paul Nicholson" <[EMAIL PROTECTED]>
> To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
> <[EMAIL PROTECTED]>
> Sent: Friday, October 11, 2002 6:58 PM
> Subject: Re: [PHP] Best Forum System
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hey,
> > I use ibforums(http://www.ibforums.com/)....100% OO php and its FREE.
> > ~Pauly
> >
> > On Friday 11 October 2002 05:36 pm, Stephen wrote:
> > > Hello,
> > >
> > > I know there will be a load of different responses but I'm after the
>
> most
>
> > > frequent one. What exactly is the best forum system out there? I'm
>
> mainly
>
> > > after a PHP one but a Perl or CGI one will do just fine. Thanks!
> > >
> > > Thanks,
> > > Stephen Craton
> > > http://www.melchior.us
> > > http://php.melchior.us
> >
> > - --
> > ~Paul Nicholson
> > Design Specialist @ WebPower Design
> > "The web....the way you want it!"
> > [EMAIL PROTECTED]
> >
> > "It said uses Windows 98 or better, so I loaded Linux!"
> > Registered Linux User #183202 using Register Linux System # 81891
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.6 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE9p2GGDyXNIUN3+UQRArHdAJ9J+ZC1Zf+gTxkKSY4zgq5TKONdkACglAQE
> > vEYPRv3tgJ5YZ+oaybak61s=
> > =oB2D
> > -----END PGP SIGNATURE-----
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
"The web....the way you want it!"
[EMAIL PROTECTED]

"It said uses Windows 98 or better, so I loaded Linux!"
Registered Linux User #183202 using Register Linux System # 81891
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9p6Y3DyXNIUN3+UQRAv0EAJ9wWFPnJRR5UQcTvLPLdEO6/TJiGwCfRxHf
nryycMkvzJT6i4N53zpIl/k=
=rAAO
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Has anyone on this list had any experience with XML-RPC and, more 
specifically, any experience using it with PHP?

XML-RPC: http://xml-rpc.org

w/ PHP: http://xmlrpc-c.sourceforge.net/xmlrpc-howto/xmlrpc-howto-php.html

--- End Message ---
--- Begin Message ---

I just upgraded from 4.1.2 to 4.2.3 and now receive an "undefined function" error when 
running mysql_pconnect() or mysql_connect(). 

I used the same configure script as before and the Configure Command from phpinfo 
(below) includes Mysql. However, there's no longer a Configuration area showing for 
Mysql. 

Has anyone else run into this problem?

Thanks, Jeff 

 './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' 
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' 
'--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' 
'--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' 
'--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' 
'--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-exec-dir=/usr/bin' 
'--with-gd' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' 
'--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' 
'--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' 
'--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-ftp' 
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' 
'--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' 
'--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-kerberos=/usr/kerberos' 
'--with-ldap=shared,/usr' '--with-mysql=shared,/usr' '--with-curl=/usr/lib/' 
'--with-apxs=/usr/sbin/apxs'

 



---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com
--- End Message ---
--- Begin Message ---
I am just recompiling against your config for you to see for myself...
sometimes I find
it helps to compile the cgi or cli version ..eg remove the apxs config
then do a listing
of modules compiled in from the shell...

Won't be long... 



Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]

HITCHO has Spoken!






-----Original Message-----
From: Jeff Schwartz [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, 12 October 2002 9:40 AM
To: PHP List
Subject: [PHP] Mysql not functioning after upgrade to 4.2.3



I just upgraded from 4.1.2 to 4.2.3 and now receive an "undefined
function" error when running mysql_pconnect() or mysql_connect(). 

I used the same configure script as before and the Configure Command
from phpinfo (below) includes Mysql. However, there's no longer a
Configuration area showing for Mysql. 

Has anyone else run into this problem?

Thanks, Jeff 

 './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db3'
'--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext'
'--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-debugger' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8'
'--with-imap=shared' '--with-kerberos=/usr/kerberos'
'--with-ldap=shared,/usr' '--with-mysql=shared,/usr'
'--with-curl=/usr/lib/' '--with-apxs=/usr/sbin/apxs'

 



---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more faith.yahoo.com

--- End Message ---
--- Begin Message ---
What Unix? and Version?


Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]

HITCHO has Spoken!






-----Original Message-----
From: Jeff Schwartz [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, 12 October 2002 9:40 AM
To: PHP List
Subject: [PHP] Mysql not functioning after upgrade to 4.2.3



I just upgraded from 4.1.2 to 4.2.3 and now receive an "undefined
function" error when running mysql_pconnect() or mysql_connect(). 

I used the same configure script as before and the Configure Command
from phpinfo (below) includes Mysql. However, there's no longer a
Configuration area showing for Mysql. 

Has anyone else run into this problem?

Thanks, Jeff 

 './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-force-cgi-redirect'
'--disable-debug' '--enable-pic' '--disable-rpath'
'--enable-inline-optimization' '--with-bz2' '--with-db3'
'--with-exec-dir=/usr/bin' '--with-gd' '--with-gdbm' '--with-gettext'
'--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system'
'--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-debugger' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8'
'--with-imap=shared' '--with-kerberos=/usr/kerberos'
'--with-ldap=shared,/usr' '--with-mysql=shared,/usr'
'--with-curl=/usr/lib/' '--with-apxs=/usr/sbin/apxs'

 



---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more faith.yahoo.com

--- End Message ---
--- Begin Message ---
It may be better to just let your database handle it. I know MySQL
supports Boolean fulltext searches (in 4.0, I think), and I'm sure
others do too. 

---John Holmes...

> -----Original Message-----
> From: SpamSucks86 [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 7:13 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Boolean Search Interpreter
> 
> Is there an algorithm in PHP or pseudo-code, or any other language
that
> could help me write an algorithm to take a Boolean search string and
> parse it and convert it into SQL? I can convert it to SQL just fine, I
> just need help parsing the string and figuring out what they want
(AND,
> NOT, OR). Thanks for any and all help!



--- End Message ---
--- Begin Message ---
What's the 'normal' way of storing array values in mysql table?

--
tim


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
--- End Message ---
--- Begin Message ---
> What's the 'normal' way of storing array values in mysql table?

I like to store one letter of each word in its own table and reference
that back to the key of the array which will reference a flat file that
stores each key and the file that will store the data for that key on
the backup machine. 

But....the easy way to do it is probably just to serialize() and
addslashes() the array and then unserialize() it when you pull it out
(no need to stripslashes()). 

Depends on what you're doing with it, though. You may want to store each
array element on it's own row in a table, so it'd be easier to search
through. If you're just storing and retrieving, though, and don't need
to search the array data, then serialize()/unserialize() is what you
want.

---John Holmes...


--- End Message ---
--- Begin Message ---
This is really puzzling me ... I've tried finding the answer in the manual
... but sofar without luck...

What I need to is simply to be able to make a go-back link that points to
the URL that contains the page that had the link that send the user to the
current page ... (did that make sense?)

Or to put it another way: I need to be able to have a link on page A,
point to page B, and then have page B know the exact URL of page A
(including all variables that's needed to build page A).

The thing is that simply using <a href="javascript:history.go(-1)">
doesn't work because the internal links adds the hash-mark (#) after the
URL, and then the browser needs to go one more step backwards for each
time the user clicks on an internal link ...

I could easily write a JS function to handle all of this, but my goal is
to not use any JS at all, and really, this is something that ought to be
easily doable in PHP ... only I can't figure out how ... does it have
something like Document Referrer ??? which could contain the URL of the
sender, which I'd then be able to plump into a variable, which could then
be used when generating the links to go back to the sender page...

TIA

Rene
-- 
Rene Brehmer
System developer in the making...

This message was written on 100% recycled spam.

My website: http://www.geocities.com/cerberus_hotdog
Babes and computer & internet references...
--- End Message ---
--- Begin Message ---
Well, if you have control for the referring page, then create a hidden value
whose value is the URL. Then you can use that. The problem is that PHP is a
server-side language not a client-side (like JS), so PHP has no control over
the browser.

"-<>-" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is really puzzling me ... I've tried finding the answer in the manual
> ... but sofar without luck...
>
> What I need to is simply to be able to make a go-back link that points to
> the URL that contains the page that had the link that send the user to the
> current page ... (did that make sense?)
>
> Or to put it another way: I need to be able to have a link on page A,
> point to page B, and then have page B know the exact URL of page A
> (including all variables that's needed to build page A).
>
> The thing is that simply using <a href="javascript:history.go(-1)">
> doesn't work because the internal links adds the hash-mark (#) after the
> URL, and then the browser needs to go one more step backwards for each
> time the user clicks on an internal link ...
>
> I could easily write a JS function to handle all of this, but my goal is
> to not use any JS at all, and really, this is something that ought to be
> easily doable in PHP ... only I can't figure out how ... does it have
> something like Document Referrer ??? which could contain the URL of the
> sender, which I'd then be able to plump into a variable, which could then
> be used when generating the links to go back to the sender page...
>
> TIA
>
> Rene
> --
> Rene Brehmer
> System developer in the making...
>
> This message was written on 100% recycled spam.
>
> My website: http://www.geocities.com/cerberus_hotdog
> Babes and computer & internet references...


--- End Message ---
--- Begin Message ---
Maybe keep a record in the session of the URLs the user has gone to.
Just don't store the URLs with a hash-mark in them. Store them as an
array and it'd be easy to make a "back" like by just using the next to
last or last element of the array...

---John Holmes...

> -----Original Message-----
> From: -<[ Rene Brehmer ]>- [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 8:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to navigate backwards in PHP ???
> 
> This is really puzzling me ... I've tried finding the answer in the
manual
> ... but sofar without luck...
> 
> What I need to is simply to be able to make a go-back link that points
to
> the URL that contains the page that had the link that send the user to
the
> current page ... (did that make sense?)
> 
> Or to put it another way: I need to be able to have a link on page A,
> point to page B, and then have page B know the exact URL of page A
> (including all variables that's needed to build page A).
> 
> The thing is that simply using <a href="javascript:history.go(-1)">
> doesn't work because the internal links adds the hash-mark (#) after
the
> URL, and then the browser needs to go one more step backwards for each
> time the user clicks on an internal link ...
> 
> I could easily write a JS function to handle all of this, but my goal
is
> to not use any JS at all, and really, this is something that ought to
be
> easily doable in PHP ... only I can't figure out how ... does it have
> something like Document Referrer ??? which could contain the URL of
the
> sender, which I'd then be able to plump into a variable, which could
then
> be used when generating the links to go back to the sender page...
> 
> TIA
> 
> Rene
> --
> Rene Brehmer
> System developer in the making...
> 
> This message was written on 100% recycled spam.
> 
> My website: http://www.geocities.com/cerberus_hotdog
> Babes and computer & internet references...
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
$HTTP_SERVER_VARS["HTTP_REFERER"];
- or -
PHP 4.1.0 and later
$_SERVER["HTTP_REFERER"];

Not as reliable as passing it yourself though.

HTH
-Shawn
"-<>-" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> This is really puzzling me ... I've tried finding the answer in the manual
> ... but sofar without luck...
>
> What I need to is simply to be able to make a go-back link that points to
> the URL that contains the page that had the link that send the user to the
> current page ... (did that make sense?)
>
> Or to put it another way: I need to be able to have a link on page A,
> point to page B, and then have page B know the exact URL of page A
> (including all variables that's needed to build page A).
>
> The thing is that simply using <a href="javascript:history.go(-1)">
> doesn't work because the internal links adds the hash-mark (#) after the
> URL, and then the browser needs to go one more step backwards for each
> time the user clicks on an internal link ...
>
> I could easily write a JS function to handle all of this, but my goal is
> to not use any JS at all, and really, this is something that ought to be
> easily doable in PHP ... only I can't figure out how ... does it have
> something like Document Referrer ??? which could contain the URL of the
> sender, which I'd then be able to plump into a variable, which could then
> be used when generating the links to go back to the sender page...
>
> TIA
>
> Rene
> --
> Rene Brehmer
> System developer in the making...
>
> This message was written on 100% recycled spam.
>
> My website: http://www.geocities.com/cerberus_hotdog
> Babes and computer & internet references...


--- End Message ---
--- Begin Message ---
Thanks to all for your respones to my inquiry.

I placed the PHP script to open the .jpg from another URL in another file
and then inserted the HTML <IMG> tag to reference that file.   The result
was that it outputted a small sqaure with a red x  - but no image of the
map.

Any advice would be greatly appreciated.

Tony Ritter

The scripts follow...
...................................................................

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function findTheAnswer()
 {
  var number_one=window.document.the_form.field_one.value;
  var product=Math.round(9/5* number_one + 32);
  alert("The water temperature is " + product + " degrees fahrenheit");
  document.the_form.field_one.value=""
  document.the_form.field_one.focus()
 }
</SCRIPT>

<?
function getUSGS($data, $station)
 {
$data;
$content = file($data);
array_pop($content);
$current = array_pop($content);
$newcurrent = explode("\t",$current);
print("<table border=1 ALIGN=CENTER>");
print("<tr><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size
=1>$station</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size
=1>Station</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size
=1>Date and Time</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\"
size =1>Height</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size
=1>CFS</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size
=1>Temperature</Font></td></tr>");
print("<tr><td><Font Face=\"arial\"
size=1>$newcurrent[0]</Font></td><td><Font Face=\"arial\"
size=1>$newcurrent[1]</Font></td><td><Font Face=\"arial\"
size=1>$newcurrent[2]</Font></td><td><Font Face=\"arial\"
size=1>$newcurrent[3]</font></td><td><Font Face=\"arial\"
size=1>$newcurrent[4]</font></td><td><Font Face=\"arial\"
size=1>$newcurrent[5]</font></td></tr>");
print("</table>");
}
?>

<BODY>
<FONT FACE="arial" SIZE=2>
These tables represent real time data from the United States Geological
Survey.
The numbers will change every fifteen minutes to reflect the changes in
water temperatures
and water levels at the following stations in the Delaware River drainage.
Optimum water temperatures
for the following gamefish are listed below.
<FONT FACE="arial" SIZE=1>
<TABLE BORDER=0 ALIGN=CENTER>
<TR><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>B r o w n  T r o u t
</FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>R a i n b o w  T
r o u t </FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>S h a d
</FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>S m a l l m o u
t h  B a s s </FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>W a
l l e y e </FONT></TD></TR>
<TR><TD><FONT FACE="arial" SIZE=1>48 to 62 degrees</FONT></TD><TD><FONT
FACE="arial" SIZE=1>54 to 68 degrees</FONT></TD><TD><FONT FACE="arial"
SIZE=1>52 to 66 degrees</FONT></TD><TD><FONT FACE="arial" SIZE=1>67 to 77
degrees</FONT></TD><TD><FONT FACE="arial" SIZE=1>Below 50
degrees</FONT></TD></TR>
<P><BR>
</TABLE>
<BR>
</FONT>


<?
getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01
427510","Upper Delaware  River at Callicoon, NY");
print("<P ALIGN=\"CENTER\"><FONT FACE=\"arial\" COLOR=\"red\" SIZE=1>Normal
water levels on the main stem are from 2.7 to 3.2 feet or 600 to 1500
cfs.<BR></FONT>");
print("<FONT FACE=\"arial\" COLOR=\"red\" SIZE=1> <ALIGN=\"CENTER\">Anglers
should use caution above 3.3 feet and the river is not wadable at 3.5 feet
and above.</FONT><BR>");

getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01
426500","W. Br.  Delaware River at Hale Eddy, NY");

getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01
420500","Beaverkill River at  C o o k s F a l l s, NY");

getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01
427500"," C a l l i c o o n  C r e e k  a t  Callicoon, NY");
?>

<FORM NAME="the_form">
<FONT FACE="arial" SIZE=1> Enter  <b><i>Celsius</b></i>  number here:</FONT>
<INPUT TYPE=="text" NAME="field_one" size="3" > &nbsp;
<a href = #  onClick="findTheAnswer(); return false;"><FONT FACE="arial"
SIZE=1> Click this line to convert to Fahrenheit</A></FONT>
</FORM>

<FONT FACE="arial" SIZE =1>Click <A HREF="http://localhost/Map.php";>
here</A> for Real Time 600 mile Northeast Doppler Radar Map.</FONT>
<P>

</BODY>
</HTML>
............................................................................
..

// file:C:/ColorMap.php
// PHP script to open the .jpg file.


<?
$theURL="http://image.weather.com/web/radar/us_har_closeradar_medium_usen.jp
g";
if(!($fp=fopen($theURL, "r")))
 {
  print("Could not open the URL.");
  exit;
 }
$contents=fread($fp,1000000);
print($contents);
fclose($fp);
?>

...............................................


<HTML>
<HEAD>
<BODY>
This is a test.
<IMG SRC="C:/ColorMap.php">
</BODY>
</HTML>
// This page outputs: This is a test - with a small square and a red x - no
image of the map.
...................................................



John W. Holmes wrote in message:

Make another file that has your code in it and sends an image/jpeg
header. Then insert the image like any other image:

<img src='yourfile.php'>

Hope you're not violating any copyrights...

---John Holmes...
..................................................




--- End Message ---
--- Begin Message ---
Two things:

1. You're not sending an image/jpg header() in your image file. The
browser won't know what kind of data it's receiving.

2. You need to reference your image in the <img> tag through a web
server, that way the PHP code is parsed. <img
src=http://www.yourdomain.com/make_image.php> or even just a relative
URL to the file
<img src="images/make_image.php">

okay, one more:

3. Why not just set a cron script to run a program to copy the image to
your machine every X minutes. Then you can just reference it like any
other image. With the setup you have now, you're going to be using a lot
more resources because the PHP script will have to go and read that URL
and make the image with every request. 

and one more, just because:

4. I hope you're not violating any copyrights.

---John Holmes...

> -----Original Message-----
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, October 12, 2002 12:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] =.jpg from another URL with PHP=
> 
> Thanks to all for your respones to my inquiry.
> 
> I placed the PHP script to open the .jpg from another URL in another
file
> and then inserted the HTML <IMG> tag to reference that file.   The
result
> was that it outputted a small sqaure with a red x  - but no image of
the
> map.
> 
> Any advice would be greatly appreciated.
> 
> Tony Ritter
> 
> The scripts follow...
> ...................................................................
> 
> <HTML>
> <HEAD>
> <SCRIPT LANGUAGE="JavaScript">
> function findTheAnswer()
>  {
>   var number_one=window.document.the_form.field_one.value;
>   var product=Math.round(9/5* number_one + 32);
>   alert("The water temperature is " + product + " degrees
fahrenheit");
>   document.the_form.field_one.value=""
>   document.the_form.field_one.focus()
>  }
> </SCRIPT>
> 
> <?
> function getUSGS($data, $station)
>  {
> $data;
> $content = file($data);
> array_pop($content);
> $current = array_pop($content);
> $newcurrent = explode("\t",$current);
> print("<table border=1 ALIGN=CENTER>");
> print("<tr><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size
> =1>$station</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\"
size
> =1>Station</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\"
size
> =1>Date and Time</Font></td><td bgcolor=\"#CCCCFF\"><Font
Face=\"arial\"
> size =1>Height</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\"
> size
> =1>CFS</Font></td><td bgcolor=\"#CCCCFF\"><Font Face=\"arial\" size
> =1>Temperature</Font></td></tr>");
> print("<tr><td><Font Face=\"arial\"
> size=1>$newcurrent[0]</Font></td><td><Font Face=\"arial\"
> size=1>$newcurrent[1]</Font></td><td><Font Face=\"arial\"
> size=1>$newcurrent[2]</Font></td><td><Font Face=\"arial\"
> size=1>$newcurrent[3]</font></td><td><Font Face=\"arial\"
> size=1>$newcurrent[4]</font></td><td><Font Face=\"arial\"
> size=1>$newcurrent[5]</font></td></tr>");
> print("</table>");
> }
> ?>
> 
> <BODY>
> <FONT FACE="arial" SIZE=2>
> These tables represent real time data from the United States
Geological
> Survey.
> The numbers will change every fifteen minutes to reflect the changes
in
> water temperatures
> and water levels at the following stations in the Delaware River
drainage.
> Optimum water temperatures
> for the following gamefish are listed below.
> <FONT FACE="arial" SIZE=1>
> <TABLE BORDER=0 ALIGN=CENTER>
> <TR><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>B r o w n  T r o u
t
> </FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>R a i n b
o w
> T
> r o u t </FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>S
h a
> d
> </FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial" SIZE=1>S m a l l
m o
> u
> t h  B a s s </FONT></TD><TD BGCOLOR="#FFE4C4"><FONT FACE="arial"
SIZE=1>W
> a
> l l e y e </FONT></TD></TR>
> <TR><TD><FONT FACE="arial" SIZE=1>48 to 62
degrees</FONT></TD><TD><FONT
> FACE="arial" SIZE=1>54 to 68 degrees</FONT></TD><TD><FONT FACE="arial"
> SIZE=1>52 to 66 degrees</FONT></TD><TD><FONT FACE="arial" SIZE=1>67 to
77
> degrees</FONT></TD><TD><FONT FACE="arial" SIZE=1>Below 50
> degrees</FONT></TD></TR>
> <P><BR>
> </TABLE>
> <BR>
> </FONT>
> 
> 
> <?
>
getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_n
o=
> 01
> 427510","Upper Delaware  River at Callicoon, NY");
> print("<P ALIGN=\"CENTER\"><FONT FACE=\"arial\" COLOR=\"red\"
> SIZE=1>Normal
> water levels on the main stem are from 2.7 to 3.2 feet or 600 to 1500
> cfs.<BR></FONT>");
> print("<FONT FACE=\"arial\" COLOR=\"red\" SIZE=1>
> <ALIGN=\"CENTER\">Anglers
> should use caution above 3.3 feet and the river is not wadable at 3.5
feet
> and above.</FONT><BR>");
> 
>
getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_n
o=
> 01
> 426500","W. Br.  Delaware River at Hale Eddy, NY");
> 
>
getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_n
o=
> 01
> 420500","Beaverkill River at  C o o k s F a l l s, NY");
> 
>
getUSGS("http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_n
o=
> 01
> 427500"," C a l l i c o o n  C r e e k  a t  Callicoon, NY");
> ?>
> 
> <FORM NAME="the_form">
> <FONT FACE="arial" SIZE=1> Enter  <b><i>Celsius</b></i>  number
> here:</FONT>
> <INPUT TYPE=="text" NAME="field_one" size="3" > &nbsp;
> <a href = #  onClick="findTheAnswer(); return false;"><FONT
FACE="arial"
> SIZE=1> Click this line to convert to Fahrenheit</A></FONT>
> </FORM>
> 
> <FONT FACE="arial" SIZE =1>Click <A HREF="http://localhost/Map.php";>
> here</A> for Real Time 600 mile Northeast Doppler Radar Map.</FONT>
> <P>
> 
> </BODY>
> </HTML>
>
........................................................................
..
> ..
> ..
> 
> // file:C:/ColorMap.php
> // PHP script to open the .jpg file.
> 
> 
> <?
>
$theURL="http://image.weather.com/web/radar/us_har_closeradar_medium_use
n.
> jp
> g";
> if(!($fp=fopen($theURL, "r")))
>  {
>   print("Could not open the URL.");
>   exit;
>  }
> $contents=fread($fp,1000000);
> print($contents);
> fclose($fp);
> ?>
> 
> ...............................................
> 
> 
> <HTML>
> <HEAD>
> <BODY>
> This is a test.
> <IMG SRC="C:/ColorMap.php">
> </BODY>
> </HTML>
> // This page outputs: This is a test - with a small square and a red x
-
> no
> image of the map.
> ...................................................
> 
> 
> 
> John W. Holmes wrote in message:
> 
> Make another file that has your code in it and sends an image/jpeg
> header. Then insert the image like any other image:
> 
> <img src='yourfile.php'>
> 
> Hope you're not violating any copyrights...
> 
> ---John Holmes...
> ..................................................
> 
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
John,
Thank you.

Such as this?
......................................

<HTML>
<HEAD>
<BODY>
This is a test.
<BR>
<IMG SRC="http://localhost/Map.php";>
</BODY>
</HTML>
..........................................

The output now has both the map and the text.

However - being a novice - I'm not sure of:

> 1. You're not sending an image/jpg header() in your image file. The
> browser won't know what kind of data it's receiving.

and

> 3. Why not just set a *cron* script to run a program to copy the image to
> your machine every X minutes. Then you can just reference it like any
> other image. With the setup you have now, you're going to be using a lot
> more resources because the PHP script will have to go and read that URL
> and make the image with every request.

..........................
Many thanks for your time,
TR
..........................


John W. Holmes wrote in message

> Two things:
>
> 1. You're not sending an image/jpg header() in your image file. The
> browser won't know what kind of data it's receiving.
>
> 2. You need to reference your image in the <img> tag through a web
> server, that way the PHP code is parsed. <img
> src=http://www.yourdomain.com/make_image.php> or even just a relative
> URL to the file
> <img src="images/make_image.php">
>
> okay, one more:
>
> 3. Why not just set a cron script to run a program to copy the image to
> your machine every X minutes. Then you can just reference it like any
> other image. With the setup you have now, you're going to be using a lot
> more resources because the PHP script will have to go and read that URL
> and make the image with every request.
>
> and one more, just because:
>
> 4. I hope you're not violating any copyrights.
>
> ---John Holmes...



--- End Message ---
--- Begin Message ---
Anthony,

A web page that has embedded objects such as images is comprised of 
several different things entirely. Your method was to write the binary 
content that makes up an image in the same place as your HTML. So, you 
will see what looks like garbage, just as you would if you opened an 
image in a text editor.

You embed images in HTML simply by referencing them with the <img> tag. 
A web browser takes care of retrieving images via HTTP, so you don't 
have to worry about it. Just put this in your HTML:

<img 
src="http://image.weather.com/web/radar/us_har_closeradar_medium_usen.jpg";>

Happy hacking.

Chris

Anthony Ritter wrote:

>The following script picks up single .jpg image of a doppler weather map
>from another URL:
>........................................
><?
>$theURL="http://image.weather.com/web/radar/us_har_closeradar_medium_usen.jp
>g";
>if(!($fp=fopen($theURL, "r")))
> {
>  print("Could not open the URL.");
>  exit;
> }
>$contents=fread($fp,1000000);
>print($contents);
>fclose($fp);
>?>
>

--- End Message ---
--- Begin Message ---
Hello,

On 10/11/2002 11:31 AM, Juhan Kundla wrote:
> I am planning to write a small web application using PHP. The
> application has several business classes, which store their persistent data
> in relational database. I don't like the idea of embedding the SQL and
> other data access related code into my classes, so i am looking for a
> abstraction layer, which takes care of the dirty work and my classes
> have only simple methods like save, retrieve and delete.
> 
> I would rather not reinvent the wheel here, so it would be nice, if
> anybody could share her/his experience or suggest some PHP-code for
> this. I have searched web and found nothing very useful so far.

I am working on a project to do exactly that. It is not quite an 
abstraction layer, but rather an component generator. Abstraction layers 
try to be too generic and end up spending more memory and be less 
optimized.

What I am working on is a module for MetaL, a meta-programming engine 
with a modular compiler.

MetaL can generate code from a XML based source code into a many 
different target languages: PHP, Java, Perl, ... It comes with many 
modules to handle different aspects of programming languages: 
programming flow, data types and expressions, object oriented 
programming constructs, etc..

The goal of the component persistence module is to depart from a 
description of a component structure of related classes and generate 
schemas and classes to act as persistence later storing and retrieving 
objects of classes that are mapped to database tables. Below you may see 
an example of a component class definition.

Currently the MetaL persistence layer that I am working on is capable of 
generating schemas defined in a XML format that Metabase database 
abstraction layer is capable of installing.

I will be working on class generating these days. I have not yet a clear 
idea of what it will be capable of in a mature version as I will give 
priority to things I will be needing in the applications where I need to 
use this.

I know that it will generate a factory class for each component that 
will create objects of each of the mapped classes to handle the 
persistence operations.

If you are interested to give your input feel free to join MetaL mailing 
list sending a message to [EMAIL PROTECTED] and tell 
about what you think it is needed.

You may find more information on MetaL here:

http://www.meta-language.net/

<?xml version="1.0" encoding="iso-8859-1"?>
<!--
      @(#) $Id: qa.component,v 1.1 2002/10/11 06:05:26 mlemos Exp $
   -->
<component>
        <name>qa</name>
        <description>Question and answer component</description>

        <class>
                <name>question</name>

                <variable>
                        <name>question</name>
                        <type>text</type>
                </variable>

                <variable>
                        <name>lead</name>
                        <type>text</type>
                </variable>

                <variable>
                        <name>answer</name>
                        <type>text</type>
                </variable>

                <collection>
                        <name>categories</name>
                        <class>category</class>
                        <reference>questions</reference>
                </collection>

                <collection>
                        <name>keywords</name>
                        <class>keywords</class>
                        <reference>questions</reference>
                </collection>

        </class>

        <class>
                <name>category</name>

                <variable>
                        <name>name</name>
                        <type>text</type>
                </variable>

                <variable>
                        <name>description</name>
                        <type>text</type>
                </variable>

                <variable>
                        <name>parent</name>
                        <class>category</class>
                </variable>

                <collection>
                        <name>children</name>
                        <class>category</class>
                        <reference>parent</reference>
                </collection>

                <collection>
                        <name>questions</name>
                        <class>question</class>
                        <reference>categories</reference>
                </collection>

        </class>

        <class>
                <name>keywords</name>

                <variable>
                        <name>words</name>
                        <type>text</type>
                </variable>

                <collection>
                        <name>questions</name>
                        <class>question</class>
                        <reference>keywords</reference>
                </collection>

        </class>

</component>



-- 

Regards,
Manuel Lemos

--- End Message ---
--- Begin Message ---
Probably a question for the php dev team, but here it goes.  I want to
display an external page in an iframe and have the iframe auto sized to fit
the content without having scroll bars.  I've tried javascript to no avail.
So here's my idea:

1.  Instead of iframe: $string = file_get_contents("http://somwhere.com";);
to load page into string and then echo $string; use javascript to detect
onclick, get href of anchor, load page into string and echo again.  Works
O.K. unless there are relative paths in document.

2. What I want to do:  $string = file_get_contents("http://somwhere.com";);
and determine the height that this page ($string) would render in a browser.
Render iframe at determined height with src = "http://somwhere.com";.

Any way in php to determine at what height html content will render???  If
not, should there be?

TIA
-Shawn


--- End Message ---
--- Begin Message ---
No, there isn't, and no, there probably shouldn't be, since the height in pixels that 
the page will render in is dependent on client-side attributes like font size, 
resolution, browser type, etc.

This might be an appropriate function in javascript, but not php.



>Any way in php to determine at what height html content will render???  If
>not, should there be?




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

--- End Message ---
--- Begin Message ---
 I want to convert input data below (either from a webpage form or a uploadedtext 
file) to a set of 
arrays. The final step is to construct SQL statements to be inserted into Postgresql 
db (which i can do).
Anyone got sample scripts that does the 1st part.

ID, Name, Telephone
1, John, 34343534
2,Nancy, 6876767
....
....




TIA
Nyon



--- End Message ---
--- Begin Message ---
Hello,

You can use the fgetcsv() function (for uploaded text files).

  http://www.php.net/manual/en/function.fgetcsv.php

- E

On Saturday, October 12, 2002 2:37 AM
YC Nyon wrote:

> I want to convert input data below (either from a webpage form or
> a uploadedtext file) to a set of arrays. The final step is to construct 
> SQL statements to be inserted into Postgresql db (which i can do).
> Anyone got sample scripts that does the 1st part.
> 
> ID, Name, Telephone
> 1, John, 34343534
> 2,Nancy, 6876767
--- End Message ---
--- Begin Message ---
I am running Apache/PHP with Postgresql. For the past one day, whenever there 
is an error in the php script, instead of reporting the error, the page takes 
forever to load. Normal html pages load properly.

Can someone points me to the right direction on how to fix this.

Best regards

Siva

--- End Message ---
--- Begin Message ---
I was wondering if anyone has tried or would know how to take my mp3
collection listing from SpyAMP (http://spyamp.sf.net) and incorporate it
into my site (which is on a different server and not on my home network)
and have guests be able to download songs assuming I have it running?

I want to change the HTML layout, the order the songs are listed
(alphabetical vs. random, etc.), and have them in categories instead of
being all in one long list.. I don't know if this is possible, but I
figure it wouldn't hurt to ask..

SpyAMP, for those unfamiliar with it, basically sets up a small mp3
server on your local machine and allows anyone who knows your IP address
(or visits the SA server page if you're listed) to download songs if
you've chosen to allow it.. I have no clue where to begin as I'm a php
newbie.. Any ideas, tutorials, code or function names to help me on my
way would be appreciated..

TIA..

Take care.. peace..
eriol


--- End Message ---
--- Begin Message ---
Hello,

I'm probably sleepy because I can't do a very easy query. :(

I have 2 tables TableA(FieldA1, FieldA2, FieldA3) and TableB(FieldB1,
FieldB2, FieldB3).

I'd like to see the TableA records (FieldA2) where the FieldA1(Primary
key) not exist in TableB(FieldB2). I tried "not exists" without success.

Could you help me ?

Christian,

--- End Message ---
--- Begin Message ---
eg
function &A() {......

What does & mean here?
I've the reference seen ,but I still don't understand too much.
Can anyone give me more examples of  Returning References?


--- End Message ---
--- Begin Message ---
I ,beginner of PHP, would like to ask what _\\_ means?

Here's the code:
$fp = @fopen ("a.txt")
while ($buf = @fgets($fp,1024) {
trim($buf)
if (substr($buf,-1 == _\\_) {
.
..

with the above code Two or more lines ended with \ will be joined,
for example,
aaaaaa\
aaaaa

become ,
aaaaaaaaaaa


--- End Message ---

Reply via email to