RE: [PHP] =.jpg from another URL with PHP=

2002-10-12 Thread John W. Holmes

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(trtd bgcolor=\#FF\Font Face=\arial\ size
 =1$station/Font/tdtd bgcolor=\#FF\Font Face=\arial\
size
 =1Station/Font/tdtd bgcolor=\#FF\Font Face=\arial\
size
 =1Date and Time/Font/tdtd bgcolor=\#FF\Font
Face=\arial\
 size =1Height/Font/tdtd bgcolor=\#FF\Font Face=\arial\
 size
 =1CFS/Font/tdtd bgcolor=\#FF\Font Face=\arial\ size
 =1Temperature/Font/td/tr);
 print(trtdFont Face=\arial\
 size=1$newcurrent[0]/Font/tdtdFont Face=\arial\
 size=1$newcurrent[1]/Font/tdtdFont Face=\arial\
 size=1$newcurrent[2]/Font/tdtdFont Face=\arial\
 size=1$newcurrent[3]/font/tdtdFont Face=\arial\
 size=1$newcurrent[4]/font/tdtdFont 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
 TRTD BGCOLOR=#FFE4C4FONT FACE=arial SIZE=1B r o w n  T r o u
t
 /FONT/TDTD BGCOLOR=#FFE4C4FONT FACE=arial SIZE=1R a i n b
o w
 T
 r o u t /FONT/TDTD BGCOLOR=#FFE4C4FONT FACE=arial SIZE=1S
h a
 d
 /FONT/TDTD BGCOLOR=#FFE4C4FONT FACE=arial SIZE=1S m a l l
m o
 u
 t h  B a s s /FONT/TDTD BGCOLOR=#FFE4C4FONT FACE=arial
SIZE=1W
 a
 l l e y e /FONT/TD/TR
 TRTDFONT FACE=arial SIZE=148 to 62
degrees/FONT/TDTDFONT
 FACE=arial SIZE=154 to 68 degrees/FONT/TDTDFONT FACE=arial
 SIZE=152 to 66 degrees/FONT/TDTDFONT FACE=arial SIZE=167 to
77
 degrees/FONT/TDTDFONT FACE=arial SIZE=1Below 50
 degrees/FONT/TD/TR
 PBR
 /TABLE
 BR
 /FONT
 
 
 ?

getUSGS(http://waterdata.usgs.gov/ny/nwis/uv?format=rdbperiod=1site_n
o=
 01
 427510,Upper Delaware  River at Callicoon, NY);
 print(P ALIGN=\CENTER\FONT FACE=\arial\ COLOR=\red\
 SIZE=1Normal
 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./FONTBR);
 

getUSGS(http://waterdata.usgs.gov/ny/nwis/uv?format=rdbperiod=1site_n
o=
 01
 426500,W. Br.  Delaware River at Hale Eddy, NY);
 

getUSGS(http://waterdata.usgs.gov/ny/nwis/uv?format=rdbperiod=1site_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=rdbperiod=1site_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  biCelsius/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 =1Click A HREF=http://localhost/Map.php;
 here/A for Real Time 600 mile Northeast Doppler Radar Map./FONT
 P
 
 /BODY

Re: [PHP] =.jpg from another URL with PHP=

2002-10-12 Thread Chris Shiflett

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,100);
print($contents);
fclose($fp);
?



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




RE: [PHP] simple array in mysql

2002-10-12 Thread John W. Holmes

 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. 

Butthe 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...



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




[PHP] simple array in mysql

2002-10-12 Thread tim tom

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

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




[PHP] PHP caching ideas?

2002-10-12 Thread Hans Himmel

Hello there,

How do most people here create their caching logic for PHP scripts? The 
problem is that most PHP scripts have some part of the page that is unique 
to each request (let it be current time, e-mail list in an e-mail reading 
application, session IDs on some servers, or whatever).

Is the general logic to slice the page into some general pieces. For example 
ones that have always general data and those that change. Then the ones that 
don't change are streamed to the user using passthrough and the rest of the 
page is generated dynamically with the newest relevant data.

Or are there any other good ideas to solve PHP caching problems?

Thanks,
Hans

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




[PHP] Convert comma-delimited file or form into arrays

2002-10-12 Thread YC Nyon

 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






[PHP] Re: Odd request

2002-10-12 Thread Noodle Snacks


Shawn McKenzie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 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?

Probably Not. It depends on the UA completly. eg screen res, font size,
browser incompatibilty etc...

Why the iframe? couldn't you just include/fopen it?


--
JJ Harrison
[EMAIL PROTECTED]



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




Re: [PHP] An small SQL problem

2002-10-12 Thread Davy Obdam

Hi Christian,

I am not 100% sure cos i am doing this from my head but your SELECT 
query would have to look like this:

SELECT TableA.FieldA2 FROM TableA, TableB WHERE TableA.FieldA1 != 
TableB.FieldB2

btw. Wouldn`t be easier to use more informative Table and Field names..?
Hope it works,

Best regards,

Davy Obdam
mailto:[EMAIL PROTECTED]

Christian Ista wrote:

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,


  




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




[PHP] Re: Object-relational mapping and PHP

2002-10-12 Thread Manuel Lemos

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
nameqa/name
descriptionQuestion and answer component/description

class
namequestion/name

variable
namequestion/name
typetext/type
/variable

variable
namelead/name
typetext/type
/variable

variable
nameanswer/name
typetext/type
/variable

collection
namecategories/name
classcategory/class
referencequestions/reference
/collection

collection
namekeywords/name
classkeywords/class
referencequestions/reference
/collection

/class

class
namecategory/name

variable
namename/name
typetext/type
/variable

variable
namedescription/name
typetext/type
/variable

variable
nameparent/name
classcategory/class
/variable

collection
namechildren/name
classcategory/class
referenceparent/reference
/collection

collection
namequestions/name
classquestion/class
referencecategories/reference
/collection

/class

class
namekeywords/name

variable
namewords/name
typetext/type
/variable

collection
namequestions/name
classquestion/class
referencekeywords/reference
/collection

/class

/component



-- 

Regards,
Manuel Lemos


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




Re: [PHP] WinAMP Plugin Question

2002-10-12 Thread Andrew Brampton

You could create a PHP script on your webserver that pulls the info from
your machine, parses it and then re-displays it in the way you like. This
way people won't actually know your IP,. and all the processsing will be
done on your webserver. If you want to allow them to download your MP3s, you
can either do it via your webserver, it just let your webserver link
straight to your SpyAmp page.

Andrew
- Original Message -
From: eriol [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 12, 2002 8:06 AM
Subject: [PHP] WinAMP Plugin Question


 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



 --
 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] An small SQL problem

2002-10-12 Thread Brad Bulger


what database are you using? because the answer is different, depending.

on postgres, for example, which supports subselects, you can do

select * from TableA where FieldA1 not in (select FieldB2 from TableB)

with mysql, there are no subselects, so you'd have to do something like

select TableA.*, TableB.FieldB1
from TableA left join TableB on TableA.FieldA1 = TableB.FieldB1
having FieldB1 is null

PS the one thing that for sure will not work is

select TableA.* from TableA, TableB where TableA.FieldA1 != TableB.FieldB2

that will just give you a cartesian product, returning a copy of
every row in TableA for every row in TableB that doesn't match its key

On Sat, 12 Oct 2002, Christian Ista wrote:

 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,


 --
 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] =.jpg from another URL with PHP=

2002-10-12 Thread Anthony Ritter

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...




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




Re: [PHP] Convert comma-delimited file or form into arrays

2002-10-12 Thread @ Edwin

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

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




Re: [PHP] fgetcsv or other

2002-10-12 Thread @ Edwin

Hello,

Just remember that fgetcsv() returns an array. So the first column is

  $thearray[0];

You can just pass it to the function that generates the image BEFORE you go
to the next line of your csv file.

Or, am I missing something?

- E

On Saturday, October 12, 2002 2:05 AM
Bryan Koschmann wrote:

 Hi,

 I need to read from a csv file (with quotes). I use the example from the
 manual, and it does spit it out how I want it, but I need to access one of
 the fields and pass that data to something else.

 So it's like this, I need my csv file to be displayed in a table, but the
 last column will contain an image generate using data from the first
 column.

 Does anyone have any examples? I've been searching the net, but haven't
 really found much.

 Thanks!

 Bryan


 --
 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] a Question of Returning References

2002-10-12 Thread Ns_Andy

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?



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




Re: [PHP] upgrade problems

2002-10-12 Thread Brad Bonkoski

http://www.php.net/manual/sv/printwn/language.variables.predefined.php
-or this-
quote from the docs
In PHP 4.2.0 and later, the default value for the PHP directive register_globals
is off. This is a major change in PHP. Having
 register_globals off affects the set of predefined variables available in the
global scope. For example, to get DOCUMENT_ROOT you'll
 use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the
URL
 http://www.example.com/test.php?id=3 instead of $id, or $_ENV['HOME'] instead of
$HOME.
/quote


Brad Bonkoski wrote:

 This should be a FAQ!
 I would say it would point to register globals being turned off in php.ini for
 the newer versions of php.

 check this pages for more information:
 http://www.php.net/manual/en/security.registerglobals.php
 -Brad

 abw wrote:

  This week we upgraded our solaris 8 server using apache 1.3.27 from php
  4.1.2 to 4.2.3, and it seemed to install fine. The strange thing is that
  most all php web pages appear, but the code does not work. For example, our
  support section heavily uses php, and nothing at all was changed on it, yet
  clicking any link takes you right back to the main page instead of the
  appropriate support page.
  Also, a customer that has a php page calling a mysql database suddently quit
  working. These all worked fine before the upgrade, and like I say, none of
  the web pages have been changed at all.
 
  I didn't find anything in the archives.
 
  Has anybody else experienced this? I assumed 4.1.2 to 4.2.3 should be a
  seamless upgrade for all web pages, but apparently not.
 
  I can't find anything helpful in the log files either.
 
  Suggestions?
 
  Aaron
 
  --
  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] Boolean Search Interpreter

2002-10-12 Thread SpamSucks86

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!




[PHP] Re: upgrade problems

2002-10-12 Thread abw

Thanks Brad! Dead on! 

Unfortunately, after the upgrade, the old php.ini was not saved, so I 
couldn't compare what the former employee changed in there. I turned that 
option on, restarted apache, and it worked. 

Aaron 

 This should be a FAQ!
 I would say it would point to register globals being turned off in php.ini for
 the newer versions of php. 
 
 check this pages for more information:
 http://www.php.net/manual/en/security.registerglobals.php
 -Brad 
 
 abw wrote: 
 
 This week we upgraded our solaris 8 server using apache 1.3.27 from php
 4.1.2 to 4.2.3, and it seemed to install fine. The strange thing is that
 most all php web pages appear, but the code does not work. For example, our
 support section heavily uses php, and nothing at all was changed on it, yet
 clicking any link takes you right back to the main page instead of the
 appropriate support page.
 Also, a customer that has a php page calling a mysql database suddently quit
 working. These all worked fine before the upgrade, and like I say, none of
 the web pages have been changed at all. 

 I didn't find anything in the archives. 

 Has anybody else experienced this? I assumed 4.1.2 to 4.2.3 should be a
 seamless upgrade for all web pages, but apparently not. 

 I can't find anything helpful in the log files either. 

 Suggestions? 

 Aaron 

 --
 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] what does _\\_ mean?

2002-10-12 Thread Ns_Andy

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,
aa\
a

become ,
aaa



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




[PHP] An small SQL problem

2002-10-12 Thread Christian Ista

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,


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




[PHP] XML-RPC

2002-10-12 Thread jacob

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


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




Re: [PHP] Best Forum System

2002-10-12 Thread Jason Reid

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 webthe 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
 



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




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

2002-10-12 Thread php-general-digest-help


php-general Digest 12 Oct 2002 11:18:03 - 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]


--

---BeginMessage---

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---
---BeginMessage---

-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 webthe 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---
---BeginMessage---

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 webthe 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---
---BeginMessage---

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]

RE: [PHP] Mysql not functioning after upgrade to 4.2.3

2002-10-12 Thread Timothy Hitchens

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


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




[PHP] Mysql not functioning after upgrade to 4.2.3

2002-10-12 Thread Jeff Schwartz


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


[PHP] PHP not reporting errors, but hangs!!

2002-10-12 Thread Siva Kumar

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


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




[PHP] How to navigate backwards in PHP ???

2002-10-12 Thread -[ Rene Brehmer ]-

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




[PHP] Odd request

2002-10-12 Thread Shawn McKenzie

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



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




Re: [PHP] Best Forum System

2002-10-12 Thread Paul Nicholson

-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 webthe 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 webthe 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-

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




RE: [PHP] Odd request

2002-10-12 Thread Smith, Benjamin

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


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




Re: [PHP] Re: upgrade problems

2002-10-12 Thread Brad Bonkoski

No Problem...

Of course it may be wise to set something up on a back-up/non-production type
machine to not rely on that variable (register globals=on) as it is a security
risk!  Anyone can set variables via HTTP information that could cause some problems
with your code.  With the option off you will have more control over what your
variables are set to.
Just some food for thought...
-Brad

abw wrote:

 Thanks Brad! Dead on!

 Unfortunately, after the upgrade, the old php.ini was not saved, so I
 couldn't compare what the former employee changed in there. I turned that
 option on, restarted apache, and it worked.

 Aaron

  This should be a FAQ!
  I would say it would point to register globals being turned off in php.ini for
  the newer versions of php.
 
  check this pages for more information:
  http://www.php.net/manual/en/security.registerglobals.php
  -Brad
 
  abw wrote:
 
  This week we upgraded our solaris 8 server using apache 1.3.27 from php
  4.1.2 to 4.2.3, and it seemed to install fine. The strange thing is that
  most all php web pages appear, but the code does not work. For example, our
  support section heavily uses php, and nothing at all was changed on it, yet
  clicking any link takes you right back to the main page instead of the
  appropriate support page.
  Also, a customer that has a php page calling a mysql database suddently quit
  working. These all worked fine before the upgrade, and like I say, none of
  the web pages have been changed at all.
 
  I didn't find anything in the archives.
 
  Has anybody else experienced this? I assumed 4.1.2 to 4.2.3 should be a
  seamless upgrade for all web pages, but apparently not.
 
  I can't find anything helpful in the log files either.
 
  Suggestions?
 
  Aaron
 
  --
  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] Mysql not functioning after upgrade to 4.2.3

2002-10-12 Thread Timothy Hitchens

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


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




[PHP] Re: How to navigate backwards in PHP ???

2002-10-12 Thread Shawn McKenzie

$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...



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




[PHP] Re: How to navigate backwards in PHP ???

2002-10-12 Thread Anup

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...



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




Re: [PHP] Best Forum System

2002-10-12 Thread Paul Nicholson

-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 webthe 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




Re: [PHP] Best Forum System

2002-10-12 Thread Jeff Lewis

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



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




[PHP] WinAMP Plugin Question

2002-10-12 Thread eriol

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



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




[PHP] Best Forum System

2002-10-12 Thread Stephen

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


Re: [PHP] Best Forum System

2002-10-12 Thread Stephen

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 webthe 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