[PHP] return string size in bytes

2004-06-11 Thread PHP4web
I now there are function to calc file size but I want function to get string size in bytes

[PHP] Best Lossless Hi-Res Photo Storage with PHP

2004-06-11 Thread Galen
I'm working on a photo site and most of it is working. The intent is to store original high-resolution photos that will only be accessed when purchased, and then a variety of thumbnails that will be accessed when viewing. Because they're high-resolution, I need maximal image compression but I c

Re: [PHP] Installation Question

2004-06-11 Thread Pham Cong Dinh
Hi, I also have an installation guide on PHP4/5, Apache2, Windows XP but it is written in Vietnamese ( http://www.opensourcevn.org/javavietnam/php/caiphp.htm ). Could you give me some details on your installation process ? Regards, Dinh Marlene Thoms wrote: I am running Windows XP and have inst

Re: [PHP] PHP pros and cons

2004-06-11 Thread Pham Cong Dinh
Hi, Yes, namespaces has been removed from CVS for PHP5 but Object Model for PHP5, based on Java, has been improved. I would like to say: plz forget PHP4 and rush into PHP5. Dinh PHPVietnam Chris Shiflett wrote: --- Amanda Hemmerich <[EMAIL PROTECTED]> wrote: what do you guys think are some li

[PHP] PHP 5/OOP, Functionality similar to an Abstract method?

2004-06-11 Thread Chris
I have an abstract class with quite a few 'children'. Essentially I want to be able to interchange calls between children (Take a script, written with ClassA and redefine the variable as ClassB etc.) Though there is a large subset of methods all of these children declare, there are a few which

Re: [PHP] Installation Question

2004-06-11 Thread Steve Douville
did you set up the mime types in apache? did you restart apache? - Original Message - From: "Marlene Thoms" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 12, 2004 12:37 AM Subject: [PHP] Installation Question I am running Windows XP and have installed Apache2, MyODBC,

[PHP] Installation Question

2004-06-11 Thread Marlene Thoms
I am running Windows XP and have installed Apache2, MyODBC, mySQL and php on my workstation. Apache and MySQL are running, however when I try to access phpinfo.php from my browser, php is not being accessed. Instead I see the source code. I have gone through the installation instructions several ti

[PHP] Installation Question

2004-06-11 Thread Marlene Thoms
I am running Windows XP and have installed Apache2, MyODBC, mySQL and php on my workstation. Apache and MySQL are running, however when I try to access phpinfo.php from my browser, php is not being accessed. Instead I see the source code. I have gone through the installation instructions several ti

Re: [PHP] gethostbyaddr

2004-06-11 Thread John Hicks
Hi Alicia. Welcome to the list. On Friday 11 June 2004 12:58 pm, Alicia Riggs wrote: > Hi guys, I am new to this list, and signed up > specifically for this problem. If any one has any > ideas it would be greatly appreciated. > > I am writing a function to allow users from a > specific intranet p

Re: [PHP] export from mysql to csv file

2004-06-11 Thread John Hicks
On Friday 11 June 2004 10:16 pm, Dustin Krysak wrote: > Can anyone point me to an existing script or > tutorial to learn this? > > Thanks in advance! > > d There is a mysql utility that does this: mysqldump -p mypassword -T mytargetdirectory mydatabasename [mytablenames] (The "-T" tells it t

Re: [PHP] export from mysql to csv file

2004-06-11 Thread Larry E . Ullman
Can anyone point me to an existing script or tutorial to learn this? I'm fairly sure there's a tutorial at PHPBuilder.com or Zend.com. Or you can check the PEAR modules for code (I know there are database to Excel classes). If all else fails, Google's always helpful. Larry -- PHP General Mailing

Re: [PHP] Header target?

2004-06-11 Thread Steve Douville
You could use javascript to determine whether or not to send it to the frame and if so, the target attribute in the form tag can be used to direct the form values to the frame for processing, if you're intending for the other frame to process the form data. If you're intending that the frame that

[PHP] export from mysql to csv file

2004-06-11 Thread Dustin Krysak
Can anyone point me to an existing script or tutorial to learn this? Thanks in advance! d -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Header target?

2004-06-11 Thread Bob Lockie
Is it possible to specify the target frame in a "Header" call? I have a form that submits in one frame and I want it to redirect to another frame in some cases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] testing array_search

2004-06-11 Thread Bob Lockie
On 06/11/04 17:17 Curt Zirzow spoke: * Thus wrote Bob Lockie ([EMAIL PROTECTED]): I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo "j=" . $j; if (($j != false) && ($j >= 0)) { mixed array_search ( mixed needle, array haystack [, bool strict]) Searches hays

RE: [PHP] Undiscovered Firefox...

2004-06-11 Thread Rick Fletcher
When you pasted that PHP code firefox did a google "I'm feeling lucky" search on it. If you go to google and manually do the I'm feeling lucky search you should end up at the same place. Yet another reason firefox deserves the top of the heap. --Rick > -Original Message- > From: John Ni

Re: [PHP] testing array_search

2004-06-11 Thread Curt Zirzow
* Thus wrote Bob Lockie ([EMAIL PROTECTED]): > I'm having a very hard time testing array_search. > > $j = array_search( $i, $errList ); > echo "j=" . $j; > if (($j != false) && ($j >= 0)) { mixed array_search ( mixed needle, array haystack [, bool strict]) Searches haystack for needle and retur

Re: [PHP] PHP pros and cons

2004-06-11 Thread Chris Shiflett
--- Steve Douville <[EMAIL PROTECTED]> wrote: > I do like CF's ability to just name data sources on the server and > reference them that way. You won't be able to reproduce the "cfadmin" stuff with PHP, simply because PHP isn't a persistent process, but I think great strides will be made on the da

Re: [PHP] nested statement problem

2004-06-11 Thread Curt Zirzow
* Thus wrote Eric Boerner ([EMAIL PROTECTED]): > I am having a problem with a nested if statement in php. Everything > works fine, but it doesn't display the information that I am trying to > retrieve using a second if statement. > > CODE: > > if (($fr == 'FR') && ($xe == 'XE') && ($co == 'CO'))

Re: [PHP] PHP pros and cons

2004-06-11 Thread Steve Douville
Easier to learn than Perl, comparable learning curves with CF imo, probably a bit easier than ASP initially. Cheaper to deploy than CF since it's free, same for ASP. As for speed in building applications, I'd say that given someone has the same ability in any of the 4 (PHP, ASP, CF, Perl) deploym

Re: [PHP] addslashes

2004-06-11 Thread Justin Patrin
Chris Shiflett wrote: --- Jough P <[EMAIL PROTECTED]> wrote: My goal is to never have to use the addslashes() function. Any suggestions? There's probably nothing you can do about your Web host, but you can use the fix_magic_quotes() function listed here: http://phundamentals.nyphp.org/PH_storingr

Re: [PHP] Re: PDA / Normal Browser

2004-06-11 Thread Pushpinder Singh
Use javascript -- browser object hth /pS On Friday, June 11, 2004, at 03:09 PM, Jason Barnett wrote: Shaun wrote: Hi, Is it possible to use PHP to detect the type of browser accessing my site. For example if a PDA is using it I would prefer not to include large graphics... Many thanks for your he

Re: [PHP] patRSS

2004-06-11 Thread Daniel Guerrier
try http://magpierss.sourceforge.net/ --- Edward Peloke <[EMAIL PROTECTED]> wrote: > Does anyone use patRSS for the rss feeds? > > http://www.php-tools.net/site.php?&PHPSESSID=99dd0269b03bee4046c3395d5561162 > 1&file=/patMisc/rss.xml > > I don't see much online about it. It seems to work > fine,

[PHP] Re: PDA / Normal Browser

2004-06-11 Thread Jason Barnett
Shaun wrote: Hi, Is it possible to use PHP to detect the type of browser accessing my site. For example if a PDA is using it I would prefer not to include large graphics... Many thanks for your help Yes you can do this. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

[PHP] Re: junk after document element

2004-06-11 Thread Jason Barnett
Richard Davey wrote: Hi guys, Does anyone know what the most common cause for the following error from the XML parser built into PHP 4.3.6: "junk after document element" I am parsing data that has been returned to me via https, this is stage 6 in a multi-step process and the first stages went okay

Re: [PHP] addslashes

2004-06-11 Thread Chris Shiflett
--- Jough P <[EMAIL PROTECTED]> wrote: > My goal is to never have to use the addslashes() function. Any > suggestions? There's probably nothing you can do about your Web host, but you can use the fix_magic_quotes() function listed here: http://phundamentals.nyphp.org/PH_storingretrieving.php Ho

Re: [PHP] PHP pros and cons

2004-06-11 Thread Chris Shiflett
--- Amanda Hemmerich <[EMAIL PROTECTED]> wrote: > what do you guys think are some limitations of PHP? It's not persistent like ColdFusion. It doesn't have namespaces. The object model in PHP 4 is poor. I'm sure others can pitch in here. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP

[PHP] Re: addslashes

2004-06-11 Thread Justin Patrin
Torsten Roehr wrote: "Jough P" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Greetings all, I'm doing all my PHP development on my iBook running OS X. I'm currently working on a messaging tool for a website. When the messages are posted on my iBook the single quotes are escaped prop

[PHP] Re: choosing another smtpserver with PHPs mail function

2004-06-11 Thread Justin Patrin
Manuel Lemos wrote: Hello, On 06/10/2004 07:05 PM, Oôv as&äönsson wrote: I having a little problem with PHPs build in function mail(). The mailserver isnt located on the webserver, its on another machine. I have tryed ini_set("SMTP", "ipaddress"); with no result. The system I'm on runs on an Linux

Re: [PHP] passing a function as a parameter

2004-06-11 Thread Justin Patrin
call_user_func($func) and $func() are much better alternatives. Daniel Clark wrote: Can you use eval() ? I want to pass a function as a parameter and execute it in another function. A callback. :-) For example: function a() { echo "a"; } function b( $func ) { func(); echo "b"; } The ou

Re: [PHP] testing array_search

2004-06-11 Thread Daniel Clark
What output do you get? > I'm having a very hard time testing array_search. > > $j = array_search( $i, $errList ); > echo "j=" . $j; > if (($j != false) && ($j >= 0)) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] testing array_search

2004-06-11 Thread Bob Lockie
I'm having a very hard time testing array_search. $j = array_search( $i, $errList ); echo "j=" . $j; if (($j != false) && ($j >= 0)) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: addslashes

2004-06-11 Thread Torsten Roehr
"Jough P" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings all, > > I'm doing all my PHP development on my iBook running OS X. I'm > currently working on a messaging tool for a website. When the messages > are posted on my iBook the single quotes are escaped properly. When

[PHP] array_rand() not random

2004-06-11 Thread Nori Heikkinen
hi, i'm trying to use the array_rand() to return one of six images, culled from a directory listing. however, i've noticed that over the past five days, the log of images accessed is anything but a random distribution: 20 /jnl/images/banner/banner_viola.jpg 32 /jnl/images/banner/bw_ban

[PHP] Re: nested statement problem

2004-06-11 Thread Torsten Roehr
"Eric Boerner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am having a problem with a nested if statement in php. Everything > works fine, but it doesn't display the information that I am trying to > retrieve using a second if statement. > > CODE: > > if (($fr == 'FR') && ($xe =

[PHP] addslashes

2004-06-11 Thread Jough P
Greetings all, I'm doing all my PHP development on my iBook running OS X. I'm currently working on a messaging tool for a website. When the messages are posted on my iBook the single quotes are escaped properly. When I upload the same *.php files to the server the single quotes are preceded

[PHP] Re: choosing another smtpserver with PHPs mail function

2004-06-11 Thread Manuel Lemos
Hello, On 06/10/2004 07:05 PM, Oôv as&äönsson wrote: I having a little problem with PHPs build in function mail(). The mailserver isnt located on the webserver, its on another machine. I have tryed ini_set("SMTP", "ipaddress"); with no result. The system I'm on runs on an Linux box. That does not

[PHP] nested statement problem

2004-06-11 Thread Eric Boerner
I am having a problem with a nested if statement in php. Everything works fine, but it doesn't display the information that I am trying to retrieve using a second if statement. CODE: if (($fr == 'FR') && ($xe == 'XE') && ($co == 'CO')) { print "Statement"; } elseif (($ag == 'AG') && ($rz

Re: [PHP] Using date() to spit out milliseconds???

2004-06-11 Thread Scott Fletcher
I have decided to take up your suggestion and customize it. --snip-- date("Y-m-d H:m:s.").substr(microtime(),2,6); --snip-- This is all I need to create a timestamp. Thanks... "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Scott Fletcher ([EMAIL PROTECT

[PHP] gethostbyaddr

2004-06-11 Thread Alicia Riggs
Title: gethostbyaddr Hi guys, I am new to this list, and signed up specifically for this problem.  If any one has any ideas it would be greatly appreciated.  I am writing a function to allow users from a specific intranet permission to view a directory.  I am getting very different results

Re: [PHP] Using date() to spit out milliseconds???

2004-06-11 Thread Curt Zirzow
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > I noticed that date() doesn't provide the option to give me the time in > millisecond, so anyone know of a way to do that or anyone know of a script > that can do something like this. http://php.net/microtime Curt -- First, let me assure you th

[PHP] Using date() to spit out milliseconds???

2004-06-11 Thread Scott Fletcher
I noticed that date() doesn't provide the option to give me the time in millisecond, so anyone know of a way to do that or anyone know of a script that can do something like this. THanks, Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] PHP pros and cons

2004-06-11 Thread Amanda Hemmerich
I am trying to come up with a little speech to use when talking to potential clients to make a case for using PHP over over languages, such as perl, ColdFusion, ASP, etc. I have been looking on the web, but I would also love to hear from you guys. How would you make a case for using PHP? Also, c

RE: [PHP] Re: Changing the directory that PHP runs from (CLI)

2004-06-11 Thread Phil Ewington - 43 Plc
Justin, I think I will go for the ini_set() option, seems to be the best bet to not affect anything else. Thanks. - Phil. > -Original Message- > From: Justin Patrin [mailto:[EMAIL PROTECTED] > Sent: 11 June 2004 15:42 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Changing the directory th

[PHP] Problem with Imagick

2004-06-11 Thread [EMAIL PROTECTED]
I am having a problem installing Imagick in PHP 4.3.6. In the install instructions: 1) make sure the path to Magick-config (the ImageMagick configuration script) is in your PATH environment variable There is no Magick-config file. Anyone know what ŒMagick-config¹ is exactly? I figure this is

Re: [PHP] passing a function as a parameter

2004-06-11 Thread Daniel Clark
Can you use eval() ? > I want to pass a function as a parameter and execute it in another > function. > A callback. :-) > > For example: > > function a() { > echo "a"; > } > > > function b( $func ) { > func(); > echo "b"; > } > > > The output of "b( a )" will be "ab". -- PHP Gener

Re: [PHP] fopen successful..cant write to the file though permissions are ok..

2004-06-11 Thread Matt Matijevich
[snip] $filename"/tmp/newfile"); $filehandle=fopen($filename,"w"); fclose($filehandle); [/snip] is this the exact code you are trying to use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fopen successful..cant write to the file though permissions are ok..

2004-06-11 Thread mukta telang
Hi, I am facing a strange problem..When I try to create a file in /tmp directory (using php script) as follows: $filename"/tmp/newfile"); $filehandle=fopen($filename,"w"); fclose($filehandle); I get error something like fclose(): ~not a stream~. All routines like fwrite(), readdir() give errors.

Re: [PHP] Re: passing a function as a parameter

2004-06-11 Thread Bob Lockie
Take a look at call_user_func(): http://de3.php.net/manual/en/function.call-user-func.php Thanks, I have it working. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: passing a function as a parameter

2004-06-11 Thread Justin Patrin
Torsten Roehr wrote: "Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I want to pass a function as a parameter and execute it in another function. A callback. :-) For example: function a() { echo "a"; } function b( $func ) { func(); echo "b"; } The output of "b(

[PHP] Re: Changing the directory that PHP runs from (CLI)

2004-06-11 Thread Justin Patrin
Phil Ewington - 43 Plc wrote: Hi All, I have read the manual page for 'Using PHP from the command line' thoroughly and cannot find the answer to my problem. I have a script that needs to be accessed from both the command line and from web browsers. I tested the script from the command line and all

[PHP] Re: passing a function as a parameter

2004-06-11 Thread Alekc
I'am not sure what you wanna do, but if you want to send a parameter use something like this one: function a() { return "a"; } function b($val) { echo $val."b"; } b(a()); ?> or you can always use classes... On Fri, 11 Jun 2004 10:25:54 -0400, Bob Lockie <[EMAIL PROTECTED]> wrote: I want

[PHP] Re: passing a function as a parameter

2004-06-11 Thread Torsten Roehr
"Bob Lockie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I want to pass a function as a parameter and execute it in another function. > A callback. :-) > > For example: > > function a() { > echo "a"; > } > > > function b( $func ) { > func(); > echo "b"; > } > > > Th

[PHP] passing a function as a parameter

2004-06-11 Thread Bob Lockie
I want to pass a function as a parameter and execute it in another function. A callback. :-) For example: function a() { echo "a"; } function b( $func ) { func(); echo "b"; } The output of "b( a )" will be "ab". -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Limit the number of characters in a string

2004-06-11 Thread Daniel Clark
substr( xxx, 1, 100) >> >>Hi >> >>Anyone know how to clip the number of characters in a string? For instance, >>I have a string carrying a long piece of text, say, of 200 characters, but I >>want to reduce this to just the first 100 characters. >> >> >>Thanks in advance. >> >>Russell -- PHP Gene

[PHP] Changing the directory that PHP runs from (CLI)

2004-06-11 Thread Phil Ewington - 43 Plc
Hi All, I have read the manual page for 'Using PHP from the command line' thoroughly and cannot find the answer to my problem. I have a script that needs to be accessed from both the command line and from web browsers. I tested the script from the command line and all worked well. As soon as I set

[PHP] Re: Gd Library and Special Chars

2004-06-11 Thread news.php.net
Ok, i have solved problem with copyright and registered by using imagettftext... But i still can't print correctly tm symbol :( On Fri, 11 Jun 2004 11:56:14 +0200, News.Php.Net <[EMAIL PROTECTED]> wrote: Hi to all, I need to do parsing of html data from one site for find nick , guild, and some

[PHP] patRSS

2004-06-11 Thread Edward Peloke
Does anyone use patRSS for the rss feeds? http://www.php-tools.net/site.php?&PHPSESSID=99dd0269b03bee4046c3395d5561162 1&file=/patMisc/rss.xml I don't see much online about it. It seems to work fine, but I now have to cycle through another array to pull out and format everything. Thanks, Eddie

Re: [PHP] Re: Binary math

2004-06-11 Thread Mark
--- Knightking <[EMAIL PROTECTED]> wrote: > On Thu, 10 Jun 2004 20:08:08 -0700, Justin Patrin > <[EMAIL PROTECTED]> wrote: > > > Mark wrote: > > > >> [snip] > > > > I'm not sure what's wrong with the code you have, but for the > 4-digit > > one you have: > > > > $packed = 4-bit var with ABCD

[PHP] Gd Library and Special Chars

2004-06-11 Thread news.php.net
Hi to all, I need to do parsing of html data from one site for find nick , guild, and some other infos... The problem is that gd doesn't print correctly chars like trademark, copyright, registered (which are contained in some nicks/guild names)... Someone know a valid solution??? -- Using Ope

[PHP] Re: Limit number of characters in a string

2004-06-11 Thread Russell Curtis
Wow, that was fast - many thanks. Cheers Russell -- --- Russell Curtis M +44 (0) 7796268780 www.russellcurtis.com www.buildingdetails.co.uk "Torsten Roehr" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Russell Curtis" <[EMAIL PROTECTED]> wrote in

[PHP] Re: Limit number of characters in a string

2004-06-11 Thread Torsten Roehr
"Russell Curtis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > Anyone know how to clip the number of characters in a string? For instance, > I have a string carrying a long piece of text, say, of 200 characters, but I > want to reduce this to just the first 100 characters. h

[PHP] Limit number of characters in a string

2004-06-11 Thread Russell Curtis
Hi Anyone know how to clip the number of characters in a string? For instance, I have a string carrying a long piece of text, say, of 200 characters, but I want to reduce this to just the first 100 characters. Thanks in advance. Russell -- --- Russell Curtis -

[PHP] Limit the number of characters in a string

2004-06-11 Thread Russell Curtis
Hi Anyone know how to clip the number of characters in a string? For instance, I have a string carrying a long piece of text, say, of 200 characters, but I want to reduce this to just the first 100 characters. Thanks in advance. Russell -- --- Russell Curtis