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
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
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
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
-
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]>
--- 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
>
> 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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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 -
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
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
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
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
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 (
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
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"
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-
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
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
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:
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
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
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
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
;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
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
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
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
50 matches
Mail list logo