[PHP] Re: How to send POST info without a form?

2002-10-02 Thread Girish Nath
Hi Snoopy can do this too: http://sourceforge.net/projects/snoopy/ Regards Girish -- www.girishnath.co.uk "Lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try www.sloppycode.net > > * © Sloppycode.net All rights reserved. > * @title Html Source

[PHP] PHP Java Extension

2002-08-16 Thread Girish Nath
Hi I wanted to learn some new stuff and experiment with the PHP Java extension, what are the possibilities, what's cool about it, what are you guys using it for and where can i find some tutorials for it ? Had a look at php.net but can't find much info suitable for a newbie to this particular ex

[PHP] Fast Templates to embed data into Flash files ?

2002-06-14 Thread Girish Nath
Hi I'm about to start a project which involves building a 'website on a CD'. There will be similar areas and layouts, just containing different data, within the site pages. The pages will be a HTML framework containing Flash and QuickTime files etc. I've worked with Fast Templates and liked the

[PHP] Re: PHP doubt

2002-05-29 Thread Girish Nath
Hi Make sure you have an auto_increment field in your table, do the insert first, then use mysql_insert_id() to get the number of the last which you can use for the customer number. See the notes at the following page: http://www.php.net/manual/en/function.mysql-insert-id.php Regards Girish -

[PHP] Re: Passing an array on

2002-05-22 Thread Girish Nath
Hi You could try : http://www.php.net/manual/en/function.serialize.php http://www.php.net/manual/en/function.unserialize.php Pass the serialized array in the URL, then unserialize it back when in the target page. Regards Girish -- www.girishnath.co.uk "John Fishworld" <[EMAIL PROTECTED]>

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread Girish Nath
--- Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'SP'" <[EMAIL PROTECTED]>; "'Girish Nath'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 3:18 AM Subject: RE: [PHP] Cool PHP Tricks

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread Girish Nath
> > Thanks, > > Steve > > -Original Message- > From: Girish Nath [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 14, 2002 9:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Cool PHP Tricks/Features ? > > > Hi > > I've been using PHP for about 2 year

[PHP] Cool PHP Tricks/Features ?

2002-05-14 Thread Girish Nath
Hi I've been using PHP for about 2 years now but only just discovered ob_gzhandler and gzip/compressing http output. It's something i wish i'd found out about earlier because even though it's a simple concept the result blew me away :) Anyway, i just wanted to know of any other cool tricks/featu

Re: [PHP] Fixing the PHP security hole

2002-03-01 Thread Girish Nath
Hi Unpack and copy the patch diff to the php4.0.6/main source directory, then use : patch rfc1867.c rfc1867.c.diff-4.0.6 then the usual configure, make, make install. Regards Girish -- www.girishnath.co.uk - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc:

Re: [PHP] Disabliing browser cache possible?

2002-02-24 Thread Girish Nath
Hi http://www.php.net/manual/en/function.header.php There is a section about how to disable caching about 1/3 way down the page. Regards Girish -- www.girishnath.co.uk - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 24, 2002 12:04

Re: [PHP] any ideas : Unexpected character

2002-02-14 Thread Girish Nath
Hi I got this error : Warning: Unexpected character in input: ' in /home/altdesign/public_html/php/new admin/do_addauthor.php on line 14 Can you post the section around Line 14 from do_addauthor.php so we can take a look at it ? Regards Girish -- www.girishnath.co.uk - Original Message

Re: [PHP] Getting days after last login. Date problem

2002-02-13 Thread Girish Nath
Hi You may be able to convert the member db date to a unix timestamp using strtotime() http://www.php.net/manual/en/function.strtotime.php Then use one of the other functions at : http://www.php.net/manual/en/ref.datetime.php to convert the pictures db date also to unix timestamp, then compar

Re: [PHP] Problem

2002-02-13 Thread Girish Nath
Hi Use the str_replace function like this : $myText = str_replace ("\n", "", $myText); This will remove all line breaks from $myText http://www.php.net/manual/en/function.str-replace.php Regards Girish -- www.girishnath.co.uk - Original Message - From: "Roman Duriancik" <[EMAIL

Re: [PHP] Special dll for query strings?

2002-02-12 Thread Girish Nath
Hi Look at php.ini under the register_globals section for how to access GET variables now with PHP4.1.x Regards Girish -- www.girishnath.co.uk - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 12:05 AM Subject: [PHP] Special dll

Re: [PHP] IP <-> URL

2002-02-11 Thread Girish Nath
Hi $HTTP_SERVER_VARS["SERVER_ADDR"] ? Girish -- www.girishnath.co.uk - Original Message - From: "Balaji Ankem" <[EMAIL PROTECTED]> To: "* R&zE:" <[EMAIL PROTECTED]> Cc: "Php-General" <[EMAIL PROTECTED]> Sent: Monday, February 11, 2002 10:00 AM Subject: [PHP] IP <-> URL No Renze, wh

Re: [PHP] Searching class capable of parsing ID3-tags in MP3-files

2002-02-10 Thread Girish Nath
Hi There is a class that can manipluate version 1 tags here : http://leknor.com/code/php/view/class.id3.php.txt and a some beta code for handling version 2 tags here : http://leknor.com/code/php/view/beta/class.id3v2.php.txt I don't know if that helps. Regards Girish -- www.girishnath.co.u

Re: [PHP] What can I ask here?

2002-02-05 Thread Girish Nath
Hi You'll find the mailing list archive an excellent source of info : http://marc.theaimsgroup.com/?l=php-general&r=1&w=2 Regards :) Girish -- www.girishnath.co.uk - Original Message - From: "Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 4:07 PM

Re: [PHP] Getting variables from a text file

2002-02-05 Thread Girish Nath
Hi It looks like a querystring, so read the contents of the file into a variable, then use the parse_str() function on that variable, you can specify if you want them to be stored in an array too. http://www.php.net/manual/en/function.parse-str.php Regards Girish -- www.girishnath.co.uk

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Girish Nath
Hi I had similar problems when just specifying the font file in the same directory eg ./arial.ttf but got it to work okay when i used the full path eg : $fontfile = "/apache/htdocs/arial.ttf"; ImageTTFText($im, 20, 0, 3, 3, $text_colour, $fontfile, "My text"); Regards Girish -- www.girishnat

Re: [PHP] stupid URL variable question

2002-02-01 Thread Girish Nath
page works fine if I hard-code the values, but even if I replace en_na with $locale, it breaks.. James -Original Message- From: Girish Nath [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 5:53 PM To: James Hallam; Php-General Subject: Re: [PHP] stupid URL variable question

Re: [PHP] stupid URL variable question

2002-02-01 Thread Girish Nath
Hi Try without quotes : $table_name = $locale; Your SQL is probably reading "SELECT comp, content FROM $locale instead of en_na Regards Girish - Original Message - From: "James Hallam" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Saturday, February 02, 2002 12:4

Re: [PHP] upload permission denied!

2002-01-28 Thread Girish Nath
Hi For some reason i couldn't get the 777 thing to work on one of my hosts but managed to get this syntax to work instead : chmod o=rwx directoryname ***It's not exactly secure but might get the job done *** Regards Girish -- www.girishnath.co.uk - Original Message - From: "Jason W

Re: [PHP] MySQL Newbie

2002-01-28 Thread Girish Nath
Hi If you haven't got shell access but have a PHP enabled webserver then you could try and install phpMyAdmin: http://www.phpwizard.net/projects/phpMyAdmin/ Regards Girish -- www.girishnath.co.uk - Original Message - From: "Ben Clumeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

Re: [PHP] Need a little help

2002-01-28 Thread Girish Nath
r any functions that might be outputting error messages within test.php Regards Girish -- www.girishnath.co.uk - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "Girish Nath" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday,

Re: [PHP] File uploading like hotmail

2002-01-28 Thread Girish Nath
Hi It's in the manual at : http://www.php.net/manual/en/features.file-upload.php Regards Girish -- www.girishnath.co.uk - Original Message - From: "qartis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 6:37 PM Subject: Re: [PHP] Fil

Re: [PHP] File uploading like hotmail

2002-01-28 Thread Girish Nath
Hi It's in the manual at : http://www.php.net/manual/en/features.file-upload.php Regards Girish -- www.girishnath.co.uk - Original Message - From: "qartis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 6:37 PM Subject: Re: [PHP] Fil

Re: [PHP] if command

2002-01-28 Thread Girish Nath
Hi http://www.php.net/manual/en/control-structures.php for example : if ($firstname == "Eduardo" && $lastname == "Melo") { print ("I know you") } else { print ("I don't know you"); } Regards Girish -- www.girishnath.co.uk - Original Message - From: "Eduardo Melo" <[EMAIL

Re: [PHP] Need a little help

2002-01-28 Thread Girish Nath
Hi This should send different images to the referer based on what parse_url() returns: You may need to modify it a bit perhaps with a "switch" statement for more flexibilty. Let me know how you get on. Regards Girish -- www.girishnath.co.uk - Original Message - From: "Brian V Bo

Re: [PHP] Basic Password Protection.

2002-01-28 Thread Girish Nath
Hi Try : http://www.php.net/manual/en/features.http-auth.php Check the comments on the page for links to tutorials etc. Regards :) Girish -- www.girishnath.co.uk - Original Message - From: "Philip J. Newman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002

Re: [PHP] How do I use a confirm box to confirm before deletion from a database

2002-01-28 Thread Girish Nath
Hi If you have a delete "link" then try this : function confirmThis(url) { if (confirm("Are you sure you want to delete ?")) { window.location = url; } } Then you can generate the delete link dynamically with PHP eg : Delete! This should pop up a OK/Cancel dialog bo

Re: [PHP] mysql_query() problem

2001-12-17 Thread Girish Nath
Hi Try the following to find out what's happening : $result = mysql_query($query,$conn) or die (mysql_error()); Or try echo'ing $result to see what it contains. It should contain something like this if everything is working fine : Resource id #2 Regards Girish - Original Message -

[PHP] Shopping project with quantity discounts

2001-12-08 Thread Girish Nath
Hi I'm working on a shopping project which involves a complex pricing model with discounts by product quantity threshold as well as customer specific discounts. Has anyone got experience of this or point me in the right direction with regards to the database layout and theory behind this. Thank

Re: [PHP] Binary Header

2001-12-07 Thread Girish Nath
Hi Try sending the following header for .zip files header ("Content-Type: application/x-zip-compressed"); Regards Girish - Original Message - From: "Bharath Bhushan Lohray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 07, 2001 9:40 AM Subject: [PHP] Binary Hea

Re: [PHP] What does &var mean ?

2001-11-22 Thread Girish Nath
Thanks, you guys rock! :) Girish - Original Message - From: "Roberto Ramírez" <[EMAIL PROTECTED]> To: "Girish Nath" <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 4:10 PM Subject: RE: [PHP] What does &var mean ? The use of the & means

[PHP] What does &var mean ?

2001-11-22 Thread Girish Nath
Hi I've been looking at some classes an have come across this notation for example : function remove(&$productid) { /* this function will remove a given product from the cart */ if (isset($productid)) { unset($this->items[$productid]); } } What does the "&" (ampersand) before the v

Re: [PHP] Help me to win the battle with browser's cache

2001-11-12 Thread Girish Nath
Hi I've found some code which i put it into this function. I've never got the meta tag technique to work but this seems to do the trick. Call noCache() before outputting anything to the page. function noCache() { header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past header (

Re: [PHP] Database editor

2001-10-05 Thread Girish Nath
Hi Take a look at phpMyAdmin at : http://phpwizard.net/projects/phpMyAdmin/ -- phpMyAdmin is intended to handle the adminstration of MySQL over the web. Currently it can: - create and drop databases - create, copy, drop and alter tables - delete, edit and add fields - execute any SQL-statemen

Re: [PHP] Problem installing GD on windows

2001-09-19 Thread Girish Nath
Hi I'm sure the full "everything-and-the-kitchen-sink" package will sort out the problem :) Regards Girish - Original Message - From: "Neil Freeman" <[EMAIL PROTECTED]> To: "Girish Nath" <[EMAIL PROTECTED]> Cc: "PHP General"

Re: [PHP] Combining strings?

2001-09-19 Thread Girish Nath
Hi $newstring = $date . "/" . $month; Girish - Original Message - From: "Daniel Alsén" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 12:54 PM Subject: [PHP] Combining strings? > Hi, > > i was trying to figure this out myself. But since the php-

Re: [PHP] Problem installing GD on windows

2001-09-19 Thread Girish Nath
n" <[EMAIL PROTECTED]> To: "Girish Nath" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 12:29 PM Subject: Re: [PHP] Problem installing GD on windows > Hi Girish, > > I installed PHP within D:\PHP. Thi

Re: [PHP] Problem installing GD on windows

2001-09-19 Thread Girish Nath
hi copy the php_gd.dll into the extentions sub-directory where you installed php (you should already have a load of other .dlls in there too) change the extension_dir in php.ini to point to that sub-directory. for example : extension_dir = D:\Apache\php4\extensions\ that should do it. regard

Re: [PHP] Quick mail function help.... please!!!

2001-09-17 Thread Girish Nath
this : From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] X-Mailer: PHP/3.0.17 What error are you getting exactly ? Are you sure [mail function] section in php.ini is setup correctly ? Regards Girish - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To:

Re: [PHP] Quick mail function help.... please!!!

2001-09-17 Thread Girish Nath
Hi mail("[EMAIL PROTECTED]", "My Subject", "My Message", "From: [EMAIL PROTECTED]\nReply-To: [EMAIL PROTECTED]\nX-Mailer: PHP/" . phpversion()); Regards Girish - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 18, 2001 1:0

Re: [PHP] XML/XPath Position() Syntax

2001-08-07 Thread Girish Nath
Hi Thanks, the "and" didn't work, however a "|" did the business :) product[position() > 25 | position() < 50 ] Maybe there;s smth up with the class i'm using (www.phpxml.org) Gish - Original Message - From: "Gyozo Papp" <[EMAI

[PHP] XML/XPath Position() Syntax

2001-08-07 Thread Girish Nath
Hi I'm trying to select XML nodes 25 to 50 using the position() function in the XPath class. I can select greater or less than but can't figure out a "between". Anyone have the correct syntax for this ? eg "//product[position() >25]" Thanks Gish -- PHP General Mailing List (http://www.ph

Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

2001-08-07 Thread Girish Nath
HP?? how do you feel about the speed of imagemagick? fastwr? slower than gd functions? - Original Message - From: "Girish Nath" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 1:56 PM Subject: Re: [PHP] Re: Any good gif/jpg processing

Re: [PHP] XML Next 25 Results

2001-08-07 Thread Girish Nath
;Gerry Kirk" <[EMAIL PROTECTED]> To: "Girish Nath" <[EMAIL PROTECTED]> Sent: Tuesday, August 07, 2001 8:19 AM Subject: Re: [PHP] XML Next 25 Results I think the best approach would be if you could specify in your query the number of rows you want and the starting r

Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

2001-08-06 Thread Girish Nath
Hi I've used ImageMagick in the past(it runs on NT and Linux), I found it gives higher quality results than the builtin functions especially when resizing jpegs. http://www.imagemagick.org Girish - Original Message - From: "Gaylen Fraley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

Re: [PHP] XML Next 25 Results

2001-08-06 Thread Girish Nath
t); if ($fp) { fputs($fp, $header . $parameters); while (!feof($fp)) { $response .= fgets($fp,$appserverPacketSize); } fclose($fp); } return cleanXML($response); // custom function to strip HTTP headers from fetched data. } - Original Message - From

[PHP] XML Next 25 Results

2001-08-06 Thread Girish Nath
Hi I have a script which receives and processes XML product information and displays it as a table in html. However, sometimes the html table can contain over 200 rows. Does anyone know of any xml parse examples which limit the output and possibly make a "Display Next 25 results" link at the bas