Re: [PHP] ZOPE PHP

2001-04-17 Thread Moody
Look at http://www.zope.org and http://weblogs.userland.com/zopeNewbies/ have fun :-) Moody - Original Message - From: "elias" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 7:51 PM Subject: Re: [PHP] ZOPE PHP > what is ZOPE? >

Re: [PHP] GetImageSize

2001-05-09 Thread Moody
What version of PHP are you using? According to the manual: "URL support was added in PHP 4.0.5" Moody "Joseph Bannon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > For some reason, I can get the image image size for

Re: [PHP] Trying to create a site-template system.. and..

2001-10-28 Thread Moody
Try this: (see http://www.php.net/manual/en/ref.outcontrol.php for more info) > > My problem is.. that when I do something like > > > > - > > $content = show_source("/path/to/file"); > > // or > > $content = "Blah.. blah.. ".include("/some/file").".. s

Re: [PHP] phpmyadmin is installed, now how to access it?

2001-10-28 Thread Moody
> > I see all the files are name php3 rather than php. When I access the > index.php3 of course it my browser doesn't know what to do so it asks if I > want to download it. Sounds like you need to add ".php3" to your AddType directive in the httpd.conf file i.e.the line in httpd.conf that says:

[PHP] Re: Error trapping

2001-09-03 Thread Moody
Try writing a custom error handler. Chech out http://www.zend.com/zend/spotlight/error.php for a good article on the subject. Pay particular attention to the bit at the end about output buffering since I assume that what you would want to do is send a redirect header to the browser if the script f

[PHP] Re: Error trapping, on scripts that don't exist

2001-09-05 Thread Moody
This is how it works (in very crude not-even-pseudo code, but I'm sure you'll be able to follow the logic!): BEGIN 1. Browser requests a resource (file) from your web server. 2. Web server checks to see whether requested resource exists. 3. if (!2) web server generates 404 error (page does not ex

[PHP] Re: Convert a string so it is valid for a sql query

2001-09-10 Thread Moody
> Is there a function to convert a string so it is a valid string of text > for a SQL query? AN example would be a string of text that has ' in it > would be converted to \' http://www.php.net/manual/en/function.addslashes.php -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Re: passing args to function?

2001-09-10 Thread Moody
> I'm having a bit of a hard time passing in a constant to a user-defined > function. > > the calling page - index.php: > > include define_foo.php; > function_foo(bar); ^ should be: foo("bar"); [snip] > function foo($value) > { > global $value, $page_id, $usr, $pass, $database, $host;