Re: [PHP] LDAP + Exchange

2002-11-08 Thread .: B i g D o g :.
That is the truth...i cant even imagine allowing user to edit
information on the exchange server...its so vulnerable anyways...

I highly recommend that you DO NOT allow users to edit info on your
exchange server...



On Fri, 2002-11-08 at 20:36, Marco Tabini wrote:
 i have never done this, there are some serious risks to exchange if you
 do this...
 
 Yea, it's dangerous to let Microsoft software come into contact with
 something that actually works... :-)
 
 Sorry, had to come up with my stupid joke of the day.
 
 
 

 From: .: B i g D o g :. [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] LDAP + Exchange
 Date: 08 Nov 2002 13:41:33 +
 
 I followed the instructions for ldap used the windows nt username and
 password to bind to the exchange ldap server.
 
 Then you can allow them to change their attributes...i have never done
 this, there are some serious risks to exchange if you do this...
 
 
 On Fri, 2002-11-08 at 20:39, Raceeend wrote:
  Well i need to give some users access
  to user attributes of exchange to change these.
  
  
  
  
  
  .: B I G D O G :. wrote:
   Yes, what are you looking for...
   
   On Fri, 2002-11-08 at 19:58, Raceeend wrote:
   
  Hello,
  
  Has anybody tried to connect to Exchange via LDAP?
  
  Because i would like some examples of this.
  
  kind regards,
  Martijn
  
  
  -- 
  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
 -- 
 .: B i g D o g :.
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
-- 
.: B i g D o g :.



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




RE: [PHP] Convince teh boss

2002-11-07 Thread Brendon G
In the end it think comes down to use what you know best..

Php vs ASp vs JSp vs .Net

consider your budget, clients needs, bosses needs, future needs etc.
I came to Php as .Net came in.  I really like Php, i also really like ASP.

I learnt ASP first because my job required it, we had a IIS server already.

There all just tools to me, used to implement the best solutions for myself
or my clients in minimal time for minimal cost.

You mind find convincing your boss with $$$ easier.  Then again i know what
you mean about Bandwagon Bosses and there fellow MBM (management by
magazine)types.

Cheers

Brendon


-Original Message-
From: John Nichel [mailto:jnichel;by-tor.com]
Sent: Thursday, November 07, 2002 5:59 PM
To: Evan Nemerson
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Convince teh boss


Nice list.  I might be able to put it to work for me.  BTW, if you want,
you can add my site as a LAMP site (of course, as small as it is
compared to the sites you have listed, you may not want too :)

http://www.by-tor.com

Evan Nemerson wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Okay, it took me a long (expletive deleted) time, so I figured I should
share.
 Here is a list of popular web sites running Apache, PHP, MySQL, and Linux.
If
 there are any errors, I apologize. This is not meant to be a definitive
work.
 In fact, I wasn't even planning on posting it... until i looked at the
clock
 ;)

 This list is designed to convice teh boss (no type-o). If your boss is a
 bandwagon kind of guy, afraid to take risks, this is for you- er- him. And
 you. Him in that he can read it, you in that if he accepts LAMP, you're
life
 will be a much more joyous existance ;)



 - 
 Apache:

 By far the most popular web server, with 60.54% market share. Its
 closest competitor, Microsoft's IIS, has 28.89%. If all variants of
 each server are counted, Apache's install base increases to 62.17%,
 while IIS manages 29.42%). Statistics are from
 http://www.netcraft.net/survey

 Apache users:
 Yahoo!
 Amazon.com
 AltaVista
 BBC
 mp3.com
 SlashDot
 HP
 W3C
 IBM
 Verizon
 FEMA
 Infoseek


 PHP:

 In April 2002, PHP overtook ASP as the #1 server-side scripting
 language on the internet. In April, PHP was used by 24% of the
 sites on the Internet. Over the past two years PHP has averaged
 a 6.5% monthly growth rate. Source: zend.com/news/zendpr.php?id=49

 PHP users:
 Cisco
 CMG
 Vodafone
 Motorola
 Siemens
 Ericsson
 CBS
 Unilever
 Philips
 BMC
 NTT
 Air Canada
 Lufthansa
 OnVista
 Lycos Europe
 Deutsche Bank
 NASA
 W3C


 MySQL:

 It isn't as easy to determine which database a site uses, but here
 is a list of sites that do use MySQL, according to MySQL.com:

 Yahoo! Finance
 Texas Instruments
 U.S. Census Bureau
 NASA
 Omaha Steaks
 Slashdot
 Cross Media Marketing Corp
 Powell's Books
 Department of Academic Information Systems
 Avacom Net Services
 Blue World Communications
 CoreSense
 Ericsson
 handy.de
 mobile.de
 Nemo-Q
 Silicon Storage Technology, Inc.
 Virage


 Linux:

 I can't find a list for this... I figured these out by trying big
 sites that came to mind. I didn't encounter a single Microsoft site,
 but I did get a few *BSD sites, and several Solaris sites.

 FBI
 Google
 Amazon
 AltaVista
 Slashdot
 Verizon
 FEMA
 CNN


 Security:

 Here's a list of security companies/groups that run any LAMP component:
 Security Focus(LA)
 Symantec  (L)
 CERT  (LA)
 Packet Storm  (A)
 FBI   (L)
 OSVDB (LA)
 At Stake  (LA)
 Netcraft  (LA)
 TESO  (L)
 Phenoelit (LA)
 Doxpara   (LAP)
 NGS Software  (LAMP)
 PivX  (LAP)
 Grey Magic(LAMP)
 Phrack(AP)
 ***
 It should be noted that just because a component doesn't appear in the
list
 doesn't mean it's not running. The only way I could figure out MySQL was
 sending
 a SYN to TCP/3306. If I got a SYN|ACK, I put an M. MySQL could be (should
be)
 firewalled off, and infosec people know this. Also, infosec people tend to
 play
 with banners (hehe look @ TESO's - teso.scene.at), so it's entirely
possible
 they're hiding something...

 Out of all the infosec sites I tried, I managed to find two Microsofts:
NAI
 and
 Verisign. I didn't bother with ntbugtraq, windowssecurity, etc- then
again, I
 didn't bother with linuxsecurity, root prompt, etc. Only went with groups
who
 pay
 attention to all OS's... Phrack and OSVDB are a little biased, but they
are
 still
 cross-platform.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.7 (GNU/Linux)

 iD8DBQE9ygtO/rncFku1MdIRAmQpAJ9d+KkYSLhMriuZtI9jsjp3CAmZrACfaWJK
 Tf0R0hEMSICjAi6v9nz67GU=
 =Jj3Q
 -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: 

Re: [PHP] regular expression and exact word search...

2002-11-07 Thread .: B i g D o g :.
Which functions are you using to do the regex stuff...

That might help...also check out...



On Thu, 2002-11-07 at 15:42, BAROILLER Pierre-Emmanuel wrote:
 Hi!
 
 does someone know how to find an exact word in a content with html tags ?
 I'm using a regexp like this :
 
 $searchRegEx = '\b.$word_search.\b'msi;
 
 to get boundary word results, but... if the searched word is  like 'word or
 word. or anything else, the
 regular expression doesn't work..
 
 if I remove the \b , I've got all words ( but without bound...)
 
 Any idea?
 (the big problem is I'm higlighting found sentences, and .. if the searched
 word is part of an html tag, it's very auwfull... )
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] regular expression and exact word search...

2002-11-07 Thread .: B i g D o g :.
This should help u out...

http://www.php.net/manual/en/pcre.pattern.modifiers.php



On Thu, 2002-11-07 at 18:29, BAROILLER Pierre-Emmanuel wrote:
 I work with
   preg_match_all to get all matching words
 and preg_replace_callback to replace found sentences...
 
 before runing the php pass, I take results from a mysql table
 with a query like this : select * from mytable where content REGEXP
 '[[::]]theword[[::]]
 
 But... I can't get all entry where words is in...
 
 
 .: B I G D O G :. [EMAIL PROTECTED] a écrit dans le message de news:
 [EMAIL PROTECTED]
  Which functions are you using to do the regex stuff...
 
  That might help...also check out...
 
 
 
  On Thu, 2002-11-07 at 15:42, BAROILLER Pierre-Emmanuel wrote:
   Hi!
  
   does someone know how to find an exact word in a content with html tags
 ?
   I'm using a regexp like this :
  
   $searchRegEx = '\b.$word_search.\b'msi;
  
   to get boundary word results, but... if the searched word is  like 'word
 or
   word. or anything else, the
   regular expression doesn't work..
  
   if I remove the \b , I've got all words ( but without bound...)
  
   Any idea?
   (the big problem is I'm higlighting found sentences, and .. if the
 searched
   word is part of an html tag, it's very auwfull... )
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  --
  .: B i g D o g :.
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




RE: [PHP] publishing php mysql website on cd-rom

2002-11-07 Thread .: B i g D o g :.
This is where xml and xsl come in handy...you could have all the pages
outputed to xml format and then use xslt to transform to html.

Then you could do it all on the fly, and each month create a new cd with
all the html files...



On Thu, 2002-11-07 at 18:29, Roger Lewis wrote:
 Personally, I like the idea of a static site.  I have a dynamic,
 database-driven site that handles documentation for an engineering project.
 When the project is over, I would like to archive the entire site, including
 the database and all document directories, onto a static, html-only, CD.
 Has anyone done this?  Can it be done other than by separately displaying
 and saving each page as an html page, and then manually creating the links?
 
 Roger Lewis
 
 
 
 On Wednesday, November 06, 2002 1:51 AM, BigDog replied
 To: ROBERT MCPEAK
 
 BD That is going to be very hard to do...you might want to look at doing it
 BD all static...however, what are u going to do about the database
 BD connections...
 
 BD IMHO, i would take the php site and make it static and then put it on a
 BD CD-ROM...it might be out of date, however, it might be the fastest way
 BD for ya.
 
 BD Do you want them to access your site from the CD-ROM pages?
 
 BD You could create special pages on your site that the CD-ROM pages call.
 BD But that would require the user of the disc to have internet access.
 
 BD But running PHP from a cd-rom will probably not work unless you are
 BD doing some commandline cgi stuff...and i dont even want to think how
 BD that would work for ya...
 
 BD i would probably do something where static html pages pull data from
 BD your site...
 
 BD HTH...
 
 
 On Wed, 2002-11-06 at 16:44, ROBERT MCPEAK wrote:
  My organization has a need to publish some of our web content on a CD-ROM.
 I'm in search of suggestions on how to publish our dynamic content
 (php/mysql templates) in some sort of runtime configuration that would let
 users browse the site from cd.
 
  What's involved with this?  Is there such a thing as runtime mySQL?  What
 would it take to serve PHP from a CD?
 
  Help!  I don't know where to begin and am looking for advice.
 
  Thanks,
 
  Bob
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 --
 .: B i g D o g :.
 
 
 
 --
 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
-- 
.: B i g D o g :.



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




Re: [PHP] specifying different port for db connections

2002-11-07 Thread .: B i g D o g :.
Not a big mssql guy but if i remember correctly that should be set in
your interfaces file...but a valid server name should be used and that
is checked in the interfaces file...



On Thu, 2002-11-07 at 20:12, heath boutwell wrote:
 Attempting to access remote db (SQL Server) how do you specify the port?
 
 I've tried everything in the hostname paramater of mssql_connect but nothing
 seems to work. ie none of the following:
 
 MSSQL_CONNECT(192.168.10.1,2461,$username,$password) or DIE(DATABASE FAILED
 TO RESPOND.);
 
 or
 
 MSSQL_CONNECT(192.168.10.1:2461,$username,$password) or DIE(DATABASE FAILED
 TO RESPOND.);
 
 or
 
 MSSQL_CONNECT(192.168.10.1;2461,$username,$password) or DIE(DATABASE FAILED
 TO RESPOND.);
 
 
 Thanks
 
 __
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive greatest hits videos
 http://launch.yahoo.com/u2
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] Getting Newest

2002-11-07 Thread .: B i g D o g :.
Why cant u do a query with some subselects and verify the date from each
one or do three queryies for the newest one and then compare them with
each other...

Should be relatively simple...


However, it would be better if the date where a timestamp...MHO



On Wed, 2002-11-06 at 21:10, Stephen wrote:
 I have three tables with certain content in each that's added almost daily. I want 
to get the most recent, out of those three tables, and then display it. How would I 
do that without changing the structure of my tables? (My current structure is this: 
id, date, name, text)
 
 Thanks,
 Stephen Craton
 http://www.melchior.us
 
 Life is a gift from God. Wasting it is like destroying your favorite item you 
received from the person you love most. -- www.melchior.us
-- 
.: B i g D o g :.



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




Re: [PHP] php

2002-11-07 Thread .: B i g D o g :.
If you compiled php with apache then you need to restart apache
(DSO)...if you compiled php into apache as a module that is not dynamic
then you need to recompile apache with the new php...

Most likely you are using php as a DSO and all you need to do is restart
apache...



On Thu, 2002-11-07 at 21:02, dk1eng wrote:
 hi there,
 I just compiled a new version of php.
 How do i tell apache to stop using my old version and start using the 
 new one?
 peace dimitris
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] php

2002-11-07 Thread .: B i g D o g :.
It depends if you are compiling php as a DSO for apache...then no you
just restart apache...

if php is not a DSO then yes u need to recompile php...


On Thu, 2002-11-07 at 21:10, dk1eng wrote:
 i'm in a fresh install of redhat 8 and downloaded and compiled php4.2.3.
 Do i need to recompile apache? and if yes how?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] specifying different port for db connections

2002-11-07 Thread .: B i g D o g :.
Actually the remote file is used if you are trying to connect to a
remote system.  Sybase uses remote files and that is how it works...i
know oracle does a similar way of connecting...

IMHO, i would look into the interface file and change it there...



On Thu, 2002-11-07 at 21:55, heath boutwell wrote:
 
 --- .: B i g D o g :. [EMAIL PROTECTED] wrote:
  Not a big mssql guy but if i remember correctly that should be set in
  your interfaces file...but a valid server name should be used and that
  is checked in the interfaces file...
  
 
 I think the interfaces file is only used if you are accessing sql server from
 the same machine.
 
 In this case, I am attempting to connect remotely.
 
 Hard to believe that changing the connection port would be such a mystery but
 nothing I've read or tried seems to work.
 
 Thanks
 
 __
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive greatest hits videos
 http://launch.yahoo.com/u2
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




RE: [PHP] publishing php mysql website on cd-rom

2002-11-07 Thread .: B i g D o g :.
You can do a search on google for php and xml and xslt...i wrote a
series of articles on it at phpbeginner.com

http://www.phpbeginner.com/columns/ray/xml

that should get you started...



On Thu, 2002-11-07 at 22:26, Roger Lewis wrote:
 This sounds pretty good, but I know absolutely nothing about xml or xsl.
 Any literature, articles, links, or other resources you know of that could
 point me in the right direction.  This would be worth researching.
 Roger
 
 -Original Message-
 From: .: B i g D o g :. [mailto:bigdog;venticon.com]
 Sent: Thursday, November 07, 2002 5:15 AM
 To: Roger Lewis
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] publishing php  mysql website on cd-rom
 
 This is where xml and xsl come in handy...you could have all the pages
 outputed to xml format and then use xslt to transform to html.
 
 Then you could do it all on the fly, and each month create a new cd with
 all the html files...
 
 
 
 On Thu, 2002-11-07 at 18:29, Roger Lewis wrote:
  Personally, I like the idea of a static site.  I have a dynamic,
  database-driven site that handles documentation for an engineering
 project.
  When the project is over, I would like to archive the entire site,
 including
  the database and all document directories, onto a static, html-only, CD.
  Has anyone done this?  Can it be done other than by separately displaying
  and saving each page as an html page, and then manually creating the
 links?
 
  Roger Lewis
 
 
 
  On Wednesday, November 06, 2002 1:51 AM, BigDog replied
  To: ROBERT MCPEAK
 
  BD That is going to be very hard to do...you might want to look at doing
 it
  BD all static...however, what are u going to do about the database
  BD connections...
 
  BD IMHO, i would take the php site and make it static and then put it on
 a
  BD CD-ROM...it might be out of date, however, it might be the fastest way
  BD for ya.
 
  BD Do you want them to access your site from the CD-ROM pages?
 
  BD You could create special pages on your site that the CD-ROM pages
 call.
  BD But that would require the user of the disc to have internet access.
 
  BD But running PHP from a cd-rom will probably not work unless you are
  BD doing some commandline cgi stuff...and i dont even want to think how
  BD that would work for ya...
 
  BD i would probably do something where static html pages pull data from
  BD your site...
 
  BD HTH...
 
 
  On Wed, 2002-11-06 at 16:44, ROBERT MCPEAK wrote:
   My organization has a need to publish some of our web content on a
 CD-ROM.
  I'm in search of suggestions on how to publish our dynamic content
  (php/mysql templates) in some sort of runtime configuration that would
 let
  users browse the site from cd.
  
   What's involved with this?  Is there such a thing as runtime mySQL?
 What
  would it take to serve PHP from a CD?
  
   Help!  I don't know where to begin and am looking for advice.
  
   Thanks,
  
   Bob
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  --
  .: B i g D o g :.
 
 
 
  --
  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
 --
 .: B i g D o g :.
 
-- 
.: B i g D o g :.



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




Re: [PHP] Listing a few words from one sentence ??

2002-11-07 Thread .: B i g D o g :.
perl regex to find the ones you want and then print them out...

or you could explode then string and put each word in to one array and
access the word by the array index...

Example: 

$words = explode(  , $sentence );

for( $i = 0; $i  4; $i++ )
{
echo {$words[$i]};
}



On Thu, 2002-11-07 at 22:29, conbud wrote:
 Say I have a sentence that contains 8 words, how do I get PHP to list just 4
 of those 8 words ?
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] specifying different port for db connections

2002-11-07 Thread .: B i g D o g :.
Which database are you using? 
MSSQL is what you said in your first email...

Here is the information from php:

Description
int mssql_connect ( [string servername [, string username [, string
password]]])

Returns: A positive MS SQL link identifier on success, or FALSE on
error.

mssql_connect() establishes a connection to a MS SQL server. The
servername argument has to be a valid servername that is defined in the
'interfaces' file. -- this is what i am referring too


In case a second call is made to mssql_connect() with the same
arguments, no new link will be established, but instead, the link
identifier of the already opened link will be returned.





On Thu, 2002-11-07 at 23:02, heath boutwell wrote:
 
 --- .: B i g D o g :. [EMAIL PROTECTED] wrote:
  Actually the remote file is used if you are trying to connect to a
  remote system.  Sybase uses remote files and that is how it works...i
  know oracle does a similar way of connecting...
  
  IMHO, i would look into the interface file and change it there...
 
 There is no interface file on the system utilizing php.
 
 Using MySQL, you can set the mysql.default_port configuration option to specify
 the port you wish mysql_connect to use.
 
 There should be a way to do this in the via the host paramater in the
 connection string.
 
 Thanks
 
 
 
 __
 Do you Yahoo!?
 U2 on LAUNCH - Exclusive greatest hits videos
 http://launch.yahoo.com/u2
-- 
.: B i g D o g :.



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




RE: [PHP] Graphics question

2002-11-07 Thread Brendon G
If it's just the browser caching are you able to use something like
graph.jpg?cachebust=something random here like a datetime or something.

I'm not familiar with the way your doing it.. but I guess it has to be given
a name to the browser somewhere doesn't it?

I use this on pages and images as well as headers for things that must not
be cached.

Cheers

Brendon

-Original Message-
From: Mike Mannakee [mailto:mike;basementideas.com]
Sent: Friday, November 08, 2002 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Graphics question


Jeez, this is simple.  The browser is caching the image.  There's no real
way to fix that.  There are some headers that may encourage the browser to
not cache, but there is no sure way to control whether the users will have
this setting overridden.

imagedestroy($pic); is only freeing the memory used on the server while the
script is executing.  It's nice if you're doing a whole bunch of processing
after generating the image but otherwise the memory is automatically freed
when the script exits.  It will do nothing to affect the copy that now sits
in the browser's cache.

In other words, you'll just have to hit reload.

You can also search for specifics of the headers that are meant to stop a
browser from caching.

Mike


@ Darwin [EMAIL PROTECTED] wrote in message
news:ELEJIJLJOIJKFAHADGOMGEBHCBAA.superbus22;attbi.com...
 The reason imagedestroy() may have not worked for you is that maybe
 imagedestroy() is misspelled? If you misspelled it in the code then it
won't
 work. Just a suggestion.

 - Darwin

  -Original Message-
  From: Robbert van Andel [mailto:robbert;vafam.com]
  Sent: Thursday, November 07, 2002 9:30 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Graphics question
 
 
  I have created a webpage that builds a table and graph using the GD
  functions.  When I switch to another page or select a different month to
  build the table for, the graph.jpg does not rebuild.  I have to press
  reload to make the graph render using the new data.  I have used
  imagedistroy($pic) in the hopes that this will work, but it didn't.
 
  To elaborate on the situation, I first call imagecreate, then run the
  code to create the bar graph.  I then use
 
  imagejpg($pic,$graphname) (or something ot that affect.  I don't have
  access to the code at home).
 
  I then show the picture using
 
  echo img src=\$graph\;
 
  Finally I call imagedestroy($pic).   Do you have any suggestions?
 
 
 
 
  --
  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] How-to instal GD libary

2002-11-07 Thread .: B i g D o g :.
You need to download the php-version.zip file that contains all of the
extensions in it...

there is the php_gd.dll and php_gd2.dll that you will need to put in
your path...

Then in your php.ini file you need to uncomment that dll out so that it
can be loaded by php...



On Thu, 2002-11-07 at 23:08, Davy Obdam wrote:
 Hi people,.
 
 Can anyone tell me how to install the GD libary. I use Apache 2.0.40 and
 PHP 4.2.3 on a windows XP machine at home. Thanks already
 
 Best regards,
 
 Davy Obdam
 mailto:info;davyobdam.com 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




RE: [PHP] How-to instal GD libary

2002-11-07 Thread .: B i g D o g :.
Is c:\program files\PHP\extensions in your path...

if not then i would add it...also make sure to edit your php.ini file so
that it loads when php is fired up...


On Thu, 2002-11-07 at 23:20, Davy Obdam wrote:
 Hi B i g D o g ,
 
  You need to download the php-version.zip file that contains 
  all of the extensions in it...
 
 Yep i have installed PHP as a apache module(SAPI)
 
  
  there is the php_gd.dll and php_gd2.dll that you will need to 
  put in your path...
 
 Where do i move the php_gd.dll and php_gd2.dll files to? There now in
 C:\Program Files\PHP\extensions. Is that right? I gues not because i get
 an error if i try this. Do i need copy these files to another directory?
 
  
  Then in your php.ini file you need to uncomment that dll out 
  so that it can be loaded by php...
 
 
 Thanks for your help;-)
 
 Best regards,
  
 Davy Obdam
 mailto:info;davyobdam.com
 
 
-- 
.: B i g D o g :.



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




Re: [PHP] publishing php mysql website on cd-rom

2002-11-06 Thread .: B i g D o g :.
That is going to be very hard to do...you might want to look at doing it
all static...however, what are u going to do about the database
connections...

IMHO, i would take the php site and make it static and then put it on a
CD-ROM...it might be out of date, however, it might be the fastest way
for ya.

Do you want them to access your site from the CD-ROM pages?

You could create special pages on your site that the CD-ROM pages call. 
But that would require the user of the disc to have internet access.

But running PHP from a cd-rom will probably not work unless you are
doing some commandline cgi stuff...and i dont even want to think how
that would work for ya...

i would probably do something where static html pages pull data from
your site...

HTH...


On Wed, 2002-11-06 at 16:44, ROBERT MCPEAK wrote:
 My organization has a need to publish some of our web content on a CD-ROM.  I'm in 
search of suggestions on how to publish our dynamic content (php/mysql templates) in 
some sort of runtime configuration that would let users browse the site from cd.
 
 What's involved with this?  Is there such a thing as runtime mySQL?  What would it 
take to serve PHP from a CD?
 
 Help!  I don't know where to begin and am looking for advice.
 
 Thanks,
 
 Bob 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] array()

2002-11-05 Thread .: B i g D o g :.
Try this...

$test_arr = test_func( $param1, $param2 )

echo $test_arr;


On Tue, 2002-11-05 at 18:01, Francisco Vaucher wrote:
 Hi people,
  
 is there a way to retrieve an array from a function ?
  
 like:
  
 ?php
  
 test_func($param1, $param2) {
  
 //code
  
 $test = array (ASD = Test1, ASDF = Test2);
 return $test;
 }
  
 //outiside de function
 echo $test; //  - the array
  
 ?
  
 This doesn't work. So, any clue ?
  
 Regards and tks in advance!
  
 f.
-- 
.: B i g D o g :.



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




Re: [PHP] uploading an image in binar

2002-11-05 Thread .: B i g D o g :.
What is your form tag like...

try 
form action=somefile enctype=multipart/form-data
method=somemethod


On Tue, 2002-11-05 at 18:08, drparker wrote:
 I'm having trouble with a script to upload images, which is baffling me
 because a similar script has worked fine on other occasions.  I can get
 the image file uploaded to the correct directory, but it is uploading in
 ASCII and I obviously need it in binary.  The file name on the form is
 like this:
 
 input type=file name=add_imgthumb
 
 then the code on the php script looks like this:
 
  $uploadpath = 'path/images/';
  $source = $_FILES['add_imgthumb']['tmp_name'];
  $name = $_FILES['add_imgthumb']['name'];
  $dest = $uploadpath.$name;
  copy($source, $dest);
 
 simple, i know, but that's the way i want it.  What do I have to do to
 get the image to be uploaded in binary?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] LIKE condition in query

2002-11-05 Thread .: B i g D o g :.

I am not up on my MS Access database sql but i would check to see if ms
access supports the like condition in the where clause...


On Tue, 2002-11-05 at 18:49, Don Hicks wrote:
 I'm writing an SQL query in a php 4.0 script.  The query pulls data from an
 MS Access '97 database through an ODBC connection.
 
 I'm having difficulties creating a condition using LIKE.
 
 If I write the following expression, the query works:
 
 $Query=
 SELECT FieldName1, FieldName2
 FROM TableName
 WHERE FieldName1 = '$CriterionRecord'
 ;
 
 But, if I change the Where statement from = to LIKE, the query no longer
 works, and I can't figure out why. (Could it be punctuation?) Here's an
 example:
 
 $Query=
 SELECT FieldName1, FieldName2
 FROM TableName
 WHERE FieldName1 LIKE '$CriterionRecord'
 ;
 
 The criterion record is actually chosen in another form and passed through
 to this script.  The criterion record may be a complete record, or it may be
 a partial record with a wildcard, but the LIKE script is not working in
 either case.
 
 Does anyone have any experience with this they could share with me?
 
 Sincerely,
 Don Hicks
 Portland, OR
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] session cache limiter

2002-11-05 Thread .: B i g D o g :.
Show some code so we can see what seems to be the problem...

From the error you are trying to send header information when it has
already been sent.  You might want to check on that and make sure your
sessions are started correctly...


On Tue, 2002-11-05 at 19:34, ROBERT MCPEAK wrote:
 Could somebody shed some light on this error message I'm getting.  Could you point 
me at the appropriate docs or clue me in somehow.
 
 PHP Warning:  Cannot send session cache limiter - headers already sent (output 
started at /usr/local/httpd/htdocs/mmc/results.php:79) in 
/usr/local/httpd/htdocs/mmc/includes/display_options.php on line 115
 
 Thanks!
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-05 Thread .: B i g D o g :.
Try specifying the sablot installation directory in the configuration

--with-xslt-sablot=/some/dir


On Wed, 2002-11-06 at 04:50, Evan Nemerson wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 I'm trying to get XSLT working with PHP, and after slowly working my way 
 through several other problems, I've found one that I can't figure out.
 
 Software:
 PHP 4.2.3
 Apache 1.3.27
 Sablotron 0.96
 GCC 3.2
 Linux 2.4.19-lsm1
 
 ./configure \
 - --enable-xml \
 - --enable-xslt \
 - --enable-ftp \
 - --enable-sockets \
 - --enable-pcntl \
 - --with-apxs=/usr/local/apache/bin/apxs \
 - --with-xslt-sablot  \
 make  \
 sudo make install
 
 Everything seems to work fine (except for a lot of 
 cc1: warning: changing search order for system directory /usr/local/include
 cc1: warning:   as it has already been specified as a non-system directory
 's that appear when using gcc-3.2), but when I try to 
 /usr/local/apache/bin/apachectl restart, I get this: 
 
 Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/libphp4.so into server: 
 /usr/local/lib/libsablot.so.0: undefined symbol: __gxx_personality_v0
 /usr/local/apache/bin/apachectl start: httpd could not be started
 
 Any ideas???
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.7 (GNU/Linux)
 
 iD8DBQE9yJ/J/rncFku1MdIRAkhnAKClykcWMUwiWbslAYklx3xm1qsjSQCdFAXh
 roJ+kMyayqdY1UXxL6S5xuQ=
 =1Zaw
 -END PGP SIGNATURE-
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




RE: [PHP] checkboxes and selection lists

2002-11-04 Thread Brendon G
I use the following function for my check boxes in forms in PHP.

Putting your form element creation into functions or even classes makes life
so much easier when you have to validate / change code.

you'll be glad you did it

Cheers

Brendon



function fncwriteformcheckbox($strname, $strid, $strvalue, $varcheckedvalue)
{
/*
 fncWriteFormCheckbox
 Returns HTML for a checkbox element
 Accepts form element name as string
 Accepts form element ID as string
 Accepts form element value as string
 Accepts form element checked value as string or array.
 If checked value = default value then checked is written
 to the HTML stream

 Adapted from ASP functions by Ken Schaefer.
*/
define(PROC, fncwriteformcheckbox);
$strtemp = input type=\checkbox\ name=\ . $strname . \ ID=\ .
$strid . \ value=\ . $strvalue . \;

if (is_Array($varcheckedvalue)) {
foreach ($varcheckedvalue as $varcheckedvalueelement) {
   if ($varcheckedvalueelement == $strvalue) {
$strtemp .=  checked;
break;
   }
}
} else {
if ($varcheckedvalue == $strvalue) {
$strtemp .=  checked;
}
}
$strtemp .= \n;
return $strtemp;
}



- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 5:06 PM
Subject: [PHP] checkboxes and selection lists


Hi, as a beginner I find the way you declare variables through HTML-forms
quite straightforward. But the reverse, to put the same variables back into
a form field is not so obvious for selection lists and checkboxes.


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




RE: [PHP] getting HTML header from URL

2002-11-01 Thread Brendon G
Can't you just call the contents of the page into a variable and extract
what you need with regular expressions?

Php / Html  makes no difference its all text to fopen..

~
 is there a way using fopen()  or something similar to read an html/php
 file before it's loaded?
~~

I'm not sure what you mean here. How can you read anything with out opening
it first?.

Cheers

Brendon


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




[PHP] .htaccess and mod rewrite.

2002-10-30 Thread Brendon G
I was looking over a tutorial on Php builder on making search engine
friendly sites.   While i got the concept of the tutorial and have it
working here.  I was wondering is it possible to get a php script to run out
of the home directory of apache.

tutorial: http://www.phpbuilder.com/columns/tim19990117.php3?page=1


in the tut they redirect any calls to files in /local/ to a php file in the
root of the site.

I'd like to if possible redirect it to script that's stored outside of the
home folder for apache.

Why you ask?
1.   One file to update for any number of websites.
2.   So clients don't go touching it. (i know permissions could solve this.
but the reason one is more important.)


In my .htaccess in the root of the site i have

Options +FollowSymLinks
RewriteEngine On
RewriteRule local.*$ local.php

Works fine..

but when i change it to a directory outside of the root it never gets to
process or give an error.


Any ideas?  is it possible?

Cheers

Brendon




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




RE: [PHP] Re: PHP XML

2002-10-16 Thread .: B i g D o g :.

I am all for the power of XML, another benefit is the ability to have
many themes for your viewer.  Plus, if you are writing a CMS or portal
of some sort you can have your users create their own themes without
ever touching the data layers.

They just need to create some XSLT pages and that is it.  

Another benefit is RSS and allowing users to pull information from your
website.  Heaven knows that u want your users to frequent ur website. 
So you can allow them to pull info directly.

Also a great way to incorporate a cacheing system as well.


On Wed, 2002-10-16 at 00:35, Simon Taylor wrote:
 To me this is a lot of work and processing for limited benefits, a simple db
 abstraction layer provides you with a divide between you db queries and the
 presentation of your site, what benefits do you see in doing this?
 Cheers
 Simon
 
 -Original Message-
 From: Alexandru COSTIN [mailto:[EMAIL PROTECTED]] 
 Sent: 15 October 2002 18:50
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: PHP  XML
 
 
 Hello,
 
 Most of what you are looking for is already implemented and fully working in
 
 our Krysalis Professional platform.
 
 We help you create dynamic XML files, we provide you reusable taglibs  to 
 avoid rewriting similar code multiple times, wr provide various levels of 
 caching and many more.
 
 Please se more details at : http://www.interakt.ro/products/
 
 Alexandru
 
  Let me preface this by saying that I know the benefits of using XML 
  with regards to portability and extensibility. Here is the issue I 
  face.  I have all of my data stored in a MySQL database.  I'm 
  considering reworking my website so that it uses XML (after being 
  converted from resultant records in my DB) to transmit  XSLT to 
  transform and display the data to my end user. There are a few 
  benifits I can see in sending XML messages as part of the back end 
  processing.  However, that seems to be out- weighed by the amount of 
  processing that's going to need to take place in actually serving the 
  data to the user. First I have to query and pull the records from the 
  database.  Then, I need to send those records to a function (or 
  functions) to convert it to XML.  Then, I need to take that XML data 
  and have PHP use an XSL stylesheet to transform it to HTML before it, 
  finally, gets sent on to the browser.  So that's basically 2 
  conversions that take place on the back end.
  How much experience have any of you had with doing that?  Does
  it take significantly longer to serve the pages; is there a noticible
  performance hit?  Do you realize more benifit for the back end
  processes when using XML that makes any additional time it takes
  to display a page to the user worth it?
  I'd love to hear about people's experience with this kind of thing so I
  can better make a decision wrt whether or not I should even go down
  this route.
  
  thnx,
  Chris
 
 
 -- 
 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


-- 
.: B i g D o g :.


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




Re: [PHP] Warning: Failed to write session data ?

2002-10-16 Thread .: B i g D o g :.

When u click on the submit button then u are redirected to the action
page.  So on this action page you might need to put the session
information there. 

Where is the action page located? (on which server).  The problem seems
to be that you have 2 sessions.  One session in each frame.

Idea: You might want to look into to do session handling across mulitple
domains.


On Wed, 2002-10-16 at 11:45, Jan Grafström wrote:
 Hi,
 
 I get this message when I load my webshopsite into a frame on onother server
 but not until I press a form button:
 Warning: Failed to write session data (files). Please verify that the
 current setting of session.save_path is correct
 (/var/apachefs/sessions) in Unknown on line 0
 
 I can´t change settings on my webhost.
 
 If I load another page first wich start the session and sets a sessionvar,
 it works fine.
 Is there a way to workaround this problem.
 I use input type =hidden name=PHPSESSID value=echo $PHPSESSID.to pass the
 session in my form.
 I also noticed that You can´t view source of this frame loaded from another
 server.
 
 I have my mainsite on one server and shopsite on another.
 
 Thanks in advance for any help.
 --
 Regards,
 Jan Grafström
 
 Sweden
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] PhpMyAdmin Help Needed

2002-10-16 Thread .: B i g D o g :.

What web server are u using?

If you are using apache you need to make sure you have the user
directive set up properly for this.

Plus, in the user directory u need to have the appropriate directory
too.

By default apache has it set to look for public_html...

So in the user directory you would have ~username/public_html


On Wed, 2002-10-16 at 16:08, Pushpinder Singh Garcha wrote:
 Hi
 
 I am wanting to use PhpMyAdmin for my project . I am developing using 
 PHP and MySQl and the OS is Jaguar
 I have downloaded the latest version of phpmyadmin and have made 
 necessary changes in the 'config.inc.php' file
 When I try to access PhpMyAdmin using  
 http://localhost/~pgarcha/phpmyadmin/index.php; I get the folowing error
 
 Not Found
 The requested URL /~pgarcha/phpmyadmin/index.php was not found on this 
 server.
 
 
 Apache/1.3.26 Server at pushpinder-garchas-computer.local Port 80
 
 This is the list of things that I have changed:
 1).  $cfg['PmaAbsoluteUri'] = 'http://localhost/~pgarcha/phpmyadmin/';
 2).  $cfg['Servers'][$i]['auth_type'] = 'http';  // 
 Authentication method (config, http or cookie based)?
 3).  $cfg['Servers'][$i]['user']   = 'root'; // 
 MySQL user
 4).  $cfg['Servers'][$i]['password']  = 'sunny'; // MySQL 
 password (only needed
  
   // with 'config' auth_type)
 
 I am not sure about the user attribute that I have put above  
 actually pgarcha' is the admin of the system.
 Please help me out.
 
 Thanks in advance
 Pushpinder
 
 
 Pushpinder Singh Garcha
 _
 Web Developer
 T. Falcon Napier and Associates, Inc.
 Off : 704 987 6500
 Cell  :  704 236 2939
 Fax   :  704 987 5002
 _
-- 
.: B i g D o g :.



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




Re: [PHP] PHP XML

2002-10-15 Thread .: B i g D o g :.

Chris,

Here are some ideas you might want to review these options:

1. Try storing the data in the database as xml files them selves.  You
then do not have to create the xml file.  This will no doubt increase
your database size.

2. Store your xml templates in the database for faster retrieval.

3. Have the xml file reference the xslt file for the translation to
occur on the client end...they get the HTML and all u really worry about
is creating the xml file and having the xslt file.

4. Do the translation of Database - XML - XSLT - HTML all in PHP and
save the HTML output for caching. Then u can save a link to that file in
your database.  This will allow you to have a very good caching system. 
When a request for a page comes in u can verify if the cached link in
the database is too old or not.  Then you can either get the link to the
cached file or get the data to create the XML file.

But, I have a feeling that this will still be extremely sufficient for
your speed requirements...



On Tue, 2002-10-15 at 08:25, Chris Boget wrote:
 Let me preface this by saying that I know the benefits of using
 XML with regards to portability and extensibility.
 Here is the issue I face.  I have all of my data stored in a MySQL
 database.  I'm considering reworking my website so that it uses
 XML (after being converted from resultant records in my DB) to 
 transmit  XSLT to transform and display the data to my end user.
 There are a few benifits I can see in sending XML messages as
 part of the back end processing.  However, that seems to be out-
 weighed by the amount of processing that's going to need to take
 place in actually serving the data to the user.  
 First I have to query and pull the records from the database.  Then,
 I need to send those records to a function (or functions) to convert
 it to XML.  Then, I need to take that XML data and have PHP use
 an XSL stylesheet to transform it to HTML before it, finally, gets 
 sent on to the browser.  So that's basically 2 conversions that take
 place on the back end.
 How much experience have any of you had with doing that?  Does 
 it take significantly longer to serve the pages; is there a noticible
 performance hit?  Do you realize more benifit for the back end 
 processes when using XML that makes any additional time it takes 
 to display a page to the user worth it?
 I'd love to hear about people's experience with this kind of thing so I
 can better make a decision wrt whether or not I should even go down
 this route.
 
 thnx,
 Chris
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.



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




Re: [PHP] PHP XML

2002-10-15 Thread .: B i g D o g :.

On Tue, 2002-10-15 at 15:03, Chris Boget wrote:
  Here are some ideas you might want to review these options:
 
 Other people have suggested variations of the below so I'll just respond
 here to cut down on the bandwidth.
  
  1. Try storing the data in the database as xml files them selves.  You
  then do not have to create the xml file.  This will no doubt increase
  your database size.
 
 This, unfortunately, is not a possiblity because the databases get updated
 too frequently.  Plus, I have 2 tables that have in excess of 80k records
 which also gets updated frequently.  File I/O for updating a flat file DB would
 be atrocious.
  2. Store your xml templates in the database for faster retrieval.
 
 Please elaborate on this suggestion?

sample xml page:
?xml version=1.0?
page
title/title
/page

So, then in theory, this is a xml template (contains no data) that can
be stored in the database.


  3. Have the xml file reference the xslt file for the translation to
  occur on the client end...they get the HTML and all u really worry about
  is creating the xml file and having the xslt file.
 
 As far as I know, there are several issues with the various browsers processing
 and executing the XSL.  There isn't full compliance, particularly with the actual
 commands (ie, xsl:copy, xsl:copy-of, etc) and/or if you want to manipulate the
 tree/DOM.  
 Is this untrue?
 
  4. Do the translation of Database - XML - XSLT - HTML all in PHP and
  save the HTML output for caching. 
 
 For the most part, this isn't feasible due to number 1 above.  And for those files
 that I can cache, the data set being retrieved is so small that any performance
 hit (if any) would certainly be insignificant.  So there wouldn't be much point in
 caching those.
 Even so, this does give me a few ideas and could possibly be the solution to a
 very different problem I need to address.

Actually you do not have to store the data and xml (together) in the
database.

Here are the steps to perform:
1. Query database getting desired data.
2. get the xml file into PHP XML parser (either from a database or
file.)
3. Parse xml file adding data to the file. Result is a new xml file.
(XML template + data)
4. Optional (if xslt is compiled into PHP). You can do the translation
of your XML file and XSLT file in PHP which could result in a html file
or direct output to the browser.
5. Send the XML file to the browser with the XSLT information
information in the XML file (not so much XSL). And let the browser
handle the transformation to HTML for ya.

Also note that the XSLT file is a great place to put all your themes.  U
can have one XSLT file for each theme that handles your site.

The options are endless...


That is relatively all that needs to be done.

 Thank you all for your ideas and suggestions thus far.  Please keep them coming
 if you haven't chimed in or if you think of anything else.  I'm sure this 
information is 
 helping other people as well!
 
 Chris
 

-- 
.: B i g D o g :.



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




Re: [PHP] __file__ and __line__

2002-10-14 Thread David T-G

Andy --

...and then Ns_Andy said...
% 
% what's its use and how to use(Example)?

They're constants that identify where you are.  I use __FILE__ so that I
don't have to keep tweaking my code when working in the development
environment:

  # this will let us figure out where we are and then always source the right include 
stuff!
  # it does not work with symlinks (__FILE__ reports the *target*)
  # you must have a full env tree in your devel tree; we now look exclusively in 
$DEVELDIR if set
  if ( ereg(/home/sites/\.php/,__FILE__) )# are we *somewhere* in our 
usual master tree?
{ $DEVELDIR = preg_replace(|/.*/home/sites/\.php(.*)/[^/]*$|,$1,__FILE__) ; }  
 # get the working dir

  include(/home/sites/.php$DEVELDIR/includestuff.inc);# include our various 
files

Our repository is under /home/sites/.php and there are various
production, development, and test dirs under there.  No more hard-coding

  /home/sites/.php/test6/includestuff.inc

in the code -- and, worse, forgetting to take it out when promoting
to production! :-)  [Yeah, I know that I should assign a variable
containing the /home/sites/\.php/ string, but it's almost not worth
it in something that has to be self-contained like this and so I haven't
bothered :-]


% 
% Thanks

HTH  HAND


% --
% Regards,


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg82262/pgp0.pgp
Description: PGP signature


Re: [PHP] $html_code .= include (filetoinclude.txt);

2002-10-13 Thread .: B i g D o g :.


Your email is not 100% totally clear with what you are actually trying
to accomplish, however, here is an example of how i like to get html
source code into a variable from a file.

$html_code = implode( '', file( 'filetoinclude.txt' ) );

or append it...

$html_code .= implode( '', file( 'filetoinclude.txt' ) );

Hope that helps you out.

On Sat, 2002-10-12 at 09:50, Research and Development wrote:
 Should this work?
 
 $html_code .= include (filetoinclude.txt);
 
 I am populating a variable with html to be printred later as usual: 
 $html_code .= html.
 
 But I have some static html files that I want included in the html that 
 I am storing in the variable. The HTML is in text files. The above code 
 obviously does not work. I want to know if there is another way.
 
 Thanks.

-- 
.: B i g D o g :.



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




Re: [PHP] Multiple Return Values from function

2002-10-13 Thread .: B i g D o g :.

I would probably return an array with the multiple values in the
array...easier to work with.


On Sat, 2002-10-12 at 20:49, Paul Maine wrote:
 Can I return more than one value from a function?
 
 php
 
 Thank You
 Paul
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
.: B i g D o g :.



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




Re: [PHP] sessions without cookies *or* URLs

2002-10-07 Thread David T-G

John, et al --

...and then John W. Holmes said...
% 
% You can pass the session ID in a form, too. Just use POST, and make it a
% hidden element passed to the next page. 

Yeah, I figured that.


% 
% input type=hidden name=PHPSESSID value=?=$PHPSESSID?
% 
% It's no different than passing it in the URL. I hope you're not thinking

Except the URL is cleaner :-)


% that it's more secure by doing it this way. Either way the data is
% coming from the user and it can't be trusted and it can be modified. 

Agreed.


% 
% I don't know what this phobia is about passing something in the URL...

First, it's just plain cluttered :-)  Second, though, it would be nice to
not put the user's password right in the URL to then hang out in his
browser goto cache, so we have to change *sometthing*, and if we can
clean up the URL while we're at it that would be nice.


% 
% ---John Holmes...


Thanks  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg81331/pgp0.pgp
Description: PGP signature


Re: [PHP] sessions without cookies *or* URLs

2002-10-07 Thread David T-G

Justin, et al --

...and then Justin French said...
% 
% on 07/10/02 11:32 AM, David T-G ([EMAIL PROTECTED]) wrote:
% 
%  It's a start; it confirms some of what I think I understand about
%  sessions.  Now if only I can get the session ID out of the URL without
%  using any cookies...  Any ideas, anyone?
% 
% 
% I Thought I made it clear, but I'll try again :)

Thanks :-)


% 
% You have three options for maintaining state:
% 
% - Cookies
% - URL
% - POSTed forms

OK.  I was afraid of that...


% 
% The most common method is plain cookies.  But if you want guaranteed state,

Sure, but I know that cookies won't work, so that rules them out.


% then URL is the answer.  My main problem with the URL method is that it
% requires the writer(s) to be careful when typing links... ensuring that they

Exactly.  It's cluttered and you have to be sure to get it right if
you're typing it in.


% have the session ID in them.  Impossible for a CMS.  The answer is
% enabel_trans_sid.

Well, sorta :-)


% 
% More and more hosts are compiling with enable_trans_sid... what this does
% is: attempt to pass the SID around in a cookie.  If this fails, it will

Right.


% re-write any relative URLs in your pages to include the session ID... it's

So I can code without having to put the ID on the URLs myself?  So the
transparent-ness is for the programmer?  Well, I do like that...


% the best of both worlds... transparent cookies if possible, otherwise the
% SID is passed around in a URL.

Right.


% 
% 
% So, this rules out a complaint about complicated URLs, because you don't
% have to type them.

I may not have to type it as a programmer, but the user might have to
type it as a surfer.


% 
% 
% I urge you to look around all the big sites... if they need to maintain
% state (a session) they do so with URLs... amazon.com, whatever -- they all
% do it.

Yeah, I know.


% 
% Why do you not wish to use URLs?

Because they're cluttered and it puts the session ID also in the user's
goto cache.


% 
% 
% Justin


Thanks  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg81334/pgp0.pgp
Description: PGP signature


[PHP] sessions without cookies *or* URLs

2002-10-06 Thread David T-G

Hi, all --

I've seen a recent flurry of discussion on sessions, and that's good;
lovely how that has shown up just as I need to dig into sessions.  I
think I've come to understand, though, that you can't manage sessions
without either URL extensions or cookies, and that's bad (for me, at
least).

Is that a correct understanding?  It seems that using forms to pass the
session token would work, but that means having all buttons instead of
links, which has its own disadvantages.  Is there any other way to get
data to the server?

We currently use the URL to pass variables but we don't want to hang the
page password out there :-) and so we have to maove away from that somehow,
and it would be nice if we could get away from URL mangling entirely.
Cookies aren't an option, though.


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg81262/pgp0.pgp
Description: PGP signature


RE: [PHP] Re: IIS 5 - ASP PHP dev enviorment

2002-10-06 Thread Brendon G

I don't know how familiar you are with PHP yet.

But I recently decided to learn PHP myself having already learnt ASP.

These 3 things helped me the most.
This is a summary of the language differences between PHP,
JScript/Javascript and VBScript
http://php.weblogs.com/php_jscript_vbscript_1

ADOdb:  encapsulates the different PHP database code into a class that's
very similar to ADO. thus the name.  This enables you to access a MySQL Db,
an Access DB or anything else with little hassle. Handy from a cross
platform point of view and when you might need to change DB's at a later
date.
http://php.weblogs.com/ADOdb

And of course get the latest downloadable PHP manual.

Happy Dabbling!

Cheers

Brendon




-Original Message-
From: Jason Morehouse [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 9:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: IIS 5 - ASP  PHP dev enviorment


If the PHP interpreter is installed, there is nothing stopping you from
using both (morals aside).



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




Re: [PHP] sessions without cookies *or* URLs

2002-10-06 Thread David T-G

Justin, et al --

...and then Justin French said...
% 
% I think you're under a little misconception about how sessions are used.

Perhaps.  I'm new to them :-)


% Maintaining a session is simply just having a unique identifier for each
% user, so that the server can recognise the user from page to page,
% maintaining state.

Right.  And since it can recognize the user, it can store all sorts of
things for him, like the fact that he's been authenticated and what
function he did last and so on.  Right?


% 
% Typically this is done by passing a session id around in  he URL or cookies
% or POSTing forms.  A session ID is typically a long unique number -- that's
% it.

Right.  But it's the in the URL or cookies that's a problem for me.


% 
% 
% What you then do associate or register data TO that Session ID... this data
% is stored on the SERVER, and NOT passed around in the URL.

I understand enough that the data itself isn't in the URL, and that's
good (because some of these page comments get long!).


% 
% 
% So you pass around PHPSESSID=198235021612423 in the url or a cookie, and
% assign data to that session... all of which is stored server side.

Are those the only ways that I can pass it around?  Is there anything
else?  [Note that I've come to the conclusion that they are and there
isn't except perhaps a POST form, but I'd love to be pleasantly surprised.]


% 
% The session with the id 198235021612423 may have a username, password, shoe
% size, favourite colour, etc etc all attached to it, done with either:

Good deal; that's what I like.


% 
% $_SESSION['shoesize'] = 14; // new register globals OFF method
% 
% or
% 
% $shoesize = 14;
% session_register(shoesize); // old method

Right.


% 
% 
% Therefor, I can see no need for anything other than the session ID to be
% passed around in the URL.
% 
% Hope this clears it up!

It's a start; it confirms some of what I think I understand about
sessions.  Now if only I can get the session ID out of the URL without
using any cookies...  Any ideas, anyone?


% 
% 
% Justin French


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg81311/pgp0.pgp
Description: PGP signature


Re: [PHP] mobile number

2002-10-05 Thread David T-G

Ryan, et al --

...and then Ryan A said...
% 
% Hi guys,

Hi!

Your project sounds interesting, but it pretty much won't work for the
US -- or at best it would be unworkable.

In the US, the area code is three digits, the exchange is three digits,
and the number itself is four digits.  For years people only needed the
exchange and the number (and, in fact, the exchange was based on the
city name, so you'd ring the operator and ask for KLondike 5  or
PEnnsylvania 6 5000) unless you were calling outside your area code,
which was pretty much guaranteed to be a toll call (and some local
calls were toll as well).  More and more now, though, you have to dial
the full ten digits because local calling areas are bigger than a million
numbers.

And all of that goes for cell phones, pagers, and the like as well.
While an entire exchange is usually given to a cell provider, it could
be one off from a land line provider's exchange or even a different cell
provider's exchange.

The only shot I'd think could work would be to integrate a caller ID
service to just give you the whole number...  How's that for saving your
surfer's some keystrokes? :-)


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg81251/pgp0.pgp
Description: PGP signature


RE: [PHP] Re: after mysqlfront?

2002-10-04 Thread Brendon G

DB tools (getting better every version)
http://www.dbtools.com.br/EN/

Cheers

Brendon

-Original Message-
From: Ernani Joppert Pontes Martins [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 6:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: after mysqlfront?


Mascon or Free Mascon is really a good value

HTH,

Ernani

Lallous [EMAIL PROTECTED] escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello

 MySqlfront.de's mysqlfront program has been discontinued any equivalent
 alternative?

 thanks,
 Elias





-- 
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] ADOdb

2002-09-24 Thread Brendon G

Just curious as to what the general consensus of opinion is on the following
class.  Do many of you use it?.
http://php.weblogs.com/ADOdb

Coming over to PHP from ASP (I'm not really interested in learning .Net at
the moment) I like that I can switch databases allot faster if the need
occurs by using ADOdb.  If I had written code just using MySQLconnect I'd
have a hell of a time in the future.

Cheers

Brendon


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




Re: [PHP] Replace linefeed/newline from text inputs with br tag?

2002-09-23 Thread David T-G

John, et al --

...and then John Holmes said...
% 
%  If i have a textarea form input for users and they enter in return
% spaces,
%  how can i replace the ascci chars with html tags?
% 
% It'd be great if they had a function for this...they could call it
% nl2br() or something...

Yeah.  It would be even cooler if that's what it did, eh?  Maybe someone
should rename that nl2nl+br and write a *real* nl2br for those of us that
want to GET RID OF the newlines.  I think that part of the reason this
question comes up often is because nl2br doesn't really do what its name
would lead us, or at least me, to think that it does.

Patrick, I just went through this a few weeks ago (Sep 06).  I don't know
that the list has archives, or I'd send you there first (anyone with a
URL?), so all I can do is give you my result:

  $fout = ereg_replace((\n|\r)+,br,$fin) ;

This translates any newline and/or carriage return in your $fin string to
a br and puts the results in $fout.  It will convert input like

  this is
  some input

to

  this isbrsome input

and you no longer have a newline in the way.  The only downside is that

  this is

  some input

ends up the same way because the regexp is greedy, but the upside is that
it will work for UNIX (\n), Mac (\r), and DOS/Win (\r\n) input.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg79522/pgp0.pgp
Description: PGP signature


Re: [PHP] Replace linefeed/newline from text inputs with br tag?

2002-09-23 Thread David T-G

John, et al --

...and then John Holmes said...
% 
% Okay, you got me on that one, but why do you need to remove the

In my case, I had a newline-delimited file of

  field@@data
  field@@data
  field@@data

and when the data had an embedded newline like

  comment@@this is a
  long comment
  field@@data

then it messed things up.  Yeah, I learned about the possibility of using
XML along the way, and I've already thought about serialize and base64
(which I *do* use inside the code, though not out in the file) for simple
protections, but a requirement was that the text file also be readable
and editable by people -- and, besides, I'm just extending this code
rather than writing it :-)


% newlines? It should be stored in the database (if you're doing so) with
% the  newlines and not the HTML breaks. You only use the nl2br() to
% output it on a web page, so who cares if the new lines are still there?

For output, it doesn't matter, as you say.  My problem was input :-)


% 
% The manual page explains this correctly, btw. It says that a br /
% will be inserted before all newlines.

Yeah, but that requires actual reading ;-)  Who knows any more what TFM is?


% 
% ---John Holmes...


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg79529/pgp0.pgp
Description: PGP signature


[PHP] Re: redefining a function

2002-09-19 Thread David T-G

Tim, et al --

...and then Tim Ward said...
% 
% is using classes an option?

I don't know.  I suppose I need to learn about classes :-)  Where do I
start?


% 
%   Tim Ward
%   www.chessish.com


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg79159/pgp0.pgp
Description: PGP signature


[PHP] compiling a regexp

2002-09-18 Thread David T-G

Hi, all --

Can I compile a regexp as I can in perl?

We have various possible values that we want to strip out of a string and
we store them in an array so that users can update with their own.  To
wit:

  $noadobe =
array
  (
File written by Adobe Photoshop,
LEAD Technologies Inc. ,
more pesky text ,
  ) ;

We want to make it easy on the users, so we're not going to figure any
regular expressions belong in there; I'll just use a greedy .* to suck up
everything that starts with any of these matches.

In my code I can certainly 

  $noadoberegexp = ( . join(|,$noadobe) . ).* ;

and then

  $cleanstring = eregi_replace($noadoberegexp,,$stripstring) ;

but 1) I haven't tested this code yet :-) and 2) I wonder if I'll run
into long runtimes when we get lots of strings to match.


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg79099/pgp0.pgp
Description: PGP signature


[PHP] redefining a function

2002-09-18 Thread David T-G

Hi, all --

Is there any way to redefine or undefine (to then redefine) a function?
We have an image handling function, for instance, and would like to let
our users put in their own definition instead.  I haven't yet found
anything that will allow this...


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg79103/pgp0.pgp
Description: PGP signature


[PHP] replacing \n with br

2002-09-06 Thread David T-G

Hi, all --

I have a php script which writes comments out to a file in the format

  field@@comment
  field@@comment
  ...

and everything has worked delightfully -- until someone put in a newline
in one of the items and now we have

  field@@com
  ment
  field@@comment
  ...

and things break.  I read the file, line by line, and parse on @@ as my
separator, so anything after a newline is lost.

I thought I'd just replace that newline with a br since that's what the
user really wants, but I can't get rid of the \n while I'm at it; through
various attempts at directly replacing or using variables or such like

  preg_replace(/\n/,br,$mydatastring) ;
  preg_replace(/$newline/,$linebreak,$mydatastring) ;

I get mixed results of

  field@@combr
  ment

or

  field@@com
  brment

but in no case have I managed to get

  field@@combrment

which is what I want.

Is there a way to turn off the recognition of \n as an end of line and
instead operate on the entire $mydatastring?


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78069/pgp0.pgp
Description: PGP signature


Re: [PHP] \n to BR Problem

2002-09-06 Thread David T-G

Chandu, et al --

...and then N. Pari Purna Chand said...
% 
% I have a small problem in converting a plain text to html.

Son of a gun...  Maybe it's world consciousness working on this :-)

I've just posted a similar question.  Be sure to watch both threads just
in case.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78073/pgp0.pgp
Description: PGP signature


Re: [PHP] replacing \n with br

2002-09-06 Thread David T-G

Rob, et al --

...and then Robert Cummings said...
% 
% David T-G wrote:
%  
% I've never had problems with doing:
% 
% $foo = I don't like\nnewlines;
% 
% $foo = ereg_replace( \n, 'br /', $foo );

I'm afraid I do.  Given my code

  $fin = stripslashes(${base64_encode($k)}) ;   ###
  print \$fin is .$fin.BR\n;###
  $fout = ereg_replace(\n,br,$fin) ;
  print and \$fout is .$fout.BR\n;  ###

(ignore the scary base64 stuff :-) I get

  $fin is .This is the first line. Here is the second line..
  and $fout is .This is the first line. 
  Here is the second line..

in my browser and

  $fin is .This is the first line.
  Here is the second line..BR
  and $fout is .This is the first line.
  brHere is the second line..BR
  brbr

in my browser's source window.  The newlines are still there.

Any thoughts?


% 
% Cheers,
% Rob.


Thanks  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78076/pgp0.pgp
Description: PGP signature


Re: [PHP] replacing \n with br

2002-09-06 Thread David T-G

Rob, et al --

...and then Robert Cummings said...
% 
% Actually on second thought... and I don't know why I went with the

*grin*


% crowd in the first place... I do the following:
% 
% $foo = I don't like\nnewlines;
% 
% $foo = str_replace( \n, 'br /', $foo );
% 
% That one work for you? It's more efficient too.

Actually, no.  I thought about listing all of the things I had tried (and
ereg_replace wasn't one of 'em) in my post but didn't want to clutter
things up.  I've tried str_replace, preg_replace, and now ereg_replace,
and have tried working on the function extraction of the data directly as
well as the $fin and $fout separation.  I always have the newline left
behind.

I'm a [rusty] perl guy, and so I keep wanting to know what's the magic
variable in PHP to set to make it eat entire paragraphs, like $/ or such
in perl (there's where the rusty part comes in!).  If these functions are
just operating on a single line then the newline(s) won't get eaten.


% 
% Cheers,
% Rob.


Thanks  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78081/pgp0.pgp
Description: PGP signature


[PHP] (SOLVED) Re: [PHP] replacing \n with br

2002-09-06 Thread David T-G

Rob, et al --

...and then Robert Cummings said...
% 
% David T-G wrote:
%  
%  ...and then Robert Cummings said...
%  %
...
%  % $foo = str_replace( \n, 'br /', $foo );
%  %
%  % That one work for you? It's more efficient too.
%  
%  Actually, no.  I thought about listing all of the things I had tried (and
...
%  well as the $fin and $fout separation.  I always have the newline left
%  behind.
...
% 
% *ACK* Stoopid microsoft... it's the \r character I bet.

That was it, or at least sort of.  Thank heavens I always test before I
post, because I was going to smugly comment that I'm using freebsd *but*
I tried switching to \r and noticed that the added br moved from one
line to the other.  So I whipped up

  $fout = ereg_replace((\n|\r)+,br,$fin) ;

and it works -- there must actually be \r\n there -- and I'll work
backwards from there (I'll use an expression like the above to robustly
handle by-god-anything that comes in!) to get rid of these temp variables.


% 
% Cheers,
% Rob.


Thanks a *bunch*!

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78087/pgp0.pgp
Description: PGP signature


Re: [PHP] replacing \n with br

2002-09-06 Thread David T-G

Brent, et al --

...and then Brent Baisley said...
% 
% Why not just use the nl2br() function? It's a lot easier that using any 

Because it doesn't do what I need.  From the Fine Manual:

  nl2br --  Inserts HTML line breaks before all newlines in a string
  string nl2br ( string string)
  Returns string with 'br /' inserted before all newlines.

I don't want to simply add a br; I want to *replace* the newline (and
return, as we found out in a subthread).


% replace function you build yourself.

Except that it doesn't work :-)


Thanks  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78088/pgp0.pgp
Description: PGP signature


Re: [PHP] replacing \n with br

2002-09-06 Thread David T-G

Brian --

...and then Brian V Bonini said...
% 
% I'm sorry, I missed the first part of this thread so am only going by its
% subject line mostly... But, I assume you are all aware of the nl2br function

Well, only sorta; I said replace in there, you may notice.


% and there's a special reason it does not apply here but I thought I'd
% mention it any way... Just in case... :)

Thanks anyway, but it doesn't work.  See the reply I just sent in this
thread for details.


% 
% -B


HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78089/pgp0.pgp
Description: PGP signature


Re: [PHP] replacing \n with br

2002-09-06 Thread David T-G

Brent --

...and then Brent Baisley said...
% 
% Sorry. Since you were looking to use br, I thought you were creating 
% HTML content. But then, line feeds are ignored in HTML so then you 

Well, yes and no.


% wouldn't have a problem with them. I should have thought of that.

Well, yes and no :-)  It's my app, and it's understandable that you don't
already know everything about it from having not seen it yet!


% 
% How are you reading the file? The key being that you said you read it 
% line by line. Once you read a line, could you just grab the first 
% length-1 characters and then do your parsing on that?

The data file format is

  field@@data
  field@@data
  ...

and a real example is

  comment@@this is a comment
  latdir@@N
  londir@@W
  latdec@@36
  londec@@89
  ...

and my code [now, after mods,] looks like

  ...
  if ( file_exists($filelocation) ) # do we have an info file?
  {
$newfile = fopen($filelocation,r);# grab it and start reading!
while ( !feof ($newfile) )  # (go only until the end, of 
course)
{
  $commentline = trim(fgets($newfile)); # get one line with whitespace 
trimmed
  if ( $commentline )   # a line with data?
  {
list ($field,$data) = preg_split(/@@/,$commentline);  # split it
$content[$field] = preg_replace(/br/,\n,$data) ;  # replace our swapped 
'br's with original '\n's and store it in the hash
  }
}
fclose($newfile);   # always lock up
  }
  ...

so I'm just using fgets to read it.  The reason it looks that way is
because, after the user has had the opportunity to edit the fields and
hits the button, I process the data as

  ...
$newfile = fopen($filelocation,w);
foreach ($keylist as $k)# loop thru keys
  { 
fwrite($newfile,$k@@.ereg_replace((\n|\r)+,br,stripslashes(${base64_encode($k)})).\n)
 ; } # write the clear text out
fclose($newfile);
  ...

Although I've solved the problem for now, the next version will probably
end the data with a @@ and so I can just read another line if I don't
have a closer.


Thanks again  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg78115/pgp0.pgp
Description: PGP signature


Re: [PHP] PHP shopping

2002-09-01 Thread David T-G

Ryan --

...and then Ryan A said...
% 
% Hi guys,

Hello!


% Kinda reached the end of my line, searched on yahoo,google,altavista,excite etc and 
hotscripts,scriptsearch etc but could not find what i require

Of course not; it's never that easy :-)


% 
% I need a shopping cart software which will display and sell .swf files, it does 
*not* have to integrate with ANY ecom credit card processing.

Hmmm...  No ccard stuff; how will you make any money?


% 
% Basically all I want it to do is give me a chance to upload a .swf file in a 
category (eg: images/text/movies etc) and should allow the visitor to search that 
category,take an order and email it to me

So far all you've mentioned are an upload script for you and a search
engine for your visitors.  Both of those things are fairly easy and don't
require any special cart software.


% 
% Have any or you seen such a script anywhere? unfortunately I dont know PHP to make 
it myself and am not rich to order custom programming..I am hoping that someone 
has already made the script and has made it available to the public.
% Anybody?

Nothing like that...  Of course, I wouldn't call that a shopping cart,
either!


% 
% or even if you know a place (URL) where I can learn shopping cart examples kindly 
direct me to it so maybe i can learn?

If I were you I'd start with upload scripts and search engines.  Once you
get those done (particularly the latter), then you might look at how to
keep your users from grabbing the files and instead going through
whatever hoops you want to have up...

I know you said you weren't rich, but if you insist that you can't write
this stuff yourself I might be able to help out; I need to build my code
library to show off :-)


% 
% Cheers and thank you for reading this message.
% -Ryan


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg77427/pgp0.pgp
Description: PGP signature


Re: [PHP] Imagemangick, can I install on a virtual host?

2002-09-01 Thread David T-G

Al --

...and then Al said...
% 
% I'd like to use some of the Imagemagick functions; but my virtual host 
% doesn't include it and won't bother to install it.

Phooey on them.  You should switch to me :-)


% 
% Is it practical to install Imagemagick php on a virtual host?

Sure; it doesn't have to be under /usr or /usr/local by any means.


% 
% Has php.  It's not a shell account.  FTP is the only basic access.

The trick will be compiling it.  If you don't have an identical (or
nearly so) platform, then you'll have to compile on your server.  I
suppose if you were really sneaky you could write some php scripts that
run your config and compile for you :-) but you'll probably need access
to a shell at least temporarily.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg77428/pgp0.pgp
Description: PGP signature


Re: [PHP] Where is my REMOTE_USER?

2002-08-29 Thread David T-G

Frank, et al --

...and then Frank said...
% 
% Hi,
% 
% when logging in with username and password with the good old Require user 
% mechanism in Apache I could earlier see the name of the user logging in as 
% $REMOTE_USER.

This sort of thing has come up on the list frequently.

You should set

  register_globals = on

in your php.ini file and kick your web server.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg77050/pgp0.pgp
Description: PGP signature


Re: [PHP] Host

2002-08-28 Thread David T-G

Bruce --

...and then Bruce Karstedt said...
% 
% Anyone care to recommend a host as follows:
% 
% Unix
% PHP
% MySQL
% Domain Reg.
% No unusual size or traffic requirements (now)

We host with datapipe.net and I've been quite happy; excellent bandwidth,
good uptime, tech support that meets my needs, and so on.  If you didn't
wnat to pay their price (a little steep but it works for the stuff we do
on our server), I can handle your hosting needs as another customer on
our server, particularly based on the very very lean requirements you've
just set.  Hey, I'll even give you email ;-)


% 
% Pay by Check (my company will not allow the used of company credit cards
% over the Internet.)

Not a problem.


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


HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76902/pgp0.pgp
Description: PGP signature


[PHP] that UNIX permissions thing again -- sort of

2002-08-28 Thread David T-G

Hi, all --

I promise I'm not asking the same old question :-)

Our image gallery application takes a directory tree of images uploaded
by the user and then does all sorts of magic to make thumbnails, track
comments, and so on.  The only thing owned by the user is the directory
tree and its contents; everything else is owned by the web server ID.

All of this works well until a user wants to change the name of a subtree
in the source directory; all of the 'nails are lost (since they're now
unrelated to the source tree, and they just hang around taking up space),
and even worse all of the comments are lost.

The problem, of course, is that the user can't rename the cache directory
and the web server can't rename the source directory.

Has anyone already solved this problem -- preferably without reeking too
terribly of a kludge?  We've already thought of a script that the user
calls which renames the cache side and then says OK, so *now* go and
rename the source side with ftp like you would anyway but that's not
pretty by any stretch.  I just can't get past the concept that we're
mixing user ID and web server ID and that you just can't.

Of course, if the same old question (How do I have the web server do
things in a user way?) has finally been answered, please let me know ;-)


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76903/pgp0.pgp
Description: PGP signature


Re: [PHP] Virtual includes

2002-08-26 Thread David T-G

Gregory --

[You know, you shouldn't just reply to any old message and start a new
topic; send a fresh message to the list instead so that it will be the
start of a new thread.]

...and then Gregory Barker said...
% 
% Hi all,

Hello!


% 
% I'm trying include .php files which reside in alternative directories or
% sub-directories. Such as a file which reside in www/chat/page.php, and for
% this page I would like to include a file which resides in www/forum/include/

That can definitely be done.


% 
% I've tried the following which just results in a error:
% include '/forum/include/test.php'; aqnd multiple variations of it.

Ah, but you're using the website-based path instead of the actual path in
the filesystem.  You're not including a URL, but a file, so you should
spell it out.


% 
% How do I get around this problem?

The simplest way to start is to just give the full path:

  include /path/to/site/www/forum/include/test.php ;

although that begins to be cumbersome once you start including lots of
stuff from here and there.  You might simplify it a bit and just

  include $_SERVER[DOCUMENT_ROOT]/forum/include/test.php ;

to make your code reusable in any web site dir, since the variable will
expand to whatever the doc root is (like /path/to/site/www).  You might
want to be even more general, though, and pull something from the parent
directory; you might use

  $currdir = getcwd() ;
  include $currdir . /../parentdirfile.php ;

to do that.

As always, RTFM.  See Directory functions and Filesystem functions
for starters on this type of task.


% 
% Greg


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76678/pgp0.pgp
Description: PGP signature


Re: [PHP] carriage return/line break problem

2002-08-26 Thread David T-G

Pag --

...and then Pag said...
% 
% At 16:46 24-08-2002 +0200, Bas Jobsen wrote:
% use nl2br($content);
% 
% I assume i should use that function when sending to the page, 

Right; it will convert newlines to linebreaks.


% after retrieving the text from the DB, right? Cant i do something when 

That's generally when one would do it.  I tend to just use pre tags
when I need to preserve line breaks rather than converting content,
personally.


% getting the text TO the db and then when i need it, i can just retrieve it, 
% ready to be put on the page?

If you don't mind having HTML code in the database, then go ahead and
convert it a la

  $content = nl2br($content) ;

before writing it to the DB and then it will be that way when it comes
out.


% 
% Thanks.

Sure thing!


% 
% Pag


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76680/pgp0.pgp
Description: PGP signature


Re: [PHP] php equivalient of pushd?

2002-08-26 Thread David T-G

Bill --

...and then bill said...
% 
% I'm running a php script using cron, and want to change the working directory.

Piece of cake; use the chdir command.


% 
% Is there a PHP equivalent of Linux pushd command?

Why do you want to pushd?  Do you have any intention of coming back to
the initial directory?  Note that pushd is meant to be used when you
expect to pop off of the stack and not just as a cd/chdir replacement...

If you really did need a pushd function, you might declare a $dirlist
array and then use the array_push() and array_pop() functions to do the
work for you.  See the Fine Manual for more info.


% 
% kind regards,
% 
% bill hollett


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76683/pgp0.pgp
Description: PGP signature


Re: [PHP] Shell commands as root?

2002-08-26 Thread David T-G

Nick --

...and then Nick Price said...
% 
% How can I get PHP to run a shell command as root?  Thanks!

If [apache running] php is running as root (bad), then just run the
command.

If the user running [apache running] php (typically nobody or http or
web or such) has sudo permissions (generally bad), then use sudo.

When all else fails (typically for a reason), you could just turn on the
SUID bit on that command, or its wrapper script, and then just run it
(also generally bad).

Why do you want your web server to run a command as root?


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76684/pgp0.pgp
Description: PGP signature


Re: [PHP] Re: Doing system things with PHP

2002-08-26 Thread David T-G

Eric, et al --

...and then Eric Pignot said...
% 
%  kill -HUP `cat /var/run/httpd.pid`
% 
%  If you execute this as nobody, I believe it will work, but I haven't
%  tested it.
% 
% nope, it won't, as you need to be the owner to send a signal to a process.

And if the web server is running as nobody, as it probably should be,
then... ?


% 
% regards.
% 
% Eric


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76687/pgp0.pgp
Description: PGP signature


Re: [PHP] PHP IDEs

2002-08-21 Thread David T-G

Michael, et al --

...and then Michael Egan said...
% 
% I know similar threads have come up on this in the past but I suspect it's a 
constantly changing picture.
...
% 
% Any thoughts?

Yes.  vim forever!  It's all you need :-)

OK, I admit that I'm interested in seeing what comes out...  Please post
a summary to the list if you get off-list discussion, and particularly
let us (me) know if you find something that will work in a vt100 screen
with no mouse input.


% 
% Michael Egan


Best of luck  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76373/pgp0.pgp
Description: PGP signature


Re: [PHP] Re: halloween documents

2002-08-21 Thread David T-G

Steve --

...and then Steve Mallett said...
% 
% A plea for help
% 
% Would anyone be willing to code the Halloween Documents so we could 
% print them as PDF files
% 
% http://opensource.org/halloween/

While I don't particularly see what this has to do with php, I also
wonder what sort of coding you require.  What needs to be done?  I might
be just the guy to do it.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76382/pgp0.pgp
Description: PGP signature


Re: [PHP] Code for off-site Maintenance?

2002-08-21 Thread David T-G

Andre, et al --

...and then Andre Dubuc said...
% 
% Soon, I will be transferring my site to go on-line with my IP. Since I've 
% never managed anything off-site, I have a very fundamental question:
% 
% What are the usual procedures with respect to maintaining a site, that is, 
% accessing the PostgreSQL database for corrections, deletions, etc?

While I'm the type who uses ssh to connect and does work on the server,
not everyone is.  I know how I'd take care of the problem, though :-)

Since you're not on the server, I'd either write some management code
as has been suggested (be sure to encrypt your connection, strongly
authenticate who is making the changes, and so on) or just let the
database handle it.  I haven't used PostgreSQL but I have to imagine
it will let you connect to a remote server (hey, MySQL will), so just
fire up your DB client on your local machine, connect to the remote DB,
and make your changes; the only security you need is an ssh [forwarding?]
port for the DB (or use a VPN tunnel).

You *definitely* shouldn't have to transfer entire copies of your DB via
ftp; that's just way too painful.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg76393/pgp0.pgp
Description: PGP signature


[PHP] File Handler Error

2002-08-15 Thread B i g D o g

I am getting include errors in php and when I check the apache logs i get
out of file handler errors.

Has anyone ran into this problem? I am wondering if there is a problem with
the image functions.  I am doing a lot of image creating and manipulation.

Can anyone confirm this?

.: B i g D o g :.



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




[PHP] PHP User Group

2002-08-15 Thread B i g D o g

Is anyone here have any information on the PHP Users Group of Salt Lake
City, Utah?

Thanks,

.: B i g D o g :.




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




Re: [PHP] mailing list managers

2002-08-14 Thread David T-G

Justin, Michael, et al --

...and then Michael Sims said...
% 
% On Wed, 14 Aug 2002 01:09:32 +1000, you wrote:
% 
% I was hoping that maybe there's an opensource or commercial product out
% there that I can install in my doc root (ie, PHP + MySQL support) which will
% handle this in a more effective manner (ie, space the mailout across an hour
% or so, etc etc).
% 
% Take a look at some of the dedicated mailing list managers, and see if

I would agree here.  Use a real mailing list manager instead of trying to
roll your own.


% perhaps you can modify them to get their subscriber list from your
% database.  EZMLM by all accounts is very nice, although I believe it
% requires Qmail.  Majordomo is another option.

While it doesn't truly *require* qmail, that's nonetheless a fairly
accurate statement.  It is, however, very robust and easy to use.


% 
% If you don't want the complexity of those types of programs, look at
% some Perl-based solutions.  I've been learning Perl as time allows,
% and I've found that it's not too difficult if you're already a PHP
% person to pick up Perl.  A search on www.hotscripts.com or
% www.freshmeat.net may turn up something.

Absolutely agreed; the languages are very similar.  [Rumor has it that
php is perl-based or perl-inspired, but I haven't done any independent
digging to see one way or another -- and there are *some* noticeable
differences.]


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg75474/pgp0.pgp
Description: PGP signature


Re: AW: AW: [PHP] Performance of ZLib

2002-08-13 Thread David T-G

Sascha --

...and then Sascha Braun said...
% 
% Thanks for the quick answer, but is tar scriptable via PHP?

You can drive tar, zip, gzip, lharc, arj, bzip2, or just about any other
archive program from the command line, and that means you can do it from
a php script with a system() call.

Note that zip with no compression is just as fast as tar or anything
else.  Yes, it stores the directory at the end of the archive, but it's a
fine way to go and perhaps more recognizable to more surfers out there.


% 
% Schura


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg75359/pgp0.pgp
Description: PGP signature


Re: [PHP] Need a Web Host for php/mySQl

2002-08-13 Thread David T-G

Thomas --

...and then Thomas Edison Jr. said...
% 
% Glory,
% 
% I'm looking for a new Web Hosting company, to host my

I'm not as cheap as Aletia apparently is, but I don't have the technical
problems that it seems that they do, either :-)  I host through datapipe
and we are very stable.  I'm a SysAdmin and programmer, not a hosting
company, so I'm not trying to get rich from this -- but you can bet that
things will stay up because I absolutely have to have them up for myself
(I'm not just the hoster; I'm a client! :-)

Drop me a note if you would like to discuss it further.  [That goes for
anyone else out there, too :-]


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg75396/pgp0.pgp
Description: PGP signature


Re: [PHP] Web host withdraws support for PHP extensions - supposed secuity risks

2002-08-13 Thread David T-G

Alan --

...and then Alan Hale said...
% 
% My Web hosting company has just withdrawn (with no notice) support for PHP
% extensions on the grounds they represent security risks and they don't wish
% to spend time and effort in evaluating and compensating for those risks.

That, and particularly the no notice part, sure sounds lame.


% 
% I'd welcome views on how reasonable this is.

Hmmm...  Is it a risk?  Well, theoretically everything is a risk; they
might as well just shut down their servers now since they don't want to
compensate for risks.  And anything can be buggy, too, so they'd better
wipe those disks clean of any nasty utilities, servers, or operating
systems.

I guess whether or not it's reasonable depends on what they want their
business to do.  If they want to serve FrontPage web clients and perhaps
a little bit of POP3 email, they don't need php.  They don't need apache
for that matter, either, since it's all configurable and dangerous and
everything.


HTH  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg75397/pgp0.pgp
Description: PGP signature


Re: [PHP] passing an array in a form element

2002-08-12 Thread David T-G

Mark, et al --

...and then Mark Charette said...
% 
% I use
% 
% $data=base64_encode(serialize($array_name));
% 
% to send and
% 
% $array_name=unserialize(base64_decode($data));
% 
% to receive.

Aha!  Yes, that works nicely; thanks.  Now to go and see how they work to
see if I need the base64 stuff; that sounds safest to me.


% 
% $data can be passed via a hidden INPUT field.

Right.


Thanks, all; I'll be sure to poke at the other ideas as well.

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg75153/pgp0.pgp
Description: PGP signature


[PHP] passing an array in a link

2002-08-11 Thread David T-G

Hi, all --

I collect field keys in an array that looks like

  $keylist = array('comment','job','spaced out key name','foo',...) ;

and would like to pass the array to myself in a call like

  print a href=\/myscript.php?keylist=$keylist\link/a ;

but when it's actually run it of course says

  ...keylist=Array...

which is quite bad.  I'd use a simple scalar

  $keylist = comment job spaced out key name foo ... ;

but, of course, those darned fields which have spaces embedded in the
names will really mess that up.

How can I pass myself an array -- and recognize it on the receiving end?


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg74956/pgp0.pgp
Description: PGP signature


Re: [PHP] passing an array in a link

2002-08-11 Thread David T-G

Bas, et al --

...and then Bas Jobsen said...
% 
% print a href=\/myscript.php?keylist=.str_replace( 
% ,+,implode(+,$keylist)).\link/a ;

I tried this and my link the looks like

  Click a  href=testme.php?a+b b b+chere/a to go round againbr

(that is, not only have I not taken care of the spaces but I now also
lose the fact that these are part of $keylist).

The entire little script is attached.  You can see various means of
printing the array.

I *have* found that I can construct a link like

  testme.php?keylist[]=akeylist[]=b ...

so that takes care of walking the array but now I need to protect myself
from the spaces.  I've looked at htmlentities() but it doesn't seem to
convert spaces...


Thanks again  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



html

  head

title
  Test page
/title

  /head

  body

?php

  if ( ! $keylist )
  {
print No \$keylist; starting from scratchbr\n ;
#$keylist = array('a','b','c') ;# works (of course)
#$keylist = array('a','b%20b%20b','c') ;# works; is 'b b b' on 2nd pass
$keylist = array('a','b b b','c') ; # doesn't work; spaces are bad
print \$keylist is $keylistbr\n ;
foreach ($keylist as $k)
  { print \$k is .$k.br\n ; }
#print Click a href=\/testme.php?keylist=$keylist\here/a to go round 
againbr\n ;
print Click a href=\testme.php? ;
#foreach ( $keylist as $k ) { print keylist[]=$k ; }
print str_replace(,+,implode(+,$keylist)) ;
print \here/a to go round againbr\n ;
  }
  else
  {
print I have a \$keylist.  It is .$keylist.br\n ;
foreach ( $keylist as $k ) { print \$k is .$k.br\n ; }
  }

  print br\nbr\n ;



?

  /body

/html



msg74958/pgp0.pgp
Description: PGP signature


Re: [PHP] passing an array in a form element

2002-08-11 Thread David T-G

Hi again --

...and then David T-G said...
% 
...
% How can I pass myself an array -- and recognize it on the receiving end?

I had been spending all of my time digging into htmlentities() and the
like when, in fact, all I had to do was a simple preg_replace on each
component :-)

Now how can I pass an array as a form element?  The trick, it seems, will
be recognizing all of the keys unless I can have a form element that has
them all stretched out...


TIA  HAND

:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg74965/pgp0.pgp
Description: PGP signature


[PHP] File Question

2002-08-08 Thread B i g D o g

I have been looking all over the manual and I have not found anything for 
__FILE__  does anyone know where I can get more info on its use in PHP?


.: B i g D o g :.


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




[PHP] .htaccess file

2002-08-01 Thread B i g D o g

Is it possible to set register_globals to off in the .htaccess file.  If so
how do I do that?


.: B i g D o g :.




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




Re: [PHP] Re-directing

2002-07-24 Thread B i g D o g

Check under header() in the docs...


.: B i g D o g :.


- Original Message -
From: Roberts, Mark [EMAIL PROTECTED]
To: PHP Mailing list (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, July 24, 2002 8:28 AM
Subject: [PHP] Re-directing


 Is there a way to redirect to a different script in PHP? I call it
 redirecting, but can't find it in the documentation using that track.

 I have a script...that if a certain criteria is met, I want to load a
 different script. Haven't been able to figure that out yet. I have gotten
 about it by conditionally executing a location.href in javascript. It
works,
 but would like to know how to do it in PHP.

 ~Thanks.

 Mark Roberts
 Sr. Systems Analyst
 LanApps/Web Development
 The Williams Information Services Corporation
 918-573-1706
 [EMAIL PROTECTED]





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




Re: [PHP] is php.net down ?

2002-07-22 Thread B i g D o g

It took me about 30 minutes to get it...just keep trying...some mirrors are
really good...i used a canadian mirror and that worked great...


.: B i g D o g :.



- Original Message -
From: Brian V Bonini [EMAIL PROTECTED]
To: Jay Blanchard [EMAIL PROTECTED]; 'R'twick
Niceorgaw' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, July 22, 2002 10:05 AM
Subject: RE: [PHP] is php.net down ?


 I can get in. Try a mirror if you having trouble.

  -Original Message-
  From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
  Sent: Monday, July 22, 2002 11:56 AM
  To: 'R'twick Niceorgaw'; [EMAIL PROTECTED]
  Subject: RE: [PHP] is php.net down ?
 
 
  [snip]
  any one else able to get into www.php.net ?
  [/snip]
 
  Nope... :^[
 
  Jay
 
 
  --
  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] Comma question

2002-07-22 Thread B i g D o g

Tried to check the archive, but it is offline...


What does the , and {} do in this type of statement?

Example:  echo trtd{$strName}/td/tr, htmlspecialchars( $teststr );

Thanks,


.: B i g D o g :.



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




Re: [PHP] Comma question

2002-07-22 Thread B i g D o g

Thanks all for the info...

I figured that the comma was to concatenate but is was wondering if the
parser handled it different.

I knew the {} helped the parser now which was the variable...but i have
never seen it like that...

I have only seen it like ${var}...

Just wondering the difference...



.: B i g D o G :.


- Original Message -
From: Kevin Stone [EMAIL PROTECTED]
To: B i g D o g [EMAIL PROTECTED]; PHP GEN
[EMAIL PROTECTED]
Sent: Monday, July 22, 2002 5:00 PM
Subject: Re: [PHP] Comma question


 Curly braces {} are sometimes required for PHP to properly parse variables
 within quoted strings.  Good example might be defining variable-variables
 within a quoted string  ${$myvarvar}.  However I do not believe that
curly
 braces are required in this particular string.

 As for the comma I believe it does the same thing as the period.  It will
 concatonate the quoted string with the output of the htmlspecialchars()
 function within the echo statement.

 -Kevin

 - Original Message -
 From: B i g D o g [EMAIL PROTECTED]
 To: PHP GEN [EMAIL PROTECTED]
 Sent: Monday, July 22, 2002 4:34 PM
 Subject: [PHP] Comma question


  Tried to check the archive, but it is offline...
 
 
  What does the , and {} do in this type of statement?
 
  Example:  echo trtd{$strName}/td/tr, htmlspecialchars(
 $teststr );
 
  Thanks,
 
 
  .: B i g D o g :.
 
 
 
  --
  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] No text in form submission

2002-07-21 Thread B i g D o g

Tell your web hosting company to do an upgrade...or find a different hosting
co...


.: B i g D o g :.


- Original Message -
From: Dean Ouellette [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 21, 2002 2:20 PM
Subject: RE: [PHP] No text in form submission


 PHP Version 3.0.16

 -Original Message-
 From: Jason Wong [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 21, 2002 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] No text in form submission

 On Monday 22 July 2002 01:52, Dean Ouellette wrote:
  Been working on trying to get form submission to work.
 
  Now have it so when click enter it e-mails me, but there is no text
  subitted in the e-mail

 What version of php are you using?

  ?
  $MailToAddress = [EMAIL PROTECTED];
  $MailSubject = Group volunteer  list;
  if (!$MailFromAddress) {
  $MailFromAddress = $email;
  }
  $Header = ;
  $Footer = ;
 
  foreach($_POST as $key = $val)
  {
  $val = stripslashes($val);
  $Message .= $key = $val\n;
  }

 What do you see when you:  print_r($_POST)


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

 /*
 JALH regex are more than some crappy posix thing
 JALH they are an art form

 - Marc Zealey on #kernelnewbies
 */


 --
 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] Submitting to cgi script

2002-07-21 Thread B i g D o g

In your example you are using the method of POST to pass the form data to
the cgi script.  However, when you pass the data to the cgi script from the
php script you are using the GET method to pass the data.

Check and see if the cgi can accept with METHOD=GET

.: B i g D o g :.


- Original Message -
From: [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Sunday, July 21, 2002 5:46 PM
Subject: [PHP] Submitting to cgi script


 How can I do this

 I have a form that I want to submit to a second php script that in turn
 submits to a cgi script but I can not get it to work. If I submit
 from the form to the cgi script it works just fine. But there are
 something that I need to do with the data besides submitting to the
 cgi script. Could you look at the sample code below and see if I am
 doing something wrong. I hope this makes sense I am not quit sure how
 to ask what I want to know
 If I was submitting directly to the cgi script the form action would
 look like this
  FORM ACTION=/cgi-bin/siteUserEmail/siteUserEmail.cgi METHOD=POST



 FORM ACTION=siteUserEmail.php METHOD=POST
 INPUT TYPE=TEXT NAME=forwardaddr SIZE=32 VALUE=
 TEXTAREA NAME=aliases ROWS=5 COLS=32/TEXTAREA
 INPUT TYPE=CHECKBOX NAME=vacationmode VALUE=on 
 TEXTAREA NAME=vacationmsg ROWS=5 COLS=32/TEXTAREA
 INPUT TYPE=HIDDEN NAME=name SIZE=-1 VALUE=tester54321
 INPUT TYPE=HIDDEN NAME=group SIZE=-1 VALUE=site53
 INPUT TYPE=HIDDEN NAME=page SIZE=-1 VALUE=siteuseremail
 input type=submit name=Submit value=submit
 /FORM

 The siteUserEmail.php file
 ?
 $cmd=/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwardaddr
 aliases=$aliasesvacationmode=$vacationmodevacationmsg=$vacationmsg
 name=$namegroup=$grouppage=$page;
 exec($cmd);
 ?
 --
 Best regards,
  rdkurth  mailto:[EMAIL PROTECTED]


 --
 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] Exchange LDAP Authentication

2002-07-11 Thread B i g D o g

Has anyone done LDAP auth with PHP on an Exchange 5 server?  I need help
finding the values to authenticate with...


B i g D o g




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




Re: [PHP] Development Tools

2002-07-10 Thread B i g D o g

PHPED is really good if you have the money to spend...


B i g D o g


- Original Message - 
From: Mark McCulligh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 9:42 AM
Subject: [PHP] Development Tools


 I am looking for a good Development tool to write my PHP in and was
 wondering what people are using out there.
 
 I have been looking at Dreamweaver MX, Zend Studio 2.5 and phpEdit.
 I know UltraDev 4 well with ASP, but the new MX now supports PHP.  This
 MX/PHP any good?  Zend looks good with the integrated documentation and
 debugging tools.
 
 Thanks, Mark.
 _
 Mark McCulligh, Application Developer / Analyst
 Sykes Canada Corporation www.SykesCanada.com
 (888)225-6824 ex. 3262
 [EMAIL PROTECTED]
 
 
 
 -- 
 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] Accessing multiple List/Menu values

2002-07-10 Thread B i g D o g

Search the archives...this has been answered by me and many others...


B i g D o g

- Original Message -
From: Joseph Szobody [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 12:02 PM
Subject: [PHP] Accessing multiple List/Menu values


 This is sorta OT, but involves PHP.

 I have a fairly large List/Menu on a form, which allows for multiple
selections. I want users to be able to use cntrl/shift-click to select a
bunch of items. Let's say this List is called 'list'. Now when I submit the
form, how does the processing script access all these different values in
'list'? If I try to echo '$list' it only show *one* of the selected items
from the list. I've tried treating it as an array ($list[0], $list[1], etc),
but that doesn't work either.

 How do I get at the different values?

 Thanks,

 --
 : Joseph Szobody :
 Computers are like airconditioners: They stop working properly if you
open windows.


 --
 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] snmpwalk

2002-07-08 Thread B i g D o g

try 

?php


with no space...


B i g D o g



- Original Message - 
From: MAAS [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 08, 2002 2:24 AM
Subject: [PHP] snmpwalk


 Hi
 
 Iam trying to use snmpwalk but I get this:
 
 Parse error: parse error, unexpected T_VARIABLE in
 c:\inetpub\wwwroot\alarm.php on line 7
 
 This Is my code:
 
 HTML
 HEAD
 TITLEALARM ???/TITLE
 ? php
 $a = snmpwalk(192.168.10.8, pub_likt, 1.3.6.1.2.1.1);
 ?
 /HEAD
 /HTML
 
 
 
 
 -- 
 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] Stored Procedures

2002-07-05 Thread B i g D o g

Try http://techdocs.postgresql.org or techdoc.postgresql.org

B i g D o g


- Original Message - 
From: David Busby [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 1:30 PM
Subject: [PHP] Stored Procedures


 List,
 I'm using a postgres datbase for my PHP project, how do I make stored 
 procedures?  Or if no SPs then what would be recomendation for building 
 simple/reuseable Put and Get procedures for my data?
 
 /B
 
 
 -- 
 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: Stored Procedures

2002-07-05 Thread B i g D o g

Actually,

Postgres supports stored procedures, triggers and views to name a few where
mysql does not...

B i g D o g



- Original Message -
From: Mark McCulligh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 1:45 PM
Subject: [PHP] Re: Stored Procedures


 I think postgres doesn't support store procedure / triggers.  Just like
 MySQL doesn't.

 Mark.

 --
 _
 Mark McCulligh, Application Developer / Analyst
 Sykes Canada Corporation www.SykesCanada.com
 [EMAIL PROTECTED]

 David Busby [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  List,
  I'm using a postgres datbase for my PHP project, how do I make stored
  procedures?  Or if no SPs then what would be recomendation for building
  simple/reuseable Put and Get procedures for my data?
 
  /B
 



 --
 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] Stored Procedures + Answer

2002-07-05 Thread B i g D o g

also not the use of the procedural language plpgsql.  This needs to be
installed in the database that you are using.  If you want it for all
databases that you create you can do this...

template1 = createlang plpgsql template1;
This then allow all subsequently created databases to have plpgsql...
B i g D o g
- Original Message -
From: David Busby [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 2:16 PM
Subject: Re: [PHP] Stored Procedures + Answer


 List,
 I read the documentation on postgres site (http://techdocs.postgres.sql)
 and then also the Google search and came up with this:

 The way PostgreSQL usees stored procedures is like this:
 A stored procedure is really a function
 It just does more...like INSERT/UPDATE/DELETE, multiple DELETE or
 whatever.  So to write them use a function but just call it stored
 procedure  fancy...

 Heres some code that I've never tested or run before:

 CREATE FUNCTION putData (char, varchar, varchar) RETURNS int
 AS '
 DECLARE
 x ALIAS FOR $1;
 y ALIAS FOR $2;
 z ALIAS FOR $3;
 BEGIN
 INSERT INTO tableA (colX, colY, colZ) VALUES (x, y, z);
 RETURN 1;
 END
 ' LANGUAGE 'plpgsql';

 Good Luck

 David Busby wrote:
  List,
  I'm using a postgres datbase for my PHP project, how do I make
  stored procedures?  Or if no SPs then what would be recomendation for
  building simple/reuseable Put and Get procedures for my data?
 
  /B
 
 



 --
 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] Survey: MySQL vs PostgreSQL for PHP

2002-07-05 Thread B i g D o g

I am there with you on PostgreSQL.

B i g D o g




- Original Message -
From: Lazor, Ed [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 2:59 PM
Subject: [PHP] Survey: MySQL vs PostgreSQL for PHP


 How many here feel PostgreSQL has surpassed MySQL as the better backend
for
 PHP?  This would be based on performance (speed, scalability, etc.) and
 features.

 -Ed







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

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


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




Re: [PHP] Dealing with XML charsets

2002-07-03 Thread B i g D o g

Peter,

What OS are you running this on...if you are on windows then uncomment the
php_iconv.dll in your php.ini file and then you can see if you can run the
iconv functions.

If you are running under unix/linux then you need to compile php with the
iconv functions.

Example

./configure --with-iconv=/location/of/iconv

Iconv is a gnu app that you use for the conversions.

You can get more info GNU's website about iconv...

B i g D o g



- Original Message -
From: Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 12:46 AM
Subject: Re: [PHP] Dealing with XML charsets


 On Tue, 2 Jul 2002 15:23:38 -0600, [EMAIL PROTECTED] (Ray Hunter)
wrote:
  Check here:
  http://www.chilkatsoft.com/ChilkatXml.asp

 Doesn't look as if it'll run under Unix?

  Google search:
  http://www.google.com/search?sourceid=navclientq=convert+xml+charset

 I've been googling ont he topic for the past couple of days, and had no
luck :-(




 --
 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] cURL in an exec() . more

2002-07-03 Thread B i g D o g

Check out setuid and sticky bits for the file permissions.

Remember that if you are running php under apache and you try the exec with
a command php is running with apaches permissions.  So apache needs to be
able to run what ever you are trying to run with the exec command.

B i g D o g


- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 8:49 AM
Subject: RE: [PHP] cURL in an exec() . more


 OK, here is where I am (between handling other pre-holiday/long weekend
 processese here);

 I have the PHP script create a shell script containing the needed code for
 the cURL process. Of course the shell script will execute from the command
 line with me as 'root'. But the exec() that calls the shell script will
not
 execute the script because of improper permissions. (Has to do with the
 permissions on the topmost directory for where the file lives, changing
that
 could be dangerous from a security standpoint).

 So I have tried to change those (I am on a Linux box) via the PHP, no
luck.
 It will let me chmod the shell script via the PHP script. So I tried to
move
 the script to /usr/local/bin;

 rename(getlist.sh, /usr/local/bin/getlist.sh); Permission denied
 exec(mv getlist.sh /usr/local/bin/getlist.sh); Permissiion denied
 exec(cp getlist.sh /usr/local/bin/getlist.sh); Permissiion denied

 I am looking into posix_setuid() to change the permissions for the time
 needed, but I've a feeling, after a couple of tests, that this is not
going
 to be the way to do this either.

 I wish permissions in Linux were more straigtforward. Anyone have an idea
 how to do this with opening the server wide? Thanks for all your help.

 Jay



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


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




[PHP] PHP and Apache

2002-07-02 Thread B i g D o g

Has anyone had a problem where PHP created to many open files and crashed
apache?

B i g D o g




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




Re: [PHP] PHP and Apache

2002-07-02 Thread B i g D o g

Sorry bro...doing to many things at once.

Apache 1.3.23
Linux 7.2
PHP 4.1.2

Configuration:
./configure
--with-apxs=/usr/local/apache/bin/apxs
--with-sybase-ct=/sybase
--with-mysql' '--enable-exif
--with-gd
--with-jpeg-dir=/usr/lib
--with-png-dir=/usr/local/lib
--with-zlib
--with-config-file-path=/etc
--with-freetype-dir=/usr/local/lib


My webserver keeps crashing: error log entry
[Tue Jul 2 15:12:07 2002] [error] [client 164.214.4.59] (24)Too many open
files

I am just wondering if this a php issue or something else...


B i g D o G



- Original Message -
From: Michael Sweeney [EMAIL PROTECTED]
To: B i g D o g [EMAIL PROTECTED]
Cc: PHP GEN [EMAIL PROTECTED]
Sent: Tuesday, July 02, 2002 12:04 PM
Subject: Re: [PHP] PHP and Apache


 No. Only you. :-)

 Platform? Environment? Configuration information?

 ..mike..

 On Tue, 2002-07-02 at 11:01, B i g D o g wrote:
  Has anyone had a problem where PHP created to many open files and
crashed
  apache?
 
  B i g D o g
 
 



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




[PHP] DBX Functions

2002-07-02 Thread B i g D o g

Has anyone tested the dbx functions with huge results 1+ records
returned?

How does the performance handle?

Thanks,

B i g D o g


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




Re: [PHP] Re: Have you seen this host?

2002-07-02 Thread B i g D o g

He is looking for a web hosting company that has what he has listed below...

B i g D o g


- Original Message -
From: Lazor, Ed [EMAIL PROTECTED]
To: 'Tony Harrison' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, July 02, 2002 2:29 PM
Subject: RE: [PHP] Re: Have you seen this host?


 Are you not promoting a hosting service?  What is your inquiry?

 -Original Message-
 I think calling it spam is a bit harsh! Offtopic maybe, but it is a
genuine
 enquiry

   Hi, if you can find a web host that offers ALL these services, i will
 eat
  my
   hat on my webcam to the whole club:
  
   Usenet Newsgroup.
   at least 200MB space
   Perl/CGI support (optional)
   PHP - note: must have GD library installed!
   MySQL
   SHOUTcast web radio
   Reseller account option
   at least 300MB per month bandwidth
   ASP (optional)



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

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


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




Re: [PHP] Help - I'm New

2002-07-02 Thread B i g D o g

I hate to sound like an ass, but the best thing would to really read the php
manual @ php.net or buy a PHP programming book...

There are many great books out there on PHP that you can get.


1. Check under php.net for installation and configuration
2. Review include(), include_once(), require() and require_once() for your
forms.

B i g D o g



- Original Message -
From: admin [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Tuesday, July 02, 2002 3:14 PM
Subject: [PHP] Help - I'm New


 Hi,  first let me introduce myself...

 My name is Kit, and I own the domain below
 and host sites from off that domain.

 I'm new to using PHP...and need some help.

 1. I have apache for win32 1.3.26 setup
 on my w2k pro at home, and need to know
 how to enable PHP in the config.

 2. I also have a PHP website, and need to know
 how to include FORMS for subscribing to newletters
 in a file called header.php

 *** http://www.myispnet.net ***
Administrator
My ISP Network
[EMAIL PROTECTED]
 *** http://www.myispcentral.net ***


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




<    4   5   6   7   8   9   10   11   >