[PHP] Upgrade PHP?

2004-08-01 Thread Will Collins
I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
tried simply making the 4.3.8 from source, but RedHat didn't use the default
PHP folder structure is seems, since there has been no change in my PHP
version.  I also tried the "./configure" string returned by 'phpinfo()'
(assuming that the correct path info was included) with no luck.  Does
anyone have any tips on an easier way to upgrade?

 

Thanks,

Will



RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
from source, and although the compile went well, I'm having problems getting
modules installed into PHP.  For example, when using phpinfo(), I am told
that GD is installed, but trying to use GD functions won't work.  What now,
guys?

Will

-Original Message-
From: Support [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 01, 2004 10:11 PM
To: Will Collins; [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

I've dealt with a similar problem with Mandrake. Some distros have their own
idea of where things should go. I prefer to install major applications like
apache, perl, mysql, php myself and never install from rpm or accept default
distro packages when installing an os from scratch.

IMHO: Although handy for some things, I still can't figure out why people
put up with rpms. :-)

What I finally did is use rpm to uninstall php, apache, and mysql. I also
followed dependencies and deleted them as well.

This approach is not really a great idea if you're not used to building from
source, but I have my own idea of where I like things to go so this works
for me. Usually /usr/local is a good choice for installing.

Since mysql and apache both come with their own start up scripts using
chckconfig to add them to the system is about as easy as it gets.

Jim Grill
Web-1 Hosting
http://www.web-1hosting.net

- Original Message - 
From: "Will Collins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 01, 2004 8:03 PM
Subject: [PHP] Upgrade PHP?


> I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9.  I've
> tried simply making the 4.3.8 from source, but RedHat didn't use the
default
> PHP folder structure is seems, since there has been no change in my PHP
> version.  I also tried the "./configure" string returned by 'phpinfo()'
> (assuming that the correct path info was included) with no luck.  Does
> anyone have any tips on an easier way to upgrade?
>
>
>
> Thanks,
>
> Will
>
>

-- 
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] Upgrade PHP?

2004-08-02 Thread Will Collins
To test it, I used:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd
--with-zlib-dir=/usr/include

-Original Message-
From: bruce [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 3:39 PM
To: 'Will Collins'; [EMAIL PROTECTED]
Subject: RE: [PHP] Upgrade PHP?

provide us with a copy of the attributes you used when you compiled...

ie ./configure --attributeA --ldapetc...

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



RE: [PHP] Upgrade PHP?

2004-08-02 Thread Will Collins
Won't work:

Fatal error: Call to undefined function: imagecreatefromjpeg()

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 4:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

On Tuesday 03 August 2004 03:21, Will Collins wrote:
> Well I uninstalled PHP, Apache, and all dependant RPMs.  I compiled both
> from source, and although the compile went well, I'm having problems
> getting modules installed into PHP.  For example, when using phpinfo(), I
> am told that GD is installed, but trying to use GD functions won't work. 
> What now, guys?

What does "won't work" mean exactly?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
All newspaper editorial writers ever do is come down from the hills after
the battle is over and shoot the wounded.
*/

-- 
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] Upgrade PHP? [SOLVED]

2004-08-02 Thread Will Collins
Yeah, actually, you were right.  I must have misunderstood the instructions
- probably because of the press for time, reading too quickly.  I wasn't
using "--with-jpeg-dir", etc.  Sorry for the mess, and thanks for all the
help.  At least some good came out of this -- I now have a working Slackware
installation (after the headaches, I decided to install Slackware 10 on my
unused server and compile everything from source to see if I could get it to
work).  Thanks for your time everybody.

Will

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 10:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Upgrade PHP?

On Tuesday 03 August 2004 07:42, Will Collins wrote:
> Won't work:
>
> Fatal error: Call to undefined function: imagecreatefromjpeg()

> ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-gd
> --with-zlib-dir=/usr/include

Read

  manual > Image Functions

to see how to get jpeg (and other) support.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
NOTICE:

-- THE ELEVATORS WILL BE OUT OF ORDER TODAY --

(The nearest working elevator is in the building across the street.)
*/

-- 
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] Cannot compile

2004-08-03 Thread Will Collins
Try running 'make clean' before you run 'make' again.  I had a problem when
trying to run 'make' for the umpteenth time during my recent troubles, and
apparently it was because things got a little too cluttered, and this did
the trick.

Will

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 03, 2004 1:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Cannot compile

On Tuesday 03 August 2004 14:30, Andrew W wrote:

> It doesn't work regardless of whether I include any options or not.

"doesn't work" can include umpteen billions of things. Please try to narrow
it 
down a bit.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
If you want your spouse to listen and pay strict attention to every
word you say, talk in your sleep.
*/

-- 
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 duplicate this functionality?

2004-05-14 Thread Will Collins
It's fairly simple: at the top of your script, have a block of code similar
to the following, and have the link point to 
-- 
$_SERVER['PHP_SELF']."?rm_id=".$id_to_be_deleted
--  
I'll leave out all but the essential elements.





Will Collins

-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 14, 2004 8:49 PM
To: Ryan A
Cc: PHP-General
Subject: Re: [PHP] How to duplicate this functionality?

On Fri, 2004-05-14 at 21:23, Ryan A wrote:
> Hi,
> I just visited a popular swedish based site that is mostly powered via
ASP,
> they have one little piece of functionality this is really puzzling me and
I
> would like to add it to one of my working apps (a shopping cart)...
> 
> Its a bit hard to explain so will give you the steps so you can go to the
> site and see for yourself...Its all pretty much written in swedish but
will
> try to explain.
> 
> 1. go to http://www.blocket.se/
> 2. on the right side of the screen there are some numbers (1 to 23) and
next
> to each number is a Swedish city...click on any one of them.
> 3. You should be presented by a lot of "text ads"...click on any one of
them
> to open them (the ones with teh little camera symbol at the side will also
> display a pic of the product)
> 4.Scroll to the bottom of any ad and you should see " Spara i
> Annonsbevakningen " which roughly translates to "save this ad"...click it.
> It will save the ad for you (via cookies most probably..dont know for
> sure...but I visited much later and even after I closed->reopened my
browser
> and revisited the site,it was still there)
> 5.Click the back button a few times so that you can save a bunch of
> ads...then
> 
> This is the part I like, when you click on "Ta bort" next to any of your
> saved ads ("Ta bort" means "Remove")...it just goes from the page...very
> smooth and does not need for the page to be "script processed" again or
> anything...HOW? What is it? Javascript..? DHTML? what?

In linux under Netscape 7 and Opera 7.2 it reloaded the page :/ That
said looking at the URL when the mouse is over the link:

http://www.blocket.se/new?caller=ogl_s&l=0&rm_id=2595475&city=0

The rm_id is being set as a GET variable with an appropriate ID to
remove the entry. So when the page reloads it first deletes the entry.
This is standard functionality in many websites.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
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 duplicate this functionality?

2004-05-14 Thread Will Collins
Also, I forgot to mention... another little snippet I like to use for
something like this is this meta tag:



It makes the pages fade into each other, and for two pages that are very
similar (like your example) it doesn't look like there's any reload at all.
It has a pretty cool effect when you up the "duration" and use it for
totally different pages too... it's just really fun to play with.  Just
stick it into the header of your page.

Will Collins


-Original Message-
From: Will Collins [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 14, 2004 9:17 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] How to duplicate this functionality?

It's fairly simple: at the top of your script, have a block of code similar
to the following, and have the link point to 
-- 
$_SERVER['PHP_SELF']."?rm_id=".$id_to_be_deleted
--  
I'll leave out all but the essential elements.





Will Collins

-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 14, 2004 8:49 PM
To: Ryan A
Cc: PHP-General
Subject: Re: [PHP] How to duplicate this functionality?

On Fri, 2004-05-14 at 21:23, Ryan A wrote:
> Hi,
> I just visited a popular swedish based site that is mostly powered via
ASP,
> they have one little piece of functionality this is really puzzling me and
I
> would like to add it to one of my working apps (a shopping cart)...
> 
> Its a bit hard to explain so will give you the steps so you can go to the
> site and see for yourself...Its all pretty much written in swedish but
will
> try to explain.
> 
> 1. go to http://www.blocket.se/
> 2. on the right side of the screen there are some numbers (1 to 23) and
next
> to each number is a Swedish city...click on any one of them.
> 3. You should be presented by a lot of "text ads"...click on any one of
them
> to open them (the ones with teh little camera symbol at the side will also
> display a pic of the product)
> 4.Scroll to the bottom of any ad and you should see " Spara i
> Annonsbevakningen " which roughly translates to "save this ad"...click it.
> It will save the ad for you (via cookies most probably..dont know for
> sure...but I visited much later and even after I closed->reopened my
browser
> and revisited the site,it was still there)
> 5.Click the back button a few times so that you can save a bunch of
> ads...then
> 
> This is the part I like, when you click on "Ta bort" next to any of your
> saved ads ("Ta bort" means "Remove")...it just goes from the page...very
> smooth and does not need for the page to be "script processed" again or
> anything...HOW? What is it? Javascript..? DHTML? what?

In linux under Netscape 7 and Opera 7.2 it reloaded the page :/ That
said looking at the URL when the mouse is over the link:

http://www.blocket.se/new?caller=ogl_s&l=0&rm_id=2595475&city=0

The rm_id is being set as a GET variable with an appropriate ID to
remove the entry. So when the page reloads it first deletes the entry.
This is standard functionality in many websites.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
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] Book Required

2004-07-17 Thread Will Collins
PHP & MySQL Web Development is a pretty good one.  It does a good job of
giving a fairly thorough explanation on things, considering the broad range
of topics to be covered.  I never have really been a fan of the "Fast and
Easy... " series, or the "Learn * In 24 Hours" series.

Will

-Original Message-
From: Harlequin [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 17, 2004 2:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Book Required

Morning

There's loads and loads of books available on the subject of PHP & MySQL.

Does anyone have any recommendations...?

-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-

-- 
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] Book Required

2004-07-17 Thread Will Collins
I apologize for requesting a read receipt.  Won't happen again - I hope. :)

-Original Message-
From: Will Collins [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 17, 2004 2:27 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Book Required

PHP & MySQL Web Development is a pretty good one.  It does a good job of
giving a fairly thorough explanation on things, considering the broad range
of topics to be covered.  I never have really been a fan of the "Fast and
Easy... " series, or the "Learn * In 24 Hours" series.

Will

-Original Message-
From: Harlequin [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 17, 2004 2:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Book Required

Morning

There's loads and loads of books available on the subject of PHP & MySQL.

Does anyone have any recommendations...?

-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-

-- 
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] textarea/display question...

2004-07-20 Thread Will Collins
I've always gotten errors when trying to use the "value" property of a
textarea.  Put the value info between the  tabs.

-Original Message-
From: bruce [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 20, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] textarea/display question...

hi..

i'm presenting a textarea to the user...

i'd like to be able to display the information within the textarea in a
 format. this would allow me to highlight the material that the user
should modify. however, i can't figure out how to accomplish this...

$foo = 'blah';


something like the above, but without displaying all the attrib stuff...

any ideas/pointers would be appreciated..

thanks

-bruce

-- 
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] Problem of a beginner with Array

2004-07-20 Thread Will Collins
Name each of the checkboxes "grid[]" (Your Text), then in your processing script,
$_POST['grid'] will be an array with the values of all the checked boxes
(assuming at least one was checked - otherwise it won't be set).  If you
want a limit on the number of boxes you can check, try a little Javascript.

Hope it helps,
Will

-Original Message-
From: Henri Marc [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 20, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problem of a beginner with Array

Hello,
 
I'm just starting with PHP and I have a problem. This is certainly very easy
for you but for me, it's tough.
 
I want to make a lottery site (just as an exercise), so I made a page with 6
grids of 50 numbers each (check boxes).
 
Now, I want to know which numbers have been checked by the player.
I have a :
"input name="Grid1" type="checkbox"
for the first grid. Grid2 for the grid #2...
 
I was thinking to get the numbers chosen by the player with
$_POST['Grid1[]']
Grid1 being a table but it doesn't work. I thought I wouldn't have to
declare an array. I have 50 numbers for each grid, I don't want to have to
type array followed by the 50 numbers. There is not a way to do something
like array(1...50).
 
What is the solution?
 
Thank you very much (in advance) for your help.
 
Dave


-
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail

Yahoo! Messenger : dialoguez instantanément avec vos amis - c'est  gratuit !

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



RE: [PHP] PHP error catching....

2004-07-20 Thread Will Collins
Error handlers?  Plus, you can set up PHP to log errors to a file in
'php.ini'...

-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 20, 2004 9:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP error catching

What are those php functions that catch the PHP errors, not display it and
do something to it while the user load a webpage.   I don't remember what
those are.  :-(

FletchSOD

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