OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 13 Jun 2006 03:40:01 -0000 Issue 4182

php-general-digest-helplists.php.net
Date: Mon Jun 12 2006 - 22:40:01 CDT


php-general Digest 13 Jun 2006 03:40:01 -0000 Issue 4182

Topics (messages 237812 through 237865):

Re: transform RDF to HTML via XSL and PHP
        237812 by: Mario Pavlov
        237814 by: Rob Richards
        237845 by: Mario Pavlov

Re: Video compression with php?
        237813 by: Merlin
        237835 by: Richard Lynch
        237837 by: Rabin Vincent

checking if any values in one array are in another
        237815 by: blackwater dev
        237816 by: Jay Blanchard
        237820 by: Jochem Maas

php->html "rendering"
        237817 by: Ryan A
        237818 by: Dave Goodchild
        237819 by: Stut
        237821 by: Ryan A
        237823 by: Brady Mitchell
        237826 by: Ryan A
        237827 by: Brady Mitchell
        237828 by: Larry Garfield
        237830 by: Ryan A
        237831 by: Ryan A
        237832 by: Satyam
        237833 by: Ryan A
        237834 by: Richard Lynch
        237839 by: Ryan A
        237851 by: Jochem Maas
        237853 by: Ryan A
        237862 by: Larry Garfield
        237865 by: Brady Mitchell

Re: Session puzzle... / why no new session?
        237822 by: Eric Butera

Convert PHP to javascript
        237824 by: Mantas
        237825 by: Brady Mitchell

[Announcement] Sparse 1.04b released
        237829 by: Daniel Orner

Re: magic_quotes_gpc? Session variables
        237836 by: Richard Lynch

Re: popen and pclose. Something changed in 4.4.2 !
        237838 by: Richard Lynch

Re: remove keys from array
        237840 by: Richard Lynch
        237843 by: tg-php.gryffyndevelopment.com
        237844 by: afan.afan.net

Re: Curio
        237841 by: Richard Lynch
        237850 by: Satyam

Re: How to tell if a socket is connected
        237842 by: Richard Lynch
        237854 by: Adam Zey
        237863 by: Michael W.

Re: better way to create custom text file from query results?
        237846 by: Richard Lynch

Re: Introductory message
        237847 by: Richard Lynch
        237849 by: Jay Blanchard

Re: generating/transforming HTML so that it 'works' in a flash file
        237848 by: Richard Lynch

trapping fatal errors...?
        237852 by: Christopher J. Bottaro
        237855 by: Adam Zey

GD
        237856 by: Beauford
        237857 by: Tom Ray [Lists]
        237859 by: Ray Hauge
        237861 by: Beauford

date_sunrise accuracy
        237858 by: KI

Re: call to pprofp not working for PHP APD
        237860 by: Chris

php stopped sending mail
        237864 by: blackwater dev

Administrivia:

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

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

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

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

attached mail follows:


> <xsl:template match="rdf:RDF">
> <html>
> <body>
> <table border="1">
> <xsl:for-each select="item">
> <tr>
> <td><xsl:value-of select="title"/></td>
> <td><xsl:value-of select="link"/></td>
> </tr>
> </xsl:for-each>
> </table>
> </body>
> </html>
> </xsl:template>
> </xsl:stylesheet>
>
>
>
>I'ts been awhile, but try the above.
>
>--
>Anthony Ettinger
>Signature: http://chovy.dyndns.org/hcard.html

nope
it doesn't work like this
still the same result
I think the problem is in the way that I'm accessing the elements
how exactly this should be done ?...

-----------------------------------------------------------------
http://www.sportni.bg/worldcup/ - Германия 2006 - Световното първенство по футбол наближава!

attached mail follows:


Mario Pavlov wrote:

> nope
> it doesn't work like this
> still the same result
> I think the problem is in the way that I'm accessing the elements
> how exactly this should be done ?...

Its due to default namespaces in the feed. The item elements and its
child elements are in the default namespace:
http://my.netscape.com/rdf/simple/0.9/

You need to declare this namespace with a prefix in order to access the
elements within the stylesheet (same as using XPath).

i.e. the following stylesheet uses the prefix rdf9 for that namespace.

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf9="http://my.netscape.com/rdf/simple/0.9/">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>

<xsl:template match="/">
  <html>
   <body>
     <table border="1">
       <xsl:for-each select="//rdf:RDF/rdf9:item">
       <tr>
         <td><xsl:value-of select="rdf9:title"/></td>
         <td><xsl:value-of select="rdf9:link"/></td>
       </tr>
       </xsl:for-each>
     </table>
   </body>
   </html>
</xsl:template>
</xsl:stylesheet>

Rob

--
rrichardsctindustries.net
author of Pro PHP XML and Web Services from Apress

attached mail follows:


>Mario Pavlov wrote:
>
>> nope
>> it doesn't work like this
>> still the same result
>> I think the problem is in the way that I'm accessing the elements
>> how exactly this should be done ?...
>
>Its due to default namespaces in the feed. The item elements and its
>child elements are in the default namespace:
>http://my.netscape.com/rdf/simple/0.9/
>
>You need to declare this namespace with a prefix in order to access the
>elements within the stylesheet (same as using XPath).
>
>i.e. the following stylesheet uses the prefix rdf9 for that namespace.
>
><?xml version="1.0" encoding="ISO-8859-1"?>
><xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>xmlns:rdf9="http://my.netscape.com/rdf/simple/0.9/">
><xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
>
><xsl:template match="/">
> <html>
> <body>
> <table border="1">
> <xsl:for-each select="//rdf:RDF/rdf9:item">
> <tr>
> <td><xsl:value-of select="rdf9:title"/></td>
> <td><xsl:value-of select="rdf9:link"/></td>
> </tr>
> </xsl:for-each>
> </table>
> </body>
> </html>
></xsl:template>
></xsl:stylesheet>
>
>Rob
>
>--
>rrichardsctindustries.net
>author of Pro PHP XML and Web Services from Apress
>

thank you man!! :)
I can't believe it, it just WORKS :)
thank you very much!
it took me about a week ...
thank you again! :)
god bless you :)

-----------------------------------------------------------------
http://www.sportni.bg/worldcup/ - Германия 2006 - Световното първенство по футбол наближава!

attached mail follows:


Rabin Vincent schrieb:
> On 6/12/06, Merlin <ngroupsfastmail.fm> wrote:
>> I am searching for a way to convert video during an upload
>> to a flash format including compression. Is there any php module
>> which does something like that? I know that there is a lot out there
>> for images, but for videos?
>
> Look into ffmpeg. I think it also has a PHP extension.
>
> Rabin

Hello Rabin,

yes you are right there is a php extension for ffmpeg. However as I
learned from their sourceforge page is, that this sw does only enable
one to get snapshots out of a video, but not to convert and compress
ist. What I am looking for is a software which does compress a video and
encodes it into flash 8 format for streaming purpose. In a way like
youtube does it.

Any ideas?

Thanks, Merlin

attached mail follows:


On Mon, June 12, 2006 8:59 am, Merlin wrote:
> I am searching for a way to convert video during an upload
> to a flash format including compression. Is there any php module
> which does something like that? I know that there is a lot out there
> for images, but for videos?

Find a program that does the conversion, and http://php.net/exec it.

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

attached mail follows:


On 6/12/06, Merlin <ngroupsfastmail.fm> wrote:
> yes you are right there is a php extension for ffmpeg. However as I
> learned from their sourceforge page is, that this sw does only enable
> one to get snapshots out of a video, but not to convert and compress
> ist. What I am looking for is a software which does compress a video and
> encodes it into flash 8 format for streaming purpose. In a way like
> youtube does it.
>
> Any ideas?

Well, the php extension may not support it, but ffmpeg
can do the conversion. Just exec() the command line
from your php script.

Google: ffmpeg flv

Rabin

attached mail follows:


Is there a single php function that will tell me if any values in one array
are in another without looping through one of the arrays and doing in_array?

Thanks!

attached mail follows:


[snip]
Is there a single php function that will tell me if any values in one
array
are in another without looping through one of the arrays and doing
in_array?
[/snip]

You have read http://www.php.net/array right?
http://www.php.net/manual/en/function.array-intersect-assoc.php

attached mail follows:


Jay Blanchard wrote:
> [snip]
> Is there a single php function that will tell me if any values in one
> array
> are in another without looping through one of the arrays and doing
> in_array?
> [/snip]
>
> You have read http://www.php.net/array right?

rtm? thats for wimps ;-)

> http://www.php.net/manual/en/function.array-intersect-assoc.php

there is also:

        http://www.php.net/manual/en/function.array-intersect.php

for pure value intersection, and this:

        http://www.php.net/manual/en/function.array-intersect.php

for pure key intersection.
and then there are a host of similar funcs that use user defined callbacks to
perform the comparison for whether keys &/or are values are considered the
same.

>

attached mail follows:


Hey all,

heres the short explanation of what I am supposed to
do,
I need to render/convert the entire site to normal
html pages so that it can be loaded onto a cd and
given out.

The good news is that the whole site has not yet been
built so i can start from the ground up.

I have a few ideas on how this can be done, ie the
rendering php-html, but other than that...am pretty
much lost.

Does any class program exist that can help me do this?

Ideas, input, links....anything, would be greatly
appreciated.

Thanks!
Ryan

P.S: If needed I can write a MUCH longer explanation
detailing the site

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


On 12/06/06, Ryan A <genphpyahoo.com> wrote:
>
> Hey all,
>
> heres the short explanation of what I am supposed to
> do,
> I need to render/convert the entire site to normal
> html pages so that it can be loaded onto a cd and
> given out.
>
> The good news is that the whole site has not yet been
> built so i can start from the ground up.
>
> I have a few ideas on how this can be done, ie the
> rendering php-html, but other than that...am pretty
> much lost.
>
> Does any class program exist that can help me do this?
>
> Ideas, input, links....anything, would be greatly
> appreciated.
>
> Thanks!
> Ryan
>
> Yes, please write a longer explanation - not sure what you mean. You need
> to convert and entire site that has not been built yet into simple html
> pages. Build the site with html?
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk?page_id=5

attached mail follows:


Ryan A wrote:
> heres the short explanation of what I am supposed to
> do,
> I need to render/convert the entire site to normal
> html pages so that it can be loaded onto a cd and
> given out.
>
> The good news is that the whole site has not yet been
> built so i can start from the ground up.
>
> I have a few ideas on how this can be done, ie the
> rendering php-html, but other than that...am pretty
> much lost.
>
> Does any class program exist that can help me do this?
>
> Ideas, input, links....anything, would be greatly
> appreciated.
>

You want something like wget, but I'm not sure how well it copes with
querystrings and the like. You will also have problems if the site uses
cookies or sessions.

If I were starting from scratch I would make sure I had nice URLs that
didn't contain query strings.

I do know there are a number of apps out there that can build a CD with
the actual application on it - so it runs a local web server and
actually executes the PHP from the CD. Google for it. Dunno how good
they are tho.

Hope that helped.

-Stut

attached mail follows:


> > Hey all,
> >
> > heres the short explanation of what I am supposed
> to
> > do,
> > I need to render/convert the entire site to
> normal
> > html pages so that it can be loaded onto a cd and
> > given out.
> >
> > The good news is that the whole site has not yet
> been
> > built so i can start from the ground up.
> >
> > I have a few ideas on how this can be done, ie the
> > rendering php-html, but other than that...am
> pretty
> > much lost.
> >
> > Does any class program exist that can help me do
> this?
> >
> > Ideas, input, links....anything, would be greatly
> > appreciated.
> >
> > Thanks!
> > Ryan
> >
> > Yes, please write a longer explanation - not sure
> what you mean. You need
> > to convert and entire site that has not been built
> yet into simple html
> > pages. Build the site with html?

Hi,
Ok, heres the longer explanation.

(slightly simplified as there are not graphics to show
you EXACTLY the entire design.)

Picture a 100%/100% (widht & height) table with a
header sell, a left cell, middle (this cell will
display the main data) right cell and a bottom cell.

\\\ This is the design template. ///

The top cell will contain a header graphic which keeps
changing depending on the section (eg: contact, home,
products)

The left cell is for a navigation menu, which is
around 20 items and each has a submenu with around 6
pages.
Depending on the page and the left cell, on the right
cell you have options to download wmv files and pdf
files.

The center cell is for displaying the main text and
images.

The bottom cell is just like the top cell.

So far this has been built just with html pages, but
now they want to convert this into a php/mysql app so
changing designs etc wont be a problem in future.

Questions? please tell me if I forgot to mention
anything.

Stut, if there are reliable programs that would run
off a cd that allows me to do the above....it would be
absolutely fantastic, thanks for the tip, will search
google....

Anybody have any experiece with one of these things
that run off the CD like Stut mentioned, *please* drop
me a line, I would really appreciate it.

Thanks!
Ryan

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


> -----Original Message-----
> I need to render/convert the entire site to normal
> html pages so that it can be loaded onto a cd and
> given out.
>
> Does any class program exist that can help me do this?

Save yourself a lot of work and use HTTrack.

http://www.httrack.com/

Brady

attached mail follows:


--- Brady Mitchell <bradymext.usu.edu> wrote:

> > -----Original Message-----
> > I need to render/convert the entire site to
> normal
> > html pages so that it can be loaded onto a cd and
> > given out.
> >
> > Does any class program exist that can help me do
> this?

 
> Save yourself a lot of work and use HTTrack.
>
> http://www.httrack.com/

Very very interesting, thank you!

If you have tried this and have downloaded dynamic
pages/sites (eg: PHP pages) please tell me if you had
any link problems from one page to another.

Thanks!
Ryan

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


> -----Original Message-----
> > Save yourself a lot of work and use HTTrack.
> >
> > http://www.httrack.com/
>
>
> Very very interesting, thank you!
>
> If you have tried this and have downloaded dynamic
> pages/sites (eg: PHP pages) please tell me if you had
> any link problems from one page to another.

I've used this program to download dynamic websites for presentations
and have never had problems with links. Of course, I always suggest
testing before trying to use something in any kind of presentation.

It probably wouldn't hurt to use something like Xenu Link Sleuth (
http://home.snafu.de/tilman/xenulink.html ) to check the links, but as I
said, I've never had a problem.

Brady

attached mail follows:


wget -m -k http://www.yoursite.com/

Cheers. :-)

--
Larry Garfield

On Mon, June 12, 2006 10:54 am, Ryan A said:
> Hey all,
>
> heres the short explanation of what I am supposed to
> do,
> I need to render/convert the entire site to normal
> html pages so that it can be loaded onto a cd and
> given out.
>
> The good news is that the whole site has not yet been
> built so i can start from the ground up.
>
> I have a few ideas on how this can be done, ie the
> rendering php-html, but other than that...am pretty
> much lost.
>
> Does any class program exist that can help me do this?
>
> Ideas, input, links....anything, would be greatly
> appreciated.
>
> Thanks!
> Ryan
>
> P.S: If needed I can write a MUCH longer explanation
> detailing the site

attached mail follows:


Hi,

Thanks for the suggestion, I am not too familier with
wget but (correct me if i am wrong) wont wget just get
the output from the pages ignoreing the links?

Thanks!
Ryan

--- Larry Garfield <larrygarfieldtech.com> wrote:

> wget -m -k http://www.yoursite.com/
>
> Cheers. :-)
>
> --
> Larry Garfield
>
> On Mon, June 12, 2006 10:54 am, Ryan A said:
> > Hey all,
> >
> > heres the short explanation of what I am supposed
> to
> > do,
> > I need to render/convert the entire site to
> normal
> > html pages so that it can be loaded onto a cd and
> > given out.
> >
> > The good news is that the whole site has not yet
> been
> > built so i can start from the ground up.
> >
> > I have a few ideas on how this can be done, ie the
> > rendering php-html, but other than that...am
> pretty
> > much lost.
> >
> > Does any class program exist that can help me do
> this?
> >
> > Ideas, input, links....anything, would be greatly
> > appreciated.
> >
> > Thanks!
> > Ryan
> >
> > P.S: If needed I can write a MUCH longer
> explanation
> > detailing the site
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


Quick question;

If the site is updated with new pages/links is there
anyway of specifying to HTTrack to get just the new
pages or does it get the whole site again?

Reason I ask is they are going to have a s**tload of
pages...maybe 4k or pages

Thanks!
Ryan

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


Sorry if I am completely off the mark with this sugestion. You can set a
full bootable LAMP system on a CD. If doing a demo is what you want, this
would allow you to make a full bootable demo that does not install anything
in the host machine and is completely dynamic. These systems allow you to
mount a ramdisk where you can copy small databases, if you want to allow for
updates (completely volatile, for sure, but they are good enough for a demo,
while you don't boot, they really work). Except for the volatility of the
database, it would be the very real thing.

Satyam

----- Original Message -----
From: "Ryan A" <genphpyahoo.com>
To: "Brady Mitchell" <bradymext.usu.edu>; "php php"
<php-generallists.php.net>
Sent: Monday, June 12, 2006 8:09 PM
Subject: RE: [PHP] php->html "rendering"

> Quick question;
>
> If the site is updated with new pages/links is there
> anyway of specifying to HTTrack to get just the new
> pages or does it get the whole site again?
>
> Reason I ask is they are going to have a s**tload of
> pages...maybe 4k or pages
>
> Thanks!
> Ryan
>
> ------
> - The faulty interface lies between the chair and the keyboard.
> - Creativity is great, but plagiarism is faster!
> - Smile, everyone loves a moron. :-)
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Hi Satyam,
Totally off the mark :-)
thanks for writing though.

The site (which later to be copied onto cd) is not for
demo purposes but to distribute to schools, (children
and people wanting to learn Swedish) its a govt
sponsored project so the site and the CDs should/will
be free.

Cheers,
Ryan

--- Satyam <Satyamsatyam.com.ar> wrote:

> Sorry if I am completely off the mark with this
> sugestion. You can set a
> full bootable LAMP system on a CD. If doing a demo
> is what you want, this
> would allow you to make a full bootable demo that
> does not install anything
> in the host machine and is completely dynamic.
> These systems allow you to
> mount a ramdisk where you can copy small databases,
> if you want to allow for
> updates (completely volatile, for sure, but they are
> good enough for a demo,
> while you don't boot, they really work). Except for
> the volatility of the
> database, it would be the very real thing.
>
> Satyam
>
> ----- Original Message -----
> From: "Ryan A" <genphpyahoo.com>
> To: "Brady Mitchell" <bradymext.usu.edu>; "php php"
>
> <php-generallists.php.net>
> Sent: Monday, June 12, 2006 8:09 PM
> Subject: RE: [PHP] php->html "rendering"
>
>
> > Quick question;
> >
> > If the site is updated with new pages/links is
> there
> > anyway of specifying to HTTrack to get just the
> new
> > pages or does it get the whole site again?
> >
> > Reason I ask is they are going to have a s**tload
> of
> > pages...maybe 4k or pages
> >
> > Thanks!
> > Ryan
> >
> > ------
> > - The faulty interface lies between the chair and
> the keyboard.
> > - Creativity is great, but plagiarism is faster!
> > - Smile, everyone loves a moron. :-)
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
> >
>
>

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


You have just described what wget does...

On Mon, June 12, 2006 10:54 am, Ryan A wrote:
> Hey all,
>
> heres the short explanation of what I am supposed to
> do,
> I need to render/convert the entire site to normal
> html pages so that it can be loaded onto a cd and
> given out.
>
> The good news is that the whole site has not yet been
> built so i can start from the ground up.
>
> I have a few ideas on how this can be done, ie the
> rendering php-html, but other than that...am pretty
> much lost.
>
> Does any class program exist that can help me do this?
>
> Ideas, input, links....anything, would be greatly
> appreciated.
>
> Thanks!
> Ryan
>
> P.S: If needed I can write a MUCH longer explanation
> detailing the site
>
> ------
> - The faulty interface lies between the chair and the keyboard.
> - Creativity is great, but plagiarism is faster!
> - Smile, everyone loves a moron. :-)
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

attached mail follows:


 
> You have just described what wget does...

Oooooookayyy, and thats the cue for Ryan old boy to
start reading up on "wget" :-)
never used wget before...

Will google for it, in the meantime if anybody wants
to send me links (even RTFMs) would appreciate it.

Thanks!
Ryan

 
>
> On Mon, June 12, 2006 10:54 am, Ryan A wrote:
> > Hey all,
> >
> > heres the short explanation of what I am supposed
> to
> > do,
> > I need to render/convert the entire site to
> normal
> > html pages so that it can be loaded onto a cd and
> > given out.
> >
> > The good news is that the whole site has not yet
> been
> > built so i can start from the ground up.
> >
> > I have a few ideas on how this can be done, ie the
> > rendering php-html, but other than that...am
> pretty
> > much lost.
> >
> > Does any class program exist that can help me do
> this?
> >
> > Ideas, input, links....anything, would be greatly
> > appreciated.
> >
> > Thanks!
> > Ryan
> >
> > P.S: If needed I can write a MUCH longer
> explanation
> > detailing the site
> >
> > ------
> > - The faulty interface lies between the chair and
> the keyboard.
> > - Creativity is great, but plagiarism is faster!
> > - Smile, everyone loves a moron. :-)
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> >
> >
>
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


Ryan A wrote:
> Hi,
>
> Thanks for the suggestion, I am not too familier with
> wget but (correct me if i am wrong) wont wget just get
> the output from the pages ignoreing the links?

that's the default behaviour - but wget has about a zillion
parameters for controlling its behaviour, it's quite easy to scrap
a complete site in one call and change the file extension of
all files as you go (including the relevant links in the files
that are downloaded).

that said it could take a week to figure out all the
parameters. ;-)

>
> Thanks!
> Ryan

attached mail follows:


--- Jochem Maas <jochemiamjochem.com> wrote:

> Ryan A wrote:
> > Hi,
> >
> > Thanks for the suggestion, I am not too familier
> with
> > wget but (correct me if i am wrong) wont wget just
> get
> > the output from the pages ignoreing the links?
>
> that's the default behaviour - but wget has about a
> zillion
> parameters for controlling its behaviour, it's quite
> easy to scrap
> a complete site in one call and change the file
> extension of
> all files as you go (including the relevant links in
> the files
> that are downloaded).
>
> that said it could take a week to figure out all the
> parameters. ;-)

Heck yeah... just been reading up on it... lots of
stuff, who would think one little four letter word
could do so much.....oops, now thinking of another
four letter word without which....none of us would be
here

;o)

Cheers!
Ryan

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

attached mail follows:


On Monday 12 June 2006 17:08, Ryan A wrote:

> > that said it could take a week to figure out all the
> > parameters. ;-)
>
> Heck yeah... just been reading up on it... lots of
> stuff, who would think one little four letter word
> could do so much.....oops, now thinking of another
> four letter word without which....none of us would be
> here

That's why I included the switches I did. :-) I had to do something very
similar just last week. I needed to make a static snapshot of a site we
built for a client using a CMS, so everything was dynamic. They needed a
static snapshot to put on a laptop to take to a tradeshow. wget, with a wee
bit of sed massaging, did the trick quite well.

-m means "mirror". That is, recurse to all links that don't leave the domain.
It's for exactly this sort of task.

-k tells it to convert links. That way if you have all absolute links in your
HTML output, it will mutate them for you to stay within the local mirror
you're creating.

If you have GET queries in your pages (we did), then I recommend also using:

--restrict-file-names=windows

That will tell it to convert any blah?foo=bar links into blahfoo=bar, since
the first is not a valid filename in Windows. I find that even on a Linux
box, the latter works better.

So your full command would be

wget -m -k --restrict-file-names=windows http://www.example.com/

Start with that and see what you get, then refine as needed. If it's a big
site, you may also want to use the --wait and --random-wait switches to avoid
causing the web server to flip out.

wget is one of those *nix command line utilities that's been around forever,
does exactly one thing, but does it so amazingly well (once you realize how)
that it renders about 50 commercial applications completely pointless. :-)

--
Larry Garfield AIM: LOLG42
larrygarfieldtech.com ICQ: 6817012

"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson

attached mail follows:


> -----Original Message-----
> Quick question;
>
> If the site is updated with new pages/links is there
> anyway of specifying to HTTrack to get just the new
> pages or does it get the whole site again?

Yes, there is an option to just update the downloaded site. I've never
actually used that option though, so I'd take it for a test drive before
counting on it.

Brady

attached mail follows:


On 6/9/06, Ryan A <genphpyahoo.com> wrote:
> ini_set('session.name', 'COSTREAM_SESSION');

Check out
http://us2.php.net/manual/en/function.session-name.php

attached mail follows:


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi there,

Could someone help me to convert this snippet of PHP code to JavaScript?

<?php
$b91_enctab = array(
    'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
    'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
    'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
    'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
    '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '!', '#', '$',
    '%', '&', '(', ')', '*', '+', ',', '.', '/', ':', ';', '<', '=',
    '>', '?', '', '[', ']', '^', '_', '`', '{', '|', '}', '~', '"'
);
$b91_dectab = array_flip($b91_enctab);

function base91_decode($d)
{
    global $b91_dectab;
    $l = strlen($d);
    $v = -1;
    for ($i = 0; $i < $l; ++$i) {
        $c = $b91_dectab[$d{$i}];
        if (!isset($c))
            continue;
        if ($v < 0)
            $v = $c;
        else {
            $v += $c * 91;
            $b |= $v << $n;
            $n += ($v & 8191) > 88 ? 13 : 14;
            do {
                $o .= chr($b & 255);
                $b >>= 8;
                $n -= 8;
            } while ($n > 7);
            $v = -1;
        }
    }
    if ($v + 1)
        $o .= chr(($b | $v << $n) & 255);
    return $o;
}

function base91_encode($d)
{
    global $b91_enctab;
    $l = strlen($d);
    for ($i = 0; $i < $l; ++$i) {
        $b |= ord($d{$i}) << $n;
        $n += 8;
        if ($n > 13) {
            $v = $b & 8191;
            if ($v > 88) {
                $b >>= 13;
                $n -= 13;
            } else {
                $v = $b & 16383;
                $b >>= 14;
                $n -= 14;
            }
            $o .= $b91_enctab[$v % 91] . $b91_enctab[$v / 91];
        }
    }
    if ($n) {
        $o .= $b91_enctab[$b % 91];
        if ($n > 7 || $b > 90)
            $o .= $b91_enctab[$b / 91];
    }
    return $o;
}
?>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4-svn4127: (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBRI2eYd0PBLoNJrhBAQizKQf9H/pSloR7F/nV4Kjh7Rr97MoS/3+jrdnz
SEsk0qk6Qp09Q6ZFEYG7Y8WddtYOkK9gSB4OvuYpqPfX+IgZTrMjrobbmjTnifmB
O73OO992mkKTfX/tEF5hSIOa++i+0pmJK+sAH0LhntSsdMokB7hydbfYvvXX0jl/
ALhi8H97psjdmHdaWpP0cmqndncaOJFKhaiPD3ZmFpkwrOEPvuRMmb4aVIrnw+gb
Gfewd2l/prEPXoO0iaVB8cH2v21DDjpOaW1WoBho1Mb5pHMP7byyenfv4zSeBmrL
HHN1x+EyCe6uDoU1TOOcwdVOS0X/4e6lmwMUkCyp/YkhEPsiqSnKQg==
=Ef4F
-----END PGP SIGNATURE-----

attached mail follows:


> -----Original Message-----
> Could someone help me to convert this snippet of PHP code to
> JavaScript?

If by "help me" you mean "do it for me" than I can tell you that nobody
is going to do it. Start working on it, and ask questions when you get
stuck, we're here to help, not do your job

Brady

attached mail follows:


        A new version of Sparse, my framework for creating MySQL programs
without all that programming, has been released. We're getting close to
having all the features I really think it needs... after that it'd just
be window dressing. Unless someone has some more suggestions!

--Daniel
--
Sparse - a new way to write MySQL-based programs with little to no
actual programming. Save yourself time and effort!
http://sparse-php.sourceforge.net/

attached mail follows:


On Mon, June 12, 2006 7:22 am, Joгo Cвndido de Souza Neto wrote:
> "Mk" <MkMinuk.Net> escreveu na mensagem
> news:448D5953.7080709Minuk.Net...
>> Hey gang,
>>
>> I was having the weirdest problems when I decided to update the
>> code
>> for my site(written in PHP) last modified over a year ago. The code
>> ran
>> fine under my home development system, but on the hosting
>> machine(1and1.com), my code would break. Horribly.
>>
>> I narrowed the problem to this - If I have a variable in
>> $_SESSION(for
>> example, 'username') and in my page, I declare a variable (for
>> example
>> '$username="guest"'), I've effectively accessed and overwritten the
>> session variable. It's been over a year, but I believe this is due
>> to
>> magic_quotes_gpc flag being 1 or something - I checked with my
>> host's
>> phpinfo page and it is set to 1.
>>
>> My question is(before I send my host an e-mail to ask them to
>> turn it
>> off for my site) is, magic_quotes_gpc IS the culprit, right? I mean
>> the
>> whole behavior of if you declare a variable :
>>
>> $_SESSION['username'] = "Mark"
>>
>>
>> then you can just write $username instead of
>> $_SESSION["username"] to
>> access the session variable is because of magic_quotes_gpc?

There was a bug in some release or othere where $_SESSION strings were
somehow being "leaked" into PHP userland space as "string references"
-- which aren't even defined in PHP userland, but that's what they
were.

magic_quotes_gpc on/off would probably not help, as the bug went more
like this:

$foo = $_SESSION['foo']; //$foo is now a REFERENCE to the session data.
.
.
.
$foo = 42; //$_SESSION['foo'] just got changed

Your webhost needs to upgrade, if they are running this old buggy
version...

Turning OFF register_globals *MIGHT* "fix" it, in that the bug could
have been triggered solely by register_globals being "ON"...

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

attached mail follows:


I can only suggest you change the "default" settings on the MS-DOS
application thingie...

Right-click the MS-DOS icon in the Start menu, mess with settings like
"run in background" etc.

I suspect that it is a configuration of MS-DOS window issue, and has
nothing to do with PHP.

On Mon, June 12, 2006 3:09 am, Venkatesh M. S. wrote:
> Greetings!
>
> I was using popen and pclose on a previous version of PHP on Windows
> with an
> older version of Apache (2.x). ( I think it was 4.4.1 but will need to
> check
> as i am not sure).
>
> pclose(popen("start " . $exe . " " . $args, "r"))
>
> Where $exe is my path to the batch file and $args are the arguments
> for the
> batch file. The batch file, in turn calls other batch files on a
> shared
> folder on a different PC
>
> On Windows, it would open up the dos window and run commands there and
> exit
> and the PHP script that called the pclose would terminate loading on
> the
> users' browsers.
>
> Now, with PHP 4.4.2, the pclose and popen send the tasks to the
> background
> and the dos window does not show up! As a result, killing the dos
> process is
> not possible (i get access denied in windows...) and the users cannot
> see
> the dos window when it runs.
>
> I would like the php script to send the commands to a dos window, and
> the
> php script to finish executing. I tried passthru, system, exec and
> proc_open... and none of them work. None of them bring up the dos
> window.
>
> Please help!
>
>
> Regards
>
>
> Venkat
>

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

attached mail follows:


On Sun, June 11, 2006 6:57 am, Ahmed Abdel-Aliem wrote:
> hi all
> when i have array in the form of :
> Array ( [0] => 2 [ID] => 2 [1] => asdasd [CategoryName] => asdasd ) )
> how can i make it in the form of :
> Array ( [ID] => 2 [CategoryName] => asdasd ) )
>
> can anyone help me with that plz ?

I don't even understand the question...

Where did this array come from?

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

attached mail follows:


Crap.. I remember seeing an example of something that yielded arrays like this and now I can't find it.

It basically created an array (from a database I thought.. but can't find the example under mysql_fetch_assoc or mysql_fetch_array... thought it was in the standard PHP documentation (not the user comments).

Anyway, it looked just like this.

first array element key = "ID" and value = "2"
second array element key = "CategoryName" and value = "asdasd"

But you ended up with an array that merged an associative array and a regular indexed array.

So you get, in addition to the above, a 0 = 2 and 1 = asdasd.

Looks like he wants just the associative side of it.. not the indexed.

-TG

= = = Original message = = =

On Sun, June 11, 2006 6:57 am, Ahmed Abdel-Aliem wrote:
> hi all
> when i have array in the form of :
> Array ( [0] => 2 [ID] => 2 [1] => asdasd [CategoryName] => asdasd ) )
> how can i make it in the form of :
> Array ( [ID] => 2 [CategoryName] => asdasd ) )
>
> can anyone help me with that plz ?

I don't even understand the question...

Where did this array come from?

___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

attached mail follows:


This looks to me as printet result array from database:

$query = mysql_query("select * from table");
$result = mysql_fetch_array($query);
if you
print_r($result);
you'll get "doubled" values.
use
$result = mysql_fetch_array($query, MYSQL_ASSOC);
for "singles"

check: http://us2.php.net/manual/en/function.mysql-fetch-array.php

-afan

> Crap.. I remember seeing an example of something that yielded arrays like
> this and now I can't find it.
>
> It basically created an array (from a database I thought.. but can't find
> the example under mysql_fetch_assoc or mysql_fetch_array... thought it was
> in the standard PHP documentation (not the user comments).
>
> Anyway, it looked just like this.
>
> first array element key = "ID" and value = "2"
> second array element key = "CategoryName" and value = "asdasd"
>
> But you ended up with an array that merged an associative array and a
> regular indexed array.
>
> So you get, in addition to the above, a 0 = 2 and 1 = asdasd.
>
>
> Looks like he wants just the associative side of it.. not the indexed.
>
> -TG
>
> = = = Original message = = =
>
> On Sun, June 11, 2006 6:57 am, Ahmed Abdel-Aliem wrote:
>> hi all
>> when i have array in the form of :
>> Array ( [0] => 2 [ID] => 2 [1] => asdasd [CategoryName] => asdasd ) )
>> how can i make it in the form of :
>> Array ( [ID] => 2 [CategoryName] => asdasd ) )
>>
>> can anyone help me with that plz ?
>
>
> I don't even understand the question...
>
> Where did this array come from?
>
>
> ___________________________________________________________
> Sent by ePrompter, the premier email notification software.
> Free download at http://www.ePrompter.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


On Sat, June 10, 2006 5:31 am, Dave Goodchild wrote:
> Just a question out of curiousity for the language lawyers out there.
> Why is
> it illegal to begin a variable name with a number in php?

Because Rasmus wrote that bit on a Tuesday. :-)

It's a pretty common requirement, actually.

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

attached mail follows:


----- Original Message -----
From: "Richard Lynch" <ceol-i-e.com>

> On Sat, June 10, 2006 5:31 am, Dave Goodchild wrote:
>> Just a question out of curiousity for the language lawyers out there.
>> Why is
>> it illegal to begin a variable name with a number in php?
>
> Because Rasmus wrote that bit on a Tuesday. :-)
>
> It's a pretty common requirement, actually.
>
> --

I guess that most current parsers would easily handle variable names
starting with numbers, not just in PHP, though it might be confusing to
users. Floats with an exponent part (separated by an E or, in some cases,
a D) might be confused for variable names. In some languages, numeric
constants might have a suffix indicating the storage type (i.e: and L for
long, or F for float) so there would be many rules of what is ok and what is
not. Simple rules with few exceptions prevents silly user mistakes.

Now, as for PHP, with variable names always preceded by $, we are actually
dealing with the second character, but not always, we have constructs such
as $abc, ${abc}, {$abc} and finally $$abc, the first three refering to the
very same variable, the last one to the variable named in $abc. In some of
these cases there are symbols in between the $ and the variable name so it
is not so simple as saying that the $ is the first character and and the 'a'
(in these examples) is the second.

Then, there is the problem of heritage. Many of PHP features are based on
*nix shells, such as BASH where $1, $2, .... have special meaning, but this
does not apply to PHP.

So I guess the answer to the question of why is simply because it's the
immemorial custom of the trade. And I admit I never thought of doing
otherwise.

Satyam

attached mail follows:


Maybe just try to read from it???

On Fri, June 9, 2006 10:56 pm, Michael W. wrote:
> Hello,
> Can any of you tell me how to tell whether a socket (from
> fsockopen()) is
> connected or not? Specifically, whether the remote server has closed
> the
> connection? Stream_get_meta_data() does not do it; in my tests, its
> output
> does not change even when the server closes the stream.
>
> Thank you,
> Michael W.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

attached mail follows:


Michael W. wrote:
> Hello,
> Can any of you tell me how to tell whether a socket (from fsockopen()) is
> connected or not? Specifically, whether the remote server has closed the
> connection? Stream_get_meta_data() does not do it; in my tests, its output
> does not change even when the server closes the stream.
>
> Thank you,
> Michael W.

If it is a network socket, and the remote end disconnected unexpectedly
(which you MUST assume is a possibility), then the only way to find out
if the connection is still open is by SENDING data. Just trying to read
it won't cut it.

The thing to understand is that when a remote client/server disconnects,
it normally safely closes the socket and notifies you. But an abrupt
disconnection (Something crashes, loses connectivity, etc) sends no such
thing. The only way to find out that a connection is really lost is to
write some data and see if it times out or not.

Regards, Adam Zey.

attached mail follows:


Adam Zey wrote:

> Michael W. wrote:
>> Hello,
>> Can any of you tell me how to tell whether a socket (from fsockopen())
>> is
>> connected or not? Specifically, whether the remote server has closed the
>> connection? Stream_get_meta_data() does not do it; in my tests, its
>> output does not change even when the server closes the stream.
>>
>> Thank you,
>> Michael W.
>
> If it is a network socket, and the remote end disconnected unexpectedly
> (which you MUST assume is a possibility), then the only way to find out
> if the connection is still open is by SENDING data. Just trying to read
> it won't cut it.
>
> The thing to understand is that when a remote client/server disconnects,
> it normally safely closes the socket and notifies you. But an abrupt
> disconnection (Something crashes, loses connectivity, etc) sends no such
> thing. The only way to find out that a connection is really lost is to
> write some data and see if it times out or not.
>
> Regards, Adam Zey.

How can I tell whether the write timed out? Does fwrite() return false, or
do I have to check for the 'timed_out' flag in the return of
stream_get_meta_data()?

Thanks a lot,
Michael W.

attached mail follows:


Yes, this is in the PHP FAQ.

Plus, you could name them like:
name="fieldname[1]" and then you could just iterate through
$_POST['fieldname'] which would be even cleaner.

On Wed, June 7, 2006 7:21 am, Ben Liu wrote:
> Hello All,
>
> I've written a clunky script that presents a form to a user with 30
> checkboxes on it to match 30 fields in a table. The user checks off
> each field they want to appear in a text file produced by the script.
> The script I wrote captures each checkbox response to a separate
> variable:
>
> $fieldname1=$_POST['fieldname1'];
> $fieldname2=$_POST['fieldname2'];
>
> etc...
>
> I then build a custom query based on those variables using 30 logic
> statements like such:
>
> if ($fieldname1) $query .="fieldname1, ";
> if ($fieldname2) $query .="fieldname2, ";
>
> etc...
>
> I then query the DB and iterate over the results, shoving the data
> into an output variable like this (again 30 logic statements):
>
> if ($fieldname1) $output.="$row[fieldname1]\t";
> if ($fieldname2) $output.="$row[fieldname2]\t";
>
> then I print the contents of $output to a text file.
>
> It seems that there has to be a better way of doing this. Can the
> $_POST superglobal be manipulated in this way:
>
> foreach ($_POST as $fieldname) ?
>
> Thanks for any help and guidance.
>
> - Ben

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

attached mail follows:


On Wed, June 7, 2006 7:33 pm, Ligaya Turmelle wrote:
> Thought we were going to add the "Security" subsection to the "Where
> to
> Find More Information" section of the NEWBIE email. Wasn't it
> supposed
> to include a link to the manuals security area as well as the phpsec
> site?

+1

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

attached mail follows:


[snip]
> Thought we were going to add the "Security" subsection to the "Where
> to
> Find More Information" section of the NEWBIE email. Wasn't it
> supposed
> to include a link to the manuals security area as well as the phpsec
> site?

+1
[/snip]

Send me the details and I'll make sure that they get added.

attached mail follows:


I suspect the first question would be if Flash people have bothered to
document what HTML subset they support.

And second is, wouldn't you have a lot more luck in a Flash forum?...

On Wed, June 7, 2006 11:22 am, Jochem Maas wrote:
> hi people,
>
> I've been STFW till I'm blue in the face (so lack of oxygen might be
> problem atm) but can't find any [decent] info on
> generating/transforming existing
> HTML so thats it's compatible with the subset of tags that are
> supported
> by Flash (apparently Flash has the ability to show something that
> resembles
> HTML in certain visual controls - I don't flash, I'm just responsible
> for
> supplying XML feeds that the flash site/file in question can consume).
>
> so the question does any know of a reliable resource on this subject
> and/or
> some code nugget that is capable of generating/transforming (x)HTML
> into
> the cruft that Flash is capable of displaying?
>
> any feedback is welcome (apart from 'STFW' - I'm already doing that
> :-P)
>
> rgds,
> Jochem
>
> ps - my server side stuff is all php (so I need to have an HTML
> 'converter'
> written in php too [preferably]) before someone hits me with the 'what
> does
> this has to do with php' response.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

attached mail follows:


Hello,
How can I trap a fatal error (like calling a non existant method, requiring
a non existant file, etc) and go to a user defined error handler? I tried
set_error_handler(), but it seems to skip over the errors I care about.

Thanks for the help.

attached mail follows:


Christopher J. Bottaro wrote:
> Hello,
> How can I trap a fatal error (like calling a non existant method, requiring
> a non existant file, etc) and go to a user defined error handler? I tried
> set_error_handler(), but it seems to skip over the errors I care about.
>
> Thanks for the help.

It is always safer to handle errors before they happen by checking that
you're in a good state before you try to do something.

For example, nonexistent files can be handled by file_exists().
Undefined functions can be checked with function_exists().

Regards, Adam Zey.

attached mail follows:


Hi,

I am trying to get GD working so I can use a captcha script and not having
much luck. I can get it to work in Windows, but not Linux.

I have seen a few comments suggesting that PHP needs to be compiled with the
GD switch. Is there another way to do this? I have PHP, MySQL and Apache
installed and working great, I don't want to have to recompile PHP and have
it screw up everything just for one program.

Any help is appreciated.

B

attached mail follows:


Beauford wrote:
> Hi,
>
> I am trying to get GD working so I can use a captcha script and not having
> much luck. I can get it to work in Windows, but not Linux.
>
> I have seen a few comments suggesting that PHP needs to be compiled with the
> GD switch. Is there another way to do this? I have PHP, MySQL and Apache
> installed and working great, I don't want to have to recompile PHP and have
> it screw up everything just for one program.
>
> Any help is appreciated.
>
> B
>
>
I would say this is more a GD issue than a PHP issue. Can you get GD to
run from the command line?

attached mail follows:


On Monday 12 June 2006 16:11, Beauford wrote:
> Hi,
>
> I am trying to get GD working so I can use a captcha script and not having
> much luck. I can get it to work in Windows, but not Linux.
>
> I have seen a few comments suggesting that PHP needs to be compiled with
> the GD switch. Is there another way to do this? I have PHP, MySQL and
> Apache installed and working great, I don't want to have to recompile PHP
> and have it screw up everything just for one program.
>
> Any help is appreciated.
>
> B

Depending on your Linux distribution, you might be able to find a GD module
for PHP. That way you don't have to re-compile PHP. If you use an RPM based
distro, this would be very easy. Free-BSD you could just compile the port.

--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099

attached mail follows:


I'm using Slackware 10 and installed GD as an install package. I also
changed some lines in the php.ini file for GD.

Tom: I have no idea how this program works, all I know is that I need it for
the captcha program to display the image. I wouldn't even bother otherwise.

Thanks.....

B

-----Original Message-----
From: Ray Hauge [mailto:ray.haugeamericanstudentloan.com]
Sent: June 12, 2006 7:35 PM
To: php-generallists.php.net
Cc: Beauford
Subject: Re: [PHP] GD

On Monday 12 June 2006 16:11, Beauford wrote:
> Hi,
>
> I am trying to get GD working so I can use a captcha script and not
> having much luck. I can get it to work in Windows, but not Linux.
>
> I have seen a few comments suggesting that PHP needs to be compiled
> with the GD switch. Is there another way to do this? I have PHP, MySQL
> and Apache installed and working great, I don't want to have to
> recompile PHP and have it screw up everything just for one program.
>
> Any help is appreciated.
>
> B

Depending on your Linux distribution, you might be able to find a GD module
for PHP. That way you don't have to re-compile PHP. If you use an RPM
based distro, this would be very easy. Free-BSD you could just compile the
port.

--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099

attached mail follows:


I posted this Thursday as a PHP bug: http://bugs.php.net/bug.php?id=37743

Basically this function is off by 2 minutes from the US & UK governments
calculations. While PHP is admitting there is a difference they are stating
I should live with it and "it's expected". Does any one else not find this
acceptable? What can be done to push PHP to correct this?

Thanks

attached mail follows:


Ravi Jethwa wrote:
> Hello,
>
>
>
> I was wondering if somebody could provide some advice on where I might
> be going wrong if I am receiving the following error:
>
>
>
> "bash: /usr/bin/pprofp: /usr/local/bin/php: bad interpreter: No such
> file or directory".

/usr/local/bin/php doesn't exist. Adjust the path and try again.

--
Postgresql & php tutorials
http://www.designmagick.com/

attached mail follows:


Hello,

I have some code which uses mail() and a day or so ago, the server stopped
sending mail. The code is the same and I checked that sendmail is
running. I also checked maillog which showed the messaged as qued but they
never come through in email. How can I debug this and what might have
caused the problem??

Thanks!