[PHP] Session Data

2003-03-21 Thread Tony Bibbs
I'm wrapping up an MVC implementation for PHP.  Everything is working 
splendidly except that redirects seem to be loosing session data. Here is 
the basic logic

1) on a form, user enters data hits submit
2) data validates OK, data is saved and $_SESSION['MVC_message'] is set to 
'Save was successful'
3) After setting session data in step 2 above, a redirect is issued:
header('Location: ' . $url);
4) The URL represented by $url within same app doesn't have any data in 
$_SESSION and I'm positive a session_destroy() isn't being called 
explicitly.

The ideas here is to show a page with context information for the user.

Any ideas why this isn't working?

-- 
Tony Bibbs  I guess you have to remember that those who don't
[EMAIL PROTECTED]  hunt or fish often see those of us who do as  
harmlessly strange and sort of amusing. When you  
think about it, that might be a fair assessment. 
--Unknown



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



[PHP] Re: [SOAP] web services

2003-03-20 Thread Tony Bibbs
That seems network intensive to me.  Offering web services for some basic 
tasks makes sense but not making an entire application that does all 
functionality over the web will be slow and impractical.

Also, consider XML-RPC.  Some people insist on hammering a nail with a 
sledgehammer (soap) when a XML-RPC implementation (the hammer) is better 
suited.

That said, I use both raw XML, XML-RPC and SOAP for various tasks.

It doesn't have to be all or the other (not that you implied that)...

--Tony

 On Fri, 21 Mar 
2003, Merlin wrote:

 Hi everybody,
 
 I am currently trying to understand how to place content on a different site
 without giving away my code. SOAP seems to be the solution. I am absolutly
 new to web services. What I did understand so far is that it is basicly
 pritty simple to transfer some data like a currency exchange rate over the
 web service. But how about a complete web portal? Connected to the same DB,
 the php files hosted on my server, but the application served by a different
 server. Like co branding the portal. Is this possible as well?
 
 Maybe someone can point me into the right direction.
 
 Thanx a lot,
 
 Merlin
 
 
 
 

-- 
Tony Bibbs  I guess you have to remember that those who don't
[EMAIL PROTECTED]  hunt or fish often see those of us who do as  
harmlessly strange and sort of amusing. When you  
think about it, that might be a fair assessment. 
--Unknown



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



Re: [PHP] How do I Resize an image?

2002-01-30 Thread Tony Bibbs

You can use GD, or imagemagick.  If you want to make your code easily
portable, you may want to consider using netpbm as it runs on
linux,freebsd,macosx,solaris and windows.

--Tony

On Wed, 2002-01-30 at 08:18, Bryan Gintz wrote:
 For Linux (Unix) you can get a tool called imagemagik (not sure of 
 spelling) and do a system call to it from a php script.
 
 Bryan
 
 Francis Cronjé wrote:
 
 I am new to php and wd appreciate any help!
 I have been through the manual, but have found no solution:
 1.How do I resize an image retrieved from an interbase database before =
 displaying it on a page?
 
 ie If the image is 800 x 600 pixels and I want to resize the image to =
 256 x 192
 2.Do I have to install gd library?
 
 3.How do I display the image from the interbase database?
 
 
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How do I Resize an image?

2002-01-30 Thread Tony Bibbs

I only know of netpbm via The Gallery, http://gallery.sf.net.

That is a good photo album package that uses netpbm.  They have netpbm
for each of the OS's I listed in their download section.  You could also
search freshmeat.net and see if it netpbm shows up there.

--Tony

On Wed, 2002-01-30 at 08:42, Stefan Rusterholz wrote:
 Thank you for that hint.
 Where do I get netpbm?
 Is it fast?
 What image-formats are supported (jpg, png, gif, ...)?
 What operations are supportetd (resizing, antialiasing, merging, writing
 text to pictures, etc.)?
 
 best regards
 Stefan Rusterholz
 
 - Original Message -
 From: Tony Bibbs [EMAIL PROTECTED]
 To: Bryan Gintz [EMAIL PROTECTED]
 Cc: Francis Cronjé [EMAIL PROTECTED]; PHP List
 [EMAIL PROTECTED]
 Sent: Wednesday, January 30, 2002 3:25 PM
 Subject: Re: [PHP] How do I Resize an image?
 
 
  You can use GD, or imagemagick.  If you want to make your code easily
  portable, you may want to consider using netpbm as it runs on
  linux,freebsd,macosx,solaris and windows.
 
  --Tony
 
  On Wed, 2002-01-30 at 08:18, Bryan Gintz wrote:
   For Linux (Unix) you can get a tool called imagemagik (not sure of
   spelling) and do a system call to it from a php script.
  
   Bryan
  
   Francis Cronjé wrote:
  
   I am new to php and wd appreciate any help!
   I have been through the manual, but have found no solution:
   1.How do I resize an image retrieved from an interbase database before
 =
   displaying it on a page?
   
   ie If the image is 800 x 600 pixels and I want to resize the image to =
   256 x 192
   2.Do I have to install gd library?
   
   3.How do I display the image from the interbase database?
   
   
   
   
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
  --
  Tony Bibbs | Life is a moderately good play
  [EMAIL PROTECTED] | with a bad 3rd act.
  515.554.8046   |
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Tables Loading Slow

2002-01-30 Thread Tony Bibbs

Check the PHP manual on flush()

--Tony

On Wed, 2002-01-30 at 08:38, Bryan Gintz wrote:
 Hi.
 I have a large database query that returns anywhere from 10-30ish 
 records.  The problem comes from loading them in tables.  With IE5 and 
 Netscape 5 on windows, the results do not display until the last 
 /table tag is written.  Does anyone have any ideas on how to show the 
 results as the come from the query?
 
 Thanks.
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] mysql on php4.1.1 on my Win98SE laptop running PWS

2002-01-30 Thread Tony Bibbs

When PHP says it has MySQL support it is just that..support.  You still
have to install MySQL (www.mysql.com).  Assuming you have done that the
it is just a matter of reading the MySQL documentation.

--Tony

On Wed, 2002-01-30 at 08:28, Wilbert Enserink wrote:
 Hi all,
 
 
 maybe one of you can help me a bit in the right direction.
 I just installed the windows self installer (php4.1.1) on my Win98SE laptop
 running PWS. It is stated that it is cgi only and built in MySQL support.
 
 I installed it succesfully, but now I want to create a MySQL db. anybody has
 any clues how to do this? Is it just enough to write a php script in which
 the mysql_create_db(localhost) statement is used?
 
 and what about it's ports, sockets, passwords, usernames etc.??
 
 Of course any push in the right direction is appreciated. Thx.
 
 regards, Wilbert
 
 - 
 Pas de Deux 
 Van Mierisstraat 25 
 2526 NM Den Haag 
 tel 070 4450855 
 fax 070 4450852 
 http://www.pdd.nl 
 [EMAIL PROTECTED] 
 -
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] funny unlink problem

2002-01-30 Thread Tony Bibbs

I see 55jpg NOT 55.jpg

--Tony

On Wed, 2002-01-30 at 12:40, sundogcurt wrote:
 unlink(); help
 
 the file I would like to delete (actual path)
 /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg
 
 path I am feeding to unlink function
 /home/gruesome/public_html/nuved/clients/prestigemotors/images/55jpg
 
 error I get when I try to delete the file
 Warning: Unlink failed (No such file or directory) in 
 /home/gruesome/public_html/nuved/includes/content/addvehicle.php on line 
 315
 
 relative path to file (from script containing the unlink function)
 ../../clients/prestigemotors/images/55jpg
 
 I am copying the file with the same script ($folder = 'prestigemotors' 
  $tempVID = '55')
 $destination = '/home/gruesome/public_html/nuved/clients/' . $folder . 
 '/images/' . $tempVID . '.jpg';
 if(copy(stripslashes($ipath),$destination)) ...
 
 Mandrake / Apache / Frustration
 
 help?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Content Management

2002-01-30 Thread Tony Bibbs

CMS is kind of an ambigous term anymore.  I contribute to Geeklog,
http://geeklog.sourceforge.net so I'd recommend seeing if that fits your
needs.

If not, give PHP Nuke, Post Nuke, Scoop and slashcode a look.  Not sure
what exactly your CMS needs are so I'm not sure if what I just suggested
are viable options.

On Wed, 2002-01-30 at 13:19, [EMAIL PROTECTED] wrote:
 Does anyone know of an organization who has built and maintains a web 
 content management application for a large site?
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP/Courier-IMAP and c-client library

2002-01-29 Thread Tony Bibbs

Ok, I have PHP 4.1.1 on RH7.2 and I'm running courier-mta and
courier-imap. I downloaded the UW c-client library and did the make
lrh.  I then do the following configure:

./configure --disable-debug -enable-pic -disable-rpath
--enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-bz2
--with-curl --with-db3 --with-db2 --with-dom --with-gd --with-gdbm
--with-gettext --with-openssl --with-png --with-zlib --enable-debugger
--enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-track-vars --with-mysql
--with-pgsql --with-xml --with-imap=/usr/local/src/imap-2001a
--with-imap-ssl

Then the make and make install go as expected.

I then go to restart Apache and I get:
[root@localhost php-4.1.1]# /etc/rc.d/init.d/httpd restart
Stopping httpd:[FAILED]
Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name

Please help...

-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP/Courier-IMAP and c-client library

2002-01-29 Thread Tony Bibbs

For the archives:

I found a fix for my problem. I want to be perfectly clear what my
configuration is so that if anyone has this god-foresaken problem they
can fix it.  

OS: Red Hat Linux 7.2
MTA: courier-mta
IMAP: courier-imap

I installed the UW c-client library and compiled it with make lrh

I compiled PHP with these options:

./configure --disable-debug -enable-pic -disable-rpath
--enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-bz2
--with-curl --with-db3 --with-db2 --with-dom --with-gd --with-gdbm
--with-gettext --with-openssl --with-png --with-zlib --enable-debugger
--enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-track-vars --with-mysql
--with-pgsql --with-xml --with-imap=/usr/local/src/imap-2001a
--with-imap-ssl

On restarting Apache it complains with:

[root@localhost php-4.1.1]# /etc/rc.d/init.d/httpd restart
Stopping httpd:[FAILED]
Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name

I added the following lines to my /etc/rc.d/init.d/httpd script in the
start section right after the echo line:

LD_PRELOAD=/usr/kerberos/lib/libgssapi_krb5.so
export LD_PRELOAD

If there is a more elegant way of doing this via Apache's build I'd love
to know.

Also, I will be documenting an entire howto on this configuration here:

http://www.tonybibbs.com/courier-howto.html

--Tony

On Tue, 2002-01-29 at 16:26, Tony Bibbs wrote:
 Ok, I have PHP 4.1.1 on RH7.2 and I'm running courier-mta and
 courier-imap. I downloaded the UW c-client library and did the make
 lrh.  I then do the following configure:
 
 ./configure --disable-debug -enable-pic -disable-rpath
 --enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-bz2
 --with-curl --with-db3 --with-db2 --with-dom --with-gd --with-gdbm
 --with-gettext --with-openssl --with-png --with-zlib --enable-debugger
 --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets
 --enable-sysvsem --enable-sysvshm --enable-track-vars --with-mysql
 --with-pgsql --with-xml --with-imap=/usr/local/src/imap-2001a
 --with-imap-ssl
 
 Then the make and make install go as expected.
 
 I then go to restart Apache and I get:
 [root@localhost php-4.1.1]# /etc/rc.d/init.d/httpd restart
 Stopping httpd:[FAILED]
 Starting httpd: Syntax error on line 261 of /etc/httpd/conf/httpd.conf:
 Cannot load /etc/httpd/modules/libphp4.so into server:
 /etc/httpd/modules/libphp4.so: undefined symbol: gss_nt_service_name
 
 Please help...
 
 -- 
 Tony Bibbs | Life is a moderately good play
 [EMAIL PROTECTED] | with a bad 3rd act.
 515.554.8046   | 
-- 
Tony Bibbs | Life is a moderately good play
[EMAIL PROTECTED] | with a bad 3rd act.
515.554.8046   | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Using php as a shell scripting language

2001-02-12 Thread Tony Bibbs

I have a need to use php similar to how I would bash when creating shell
scripts.  I have two RH6.2 machines that have the same version of php
(slightly different compile-options).  One machine in particular lacks the php
binary in /usr/local/bin and that's what I need to use php in a shell script.

I did ./configure --help to see if there was an option that I was missing and
nothing jumped out at me as being the obvious fix.  How do I compile PHP to
get this binary?

TIA,

-TB

***
Tony Bibbs
Iowa Outdoors - Hunting and Fishing
http://www.iowaoutdoors.org
[EMAIL PROTECTED]
515.554.8046
***




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]